Hacker News new | ask | show | jobs
by sh_tinh_hair 3456 days ago
"In particular the most likely explanation for correlation between bad names and bad code is unskilled or inexperienced programmers..."

Totally disagree with this assertion: Laziness and two fingered typing are to blame.

1 comments

Two fingered typing causes bugs directly? Or it causes bugs because it encourages short names? The article is about the relationship between names and code quality.

Naming is one of the hardest things to get right, I often have to comment on it in code reviews. Long names are usually more lazy than concise ones. The other problem is naming things more specifically than necessary, obscuring genericity of functions.