20021212 Thursday December 12, 2002

Code Readability There's a debate taking place at FreeRoller about code readability. Isn't this a non-issue with sweet code formatting tools such as jalopy? I don't think I've cared how my code as looked in months, I just use the formatter. For the record, I prefer one space, not all my variables lined up on one side. Why? If you add a new variable with a long name, you have to adjust the spacing for all your variables - what a pain in the ass. However, Jalopy does offer this type of formatting and will plugin to all your favorite IDEs.

Along these same lines, XDoclet uses a beautify ant task that fixes the code everytime you re-compile. While it's nice, it can be annoying that you have to reload your .java file everytime you compile. Posted in General at Dec 12 2002, 01:07:25 AM MST 1 Comment

Comments:

This is one of those preferences things, where there will be no consensus. Occasionally someone does point out that code-formatting tools break down (as an aid) when you start talking about relevance to CVS: changing the code structure to your tastes and checking in changes will mark the whole file as changed and it will be impossible for others to *find* what really changed. Oh, and I chime in with my own unpopular opinions.

Posted by Lance on December 12, 2002 at 01:44 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« December 2008
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

Recent Entries

Tag Cloud