My coding style
From Andrey
(Difference between revisions)
Revision as of 22:42, 22 October 2011 Andrey (Talk | contribs) ← Previous diff |
Current revision Andrey (Talk | contribs) |
||
Line 1: | Line 1: | ||
- | When coding, I try to have it as clean and readable as possible, and encourage others to do the same. Here is an utility class I wrote to for use in command line applications. It is surprising how often a command line app directly validates its argument array - instead of delegating at least some if its logic to some kind of a rule-driven parser. Here's the helping hand. | + | When coding, I try to make it as readable as possible - and encourage others to do the same. Here is an utility class I wrote to for use in command line applications. It is surprising how often command line apps directly validate their argument arrays, while it is possible to delegate at least some logic to some kind of rule-driven parser. Here's the helping hand: |
[[CommandLineParser.java]] | [[CommandLineParser.java]] | ||
[[CommandLineParserTest.java]] | [[CommandLineParserTest.java]] |
Current revision
When coding, I try to make it as readable as possible - and encourage others to do the same. Here is an utility class I wrote to for use in command line applications. It is surprising how often command line apps directly validate their argument arrays, while it is possible to delegate at least some logic to some kind of rule-driven parser. Here's the helping hand: