Author Archives: Robert Piasecki

Unknown's avatar

About Robert Piasecki

Husband and father, Java software developer, Linux and open-source fan.

Basic AJAX in JSF

In this article I would like to describe how to send AJAX request to server, receive the response and update the page accordingly. As an example I will use a simple application which allows choosing country from a list. Once … Continue reading

Posted in AJAX, Java, Java EE, JSF | Tagged , , , , , , , | 2 Comments

Assertions in Java

One of the rules of defensive programming is to detect the errors as soon as they appear. The main idea behind this is that we can get precise information about the location of the error and the event which caused … Continue reading

Posted in Defensive programming, Java, Software development practices | Tagged , , , | Leave a comment

Assertions on Android

If you program in Java on Android, you know that Android has its own virtual machine called DalvikVM which is not compatible with JVM from Oracle. In fact, the difference is so big that you cannot run plain Java application … Continue reading

Posted in Defensive programming, Java, Software development practices | Tagged , , , , , | 5 Comments

Try-with-resources

Java is widely known and respected for its automatic memory management. It makes the programs easier and faster to write because the developers does not have to manually track which objects are no longer used and can be freed or … Continue reading

Posted in Java | Tagged , | Leave a comment

Test driven development

Test driven development is an important and valued part of agile practices. In test driven  development (in short TDD) developers first write tests for new functionality (e.g. a class) and later they implement it. The order is crucial and I … Continue reading

Posted in Java, Software development practices | Tagged , , , , | 2 Comments

Time configuration in Windows/Linux dual-boot.

Many Linux users still have Windows installed on their machines for some reason (playing games, using specialized Windows-only applications and so on). The coexistence of Windows and Linux on the same physical machine is called dual-boot. One of the main … Continue reading

Posted in Linux | Tagged , , | Leave a comment