Live data from Hacker News

CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

developer.apple.com

141–150 of 188 posts

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#141

I can see why this is needed. English has very broad words for relatives like "grandfather" or "aunt". Most languages have more specific words, especially Chinese where there are separate words for fathers or mothers side, older or younger and sibling or siblings spouse. You also often use these relation words rather than their names when referring to a relatives. If this code was in Chinese, they would all be short…

In Vietnamese there are at least 4 different relationships that we call "uncle" (father's/mother's older/younger brother) in English! I have no idea how you refer to cousins. My teacher told me when he visits family he often doesn't know the word for his own relationships. Apple trying to capture a complete multilingual kinship lexicon sounds like an impossible task, I guess they must be focussing on specific languages here (Chinese is a good bet).

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#142
post #124

Earlier quoted context omitted.

Genuinely curious, but is it actually like that in most languages? I wondered if it was maybe an East/West difference, since I haven't come across that in my French & German learning, and I didn't think Dutch or Danish were like that either. But apparently Swedish does have this (eg faster/moster for paternal aunt & maternal aunt)? (Most of my learning is via Duolingo, so I'm no expert, just curious.)

Didn't even English have a bunch of words that were lost as time went by? We do have quite a few words in Lithuanian (e.g. for maternal/paternal branches and more detailed words for "X in law"). But it was getting simplified in the past few decades. I've heard quite a few words that I couldn't describe without looking at the dictionary.

Yup - https://www.umanitoba.ca/faculties/arts/anthropology/tutor/k...

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#143
post #116
post #32

Earlier quoted context omitted.

Exactly... Could it not just have been named CNContactLabelRelation表姐 ?

In case you're serious I'd have to rely on IDE completion or copy/paste to input this, not being familiar with chinese input methods. It would also make it trickier to compare identifiers and make sure that it makes sense. I think it makes more sense to keep all identifiers in English or alternatively provide completely localized versions of the API in other languages, going halfway is just going to confuse everybody…

> In case you're serious I'd have to rely on IDE completion or copy/paste to input this, not being familiar with chinese input methods. It would also make it trickier to compare identifiers and make sure that it makes sense.

I'm not sure it's easier with the super-large English name

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#144
This is a joke right? Please explain if not. Why wouldn’t you just name the variable relationship (or CNRelationship to adhere to nonsensical globals) and abstract the method for getting there to other logic?

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#145

Earlier quoted context omitted.

Why on earth would someone do bug fixes for free for a corporation that has cash reserves of $250 billion but is too stingy to pay for quality control?

Because otherwise thousands of developers will have to see that typo for the next ten years.

Like "Referer" :-) https://en.wikipedia.org/wiki/HTTP_referer#Etymology

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#146
post #137

I can see why this is needed. English has very broad words for relatives like "grandfather" or "aunt". Most languages have more specific words, especially Chinese where there are separate words for fathers or mothers side, older or younger and sibling or siblings spouse. You also often use these relation words rather than their names when referring to a relatives. If this code was in Chinese, they would all be short…

Is there a notion in linguistics of languages being more "modular", i.e. tacking on details like this through additional words, versus having more and more specific words to cover these cases? Coming from my native German, I am very much used to the former, so I always find it interesting to see how different other languages are structured sometimes.

Not quite the same thing, but languages (like German) that build up words for complex concepts by forming big words out of little ones are called agglutinative[1].

[1] https://en.wikipedia.org/wiki/Agglutinative_language

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#147

Why is everyone assuming this is about Chinese??? CN is the class prefix for the Contacts.framework library, like every other Apple API. For example: CoreLocation: CL (CLLocation) SpriteKit: SK (SKScene) CloudKit: CK (CKRecord) CoreVideo: CV (CVBuffer) LocalAuthentication: LA (LAContext) So on and so forth...

> Why is everyone assuming this is about Chinese???

Because the Chinese kinship system has a specific term for the relationship described by this constant.

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#148

Why is everyone assuming this is about Chinese??? CN is the class prefix for the Contacts.framework library, like every other Apple API. For example: CoreLocation: CL (CLLocation) SpriteKit: SK (SKScene) CloudKit: CK (CKRecord) CoreVideo: CV (CVBuffer) LocalAuthentication: LA (LAContext) So on and so forth...

It's not about the "CN" bit. People are talking about why the variable exists at all. Essentially the reason being ventured is that that relationship has a specific name and meaning in Chinese with no English equivalent beyond an exacting familial definition. Imagine trying to express "grandfather" in a language that doesn't have the concept. You might end up with "father's father."

(I know nothing about Chinese. Just reporting what's been said elsewhere.)

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#150

Earlier quoted context omitted.

And off by one errors

If only there were 1 based PLs.

HyperTalk and AppleScript. And I think in old versions of Visual Basic it was common to use 1-based arrays (although you could set the range to anything)
Post reply on HN