Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You know we've all seen helper.php files that are so monolithic

Yes. This has nothing to do with flat functions vs. classes. I've seen 'helper' classes get shitted up just as much as function files.

My point is that it doesn't matter. Many projects don't require heavy portability, and in either case, bootstrapping a namespaced shim next to your autoloader isn't a problem.

I'm not arguing that if you have a very extensive functions library, you should separate it out. I totally agree that you should. But saying 'NEVER MAKE A FUNCTIONS FILE NEVER EVER EVER ON PAIN OF DEATH' is silly.



Never ever write your code to the taste of some random other person who wouldn't contribute anyway, that's my motto...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: