Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

tips

  • submit to reddit

Breakpoint Properties in Eclipse

The Eclipse IDE has the ability to run the code interactively, executing an application line by line in debug mode where you can define a specify point in the code to stop, called a breakpoint. As you can see in Eclipse documentation:

3 replies - 5138 views - 03/12/11 by Valdemar Júnior in Tips and Tricks

Enum tricks: hierarchical data structure

Java enums are typically used to hold array like data. This tip shows how to use enum for hierarchical structures. Motivation Once upon a time I wanted to create enum that contains various operating system, i.e. public enum OsType { ...

2 replies - 9759 views - 10/18/10 by Alexander Radzin in Articles

Enum Tricks: Customized valueOf

When I am writing enumerations I very often found myself implementing a static method similar to the standard enum’s valueOf() but based on field rather than name:

11 replies - 12835 views - 10/16/10 by Alexander Radzin in Articles

The 10 Keys to a Successful Web App

Think of your favorite web applications.  The ones that you keep going back to again and again.  Even the ones that you are willing to pay for.  Chances are, it was fast, clean, instantly useful, and easy to find.  Along with these main features, there...

3 replies - 10802 views - 02/23/10 by Mitchell Pronsc... in Articles

Clean Code - A Handbook of Agile Software Craftsmanship

The chapters of “Clean Code” are grouped into three parts. As it says in the introduction, part one “describes the principles, patterns and practices of writing clean code.” Part two contains...

1 replies - 9860 views - 03/02/09 by Burk Hufnagel in Book Reviews

A Portable JPA Boolean Magic Converter

The current Java Persistence API (JPA) standard does not mandate JPA provider to support data type conversions through annotations, not even a with simple boolean field. For readers who are unfamiliar with JPA, what I mean is, to persist a boolean field, JPA...

0 replies - 8973 views - 04/14/08 by Khoo Chen Shiang in Tips and Tricks