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

> Mantras like "methods should be shorter than 15 lines of code" or "classes should be small" turned out to be somewhat wrong.

I really have some concerns about this kind of opinion.

I know that we can't follow this rule (or smell) every time, but I already see this affirmation being used by very poor or inexperienced programmers to justify understandable gigantic and hard to test pieces of code.

This is the type of advice that just experienced programmers can understand what this means and know when is applied.

Most part of the time, it's easier to fix a cod



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

Search: