Go Premium for a chance to win a PS4. Enter to Win

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
?
64 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

963 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