Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

and many more ....

 

Running JUnit Tests Repeatedly Without Loops

junit-logo

Recently I came across a problem where I had to write tests for a method that calculates randomly distributed values within a certain range of possibilities 1. More precisely if you assume a signature that looks like                 interface RandomRangeValueCalculator { long calculateRangeValue( long center, long radius ); } a test might verify ...

Read More »

Choosing a Programming Language

software-development-2-logo

What programming language to use is probably the single biggest technical decision facing a project. That one decision, affects every one that follows – from the frameworks and libraries you can use, to the people you hire. So how do you go about choosing what programming language to use? The truth is, you probably do what most people do and ...

Read More »

How to increase donations to an open source project

software-development-2-logo

Lots of open source projects raise money from their user communities by soliciting donations.  Most open source projects will have the ‘Support’  or ‘Make a Donation’ button on their home page or download page. At Eclipse we have had the Friend of Eclipse program for a number of years to solicit financial support for our community. Earlier this year, we ...

Read More »

Simple Gradle Web Application

gradle-logo

Gradle easily supports Java web applications through the “war” and “jetty” plugins. This tutorial will show you how to quickly make a simple Java Servlet web application.                     Our basic project structure will be: basic-web src main java com codetutr HelloWorldServlet.java webapp WEB-INF web.xml First, create a folder called basic-web, and ...

Read More »

Does Defensive Programming Deserve Such a Bad Name?

software-development-2-logo

The other day I went to an hour’s talk on erlang, merely as an observer; I know nothing about erlang except that it does sound interesting and that the syntax is… well… unusual. The talk was given to some Java programmers who had recently learnt erlang and was a fair critic about their first erlang project, which they were just ...

Read More »

Bending NetBeans Code Templates to My Will

netbeans-logo

Anyone who has read any of my posts on NetBeans knows that there are numerous features of NetBeans that I really like. Recently, however, I found myself becoming increasingly irritated with a particular issue with a particular feature of NetBeans. It finally bothered me enough to motivate me to look into how to disable or alter that feature to my ...

Read More »

JMS and Spring: Small Things Sometimes Matter

spring-interview-questions-answers

JmsTemplate and DefaultMessageListenerContainer are Spring helpers for accessing JMS compatible MOM. Their main goal is to form a layer above the JMS API and deal with infrastructure such as transaction management/message acknowledgement and hiding some of the repetitive and clumsy parts of the JMS API (hang in there: JMS 2.0 is on its way!). To use either one of these ...

Read More »

JPA: Determining the Owning Side of a Relationship

java-interview-questions-answers

When using the Java Persistence API (JPA) it is often necessary to create relationships between two entities.  These relationships are defined within the data model (think database) through the use of foreign keys and within our object model (think Java) using annotations to indicate associations. When defining relationships or associations within the object model a common task is identifying the ...

Read More »

How to Install Gradle

gradle-logo

Gradle is a dependency management / build tool that combines the best of Maven and Ant, making it an extremely powerful and customizable tool. It also uses a sleek Groovy DSL instead of the XML approach of Maven and Ant and is my personal tool-of-choice when I start a new project. Here’s how to install. I’ll write a future post ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close