Java Tips & Tricks

Syndicate content
Updated: 1 day 4 hours ago

Design Patterns Uncovered: The Visitor Pattern

Tue, 03/09/2010 - 07:40
Today we're going to take a look at the Visitor pattern. Of all of the patterns that I've used so far, Visitor is by far the most powerful and convenient.   Vistors in the Real World A real world analogy always helps with the understanding of a design pattern. One example I have seen for the Visitor pattern in action is a taxi example, where the customer calls orders a taxi, which arrives at...

Running AppleScript From Java

Tue, 03/09/2010 - 07:35
n my current project, I need to launch an external application and maybe execute some additional commands on this external application. Due to the very nature of the project, the whole system will always be run on Mac OS X. So I thought, "why not use AppleScript"? Turns out using AppleScript to launch applications is fairly easy, all you have to do is tell application "name of...

Implementing Deployit: Technical Considerations

Tue, 03/09/2010 - 07:31
In a recent post, XebiaLabs' CTO Vincent Partington discussed some important organizational topics you will want to address while introducing deployment automation using Deployit. James Sugrue

Dr. Strangecode. Or: How I Learned to Stop Worrying and Love the Legacy

Tue, 03/09/2010 - 07:23
Someone recently asked me what technologies I would recommend for the next Enterprise Web Project. Like a good little software developer, my initial reaction was "I would have to see the requirements first". And of course that is true. As much as possible I try to fight the tendency to fit requirements around the technology, because I know that I am wont to be enamoured by the latest...

DZone Daily Dose - 3/9

Tue, 03/09/2010 - 05:04
Former Novell CTO Becomes W3C CEO

Eclipse Community Awards Finalists

Mon, 03/08/2010 - 22:00
The voting for Eclipse Community Award finalists ended on February 26th and now the finalists have been announced.  DZone's own James Sugrue has made it into the Finalist category along with the other three nominees for "Top Contributor".  

rPath Adds Integrations for Puppet, Cfengine, and Chef

Mon, 03/08/2010 - 18:21
The data center automation tool vendor, rPath, recently added support for open source configuration management tools including Reductive Labs' Puppet, Cfengine, and Opscode's Chef.  rPath is also working on native support for configuration management, which will include a config management engine.  This engine will be developed as a part of the company's new Project Javelin, and it should be...

R.I.P. Felipe Gaúcho: DZone MVB & Tireless Java Advocate

Mon, 03/08/2010 - 17:13
R.I.P. Felipe Gaúcho: DZone MVB & Tireless Java Advocate The DZone team was very sad to read the news that Felipe Gaúcho had passed away this weekend. Felipe has been an active member of JavaLobby for many years, as well as being a key JUG leader.

R.I.P. Felipe Gaúcho: DZone MVB & Tireless Java Advocate

Mon, 03/08/2010 - 16:41
The DZone team was very sad to read the news that Felipe Gaúcho had passed away this weekend. Felipe has been an active member of JavaLobby for many years, as well as being a key JUG leader. We'd like to say here how much we appreciate his many contributions to JavaLobby as a DZone MVB.References Reference:  Felipe Gaúcho, You Will Be Missed ...

GAE Added to IPv6 Program

Mon, 03/08/2010 - 16:16
With the exhaustion of IPv4 addresses in the not too distant future, Google has been slowly adding most of its services (starting with search in 2008) to it's IPv6 program.  IPv6 is essential to the continuing health and openness of the internet, blogs Google.  In their official blog Google announced they'd be adding appspot.com and Google App Engine to the Google over IPv6 domain in a week.  

How To Kill An OSGi Project - With 10 Questions

Mon, 03/08/2010 - 09:46
OSGi focusses on modularity and it is right now (future may change it) the only viable way to split your application into modules with well-defined dependencies. It solves, however, "only" the technical problem - which is actually relatively easy. Before you going to introduce OSGi into your project, answer the following questions: ...

iPfaces: Simplifying Mobile Application Development With Java

Mon, 03/08/2010 - 07:23
The mobile application development goldrush is truly underway, but one of the big issues facing developers is that there is no unified development platform. In such a fragmented industry, iPfaces Java based approach will be very welcome to those looking to capitalise across many devices to provide a killer mobile application. I spoke with Pavel Stržínek to find out more about iPfaces, and what...

Numerosity - More Metrics Without Meaning

Mon, 03/08/2010 - 07:16
Common Complaint: "This was the nth time that someone was up in arms that [X] was broken ... PL/SQL that ... has one function that is over 1,500 lines of [code]."Not a good solution: "Find someway to measure "yucky code"." James Sugrue

Simple Guide To Understand Resource Profiles in Java Applications

Sat, 01/30/2010 - 05:15
This note describes a few simple commands on how to view the RAM and CPU usage of your Java process. It provides brief pointers on how to identify the influencing parameters and how to tweak it. Memory Java Heap The heap size of your Java process can be controlled by using a combination of –Xmx and –Xms. The heap size being used at any point of time, and the behavior of the garbage...

Daily Dose - Quest for the One True iPad

Sat, 01/30/2010 - 05:00
Quest for the One True iPad  

Agile Methodology Mashups

Fri, 01/29/2010 - 14:34
When it comes to how you approach software development, you don't get anything better than adopting an agile software development process. But how to apply this in your process can sometimes confuse people. James Sugrue

An (Overlooked?) Use Case for the Strategy Pattern

Fri, 01/29/2010 - 06:45
Composition over inheritance. It seems that we all agree and understand this valuable principle. I’ve been reading a good amount of code lately from some open source projects (including mine,) and I think we are still missing at least one use case where to apply it. James Sugrue

Aristotle's Poetics and Project Management

Fri, 01/29/2010 - 06:41
It can be a fatal mistake to impose a story arc on a project. Aristotle's Poetics is a commentary on drama, in which he identified two story arcs that are sure-fire hits: Big Man Brought Down, and Small Man Lifted Up. These are the standard "Change in Fortune" story lines that we like.Most movies in the category called "westerns" have elements of both. When we look at a movie...

Grails BlazeDS 4 Integration Plugin

Fri, 01/29/2010 - 06:36
One of the main goals I’ve been pursuing for a few months is the integration of Grails with Flex 4. James Sugrue

Daily Dose - Google Go Joining GNU Compiler Collection

Fri, 01/29/2010 - 05:00
Google Go Joining GNU Compiler Collection   The GNU Compiler Collection Steering committee says it will support Google Go in GCC 4.5 or later.  Google's Ian Taylor will be the maintainer and GCC release managers will handle the integration of new code into the compiler collection.  Ian Taylor recently announced that the Go license would now include an explicit patent grant.