…meie igapäevast IT’d anna meile igapäev…


Bright sayings of bright people: programming quotes

Filed under: Programmeerimine — Sander @ 13:56:40
Tags: ,

While the last post had my own sayings, this one has some of my favorite programming quotes from others. Even the first part of the title is from the late Frederik Pohl.

  1. "Don’t just echo the code with comments – make every comment count."
  2. "Make sure comments and code agree."
  3. "Don’t comment bad code – rewrite it."
    "The Elements of Programming Style" by Kernighan and Plauger, 1974
  • "It’s important to communicate what the code should be doing.” – Joe Kunk
  • “It’s hard enough to find an error in your code when you’re looking for it; it’s even harder when you’ve assumed your code is error-free.” – Steve McConnell
  • “If debugging is the process of removing software bugs, then programming must be the process of putting them in. ” – Edsger Dijkstra
  • “Walking on water and developing software from a specification are easy if both are frozen.” – Edward V. Berard
  • “First, solve the problem. Then, write the code.” – John Johnson
  • “Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.” – Stan Kelly-Bootle
  • “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” – unknown (attributed to John F. Woods, Rick Osborne, Martin Golding)
  • “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler
  • “Programs must be written for people to read, and only incidentally for machines to execute.” – Abelson/Sussman
  • “Computers are good at following instructions, but not at reading your mind. ” – Donald Knuth
  • “Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” – Rick Cook, The Wizardry Compiled
  • „Do unto the next developer as you would have them do unto you“ – Joe Kunk


Quotes on programming

Filed under: Isiklikud,Programmeerimine — Sander @ 14:47:21
Tags: ,
  • There is nothing worse than a programmer who compiles the spec into the code, without asking “could the workflow be better?”, “could this be a bug in spec?” or even “does this make any sense whatsoever?”

  • Bad programmers tend to gravitate towards management. Too often they will become mediocre project managers, then bad department managers and finally horrible CTOs.

  • (on Robert Martin’s “Clean Code”) “Clean Code” doesn’t tell you how to write good code, nor maintainable code. Instead, it teaches you to write consultant code, or “cuckoo code”: you drop a nice shiny egg into the nest and fly away, leaving others to maintain the ugly monster that hatches.

  • Every programmer writes bad code sometimes. But when you have to ask "doesn’t he know better or is he trying to sabotage the project?", you’ve found a truly horrible coder.

  • If you are looking at your own code from two years ago and it looks fine, it doesn’t mean you were a good programmer two years ago. Quite the opposite, it means you haven’t grown as a programmer within these two years. You haven’t learned anything.

  • Code review is like a pair of pants. If you work at home, pants are optional. But if you are in public, you’d better make sure you have pants on, even if no one looks at you.

  • Too often the only reason teams use agile programming is to be able to say that they are using agile programming.

  • But what is there to love about the code? It is the same excitement that a poet gets from writing a poem, or a painter from painting. It is the act of creation, the “develop” part of the word “developer”. We write some lines of text, which abides to the certain rules, and suddenly ex nihilo! we have a website, a video player, a database engine or something else.

  • The point where I’m getting to is that you can be eager and write more code. Or you can be lazy and figure out a way to write less code. Being lazy is a good thing in a programmer. It forces us to find patterns and promotes code reuse. It makes us more effective. It makes us better.

  • A programmer should be smarter than his tools. Don’t expect the compiler to fix your bad code.

  • If the comment does not match the code, it is the comment that is correct and code that is wrong.


I’ll post these mostly so I would remember them and re-use when appropriate.

I think these quotes are mine, from various blog posts, presentations and discussions. If I have inadvertently picked up or rephrased someone else’s text, please let me know in the comments.


Most important time in your life

Filed under: Kultuur — Sander @ 17:46:50

It is not birth, marriage, or death, but gastrulation, which is truly the most important time in your life.

Lewis Wolpert

Järgmine lehekülg »

Create a free website or blog at WordPress.com.