markjgsmith

2020/12/18 #

cat << EOF > The art of the minimal example

I’ve been putting together a Portfolio of my work this past week. It’s been really interesting re-visiting the web development, workflow/automation and devops/sysadmin projects I’ve been involved with over the years. One thing that stood out was all the minimal examples I’ve built in order to either learn a technology or debug a feature.

Creating minimal examples is particularly enlightening, it’s actually quite a skill to be able to extract just the code you need to demonstrate a problem you are experiencing. It’s useful because you get rid of much of the complexity of the code you are working on and can focus in on discovering the root cause of an issue.

Stackoverfkow even has a special minimal reproducible example page which has guidelines on how to create one. For stackoverflow questions you would likely have just a few small snippets of code to demonstrate an issue

I’ve included a Minimals section in my portfolio, that links to many of the repos I’ve created over the years when I was looking to learn a particular feature or troubleshooting an issue I was experiencing. These aren’t strictly speaking minimal examples in the stackoverflow sense of the term, they tend to be a little bit more involved. In my case they are often small apps that implement just the feature I was exploring or debugging. They get rid of the complexity of the surrounding code, making it easier to reason about. I find myself often revisiting these minimals when I need to implement similar functionality somewhere else.

The ability to easily create runnable minimal examples I feel is one place NodeJS really shines, especially when you are building Express based web applications. This makes it easier to debug complex problems and communicate your findings to others you are working with.

Related post: Reasons to use NodeJS for developing your backend systems #

Today’s links:

  • goldbergyoni/nodebestpractices - The Node.js best practices list - Huge number of best practices curated by the communitygithub.com #

  • Github removed all non essential cookies from it’s websites so it no longer needs cookie popup consent forms - Thank you!github.blog #

  • 🚀 New Post: The art of the minimal example - In praise of minimal examples I’ve added a “Minimals” section to my Portfolio, and in this post I explore the concept and why it’s a useful techniqueblog.markjgsmith.com #

  • Google Sheets for Developers - Honestly I found this talk a bit confusing in how the information was presented, but I like the example use case, collecting data into Google Sheets and using scheduled cloud functions to create charts and a slide deck and sending these out via email, I could see how something like this could really streamline weekly team meetingsm.youtube.com #

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.