From: Robert Klemme Date: 2009-11-13T19:10:31+09:00 Subject: Re: DRYing a Regex 2009/11/13 RichardOnRails : > As far as underscoring vs. Camel-case goes,  I know Rubyists' > preference, but I bow to Shakespeare's notion that "a rose by any > other name is just as sweet."  I spent a couple decades writing/ > maintaining Window's application for clients using C and C++, so I've > a fondness for Polish notation (at least that's what I think it was > called.) I believe you mean Hungarian Notation: http://en.wikipedia.org/wiki/Polish_notation > Typing extra hyphens vs pressing the shift key lets me write > code faster, and the a/s/h prefix for arrays/strings/hashes helps me > avoid a lot of interpreter complaints.  And fellow programmers of > almost any stripe knows what I mean. There's always something to be said for conventions. The issue with your notation is that it seems to be far less used among Ruby programmers than the snake case. Snake case for variables and methods also has the added advantage that classes and modules stand out immediately. Side note: with modern IDE's I believe there is not much reason to use Hungarian Notation any more. I personally find it more difficult to spot certain variables when all variables of the same type start with the same letter. For me, PN actually _reduces_ readability. >  Finally,  I retired curmudgeon, > and you know how we old folks are :-) LOL Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/