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
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
48 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 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 109

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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 dynamically set the form action using jQuery.

807 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