Archive Page 2



Unit test naming conventions

There are a certain number of naming conventions used for unit tests. At beginning, with JUnit 3, to define a test it was mandatory that the class name was named like MyClassTest, be extending from TestCase and all the test method names were starting with ‘test’ as in ‘testMyMethod()’. I think that this is a […]

I've been using some proprietary frameworks and libraries, that are using Files objects, and only File objects, everywhere in the interfaces. It's not that is bad to have methods accepting File objects, but it's not wise to accept only that. For example the DOM/SAX XML parser in the JDK, accept File object but includes also […]

Workaround to multi threaded testing

Since it has been introduced in JDK 1.5, I have loved the Executor abstraction over multi threaded execution. Basically you define tasks, implementing Runnable or Callable interfaces, and you submit those tasks to an Executor implementation, knowing that before or later the task will be processed. It's the Executor who knows how the tasks must […]

Lady Java

This is video is quite recent, but already very popular. It’s a parody of Lady Gaga songs, about Java. Looks like Oracle is gonna benefit of the Java wave even though they already declared themselves as bad asses, more interested on money and control than on technology. Java rocks, and ever will. Despite Oracle.

JavaBeans to XML, with no libraries.

Converting JavaBeans to XML and viceversa is quite a common task, and there are tons of libraries around for this purpose. But I always like to use what is already available in the JRE, avoiding dependencies as much as possible. In the past I and Simone developed a rest API using the JSR57 serialization, that […]

A super funny video about a young and rebel Java developer grown in a Microsoft family. Hope you'll enjoy as I did. I think the original source of the video is here.

Android.jar sources

Yesterday I wrote a post to explain how to link Android sources in Eclipse. If you use a different IDE, probably you can't have Eclipse facilities but it may be easier to have the sources "in line" with the android library. For myself usage I packed the android sources into some jar files. To have […]

If you are working with the Android Development Toolkit (ADT) for Eclipse you may have noticed that the sources for android.jar are missing. The Android SDK comes without the sources, and even if you manage to download the source code for the Android library, the ADT does not allow you to attach the sources to […]

Wake on LAN

Many modern computers and network enabled devices support the functionality to be turned on remotely. This is commonly referred as Wake on LAN or Remote Wake-Up. Technically this is done sending a datagram packet in broadcast to all the computers in the same network, on any port (the usual one is port number 7); the […]

Currently I am using GWT for a new project and I am really enthusiast of the results. I think it could be a nice article for this blog to explain some GWT ideas and how it is changing the way modern web application are being written. With GWT you use a subset of Java Core […]




About

You are currently browsing the NewInstance weblog archives for Java.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.

Calendar

July 2017
M T W T F S S
« Nov    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening