Over the past few years, I have learned many different programming languages. Having typed program after program (”Hello World” after “Hello World”), I have come up with a very specific programming style for formatting my code.  Instead of just throwing a bunch of code into a text editor - hoping that I can decipher it when I look at it again in a few months - I carefully indent all of my code to the correct width, and use a lot of comments. Below, I have put together some of my most-used practices so that you can (hopefully) benefit from and build off of them. Read the rest of this entry »