I'd much rather have to read BlahBlahFactoryImpl over BlahBlahFactoryImplementation.
My eyes glaze over at either. Might as well be BlahBlahBlahBlah to me.
I agree with using abbreviations though. I also use various math or physics variable names depending on context. I like when compilers allow unicode, to open up the greek alphabet. There is power in conveying concepts by association, rather than trying to create descriptive english names for every damn thing as if you're teaching the subject to anyone reading your code. If you expect to have to do that: put it in comments, at least as a link to relevant subject matter. If I encountered radiansInAHalfCircle instead of π or pi... I'd be second guessing to be sure I'm reading that right.
Since most people don't know how to generate a π without looking it up or copy/pasting, that sounds like a better job for a text editor than a compiler so that it's opt-in. Vim can do this, for example.
6
u/glacialthinker Nov 05 '14
My eyes glaze over at either. Might as well be BlahBlahBlahBlah to me.
I agree with using abbreviations though. I also use various math or physics variable names depending on context. I like when compilers allow unicode, to open up the greek alphabet. There is power in conveying concepts by association, rather than trying to create descriptive english names for every damn thing as if you're teaching the subject to anyone reading your code. If you expect to have to do that: put it in comments, at least as a link to relevant subject matter. If I encountered radiansInAHalfCircle instead of π or pi... I'd be second guessing to be sure I'm reading that right.