Good programming practices


Java code conditional compilation

September 8th, 2011

Java language doesn’t have a preprocessor like C. But compiler optimize the code – if it’s sure, that code can’t be reached, it will not be included in the output byte code. An optional code can be placed inside if statement or by tertiary statement, where condition can be evaluated by compiler. More…

Compilation and installation of kernel 3.0.0 in Slackware

July 24th, 2011

New stable kernel series is available. On Slackware you can build and install it getting source from This process looks the same like in kernel 2.6 so I omit most of comments.

There are new drivers, so if you doesn’t disable some features, the image can be slightly bigger. Below are commands which compile and install new kernel. Remember to keep older kernel in boot options in case of any problem while running new kernel. More…

How to compile kernel in Slackware 13.1

July 13th, 2011

Just few days ago new stable linux kernel was released. In Slackware you can use it without patching. Here I describe how to compile and install kernel in easy way. Download the kernel source from or use the direct link to linux- More…