4 ms·
My style could be summarised as: Very_Very_Important, SomewhatImportant, mostly_important, notveryimportant. I personally hate the "camelcase everywhere" style
by userbinator 7y ago
My style could be summarised as: Very_Very_Important, SomewhatImportant, mostly_important, notveryimportant.
I personally hate the "camelcase everywhere" style, and for that matter, verbose names. Opponents tend to claim that it makes the code easier to read, but I've found that after more than a few minutes of staring at code like that, the ThingsScreamingAtYouEverywhere just get tiresome and start to obscure the actual structure, as well as making it difficult to distinguish between two very long identifiers that differ only slightly in their tail.
This may also be because the majority of the time I've (been forced to) work with that style, it's been "enterprisey" code that's full of AbstractPatternDecoratorProxySingletonFactoryFactory noise.
- JoeAltmaier 7y agoAgreed. There has to be a middle ground, something fairly concise but just enough words to distinguish things. For some reason Hungarian fell out of favor (pedants etc making noise) but something similarly concise would be helpful. Folks say "Look at that alphabet soup! Completely unreadable!" but it takes just a minute or two to learn whatever lettered convention is in use. Truth is, pedants and complainers will 'ruin anything'. I advise, choose something fairly concise, write a comment somewhere (README?) and get on with it.
- GoblinSlayer 7y agoImagine if it was abstractpatterndecoratorproxysingletonfactoryfactory.
- ehnto 7y agoNow lets throw in Hungarian Notation! oAbstractpatterndecoratorproxysingletonfactoryfactory
- TheOtherHobbes 7y agoC++ constructor: OAbstractpatterndecoratorproxysingletonfactoryfactory::OAbstractpatterndecoratorproxysingletonfactoryfactory(){}
- GoblinSlayer 7y agoC style: abspdpsfacfac (even has pdp in it, truly C)
- traverseda 7y ago$VERY_IMPORTANT_VARIABLE_DO_NO_OVERRIDE