Earlier quoted context omitted.
And off by one errors
If only there were 1 based PLs.
CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
51–60 of 188 posts
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#52Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#53Earlier quoted context omitted.
Those aren’t automatic, though.
HN already supports title edits, so it's simpler than changing the CSS, and it's easier to read because the breaking is on the internal word boundaries. Here's the title with the zero-width spaces added: CN Label Contact Relation Elder Cousin Mothers Siblings Daughter Or Fathers Sisters Daughter EDIT: HN strips zero-width spaces and replaces them with normal spaces, so I can't post it here.
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#54Earlier quoted context omitted.
The "CN" is just the prefix for the Contacts framework, it doesn't refer to Chinese
表姐 means older female cousin of a different surname. If surnames are always passed down via the father that implies an elder cousin who is either your mother’s sibling’s daughter or your father’s sister’s daughter.
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#55Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#56At first glance this looked like a code smell, but after some reflection I can't think of a cleaner, more readable way to uniquely identify each possible relationship -- especially in a strongly-typed language with an IDE. Here's the full list: https://developer.apple.com/documentation/contacts/contacts_...
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#57Earlier quoted context omitted.
Exactly... Could it not just have been named CNContactLabelRelation表姐 ?
Is Chinese the only language with this relationship? Also, identifiers in Apple frameworks are always ASCII.
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#58Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#59Is this just one of those exceptional cases when having a strict variable naming convention doesn't work out?
What else would you name it?
Still easier to understand than this monstrosity, even for those who don’t speak Chinese (assuming they can google the documentation).
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#60At first glance this looked like a code smell, but after some reflection I can't think of a cleaner, more readable way to uniquely identify each possible relationship -- especially in a strongly-typed language with an IDE. Here's the full list: https://developer.apple.com/documentation/contacts/contacts_...