|
b0lt posted:Case insensitivity is retarded, but underscore insensitivity?! it's very important because this way people who like CamelCase and people who like whatever_dumb_name_they_use_for_this_style can all do their preferred thing and it'll just work!
|
# ? Jun 5, 2015 11:05 |
|
|
# ? May 22, 2024 18:32 |
|
Soricidus posted:it's very important because this way people who like CamelCase and people who like whatever_dumb_name_they_use_for_this_style can all do their preferred thing and it'll just work! Yeah, it kind of makes sense if you get really drunk and/or high first.
|
# ? Jun 5, 2015 11:12 |
|
Athas posted:Yeah, it kind of makes sense if you get really drunk and/or high first. perl works the same way
|
# ? Jun 5, 2015 13:30 |
|
Athas posted:Yeah, it kind of makes sense if you get really drunk and/or high first. 420 write programming languages erryday
|
# ? Jun 5, 2015 13:34 |
|
Blotto Skorzany posted:perl works the same way
|
# ? Jun 5, 2015 13:43 |
|
i will say though that i recently turned a program i banged out in perl over the course of three days a couple of years ago over to a c# programmer and he's been able to maintain and extend it without problems. maybe because i used moose? idk.
|
# ? Jun 5, 2015 13:45 |
|
Soricidus posted:it's very important because this way people who like CamelCase and people who like whatever_dumb_name_they_use_for_this_style can all do their preferred thing and it'll just work! whatever_this_style_is_called is objectively superior to camelCase but damned if i can ever find the paper that proved it again
|
# ? Jun 5, 2015 13:46 |
|
just kidding, that was ludicrously easy to find http://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf
|
# ? Jun 5, 2015 13:47 |
|
Bloody posted:just kidding, that was ludicrously easy to find http://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf sw8
|
# ? Jun 5, 2015 13:50 |
|
it was almost as easy to find as under_score_cased_identifiers
|
# ? Jun 5, 2015 13:51 |
|
Bloody posted:it was almost as easy to find as under_score_cased_identifiers called snake case don't know why but it owns
|
# ? Jun 5, 2015 14:04 |
|
b0lt posted:Case insensitivity is retarded, but underscore insensitivity?! Doesn't java do this for numbers? 1_510_000 crazy assholes agree
|
# ? Jun 5, 2015 14:15 |
|
underscore is just a capital -
|
# ? Jun 5, 2015 15:12 |
|
Athas posted:Yeah, it kind of makes sense if you get really drunk and/or high first. i'll bite; why has the sperg programming hivemind decided this is bad?
|
# ? Jun 5, 2015 18:17 |
|
Tiny Bug Child posted:i'll bite; why has the sperg programming hivemind decided this is bad? If you need any tool other than grep to find all occurrences of a name, you hosed it up
|
# ? Jun 5, 2015 18:24 |
|
hepatizon posted:If you need any tool other than grep to find all occurrences of a name, you hosed it up you still don't, just do something like grep -i "butt_?class"
|
# ? Jun 5, 2015 18:27 |
|
Soricidus posted:it's very important because this way people who like CamelCase and people who like whatever_dumb_name_they_use_for_this_style can all do their preferred thing and it'll just work! as with tabs vs spaces i don't care which convention you use, just be consistent
|
# ? Jun 5, 2015 18:27 |
|
Notorious b.s.d. posted:as with tabs vs spaces i don't care which convention you use, just be consistent a foolish consistency is the hobgoblin of small minds, etc etc much better to have tools that don't care and can work with anything
|
# ? Jun 5, 2015 18:30 |
|
Bloody posted:just kidding, that was ludicrously easy to find http://www.cs.kent.edu/~jmaletic/papers/ICPC2010-CamelCaseUnderScoreClouds.pdf nice camel-cased filename
|
# ? Jun 5, 2015 18:31 |
|
Tiny Bug Child posted:you still don't, just do something like grep -i "butt_?class"
|
# ? Jun 5, 2015 19:14 |
|
MononcQc posted:it's a whole language where you can go global_locations => glob_allocations, experts_exchange => expert_sex_change or whatever grep -i \b_*g_*l_*o_*b_*a_*l_*l_*o_*c_*a_*t_*i_*o_*n_*s_*\b
|
# ? Jun 5, 2015 19:26 |
|
MononcQc posted:it's a whole language where you can go global_locations => glob_allocations, experts_exchange => expert_sex_change or whatever Speaking of Experts Exchange, there's a class in our code called "CommentUtilityModel" and I laugh every time I use Eclipse's initial-based autocomplete to type it.
|
# ? Jun 5, 2015 19:28 |
|
Tiny Bug Child posted:i'll bite; why has the sperg programming hivemind decided this is bad? Same things should look the same everywhere. There is no way this feature can be used for Good and not Evil.
|
# ? Jun 5, 2015 19:32 |
|
Athas posted:Same things should look the same everywhere. There is no way this feature can be used for Good and not Evil. if the language draws no distinction between butt_factory and buttFactory then there's no need for it to look the same everywhere and i don't have to waste time going back to see which casing it uses. sounds p Good to me
|
# ? Jun 5, 2015 19:43 |
|
of course it does.
|
# ? Jun 5, 2015 19:44 |
|
MononcQc posted:it's a whole language where you can go global_locations => glob_allocations, Nice!
|
# ? Jun 5, 2015 20:15 |
|
Tiny Bug Child posted:if the language draws no distinction between butt_factory and buttFactory then there's no need for it to look the same everywhere and i don't have to waste time going back to see which casing it uses. sounds p Good to me then butt_factor_x is a fine variable, but butt_factor_y breaks stuff for no reason
|
# ? Jun 5, 2015 20:15 |
|
swsp's name changes drastically
|
# ? Jun 5, 2015 20:19 |
|
They should just make foo_bar interchangeable with fooBar and maybe FooBar but not foobar. Amateurs.
|
# ? Jun 5, 2015 20:52 |
|
Underscore should be an array subscript operator so that you can write x_1, x_i, etc. But if that doesn't typecheck or scopecheck then you fallback to treating the whole thing as a name.
|
# ? Jun 5, 2015 21:01 |
|
sarehu posted:But if that doesn't typecheck or scopecheck then you fallback no
|
# ? Jun 5, 2015 21:27 |
|
|
# ? Jun 5, 2015 21:31 |
|
Seriously. That's as bad as Javascript's "If you misspell a variable name, I'll treat that as a new variable rather than throwing an error".
|
# ? Jun 5, 2015 21:38 |
|
also instead of type declarations we should just say pszFoo and the compiler should deduce the type from Hungarian notation
|
# ? Jun 5, 2015 21:39 |
|
i'd be much more okay with compiler-enforced hungarian than normal hungarian
|
# ? Jun 5, 2015 22:48 |
|
Dessert Rose posted:also instead of type declarations we should just say pszFoo and the compiler should deduce the type from Hungarian notation lol if your compiler cant infer the types from context (at least in most cases)
|
# ? Jun 5, 2015 22:50 |
|
MononcQc posted:it's a whole language where you can go global_locations => glob_allocations, experts_exchange => expert_sex_change or whatever oh cool, I'm glad there's finally a language for children
|
# ? Jun 5, 2015 23:25 |
|
honestly if you look at such a thing and think it's convenient you are a fuckup. it introduces ambiguity for maintainers and invites fuckups based on someone thinking they are not the same identifier. I don't see what's so hard or undesirable about simply keeping track of identifiers correctly.
|
# ? Jun 6, 2015 01:11 |
|
Blotto Skorzany posted:Nice!
|
# ? Jun 6, 2015 01:39 |
|
|
# ? May 22, 2024 18:32 |
|
how do you import modules? not by filename-matches-module-name I guess. what form does it use for error messages and reflection? did a PL designer lose a bet?
|
# ? Jun 6, 2015 04:14 |