TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Elements of Programming Style: "say what you mean, simply and directly"

25 pointsby MikeTaylorabout 15 years ago

5 comments

Groxxabout 15 years ago
On the "single wisest" line:<p><i>“Everyone knows that debugging is twice as hard as writing a program in the first place. So if you’re as clever as you can be when you write it, how will you ever debug it?”</i><p>I wholly disagree, given the ridiculously-simple debugging tools we've got like GDB, and what's in Eclipse and Visual Studio. Certainly, some things are harder to debug (intermittent errors, multiple threads / processes &#38; their problems, etc), but more careful programming around those areas is a good idea anyway. And if you're <i>over</i>-stretching what you know, it could be that the problem is harder than you think it is, not just that it's hard to debug.<p>It's also that many people spend <i>years</i> learning to program, but far far less learning to debug (if any at all. print statements, anyone?). If that's not a hint at difficulty, what is?<p>The rest of the suggestions are overall very spot-on, though, and if nothing else are excellent advice for almost any programmer (as so many violate so many of these).
评论 #1172920 未加载
评论 #1172772 未加载
blissabout 15 years ago
I'm guilty as hell! Make every comment count will be my new phrase until I forget it and revert to crappy comments...
olliesaundersabout 15 years ago
Would anyone like to sponsor me to write an updated version of this book?
评论 #1173257 未加载
olliesaundersabout 15 years ago
This is £23 (used) on Amazon.co.uk. That's a lot of money.
评论 #1172747 未加载
greenlblueabout 15 years ago
This is just good advice in general.