The joy of programming

2023-06-28

We don’t really know where this goes – and I’m not sure we really care.

— Bob Ross

During the 80s and 90s there was a popular television show called “the joy of painting” by Bob Ross. The show is typical “comfort TV” where Bob Ross calmly guides the viewer through a new painting in each show. He embraces mistakes and not having a plan, which is the “joy of painting”.

I believe that the approach Bob Ross had to teaching painting is also something we can use when we learn how to write better programs. Whenever we encounter a problem, maybe checking the weather conveniently or converting currencies, we try to seek out a program which solves our issue. In most cases, this is the best approach, especially when performance is critical or when time is of essence. There is, however, certain circumstances in which we can take these moments to pursue “the joy of programming”

We don’t make mistakes, just happy little accidents.

— Bob Ross

The joy of programming is when you try to solve a relatively simple problem by writing a happy little program. It could be a script which checks the weather, an application which converts currencies, or a dashboard where you analyze your gym routine. These “products” do not need to be perfect and will likely not be used by anyone but you.

Let’s build some happy little trees.

— Bob Ross

These happy little programs are the perfect opportunity for you to learn something new and embrace the mindfulness of programming. Writing a program which have already been written by someone else is not a waste of time, it is an essential part in the learning process and appreciating the craft behind well-written programs.

The program can be as simple or extensive as you want it to. It could be a program with hard-coded values, or a highly flexible programs. It is a program which you can continue to develop over time by implementing some new happy features. Maybe you have already written a happy little program which checks the weather, where you have hard-coded some town. Try to make the input flexible by allowing the program to take a town as an argument.

The purpose the happy little program is to solve a very specific issue - that you have not written a particular type of program yet. It is about the joy of identifying a problem, and continuously adding features which makes it better and better. It is about becoming a better programmer and appreciating the art of programming.

We artists are a different breed of people. We’re a happy bunch.

— Bob Ross