On variable naming conventions

Naming variables (that includes functions) is one of the most flamed subjects in the computer programming world. Some people say you should use underscore (_) to separate words in the multiword names, like this_is_my_variable. Others believe that separation should be done by capitalizatioon like thisIsMyVariable. Agreeing on what should come first – a verb or a noun (display_form vs form_display)- is yet another question.

This reminds me of an old joke. There is an exam in C programming class at college and one of the students finishes first just a few minutes after the test started. So the professor comes up to him checks his code and says: “Very good, young man. You can use the remaining time to fix names of your variables. Make them all self descriptive.” Student nods in agreement and starts to work. Few moments later he is finished again and shows the result to the professor. And what does the professor see? All the ‘i’s, ‘j’s, and other one letter variables were converted to selfdescriptivevariable1, selfdescriptivevariable2, selfdescriptivevariable3, etc.

Why did I start this post today? Oh, well. Something got me started.

When Your Co-Worker is Away

Most of the modern offices are using cubicles instead of full blown office for their employees. Cubicles do provide much less defense from the collegues’ intrusion. When someone with cubicle office has to leave for a business trip or vacation, there is no means he can protect his cubicle. And this is what can happen to it while unattended.

P.S.: The site is a bit slow due to recent popularity boost, so give it a minute or two.

“format C:” versus “rm -rf /”

Jokes about “format C:” and “rm -rf /” are pretty frequent in the computer universe. These two commands will supposedely remove all data from the hard disk – one on DOS/Windows and another on UNIX operating systems. While widely used, this might not be exactly true. This guy has tried both and documented the results.