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

best practices

  • submit to reddit

5 Best Practices for Commenting Your Code

One of the first things you learn to do incorrectly as a programmer is commenting your code. My experience with student and recently graduated programmers tells me that college is a really good place to learn really bad code commenting techniques. This is...

5 replies - 7323 views - 07/08/11 by John Fuex in Articles

The Next Level of the Don't Repeat Yourself(DRY) Principle

We have been building software applications using various languages for several years. Over this time new frameworks, new tools, new methodologies have appeared. Especially in the Java platform, where we have plenty of choices in each area following...

3 replies - 4810 views - 02/04/11 by Sivaprasadreddy... in Articles

Death to Best Practices

Can we please put the whole term “Best Practices” to rest now? Apparently, according to this link (forwarded to me by John Dietz, thanks!), the very place where it originated (or was best popularized, depending on your interpretation of history) has...

17 replies - 18774 views - 08/10/10 by Ted Neward in News

JSP are more than templates

The concept of Java Server Pages is simple: submerge Java code and some special directives into an HTML page to add dynamic capabilities to it. Obviously, this process can go out of hand when complex logic scatters into an untestable JSP, with operations like...

3 replies - 5157 views - 07/20/10 by Giorgio Sironi in Articles

Secrets of a JDBC Master

Jesse Davis explains many of the JDBC development pitfalls he's come across in production environments.  Davis also recommends some best practices, such as...

1 replies - 10524 views - 05/18/10 by Eric Hagan in Videos

Evolution of a programmer

As a software developer, it's common to learn new practices every day. Although there are jokes about how the more a programmer ages, the more his lines of code counter goes sky high even to accomplish simple tasks, usually this process results in an overall...

4 replies - 18781 views - 05/04/10 by Giorgio Sironi in Articles

Performance Tuning Resources For Web Clients

Recently I have been doing some research on tweaking websites to make them faster (either in reality, or at least in appearance to the client). Specifically the research has been focused on the actual client tier interaction - requesting the page, downloading...

1 replies - 7834 views - 12/09/09 by Craig Dickson in Articles

What's the Best Way to Handle Exceptions?

It seems, given my limited experience, that handling exceptions depends entirely on the context in which you are developing. As a fan of "rules" that can be applied to different scenarios I wanted to hit you guys up and see what the rules-of-thumb...

16 replies - 7740 views - 10/03/08 by Riyad Kalla in News

Omitting Braces: Not Just A Matter Of Style

According to our analysis of more than 100 Java projects, one of the most violated rules from static analysis, is 'missing braces in If statement'. Although often considered to be merely a stylistic preference, we found that omitting braces is actually a good...

16 replies - 8958 views - 07/30/08 by Richard Sharpe in News