Welcome! Log In Create A New Profile

Advanced

PHP and OOP

Posted by 77929284 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar PHP and OOP
April 24, 2013 06:45AM
Hi there Mac and everyone,

Is anyone trying to code the portfolio using object orientated PHP? I thought I may try, but it's a little complex to translate from procedural to OOP, but it could mean a little less coding. Do we need to use different file names for the classes if we use OOP or could we just put all the classes in functions.php?

Thanks!
Re: PHP and OOP
April 24, 2013 08:23AM
Note that the mark is based on your skills as a procedural PHP programmer and not an OOP-programmer.

From TUT 101 Letter.
avatar
Mac
Re: PHP and OOP
April 24, 2013 08:47AM
While you can use OOP, you do not get extra marks because you use it. I would not recommend it. It is a fallacy that OOP results in less code.
Re: PHP and OOP
April 24, 2013 09:23AM
In a small project OOPs are useless, but in a huge project... over time they make a difference, provided you know the correct what of creating and using them.
avatar Re: PHP and OOP
April 28, 2013 08:16AM
Thanks for everyone, especially Mac's comments. With regards to mysql_query vs mysqli_query? According to the php documentation mysql_ is being discontinued and is being replaced with mysqli_. Which one would be best to use for our project?
avatar
Mac
Re: PHP and OOP
April 29, 2013 07:44AM
Your choice. That said, perhaps better if you start of by using "preparing" yourself, but I would not penalize you. In general terms, servers are not upgraded as soon as a new version of PHP is released - you can add another 3 years, but eventually you will have to upgrade your code.
avatar Re: PHP and OOP
April 29, 2013 07:46AM
Thanks!
Sorry, only registered users may post in this forum.

Click here to login