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
61 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 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 160 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 160 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 110

Accepted Solution

by:
Ray Paseur earned 180 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

631 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