2 ms·
I mostly find the readability the same, except for acronyms in the middle. RemoteHTTPIPAddr vs remote_http_ip_addr. I prefer the latter, but my go-to language t
by sethammons 8y ago
I mostly find the readability the same, except for acronyms in the middle. RemoteHTTPIPAddr vs remote_http_ip_addr. I prefer the latter, but my go-to language these days encourages the former.
- sixhobbits 8y agoThe "What is an acronym really and when should it be capitalised" debate is grey enough that it's easier to consistently use RemoteHttpIpAddr
- lern_too_spel 8y agoNot capitalizing the entire acronym is the convention in modern Java and C#. https://google.github.io/styleguide/javaguide.html#s5.3-camel-case https://google.github.io/styleguide/javaguide.html#s5.3-came... https://docs.microsoft.com/en-us/previous-versions/ms182249%28v%3dvs.80%29 https://docs.microsoft.com/en-us/previous-versions/ms182249%...
- renox 8y agoI work in telecoms where there are so many acronyms that snakeCase is really painful (but we still use it). As for your second example, why not remote_HTTP_IP_addr ? Even more readable IMHO.