If I am naming a new class in an OOP language, which is a better convention:
- XMLWriter
- Most common
- XMLwriter
- Easier to distinguish
- XmlWriter
- No longer an acronym
- XML_Writer
- Removes the point of camel case
Pedantic yes, but I’m curious who uses what and why.
Java conventions seem lately to favor treating well-known acronyms like words, so: “XmlWriter”…
http://www.ibm.com/developerworks/library/ws-tip-namingconv.html
Java Naming Convention with Acronyms <-dupe question?
http://geosoft.no/development/javastyle.html
But nobody seems to be very consistent. Take JavaScript’s XMLHttpRequest for example. What a trainwreck!