Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Which is the best way to create large application in php like flipkart, makemytrip (OOPS or Core php (non oops) )

Posted on 2016-09-25
4
Medium Priority
?
63 Views
Last Modified: 2016-10-24
I had created application like flipkart and makemytrip with non oop in php.
I am confused about shall I use oops for that application and How to I change non oops to oops.
0
Comment
Question by:Pravin Bnakar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 640 total points (awarded by participants)
ID: 41815413
change non oops to oops.
You don't.  Changing the application to OOP from standard procedural code should be a complete rewrite, especially for a large application.  The philosophy and methods are so different that converting procedural to OOP successfully would take long and be extremely painful.

Typically, procedural code doesn't require a lot of planning since you just write the next bit that is needed.  But with OOP and classes, you need to do a lot more planning to make sure you have the functions and interfaces that you will need.
1
 
LVL 34

Assisted Solution

by:Slick812
Slick812 earned 640 total points (awarded by participants)
ID: 41816387
greetings Pravin Bnakar, , , , , ,  You want to - "change PHP non oops to oops", ,

And I see many many PHP coders recommend that the Object Oriented code is better to use than the procedural  (non oop) code. This can be true, as Object Oriented code work can be better organized and have more inner CLASS method correspondence-interactive features, than can be used in function procedural code work. However, just using the PHP CLASS and having Object Oriented code "instances" objects, will not result in "Better" web application.  In my opinion, , in order to to have a superior PHP web application in Object Oriented code work, the advantages and more effective code connections and organizations of Object Oriented code work need to be used INSTEAD of the non-connected, non-interactive function code work of the non-oop procedural operations of the PHP code writing. To use your existing code work, in a Change to CLASS definitions and Object creation in your code work, I would think, you will need to Know how and why and when to build your CLASSes using the advantages available in PHP OOP. And this usually means that old functions can not be directly used as new methods in your new classes, changes need to be made in the organization of the CLASS and method connections using the Object PHP $this variable and other advantages for OOP PHP.
1
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 720 total points (awarded by participants)
ID: 41828757
Object oriented programming  is one thing... Object-oriented design is another, and it usually requires a college education in engineering or computer science to understand and use this kind of design.  But there are some principles that can be explained at a high level, and maybe this will help you get started.  Be sure to read the references as well as the article!
https://www.experts-exchange.com/articles/18329/SOLID-Design-in-PHP-Applications.html
1
 
LVL 34

Expert Comment

by:Slick812
ID: 41856698
This question is now abandoned and author has not closed it, Points are split for the 3 expert participants.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question