|
|
|
Did you read today's front page stories & breaking news?
SYS-CON.TV
SYS-CON.TV Webcasts
Most Read This Week
|
THE WORLD'S TOP IT SOLUTION PROVIDERS ( Issue: 2 ) Enerjy Software: Why Coding Standards?
Enerjy Software: Why Coding Standards?
Dec. 4, 2004 12:00 AM
Click here for more information on Enerjy Software
Many well-meaning people have adopted the idea of coding standards, only to have them fall into disuse. The problem is that you have to be very self-disciplined to remember to apply all of the standards while you are writing code. You have to learn and memorize them all (Sun's coding standards are very concise, but they still run to 20 pages), and then remember to apply them all the time. Code analysis tools, such as Enerjy Code Analyzer, give developers an easy way to check their code against a set of standards as it is being written. This is a significant step forward in promoting the adoption of standards, since it makes it easy for developers to police themselves and reduce the mundane so they can move on to the more challenging coding aspects of their application. Working something like a grammar checker in a word processor, Enerjy Code Analyzer applies a preconfigured set of rules to the code as the developer is writing it (in fact, it runs on each File, Save operation), and points out any violations of the coding rules. Moreover, for many of the rules-in particular, the more straightforward ones-Code Analyzer will even suggest and apply a fix for you. Getting the Most from Your Code Analyzer The standard set of rules breaks down into a number of areas:
After each analysis, Code Analyzer adds a report of any violations as warning messages in the IDE; clicking on a message will place the cursor on the offending line in the code, taking you right back to your curly braces and semicolons. For those rules that can be auto-fixed (e.g., missing braces), right-clicking on the message will allow the problem to be automatically fixed. Alternately, all auto-fixable problems can be fixed at one time. Enerjy Code Analyzer includes extensive and enlightening built-in help via a tap of the F1 key - a learning tool for starting Java developers - or a handy reminder for more experienced developers. Finally, the output from an analysis session can be saved to a report, in either HTML or XML format. One final point: the easiest way to implement a set of standards is to quickly get to the point where your code generates zero errors, and then keep it that way. If you establish coding standards with every development project, you'll pre-empt pesky bugs, save time, and develop more reliable applications. Reader Feedback: Page 1 of 1
Subscribe to the World's Most Powerful Newsletters
|
Today's Top Reads
Hot Discussions of The Week
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||