I was just wondering whether it would be worth sticking to non-OOP code for the sake of speed. Also, In commercial web-applications, is OOP generally used or avoided? Which is the standard?
Many Thanks,
Ed
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The standard is to favor readable code over efficiency, because most of the time “more efficient code” runs faster by a single millisecond. Object-oriented programming is generally more readable than a non-object-oriented counterpart.
See also this question: Why are so many web languages interpreted rather than compiled?. The majority of a page’s load time is spent sending and receiving data or doing database things.