Readability and naming.

Mike Gerfin gerfin at ieee.org
Wed Jan 10 13:38:21 PST 2007


I came to this site following the link from Dr. Dobb's and love
what I see.  I can't wait to start implementing my next project
in D!  However, on the subject of readability and D's promise
(or goal) to make things easier for other programmers, I wish
that C/C++ programmers would eliminate their attachment with
needlessly terse variable and function names.  Granted, I've
only been going through the site a few hours, but in many examples
I see things like:

int w_count, l_count;   // etc.

Why can't we use:

int wordCount, lineCount;

I realize these are just examples, but if people get used to
seeing descriptive naming used it will hopefully become the norm.
Let's not persist with habits born from the days of FORTRAN.

My 2 cents.

-Mike



More information about the Digitalmars-d mailing list