Programmers are not machines that just write code. We have feeling and emotions as well! ;)
We all need to learn a lot of new things, sharpen the saw, focus, make good choices about our career path, and simply, have fun.
While most books describe the technical side of coding, not many address the psychological/business/economic side of our profession.
As it appears, our ability to code can be improved by taking some practices from martial arts! CodeKata is a catchy name for set of exercises that done regularly should make your coding skills better. Today I would like to share my “answers” to one of the Kata - karate chop, or simply the binary search algorithm.
Include Guards, Pragma Once, Predeclarations and other hints that might be useful when dealing with includes.
What can we do with file including in C++? Do we need to put all the other header files of the project (plus third party libraries) in every file all the time? For sure there have to be some rules to manage that issue properly.