Good programming practices

Archive for2010

Control flow with String

December 27th, 2010


Some programs are controlled by short commands in text form. They may come from user, to be read from a file, or received from another program. This make communication with such a program easier and clearer for other programs. This is a special and simplified case of Interpreter design pattern.


  • Programs, which gets parameters from the command line.
  • Servlets, for which data are sent using GET or POST.
  • Applets on web pages where the parameters are placed in HTML.

For performance reasons, it is better when there will be interpreted many groups of parameters in a single code run. More…

Multilingual WordPress with qTranslate

December 5th, 2010

By creating this blog I would like it to be multilingual. So I’ve installed the qTranslate plugin and I’ve found that it works very well. In the panel for content management there are extra fields for entering text in other languages. This applies to the entire contents: posts, pages, categories and tags. More…