logoalt Hacker News

flosslytoday at 2:32 PM2 repliesview on HN

I'd say Clean Code is teaching many bad-practices. Too many to be recommended.


Replies

pixlminttoday at 2:56 PM

eh, when I read it as a newbie it was really helpful. still had to make my own experiences and judgments, but overall I think reading it made me a better programmer

show 1 reply
general1465today at 3:46 PM

> Functions should be small + Functions should do one thing

This is often a trap for performance. Sure, it looks nice on a screen but calling a function to return a variable is usually epic waste of performance unless compiler will save you by inlining the function into your code or architecture you are using has a magic instruction for that (call vs fcall - which compiler has to recognize and use) which is just fancy "goto there, mov r1 <- *var, goto back"

show 2 replies