browse by tag: principles
sort by
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