• submit to reddit
Roger Hughes02/27/12
5052 views
2 replies

Is Java's String Class a God Object?

Is the String class a well designed class in terms of the general rules of Object Oriented Design? Does it, in fact, break the single responsibility principle or the laws of demeter and is it tightly coupled to all other parts of an application? Is it a God Object? The easy way to answer this is to look at a String in terms of the Single Responsibility Principle, and the best way to do that is to count the number of method calls it has and figure out what they do.

Bill Bejeck02/27/12
17555 views
1 replies

Using Java 7's WatchService to Monitor Directories

Of all the new features in Java 7, one of the more interesting is the WatchService, adding the capability to watch a directory for changes. The WatchService maps directly to the native file event notification mechanism, if available. If a native event notification mechanism is not available, then the default implementation will use polling. As a result, the responsiveness, ordering of events and details available are implementation specific.

Howard Lewis Ship02/27/12
2669 views
1 replies

What Assumptions Do Your Tests Make?

Does your test suite launch your application or expect it to be running already? This question came up while working on a client project; I launched the Selenium-based test suite and everything failed ... no requests got processed and I spent some time tracking down why the test suite was failing to launch the application.

David Amador02/26/12
5831 views
1 replies

Thinking About Becoming An Indie Game Developer?

If you're thinking about becoming an indie game developer, there's some things you need to know. Writing games is hard work and you have to expect to fail. And don't forget, there are very few genuine over-night success stories: most developers spend years working on their games before they are released.

Mark Needham02/26/12
2257 views
0 replies

Thou Shalt Storm

On the majority of the teams that I’ve worked on there’s been a time where everyone seems to be disagreeing with each other about almost everything and the whole situation becomes pretty tense for all involved. There are four stages which teams tend to go through – forming, storming, norming and performing.

Ben Kepes02/26/12
4312 views
1 replies

Regarding OASIS's Proposed TOSCA Cloud Standards

Ben Kepes suggests that the recentTopology and Orchestration Specification for Cloud Applications (TOSCA) proposal might actually work.

Arul Kumaran02/26/12
4790 views
0 replies

Are you feeling stagnated?

One of the dilemmas many professionals face is when to jump the ship? versus when to steady the ship? There is no right or wrong answer to this question, and the answer depends on the individual circumstances. But here are some of my thoughts that might aid in your decision making. With the start of a new year, you may be among the millions of people thinking of making an important change in your life.

Tony Russell-rose02/26/12
4850 views
1 replies

Measuring Search Quality: Retrieval and Relevance Metrics

A range of metrics can be used in search quality evaluation. Check out Tony Russel-Rose's particular search use case problem and how to approach it.

Dustin Marx02/25/12
4149 views
1 replies

A Busy Month For the Java Community

The Java development community seems more lively and more energetic in recent months (especially since JavaOne 2011) than it has been for years. After years of seeming stagnation, Java-related developments appear to be coming at us more quickly again. It is nice to have so many online forums to get information about these developments.

Eric Daugherty02/25/12
6052 views
0 replies

Debugging Android Web Traffic

Normally, I would use a packet sniffer, such as WireShark (OS X and Windows) to look at the network traffic and debug an application. For Android development I do my primary development on a physical Android device. It is faster, and provides a more realistic experience during development and debugging. However, since the network traffic is no longer going through my computer, WireShark doesn't help. To solve this, I use another program called Charles.

Chad Lung02/25/12
2954 views
0 replies

Atom Hopper: An ATOM Server Written in Java

Atom Hopper is a Java based ATOM publishing server based on Apache Abdera. Today I’m going to discuss some of the new features that have been added and what is happening in general.

Rafał Kuć02/25/12
4146 views
0 replies

Solr Explain 0.9.1 – New version

Explain.solr.pl is a tool for finding out why the documents are where they are in the results list. The developers have discovered some new facts about the userbase and the issues they encountered, so here are the changes in store...

Dustin Marx02/24/12
4020 views
0 replies

Simultaneous Animated Text Strings in JavaFX 2

JavaFX 2 makes it easy to perform multiple transitions in parallel. This article discusses how to animate multiple strings along the screen in pure Java rather than using HTML5 or Flash.

Ian Skerrett02/24/12
3518 views
0 replies

Centralized Management of Code Quality

Our vision for Agile ALM Connect is to bring together the leaders of different tools that are being used across the application lifecycle. Therefore, I was very happy that Olivier Gaudin, co-founder of the Sonar open source project, agreed to speak at Agile ALM Connect about how continuous inspection of code is an important aspect of continuous delivery.

Bozhidar Bozhanov02/24/12
4614 views
4 replies

State Does Not Belong In The Code

State is the data that gets stored (regardless of the destination – memory, database, file-system). The application itself must not store any state in the code. This means your classes should only have fields with objects that are also stateless. In other words – you should not store anything in your services, DAOs or controllers during the program flow. This is a complete “must” for your service layer. Why?