4 ms·
> Second, perhaps cool URIs don't change, but it seems like http://www.w3.org/Provider/Style/URI.html http://www.w3.org/Provider/Style/URI.html is kind of an un
by charliesome 14y ago
> Second, perhaps cool URIs don't change, but it seems like http://www.w3.org/Provider/Style/URI.html http://www.w3.org/Provider/Style/URI.html is kind of an unfortunate URI. What's "Provider"? Why are "Provider" and "Style" uppercase?
They're uppercase because they're uppercase. Asking why is like asking why Rubyists like_using_method_names_like_this and .NET devs LikeUsingMethodNamesLikeThis.
- technel 14y agoConvention is for URLs to be all lowercase, which IMO aids in readability and certainly makes them easier to type (imagine giving a URL to a friend over the phone -- remember this is 1999).
- deleted 14y ago[deleted]
- porges 14y agoWell luckily for you, the URI is case-insensitive and redirects (301) to the canonical version.
- dredmorbius 14y agoThe standard is that hostnames are case-insensitive, but non-FQDN paths should allow both uppercase (especially for systems which don't include lower-case elements, yes, Virginia, they exist) and lowercase elements.
- einhverfr 14y agolike_using_method_names_like_this is more readable. White space has been in use to separate words since the time of Alciun, and that's the closest way to do it. Call me conservative but I prefer to stick to the insights of the last 1400 years rather than mangle them horribly ;-) Oh, and I am not a Ruby developer ;-)
- Dylan16807 14y agoWhitespace is nice but underscores aren't whitespace. They also leave a zigzag effect that isn't wonderful.
- einhverfr 14y agoThey are the closest thing you can have to whitespace. That's the point. Actually come to think of it, they are underlined whitespace ;-) As for a zigzag effect I think CamelCasing is at least that bad, maybe moreso. Wondering if I get points for bringing early Medieval history into a discussion on coding conventions ;-)
- rrreese 14y agoWhat do you mean by zigzag effect?
- batista 14y agoThe it isn't actually word+empty-space+word but word+line-down-below+word so your eyes go zig-zag from the taller glyphs of the word to the low glyph of the underscore (vertical zig zag motion), instead of jumping to the next world (horizontal).
- einhverfr 14y agofunny, I was just checking because I have never noticed my eyes doing that and afaics my eyes still scan horizontally. I don't need to look down to see the underscore. I guess YMMV?
- kalininalex 14y agoI agree that method_names_like_this is more readable, even (or, especially) after many years of .NET programming. I used the_style_like_this back in C++ days and, honestly, miss it. Perhaps, the renaissance of C++ in the form of C++11 will bring it back :)
- beefsack 14y agoActually I read somewhere that the decision for Ruby using underscored names as a naming convention was because of the very large number of non-native English speakers in the early days of the language. Something along the lines of it was easier to read for non-native speakers because it more closely mimicked spaced English. Searching for the source now.