“There are only two hard things in Computer Science: cache invalidation and naming things.” [1] [1] https://martinfowler.com/bliki/TwoHardThings.html
CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
41–50 of 188 posts
And off by one errors
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#42Help, this post is breaking Hacker News mobile because the title is too long without spaces.
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#43That label is so long it’s breaking the HN front page layout for me on mobile.
[deleted]
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#44I'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
#45Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#46There’s also CNLabelContactRelationColleauge. Oops :)
https://developer.apple.com/documentation/contacts/cnlabelco...
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#47NativLang did a video about kinship systems that is relevant here: https://www.youtube.com/watch?v=YOi2c2d3_Lk
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#48Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#49Is this just one of those exceptional cases when having a strict variable naming convention doesn't work out?
What else would you name it?
Re: CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter
#50Winforms has some gems:
DataGridViewColumnDividerDoubleClickEventArgs
ListViewVirtualItemsSelectionRangeChangedEventHandler