id Software Programming Principles
by John Romero
The following advices were taken from the 2016 GDC Europe talk of id Software co-founder and Doom co-creator John Romero.
They might be useful in more fields than just game development.
No prototypes. Just make the game. Polish as you go. Don't depend on polish happening later. Always maintain constantly shippable code.
It's incredibly important that your game can always be run by your team. Bulletproof your engine by providing defaults upon load failure.
Keep your code absolutely simple. Keep looking at your functions and figure out how you can simplify further.
Great tools help make great games. Spend as much time on tools as possible.
We are our own best testing team and should never allow anyone else to experience bugs or see the game crash. Don't waste others' time. Test thoroughly before checking in your code.
As soon as you see a bug, you fix it. Do not continue on. If you don't fix your bugs your new code will be built on a buggy codebase and ensure an unstable foundation.
Write your code for this game only - not for a future game. You're going to be writing new code later because you'll be smarter.
Encapsulate functionality to ensure design consistency. This minimizes mistakes and saves design time.
Try to code transparently. Tell your lead and peers exactly how you are going to solve your current task and get feedback and advice. Do not treat game programming like each coder is a black box. The project could go off the rails and cause delays.
Programming is a creative art form based in logic. Every programmer is different and will code differently. It's the output that matters.