Skip to main content
28 events
when toggle format what by license comment
Aug 2, 2017 at 20:08 comment added SH7890 I don't understand why this question has so many upvotes.
Aug 2, 2017 at 19:40 history edited Deduplicator CC BY-SA 3.0
added syntax-highlighting
Jan 16, 2015 at 12:05 review Reopen votes
Jan 20, 2015 at 19:50
Jan 16, 2015 at 12:05 history closed gnat
Dan Pichelman
CommunityBot
Kilian Foth
Opinion-based
Jan 13, 2015 at 6:30 review Close votes
Jan 16, 2015 at 12:05
Mar 1, 2013 at 14:21 comment added Kemoda If using camelcase convention, it should definitely be xxId
Feb 24, 2013 at 6:35 comment added Erik Reppen What?! Consistency? Where's the rage war?! That's it, I hereby nominate myself keeper of the sacred camel-case syntax flame and hereby decree that doing it with all-caps for acryonyms is for noobs. Also, it's correct to want to have the toilet paper roll from the top unless you have cats who get bored and do strange things, in which case they have much harder time unraveling the toilet paper set to roll from the bottom making such heresy acceptable for cat owners. I don't know why I get to decree on that. Bob the keeper of the toilet-roll-direction's sacred flame is busy I guess.
Feb 23, 2013 at 20:38 answer added Sungguk Lim timeline score: 1
Feb 12, 2013 at 8:32 comment added JBRWilkinson In some territories, ID is an acronym for Identification Documents.
Feb 11, 2013 at 22:34 vote accept Adam
Feb 11, 2013 at 21:31 comment added luiscubal @Adam I've posted an expanded answer.
Feb 11, 2013 at 21:30 answer added luiscubal timeline score: 69
Feb 11, 2013 at 21:02 vote accept Adam
Feb 11, 2013 at 22:34
Feb 11, 2013 at 20:59 comment added Dave I suggest you take an existing style guide and use it. Here is Google's Java style guide for Android developers: source.android.com/source/…
Feb 11, 2013 at 20:11 comment added Adam @luiscubal Please make your comment into an answer, it makes the most sense to me.
Feb 11, 2013 at 11:13 comment added MattDavey Usually I would go uppercase for acronyms only (eg HTML). "Id" is not an acronym, it's an abbreviation for identity, so I treat it the same as a regular, un-abbreviated identifier and remain consistent with the language conventions (PascalCase in .NET)
Feb 8, 2013 at 18:58 history protected maple_shaft
Feb 8, 2013 at 13:20 comment added kojiro Would you name the variables EGO and SuperEGO? I didn't think so. ;)
Feb 8, 2013 at 11:36 comment added Simon Whitehead I am currently working with a HUGE codebase that frequently interchanges id, Id, and ID. It is extremely painful to work with.
Feb 8, 2013 at 9:39 answer added Sukrit Gupta timeline score: 5
Feb 8, 2013 at 8:57 comment added user11463 But the upper-case identifiers, by convention, are used in Java for static fields, so the "ID" name for base field is not the best one. And there comes the consistency...
Feb 8, 2013 at 0:12 comment added luiscubal Look at your language's XML APIs to see how they do it. Java names classes like SAXParser and DOMException, .NET names classes like XmlDocument. Based on that, I'd say "ID" in Java, "Id" in C#.
Feb 7, 2013 at 23:28 comment added user40980 Consistency is the most important thing that matters. Be it camel case, or underscores or whatnot. Be consistent.
Feb 7, 2013 at 22:09 history tweeted twitter.com/#!/StackProgrammer/status/299640966833393665
Feb 7, 2013 at 21:42 answer added kgilden timeline score: 18
Feb 7, 2013 at 18:42 answer added Daniel B timeline score: 84
Feb 7, 2013 at 18:10 answer added Robert Harvey timeline score: 117
Feb 7, 2013 at 18:00 history asked Adam CC BY-SA 3.0