An aspiring software craftsman journey
Believe it or not, this post may be the best post I will ever write in my life. At this exact point of time where I am writing the current line, I am already excited to share with you how chess made me a better software engineer and a better person in general.
I learnt chess when I was 7. And from that time, I don’t remember a day I didn’t play a chess game. I am a chess junkie! Actually I don’t know why I am so addicted to this game, it is incredible and strange at the same time.
Chess is actually more than a game, it is a whole theory. Entire books have been written on chess, it is even being taught in schools. All this interest around the game is not a coincidence, it is because chess has so many benefits that can change a human being.
In this post, I will explain how chess made a better software engineer since this is my main job.
This is my favorite one, you will see why in a minute. Obviously, playing chess improves your memory. Here are at least 3 points to prove it:
Let me say that “Chess pattern recognition is for chess what Design pattern recognition is for software development”. And this is why this point is my favorite one. When you learn to recognize chess patterns, you improve your ability to recognize when and where to apply a given design pattern.
For a scientific explanation, take a quick look at this amazing 2 minutes section from the National Geographic documentary about Susan Polgar, the top ranked female player in the world.
Planning is one of the most important aspects of software engineering. If your planning is wrong, your project will fail. Obviously when you play chess, you begin by establishing a plan that you will develop during the game. Usually, even beginners establish at least two plans: A and B. A will be the first plan to apply, and if things go wrong, move to plan B. The more you play chess, the more your are able to establish plans. This is the same in software engineering, we all have already planned a second, secure plan.
Every single chess game includes a strategy, unless played by monkeys. When you begin playing chess seriously, you understand how strategy is important in a chess game. This is when you begin to learn how to establish the right strategy to play according to the game’s context (opponent, tournament, etc). This is the same in software engineering, you learn how to establish the right strategy according to the project’s context (budget, resources, client, etc)
Stress, you should be familiar with this term if you have already worked in a professional environment. Of course, every person can manage work stress in a more or less efficient manner. But when you play chess, you learn how to manage your stress. Yes, chess can be stressful under certain circumstances and especially, at high level tournaments. When you play a stressful chess game, you force yourself to manage your stress in order to win the game. And this exercise makes you better at self-stress management.
Believe me, chess has dramatically changed my way of how to behave in a stressful software development project
in order to
win the game make the project a success and not a failure.
This is the most obvious point, when you play chess, you have to think how to react to your opponent’s next move, and may be the move after, etc. In software engineering, this means that you should be able to think a step further of how your software should behave when the user performs the next action. This helped me a lot at the requirement analysis, specification and test phases of software development. If the user clicks here, what should the program do? And what if he clicks there? When you begin to think many steps ahead, usually you write better software specifications and acceptance tests.
A chess game is actually a sequence of if/then/else statement, is this the language of software developers? Yes! so every good software developer should be a good chess player
A chess game is usually played in a finite amount of time, and you should learn how to best use your time to win the game before time runs out.
This exercise is actually very important because it improves your ability to organize your self to achieve a goal in a time frame.
Many chess grand masters have defined chess strength as the ability to concentrate more than your opponent. The first one who loses focus will lose the game. Chess masters are excellent at keeping focus on their game, they can look around, talk to you and at the same time be concentrated on their game!
Keeping focus is a key point in software engineering. Developers hate being disturbed. And if you play chess, you learn to improve your abilities to concentrate on your current task and to keep focus even in a noisy open space..
Every single position in a chess game is a problem to solve. By playing chess, you exercise yourself at problem-solving. You try to find the best move for the current position, the next best move and my be the next one, etc. So you are actually looking for many solutions to the same problem and try to evaluate the best one.
This is the same in software engineering when you are faced to a problem.
It is always a pleasure to win a chess game or any other game actually. But sometimes, it is a pleasure to lose too! What? Yes, sometimes you lose a game but you learn something from your mistake(s). This is true in general life but it is more important in software development because once you make a mistake that causes
your game to be lost your 1.000.000$ project to fail, chances are that you will never make the same mistake again
Analysing a chess game afterwards is like a sprint retrospective in agile methodologies: You analyse what went well, what went wrong and how to improve it next time.
This is not really related to software development, but it is worth including to the list of benefits. I used to play chess against my computer and that was a lot of fun.. I had no chance to win! You know why? Because It is stronger than me of course, but most importantly because it does not react to my motions and emotions! The human factor is extremely important in chess. Playing against a human is very different form playing against a silent machine. Interactions, motions and emotions can change a game course. Usually chess players look for clubs to play against others persons, make new friends, play online with other players, etc. So yes, chess makes you a social person. By the way, benas is my social handle to play chess online with my friends at lichess.org and playchess.com. Feel free to add me to your social chess network.
Let me conclude by giving you some further interesting readings:
I hope I was able to convince you to learn chess in order to become a better software engineer No, just kidding..