• submit to reddit
Jens Schauder01/11/12
4837 views
2 replies

The second D in TDD

Some proponents of TDD say, that TDD forces you to find a good design. Some even translate TDD to Test Driven Design. I don’t agree. Mostly. Lets start with the small part where I do agree. Since TDD forces you to write test first, it forces you to think...

Dustin Marx01/11/12
7186 views
0 replies

(Pure Java) JavaFX 2.0 Menus

In recent posts on JavaFX, I have focused on using JavaFX 2.0's new Java APIs without use of the JavaFX 1.x's JavaFXScript and without use of JavaFX 2.0's new FXML.

Attila-mihaly Balazs01/11/12
4419 views
1 replies

Debugging the JVM

In some (rare) cases you might find yourself in the situation that you managed to crash the JVM itself. I most recently managed this by setting the name of a ThreadGroup to null. In these cases it is useful to debug the JVM itself so that the crash can be...

kent tong01/11/12
4394 views
1 replies

Implementing an async servlet in Scala with less than 10 lines of code

What is async servlet and why use it? An async servlet can tell the container that it will handle a request later, so that the current thread is not tied up and can be used for another request. Why is it useful? For example, if the request is going to do...

Bozhidar Bozhanov01/11/12
7824 views
13 replies

Why I Like The Verbosity of Java

Java is too verbose, they say. You can find comparisons of Hello World programs that take 2 lines in ruby and 10 lines in Java, and in order to read a file you need 20 lines in Java and just 1 in php.

Patrick Debois01/11/12
19254 views
7 replies

DZone Top Article of 2011: 8 Ways to Share Your Git Repository

This blogpost provides a summary of different ways to share a git repository. Depending on your needs you can opt for different solutions.

Chris Smith01/10/12
9077 views
0 replies

Squeezing Python into an Android with a Single APK

While the use of Python on Android has been made possible for some time now through SL4A, the Python for Android project has set out to make things even easier.  SL4A allows you to edit scripts and execute interactive interpreters directly on an Android...

Marko Rodriguez01/10/12
5604 views
0 replies

Local and Distributed Graph Traversal Engines

In the graph database space, there are two types of traversal engines: local and distributed. Local traversal engines are typically for single-machine graph databases and are used for real-time production applications. Distributed traversal engines are...

Chris Smith01/10/12
14414 views
0 replies

From Java to Node.js

I’ve been developing for quite a while and in quite a few languages.  Somehow though, I’ve always seemed to fall back to Java when doing my own stuff – maybe partly from habit, partly because it has in my opinion the best open source selection out...

Bas De Nooijer01/10/12
7674 views
1 replies

Solr select query GET vs POST request

In most cases a GET request is used to send select queries to Solr. This is how it’s done in most examples, it’s easy to test in the browser and easy to implement. However, Solr also supports POST requests for select queries. This can for instance be...

Giorgio Sironi01/10/12
6545 views
0 replies

Object-oriented Clojure

Clojure is a LISP dialect, and as such a functional language based on a large set of functions and a small set of data structures that they operate with.However, it is possible to implement classes and object in Clojure, with constructs well-supported in the...

Gareth Rushgrove01/10/12
5829 views
0 replies

Talking To Jenkins From Campfire With Hubot

In what turned out to be a productive holiday hacking with languages I’d not used before, I got round to writing some coffeescript on node.js. This was more to do with scratching a personal itch that pure experimentation. I had a play with Janky ...

Andreas Haufler01/10/12
20306 views
10 replies

Conveniently Processing Large XML Files with Java

When processing XML data it's usually most convenient to load the whole document using a DOM parser and fire some XPath-queries against the result. However, since we're building a multi-tenant eCommerce plattform we regularly have to handle large XML files,...

James Sugrue01/10/12
9561 views
4 replies

Java Performance Book Review

Since the language was first released, performance has always a concern for Java applications. The JVM went through years of being considered "too slow", yet despite the early critics Java...

Ben Evans01/10/12
4119 views
5 replies

What I Learnt about JavaFX Today

In case you haven’t heard, JavaFX 2 is the new Desktop / web / client framework for Java. It’s had a considerable overhaul since JavaFX 1 (which was frankly not that impressive). Out has gone the custom scripting language, and instead you can write it...