Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use case instead of underscore. Doesn't help the shift-issue, but reduces the length of identifiers e.g. file_not_found becomes FileNotFound.


IThinkItIsObjectivelyMuchLessReadable

I_think_it_is_objectively_much_more_readable

The difference in length is pretty small anyway.


That's a bit contrived considering you're (a) writing a sentence and (b) you use some really short words (i.e., "I", "It", and "Is"). I think for things like FileNotFound or similar its not really that different in readability, and comes down to preference.


You get used to anything. For instance, I find your 1st example much more readable, but I've been doing it for years.

Names tend to be pretty small anyway. Here are some random ones from the code I'm working on (Sococo Teamspace)

CreateVariant - a method

soLogWriteInfo - a method (I didn't write)

clHeadSSt - a circular list head for a stream




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: