Back to index
Code Bible
2023-04-04
- No test, no work: always test your code
- Writing code doesn't make it yours forever
- Don't dismiss code just because you didn't write it. That's called being an arrogant dick. Use it or improve it
- The fastest code is the one that doesn't run; exit early always
- Code is a guide for the compiler, not a guarantee. Always test
- Messy code is hard to maintain. Hard-to-maintain code is useless
- "Oh I'll just sneak this code in this PR" is recipe for undocumented disasters
- Good code layout makes everyone happy
- Source control is a friend
- "Self-documenting Code" is a joke. Code is for computers. Comments are for humans. More comments is always better
- Nothing takes 5 minutes, especially coding
- Never promise exact deadlines; promise a range: "Oh this'll take 2-4 weeks of work" and not "Oh this'll be done this Friday"
- Never deploy anything on a Friday
- Don't use magic/hardcoded numbers without explanation
- Management always wants more from you in less time. Take care of yourself
- If there's a bug out there, a user will find it
- Code reviews are helpful, not critical
- Don't be a cunt: listen to others, even if they're being mean
- Burn out is a real thing. If you feel something, say something
- Debugging your own code improves understanding and proficiency
- Reviewing your own PRs is the best way to get them merged fast
- Code decays over time. Always
- Only add features users want
- Seriously: don't be a cunt
- Read this list again and make it yours