want to join us? register, it's easy | help
category icon

Stay away from Bloated Class Methods, actually, bloated ANYTHING!

in PHP added by rvdavid, on 22/3/2008 classes methods oop php5 principles tips

Why are there so many examples of bloated PHP methods out there?! I see a lot of bloated methods being used in examples through sites like phpclasses.org and a very large chunk of a project I’ve recently picked up which a few developers have worked on. Guys! remember! There is no good reason to bloat your methods to over 10-20 lines long and on the rare occasions that you do exceed 10 - 20 lines it would be more the exception to the rule as opposed to being the rule itself!

comment save report
 
submitted
Wed, Mar 19th 2008, 00:10
clicks today
564
clicks this month
575
clicks all time
2253