I recently did a presentation on programming best practices. In this very brief post, I’ll share the slides and a few notes from that presentation.
The presentation is about two acronyms, STUPID and SOLID, which can help you remember the best and worst programming practices.
Dependency injection is the most important idea that didn’t actually make it into the slides. This is the technique that you should use instead of alternatives that rely on global state (i.e. singletons).
I referenced a couple of other blogs when putting the presentation together. These are the posts that I looked at:
More Tools for the Toolbox
I hope this rundown on best and worst practices was useful. The next time you sit down to work on some code, think about how to make it SOLID instead of STUPID.