Pedantic Naming Convention Shiz
-
@pie_flavor said in WebAPI - Returning HTTP status code without throwing or changing method signature?:
@blakeyrat said in WebAPI - Returning HTTP status code without throwing or changing method signature?:
Feel free to post the 27 ways this code is stupid and wrong.
Official naming conventions say that abbreviations longer than two characters should not be all caps. The namespace should be
Xxx.Platform.Api
.I get that, but frankly, I find it only actually looks nice when it's followed up by another word.
For example:
WtfCorp.XML.Parser
Versus
WtfCorp.Xml.Parser
Versus
WTFCorp.XmlParser
Versus
WTFCorp.XMLParser(yes, there's a joke there)
-
@weng said in Pedantic Naming Convention Shiz:
there's a joke
Half of the examples missed their period?
-
I workaround this convention by just stringing a bunch of two word acronyms together to make it all caps.
My record is Artificial intelligence hyperthreaded general aviation autothrottle JavaScript module:
AIHTGAATJSModule
-
@tsaukpaetra said in Pedantic Naming Convention Shiz:
@weng said in Pedantic Naming Convention Shiz:
there's a joke
Half of the examples missed their period?
Oh-oh, so now you're afraid they're pregnant?
-
@tsaukpaetra said in Pedantic Naming Convention Shiz:
missed their period?
so we can be expecting new WTFCorps?
-
@luhmann said in Pedantic Naming Convention Shiz:
@tsaukpaetra said in Pedantic Naming Convention Shiz:
missed their period?
so we can be expecting new WTFCorps?
Pretty much next week, it'll be gone in 9 months when the venture capital runs out.
-
-
@weng said in Pedantic Naming Convention Shiz:
(yes, there's a joke there)
Oh. I thought it was because you actually had all 4 in the codebase. And each is dependent on the other, of course.
-
@weng I read a lot of crappy code in my life, and never ever once I thought: "this code would be easier to read if it followed some naming convention".
How did these bullshitty wastes of time got so popular?
-
@sockpuppet7 Consistency, readability, usability without autocompletion, etc. Why do you capitalize proper nouns? Because it's the correct way to do things.
C#'s serve another purpose, too; if the conventions are adhered to, no APIs should ever get broken by new keywords.
-
@weng said in Pedantic Naming Convention Shiz:
WTFCorp.XmlParser
Interestingly, this is probably the correct one: if the company is literally "WTF Corp" or "WTFCorp", the very same guidelines say to leave it that way as far as I know.
-
@sockpuppet7 said in Pedantic Naming Convention Shiz:
How did these bullshitty wastes of time got so popular?
Because good programmers have to be obsessed by details to be good, and bad programmers trying to pass for good ones therefore obsess over every detail, instead of just the meaningful ones?