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
34 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
  • 2
4 Comments
 
LVL 82

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 33

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 108

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 33

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
This article discusses four methods for overlaying images in a container on a web page
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…
The viewer will learn how to count occurrences of each item in an array.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now