Often you would use well or somewhat established abbreviations in class or method names. But how do you CamelCase or camelBack them?
HTMLReport
vs. HtmlReport
CustomerDAO
vs. CustomerDao
XMLRPC
vs. XmlRpc
Which side is correct (or which would you prefer)?
In Java there's little choice, if you want to treat HTML as one word, it has to be written as html or Html. For example, due to Java beans convention, getHTML()
implies a property named hTML
.
It's really up to the opponent to answer this question, why should HTML be in all capital letters? English convention? Who cares? If we follow English convention we should have spaces between words.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With