Live data from Hacker News

CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

developer.apple.com

41–50 of 188 posts

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#41

“There are only two hard things in Computer Science: cache invalidation and naming things.” [1] [1] https://martinfowler.com/bliki/TwoHardThings.html

And off by one errors

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#44
I'm grateful that Apple at least prefixed this. IIRC, between iOS 11 and 12, Apple added a Contact class somewhere within their standard set of frameworks. I was maintaining an app that used CoreData as a store and did not have prefixed Core Data entity names. And of course it had its own Contact class.

Long story short, I started building against the newer SDK and the app started crashing in the most oblique way possible. Prefixing the entity and class name solved the problem, but I only stumbled on that through a combination of luck, intuition, and half a day of banging my head against a wall.

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#45

“There are only two hard things in Computer Science: cache invalidation and naming things.” [1] [1] https://martinfowler.com/bliki/TwoHardThings.html

And off by one errors

If only there were 1 based PLs.

Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter

#48
post #32
post #6

表姐, in case you were wondering.

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.

Post reply on HN