-
Recent Posts
- Follow softwarecave on WordPress.com
Archives
- December 2021 (1)
- October 2021 (2)
- April 2018 (1)
- March 2018 (3)
- February 2018 (1)
- February 2017 (4)
- December 2014 (3)
- November 2014 (2)
- August 2014 (1)
- July 2014 (2)
- June 2014 (2)
- May 2014 (2)
- April 2014 (5)
- March 2014 (9)
- February 2014 (11)
- January 2014 (6)
- September 2011 (1)
Categories
Monthly Archives: January 2014
Monitoring AJAX request lifecycle in JSF
Sometimes when working with AJAX in JSF you may find it useful to able to perform some actions before the request is sent to server, after the response is received and when some error occurs. The common case is to … Continue reading
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
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 assert, assertions, defensive programming, Java
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 Android, assert, assertions, defensive programming, Java, JUnit
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
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 Java, JUnit, Maven, TDD, test drivenĀ development
2 Comments