RFC 3875 – The Common Gateway Interface (CGI) Version 1.1

It seems that until very recently (October 2004) there was no RFC covering CGI. Now there is – RFC 3875 – The Common Gateway Interface (CGI) Version 1.1. It explains how CGI scripts should be called and executed, what they should be given and what they should return. There is nothing new or anything we didn’t know before, but it is good to have it formalized and compiled into RFC.

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.

Excellent KDE application – BasKet

I came across an excellent KDE application – BasKet (KDE-Apps entry). It can sit in the task bar and accept drag-n-drop objects (anything from text and URLs to pictures and sounds). These objects can be organized in several tabs. The convenience of it is that one can use it as a combination of application launcher and knotes. Try it, you won’t regret!

The only missing feature I see now is that it does not accept drag-n-drops from Firefox, but that is something to do with KDE as a whole rather than BasKet itself.