Your First Code In Object Oriented Programming With PHP
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;