It has been a year I am programming using PHP. I use Procedural programming method most of the time. I found using Procedural programming quick and easy to implement.
I started using php oop after about 6 months. I like it because I have saved a lot of code re-writing but i found it challenging and time consuming. I am still using more variables in my classes rather than arrays. I have seen some really good examples of OOP and they are using arrays a lot.
What can I do to achieve perfection or become better? When do you say you are perfect in OOP? I have started thinking that my learning capability is slowing down a lot. That’s because I have already learnt how to get the task done. what php methods I have to use for example, I can go to php.net and grab the method and finish my task. So i don’t know what else I can take out of php.
I have also worked with OOP frameworks for a while and seen that I can use their methods, I can understand most of their code used in methods. I can call methods according to needs. But problem is I myself can’t write OO code like they do, in my own classes.
If you say review your code and try to shorten it after then I might run of time or my manager would think why am I taking so long or something else that’s the reason I use procedural method most of the time because that’s easy and quick. Moreover, I think because my manager just need work so why care about coding conventions.
I hope most of you experienced programmer might have been through this situation. Please share any thoughts that could help me and other new programmers out there. Thanks
Since “perfect” is subjective, here’s a few things you can do to get close:
And don’t forget, Jeff Atwood says you shouldn’t program all the time.