News for hackers. Stuff that matters.
Re:Unsure if I understand TransactionAwarePersistenceManager... by shmerl on Friday June 28, 2013 @06:22PM (#5960623)
Camel notation looks awful with so many words. C++ style with underscores is way more readable.
Re:Unsure if I understand TransactionAwarePersistenceManager... by veesahni on Friday June 28, 2013 @06:28PM (#5960641)
snake_case is 20% easier to read ( reference: http://bit.ly/11T1FWY )
Re:Unsure if I understand TransactionAwarePersistenceManager... by shmerl on Friday June 28, 2013 @06:31PM (#5960661)
I always thought it's rather self explanatory. Reading a text without distance between the words requires more effort. Capital letters don't help much for that. Underscore gives a space between the words, which allows more fluent reading.
Re:Unsure if I understand TransactionAwarePersistenceManager... by regularfry on Friday June 28, 2013 @06:37PM (#5960675)
It might be self-explanatory, but there's a vast gulf between self-explanatory and correct.
Re:Unsure if I understand TransactionAwarePersistenceManager... by shmerl on Friday June 28, 2013 @06:44PM (#5960700)
In this case it's not only correct, it's easy to test.
Re:Unsure if I understand TransactionAwarePersistenceManager... by philh on Friday June 28, 2013 @08:41PM (#5961065)
Glancing at the first page of that study, it looks like

* People trained mostly in camelCase (also, nonprogrammers) read camelCase more accurately, but snake_case faster. (Previous study which I didn't follow up.)

* People trained mostly in snake_case read both of them equally accurately, but snake_case faster. (But, grand total of fifteen participants.)

(I find this mildly surprising: I seem to read snake_case slightly slower than normal text, and camelCase slightly faster, just based on the pauses between words. But camelCase would be easier to lose myself in. I find hyphenated-words easiest to read, but not many languages permit them...)

Re:Unsure if I understand TransactionAwarePersistenceManager... by schrodinger on Friday June 28, 2013 @06:25PM (#5960631)
It's just what you're used to. I'd say the opposite.
Re:Unsure if I understand TransactionAwarePersistenceManager... by jlgreco on Friday June 28, 2013 @06:37PM (#5960671)
Spaces between words got added to Latin over a thousand years ago. I figure there must be a reason that change occurred.
Re:Unsure if I understand TransactionAwarePersistenceManager... by angersock on Friday June 28, 2013 @07:01PM (#5960773)
ThisIsMyClassType

thisIsAnInstanceOfMyClass

this_is_some_ruby_or_kernel_c_i_copied_from_stack_exchange

_thisIsAFunctionParameterHavingBeenPassedIn

THISISACONSTANTDONOTCHANGE

THIS_IS_A_FRIENDLIER_ENUM

_____how_many_spaces__in_this_var

EDIT: Aaaand then there is the JS approach:

http://mathiasbynens.be/notes/javascript-identifiers