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

Okay, but Clean Code* would advocate you extract that function to its own class with a new abstraction and it would ultimately wind up way more complicated than the extra params in a function signature


No I wouldn't - keep it short & simple


Nah, you gotta pay attention to what it does, not what it says

Clean Code "says" keep it short and simple but following the advice that Bob lays out does not produce short and simple code




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

Search: