• submit to reddit
Nicolas Frankel02/08/12
7914 views
6 replies

CDI worse than Spring for autowiring?

Let’s face it, there are two kinds of developers: those that favor Spring autowiring because it alleviates them from writing XML (even though you can do autowiring with XML) and those that see autowiring as something risky.

Jens Schauder02/08/12
2635 views
0 replies

Unit Tests: Searching under the Lamp Post

I’m a big fan of unit tests (Surprise). When ever possible I practice TDD. I like how that approach coerces me into making smaller classes, less dependencies, cleaner abstractions. And of course I love it when my unit tests catch a regression before I even start the application.

Peter Lawrey02/08/12
5755 views
0 replies

Ultra low latency Event Store

There are two basic libraries for managing data in Java, JDBC (for connecting to database) and JMS (for messaging). For some use cases you ideally want both, and you want it to be very fast.

Andy Gibson02/08/12
3728 views
0 replies

Implementing Spring MVC with CDI and Java EE 6 part 1

In this second article on implementing Spring MVC in Java EE 6 we’ll take the metadata we extracted in part one and use it to invoke request mapped controller methods in response to web requests and then direct the user to a web page based on the result of the method.

Pat Shaughnessy02/07/12
5433 views
3 replies

Journey to the Center of JRuby

An informative, in-depth post about the Java implementation of the Ruby interpreter. Pat Shaughnessy includes some background on both Java and Ruby, as well as other sections about byte code and assembly language. Best of all are the old-timey pics (and the plentiful code).

Martin Fowler02/07/12
12932 views
0 replies

Martin Fowler: The Future is not just NoSQL, it's Polyglot Persistence

Martin Fowler and Pramod Sadalage have s recently released a slick infodeck tracing a simple history of databases, as well as a prophecy of the future. They suggests that we've been charged with a decision to either reduce development drag or embrace large scale, which eventually leads to "a world of polyglot persistence."

Stoimen Popov02/07/12
9415 views
1 replies

Algorithm of the Week: Data Compression with Prefix Encoding

Prefix encoding, sometimes called front encoding, is yet another algorithm that tries to remove duplicated data in order to reduce its size. Its principles are simple, however this algorithm tends to be difficult to implement. The good thing is that this algorithm can be used in many cases once we know the data format in advance. So here are three examples where this algorithm can be very handy.

Tony Russell-rose02/07/12
3934 views
0 replies

Findability is So Last Year

Search is more than just findability. So why the fixation with findability? Out of 104 enterprise search scenarios, less than 2% were categorised as findability tasks. In this post you will learn about the broader, overall information goals for most search efforts.

Sandro Mancuso02/07/12
4950 views
1 replies

Code coverage is a side effect and not an end goal

In my previous life as a consultant, one of our clients hired us to "increase the code coverage" of their code base. We would not develop any new features or make any changes. They just wanted us to write tests. Basically they wanted us to bring the coverage up to 70%. Why 70% you may ask. Probably because someone pulled a finger out of his or her back orifice, sniffed it and thought: Hmm.. this definitely smells like 70%.

Johan Vos02/07/12
3686 views
0 replies

DaliCore on java.net

After years of development, refactoring, brainstorms, projects, fun, more refactoring,... we open-sourced the DaliCore code. DaliCore creates the core for the social networking applications that we developed with LodgON over the past years. Some code and documentation is now available on http://java.net/projects/dalicore and we will be adding more code and documentation gradually.

Jakub Holý02/07/12
10112 views
0 replies

Troubleshooting Jersey REST Server and Client

The logging in Jersey, the reference JAX-RS implementation, is little sub-optimal. For example if it cannot find a method producing the expected MIME type then it will return “Unsupported mime type” to the client but won’t log anything (which mime type was requested, which mime types are actually available, …). Debugging it isn’t exactly easy either, so what to do?

Dustin Marx02/07/12
3112 views
0 replies

JavaFX 2 Presents the Quadratic Formula

I recently needed to check some homework answers related to use of the quadratic formula. After realizing that it was getting tedious to do these by hand, I thought of using my calculator to solve them. However, I realized that I could write a simple application using JavaFX to calculate the results and that approach seemed more interesting than using the calculator. This post demonstrates that simple application and provides the relatively straightforward code required to make it happen.

Alex Staveley02/07/12
6535 views
4 replies

Code reviews in the 21st Century

In the world of software engineering code reviews can end up in pointless engagements of conflict. Developers can bicker over silly little things, offend each other and occasionally catch a bug that probably would have being caught in QA anyway - that conflict free zone around the corner!

Roger Hughes02/07/12
22875 views
0 replies

Autowiring Using @Value and Optional Properties

Last October I wrote a blog entitled Autowiring Property Values into Spring Beans describing how to use Spring’s @Value annotation to inject property values into your beans from both a property file and Java system properties. Last week, I came across this little gotcha whilst helping out on another project....

John Esposito02/06/12
5754 views
1 replies

Poll: Which HTML5 Refcard Would You Like To See Next?

We're planning a series of new Refcardz on cutting-edge web technologies, and we'd love you to help us determine which Refcard to publish next.