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

Thanks for pulling the quote. I agree. It is a distinction of "should be" and must be". FWIW: Uncle Bob clarified this exact topic in a recent youtube interview with Primeagen (about 5 months ago). The gist is if the length to have a single cohesive function is 50 lines, then so be it. It was clarified that clean code does not give a hard and fast limit (but does give a very weighty recommendation to go for small functions based on a number of heuristics).


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

Search: