用户界面上的“ ID”或“ ID”

我工作的 QA 经理刚刚通知我,我的桌面应用程序有一个错误,因为登录提示是“操作员 ID”,而它应该是“操作员 ID”。她的论点是,“本我”指的是弗洛伊德的“精神装置”的自我部分,并不是语义上正确的。

现在作为一个肛门工程师(AE) ,我当然要去查找身份证和身份证,从我粗略的调查(谷歌) ,似乎身份证就像弗洛伊德的自我一样常用。

所以我的理由是 ID 是“ Identifier”的缩写版本,比 ID 更正确,或者至少更常用,ID 通常表示两个单词的缩写。

我可以改变用户界面,但那样我就不会把我的职业作为 AE,所以我想知道是否有任何最佳实践或参考,这种东西,我可以用来支持我的论点?请记住,这个问题涉及到用户界面,而不是源代码,在源代码中,缩写和大小写是一个完全不同的哲学分支。

38877 次浏览

According to Merriam-Webster, the abbreviation is "ID". If it were a correct abbreviation, it would have to be "Id." with the period.

The 'D' doesn't stand for anything, so I've always considered it an abbreviation, not an acronym - and therefore I too use 'Id', not 'ID'.

I don't know about your qa's reasoning - words can have more than one meaning - this is not unusual in English :)

But it looks like the common usage is actually 'ID' (right or wrong :P), which is probably the format your users would expect.

as a short version of Identifier, I would use Id. Also ID it's freaky when you have functions like

getUserIDByName()

Multiple capitals in domain terms are quite problematic with CamelCase, as they can produce ambiguities and therefore dishomogeneity in your interfaces and namings

The QA manager's line of reasoning is silly. Lots of English words have multiple meanings. "Lead", "lead", "lead" (metal, be at the front of, or a connector).

I would just try to be consistent with the capitalization used elsewhere in the app.

How would you say it if you were reading out loud? I'd pronounce the two letters. ID is correct, analogous with similar abbreviations such as TV. (No dots, please, as the letters don't stand for anything.)

When I'm dealing with abbreviations like this, I like to format them in small block capitals, but that's just a personal taste. Capitals, anyway.

(But I probably would continue to use Id in the code itself.)

Personally, I use "Id". The compiler doesn't care but my eyes do. Compare:

GetIDByWhatever  <-- looks terrible


GetIdByWhatever  <-- oh so pretty!

Aesthetics is more important than grammar when it comes to code, always. (Update: 4 years later, I don't stand by this statement anymore)

It's interesting that so many feel "Id" should be the way to go. I feel "ID" is appropriate because it hints at how we pronounce it -- I.D. Also, when I read "Id" in a running sentence, I sometimes have to come back and read it again just to ensure it's not a typo for "is" or "it".

As an UAUA (ultra-anal usability analyst), please use ID instead of Id.

Visually, it's more recognizable in English. Grammatically, "Id" is a word (rhymes with "squid") and the Freudian definition has been given above. We're never verbally asked to show "id", but "ID." I.D. is fine but passe, as the periods imply multiple words.

So.

Just use ID, okay?

OK.

So, as a technical writer, this is an issue that comes up for me quite regularly when reviewing other people's work, whether it be programmers, BAs or other writers. Typically, id refers to ego as others have said before me and the accepted abbreviation for identification is ID, just because plenty of people don't know or understand the rule doesn't mean that they are correct (sorry to be blunt), mind you the rules for punctuation and spelling to a large degree are almost as changeable as fashion!

However, what no-one seems to have asked is, does your company have a standard? At the end of the day if your company has a style guide and they have covered this topic in that guide, you should follow the guide. If it is not covered, then may I suggest that you raise the issue with the person that maintains the guide and include any stakeholders in the conversation. Consistency is key here. If the company you work for doesn't have a style guide, then perhaps it is time to start one!

Hope this helps...

I think its depend on the way we spell. We don't spell "it", but "ai-di". Id-ID is spell by two sounds, so people make the D in cap to avoid thinking id is a "word". Its more like a character symbol. I like the "ID" more, just because it's nicer.

I prefer Id because when used with other 2-letter text, it doesn't become a single all-caps word

Photovoltaics systems ... PVID (one word or 2?) PvId (much more clear).

User interface and code are very different beasts...

"ID" is the correct answer for a user interface.

In code, consistency is your friend. Whether you like it or not, go with what is already there elsewhere in the code. If it's not there, then read up and make a decision, or get with the team and work out a way to go that everyone can agree to. Consistency makes life so much easier.

ID = Idaho! Id = Freud! Let the OCD begin!

There is a little OcD in all of us!

Anyway, the google style guide says this:

"ID: Not Id or id, except in string literals or enums. In some contexts, best to spell out as identifier or identification."

I'm going with that.

Microsoft is more vague, from what I could find.

ID is correct. I have been in the Id camp for years, simply because I believed it was an argument between abbreviations and acronyms. Until one day I learned of a 3rd type (subtype really) called Initialisms which are specific to abbreviations or acronyms that are specifically read one letter at a time rather than pronounced as a single word. Initialisms are all caps.