We are thrilled to inform you that Lancecourse is NOW INIT Academy — this aligns our name with our next goals — Read more.

It seems like you are using an ad blocker. To enhance your experience and support our website, please consider:

  1. Signing in to disable ads on our site.
  2. Sign up if you don't have an account yet.
  3. Or, disable your ad blocker by doing this:
    • Click on the ad blocker icon in your browser's toolbar.
    • Select "Pause on this site" or a similar option for INITAcademy.org.

Your First Code In Object Oriented Programming With PHP

By zooboole 9 years ago
For some while now I have had the chance to meet many people who have been sending me their source codes to help them with it. I am really pleased to do that. Through that exercise I have noticed that some people are still working with [Procedural](https://en.wikipedia.org/wiki/Procedural_programming) programming concepts, and worst some are still using the [MySQL]() extension. These codes are actually very hard to fix. It looks like each part of them is chained with the other parts. It's almost impossible to test a portion without involving the whole system. I see it like repairing a truck. You have to un-mount each piece before you could be able to access/handle the real problem. Though these codes seem to be working perfectly, they are not of good practices in the new era of web development -in my opinion. I am convinced today code reuse is key, because web applications are getting bigger and complex. You don't necessary need to create every thing from scratch on every single project. You can easily get other developers' codes and just plug it to your project, and enjoy its power. In case something goes wrong with you application your can easily look at the specific part of it and fix it without breaking down the whole system. That's the spirit in OOP;

0 Comment

Sign in to reply