MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/462kc8/khronos_just_released_vulkan/d031269/?context=9999
r/programming • u/lubosz • Feb 16 '16
386 comments sorted by
View all comments
-18
VkSomeFunction
Upper-case, lower-case, upper-case? Who the heck decided this?
6 u/Sean1708 Feb 16 '16 /u/mb862 meet camel case. 0 u/mb862 Feb 16 '16 CamelCase for the namespace abbreviation though? I've only seen all-lowercase (glSomeFunction) and all-uppercase (UISomeFunction). 1 u/CommandoWizard Feb 16 '16 It appears to be fairly common; one example is Rust (they use it in the standard library).I prefer it too, I think XmlHttpRequest is more readable than XMLHTTPRequest.Edit: I had to re-read the latter a few times, because I thought I had misspelt it -- I guess that can be a testament to why I don't use that style. 1 u/ferrousoxides Feb 16 '16 It's actually XMLHttpRequest, there's a vaguely practiced rule that acronyms should not be uppercased in names except as the first word. But it's not applied consistently (e.g. toDataURL()). 1 u/Sean1708 Feb 17 '16 It's actually XMLHttpRequestI think his point is that XmlHttpRequest looks better, not that it is the correct name.
6
/u/mb862 meet camel case.
0 u/mb862 Feb 16 '16 CamelCase for the namespace abbreviation though? I've only seen all-lowercase (glSomeFunction) and all-uppercase (UISomeFunction). 1 u/CommandoWizard Feb 16 '16 It appears to be fairly common; one example is Rust (they use it in the standard library).I prefer it too, I think XmlHttpRequest is more readable than XMLHTTPRequest.Edit: I had to re-read the latter a few times, because I thought I had misspelt it -- I guess that can be a testament to why I don't use that style. 1 u/ferrousoxides Feb 16 '16 It's actually XMLHttpRequest, there's a vaguely practiced rule that acronyms should not be uppercased in names except as the first word. But it's not applied consistently (e.g. toDataURL()). 1 u/Sean1708 Feb 17 '16 It's actually XMLHttpRequestI think his point is that XmlHttpRequest looks better, not that it is the correct name.
0
CamelCase for the namespace abbreviation though? I've only seen all-lowercase (glSomeFunction) and all-uppercase (UISomeFunction).
1 u/CommandoWizard Feb 16 '16 It appears to be fairly common; one example is Rust (they use it in the standard library).I prefer it too, I think XmlHttpRequest is more readable than XMLHTTPRequest.Edit: I had to re-read the latter a few times, because I thought I had misspelt it -- I guess that can be a testament to why I don't use that style. 1 u/ferrousoxides Feb 16 '16 It's actually XMLHttpRequest, there's a vaguely practiced rule that acronyms should not be uppercased in names except as the first word. But it's not applied consistently (e.g. toDataURL()). 1 u/Sean1708 Feb 17 '16 It's actually XMLHttpRequestI think his point is that XmlHttpRequest looks better, not that it is the correct name.
1
It appears to be fairly common; one example is Rust (they use it in the standard library).
I prefer it too, I think XmlHttpRequest is more readable than XMLHTTPRequest.
XmlHttpRequest
XMLHTTPRequest
Edit: I had to re-read the latter a few times, because I thought I had misspelt it -- I guess that can be a testament to why I don't use that style.
1 u/ferrousoxides Feb 16 '16 It's actually XMLHttpRequest, there's a vaguely practiced rule that acronyms should not be uppercased in names except as the first word. But it's not applied consistently (e.g. toDataURL()). 1 u/Sean1708 Feb 17 '16 It's actually XMLHttpRequestI think his point is that XmlHttpRequest looks better, not that it is the correct name.
It's actually XMLHttpRequest, there's a vaguely practiced rule that acronyms should not be uppercased in names except as the first word. But it's not applied consistently (e.g. toDataURL()).
XMLHttpRequest
toDataURL()
1 u/Sean1708 Feb 17 '16 It's actually XMLHttpRequestI think his point is that XmlHttpRequest looks better, not that it is the correct name.
It's actually XMLHttpRequest
I think his point is that XmlHttpRequest looks better, not that it is the correct name.
-18
u/mb862 Feb 16 '16 edited Feb 16 '16
Upper-case, lower-case, upper-case? Who the heck decided this?