Programming Best Practices and Pitfalls


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

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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s