SO YOU WANT TO BE A PROGRAMMER?

Real experience gained from the scene of crime :-)

Computer programmers spend much of their workday in front of a computer in an office setting. And whenever they move outdoors they don't leave there computers behind to avoid guys with itchy hands from messing with their ongoing projects. Again you never know when you are going to meet your next client, they may need some demonstration of your past projects.

However, they got advantage, everything important that one needs to know about living a successful life, you can get from programming. I know, it's quite a nerdy thing to say—but the truth is that there's a lot of wisdom in code. Don't believe me? Keep reading.
Below are some lessons that I have learned from programming:

Reuse program modules to save time:
Any good programmer eventually learns that certain blocks of code (functions) can be reused in multiple programs. The function may include a certain number of lines of code, but why would you re-create those lines of code for every program you write, when you can just save them once as a program "module," and then insert that module into any future programs that need it? Automation is the key to success, so if you can find ways to automate tasks in your job that you do repeatedly, you can make your day much more efficient and save time.

Document everything:
Sometimes, it can be pretty tempting for a programmer to write code without documenting a single thing because at the moment you know exactly what you want the program to do and how you want to do it. This meticulous documentation can help in every area of life, from keeping track of birthdays and anniversaries, to keeping a log of daily business transactions and why you made them. It's naive and inefficient to trust only your memory to remember why you attended certain meetings or why you made certain purchases. A daily journal or log can go a long way to freeing up your mind for more important things.

Always Leave an Escape Route:
One of the most common mistakes of an amateur programmer is the infinite loop. That's a situation where the condition required to break out of the loop never actually takes place, so the program stays in that loop and never ends, this consumes 100% of the PC CPU and pretty much locks up the computer for good until you kill the process.

Free Up Memory When You're Done:
Cleaning up after you are done is another lesson. In a program, you will need to open up a stream to an output file, create a large array filled with data points, and other things that consume computer memory and resources. A clean program is one that closes those output streams or empties those arrays once the program is done with them. The idea here is to avoid a common problem with poorly written applications known as a memory leak.
It sounds like something you've probably heard from your mother, say when you were younger, right? Clean your room. Put your clothes away. Leaving things hanging around just wastes space and wastes your time when you can't find what you need later on.

Note:
These are not the only life lessons that you can learn from the art of programming, there are many more. This is why every child should learn at least one programming language in school. African Maths Initiative has been promoting this during the Annual Maseno Maths Camp. Once you've caught on to the tricks of the trade, it becomes apparent pretty fast that you can use those same tricks throughout many other parts of your life.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>