There has been much discussion over the applicability and usefulness of Hungarian Notation in object-oriented and dynamically typed languages. You might have a look at this link on ootips:
http://ootips.org/hungarian-notation.html
I personally come down on the side of HN being bad and ugly. I used to use it when I programmed in C. But at the same time I didn't use it when I wrote scripts (perl, shell, awk, python). I can't recall any non-Microsoft author that I have read in the past 5 years who was still using HN. See also: http://c2.com/cgi/wiki?HungarianNotation
Of late I've adopted Jeff Langr's approach to an "Enlightened Style" as explained in his Software Development piece (http://www.sdmagazine.com/print/documentID=22166). Note that he is the author of Essential Java Style but has eschewed detailed coding standards.
I particularly like Jeff's comment on commenting so I'll quote it and leave the subject alone: "Commenting is more of an anti-pattern than anything else. Comments indicate that code is not communicating clearly. As others have said, "Comments are lies." You can't trust comments; the only thing you can truly depend on is working code. Strive to eliminate comments in your code. If I have to explain a method, it's not simple enough. Break it down into pieces that can be readily comprehended. Use an Intention-Revealing Name."
If your are interested in a humorous viewpoint on this topic then check out "How to Write Unmaintainable Code".
http://www.freevbcode.com/ShowCode.Asp?ID=2547
Jim Cakalic
Discussion on:
Message 7 of 14









































