Catfish Posted December 14, 2011 Share Posted December 14, 2011 Hi everyone reading this, I have used PHP before as a hobby programmer but recently my boss asked me to make a webpage to accept worker's hours and store them in a database. So I realize that in the last few years object oriented style has been added into PHP. I have learnt OOP (C++) about a decade ago and understand the fundamentals of it. If I am writing this website code, am I going to be better off spending the time to get familiar with the new OOP stuff in PHP and use that or would it be better to just use an old sequential style of programming? I know this may seem like apples and oranges and that it varies based on opinion, but maybe there can be reasons for me to use OOP over sequential. For instance, if I write this code to be flexible enough that I can do a basic "worker times" table first, then I might be able to add additional functionality later, like worker details and qualifications, all of which could be brought up with the click of a button. Will it generally be easier to add onto code using OOP? Quote Link to comment https://forums.phpfreaks.com/topic/253140-coming-back-to-php-should-i-use-oop-or-sequential/ Share on other sites More sharing options...
trq Posted December 14, 2011 Share Posted December 14, 2011 Firstly, it's procedural, not sequential. If you already know OOP you should understand the benefits. my boss asked me to make a webpage to accept worker's hours and store them in a database Something that simple will not likely benefit a great deal from using OOP. Quote Link to comment https://forums.phpfreaks.com/topic/253140-coming-back-to-php-should-i-use-oop-or-sequential/#findComment-1297773 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.