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

This. The clean code principles should be considered within the specific context of the situation. They are guidelines that are good to keep in mind, but no more than that.

The article gets this wrong by considering DRY as some kind of dogma and then discovering some situations where it doesn't work well. And then of course some commenters here get it wrong by only looking at situations were it does work well. It's the same religious discussion again as FP vs OOP, static vs dynamic typing, no code vs full code etc. etc. The real answer to each of these is always 'it depends'.



> They are guidelines that are good to keep in mind, but no more than that.

How great dev life could be if everyone saw it like that.




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

Search: