- "Write small modules that each do one thing, and assemble them into other modules that do a bigger thing. You can't get into callback hell if you don't go there." - node.js author
- When you've been looking at your screen for 20 straight hours, you'll find it a lot easier to see how the indentation works if you have large indentations
- Encoding the type of a function into the name (so-called Hungarian notation) is brain damaged - the compiler knows the types anyway and can check those, and it only confuses the programmer. No wonder MicroSoft makes buggy programs
- Passwords are never stored in plaintext. At least they shouldn't be, unless you're building the world's most insecure system using the world's most naive programmers
- In some floating point emulation code
#if _FP_W_TYPE_SIZE
#error "Here's a nickel kid. Go buy yourself a real computer."
#endif
- C is a Spartan language, and so should your naming be. Unlike Modula-2 and Pascal programmers, C programmers do not use cute names like ThisVariableIsATemporaryCounter. A C programmer would call that variable "tmp", which is much easier to write, and not the least more difficult to understand
- “If you want to do something evil, put it inside something boring. Apple could put the entire text of Mein Kampf inside the iTunes user agreement and you’d just go: Agree. Agree. Agree.” (John Oliver in his epic net neutrality screed)
No comments:
Post a Comment