11 ms·
I see your function with many parameters and I raise you this constant: CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter http
by spondyl 5y ago
I see your function with many parameters and I raise you this constant: CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter
https://developer.apple.com/documentation/contacts/cnlabelcontactrelationyoungercousinmotherssiblingsdaughterorfatherssistersdaughter https://developer.apple.com/documentation/contacts/cnlabelco...
- busymom0 5y agoI posted that on HN few months ago and it broke the layout of HN: https://news.ycombinator.com/item?id=28712667 https://news.ycombinator.com/item?id=28712667
- livinglist 5y agothis is really interesting lol
- jonnrb 5y agoDo they have one for father's brother's nephew's cousin's former roommate?
- phyrex 5y agoThat’s a specific relationship with its own dedicated name in Chinese
- twic 5y agoWhat is this relationship? And what does "younger" mean here - younger than the contact?
- ronyclau 5y agoI'm guessing this is 表妹. In English, your male siblings are "brothers", and female siblings are "sisters", regardless of age. In Chinese, we differentiate between younger and elder siblings. Your elder brother is 哥哥, younger brother is 弟弟; elder sister is 姐姐/姊姊, and younger sister is 妹妹.
- masklinn 5y agoAlso don’t chinese family relationships distinguish beetween maternal and paternal-side relationships? E.g. a cousin on your father’s side is called / qualified / described differently than a cousin on your mother’s side?
- dapeng 5y agocorrect, father side is prefixed with 堂 mother side is prefixed with 表 堂哥 male cousin older than me 堂弟 male cousin younger than me 堂姐 female cousin older than me 堂妹 female cousin younger than me 表哥 male cousin older than me 表弟 male cousin younger than me 表姐 female cousin older than me 表妹 female cousin younger than me
- wangweij 5y agoAs I understand, only children of father's brothers can be prefixed with 堂, because they have the same last name and are traditionally considered to be in the same house. All others, including children of father's sisters, are all prefixed with 表.
- jhgb 5y agoIt would seem reasonable to me to use the latinized form of the Chinese word as part of the identifier instead of the awful descriptive identifier.
- karatinversion 5y agoI've seen this explained before; from memory, it's a type of cousin, with specifiers: Chinese has distinct words for relatives of the same generation (siblings, cousins) who are older or younger than oneself. Like "big brother" and "little brother" in English, but you always include the big/little part. "Younger" specifies that this cousin is younger than the person whose contacts book this is. Female - Chinese has separate words for male and female cousins The rest of the word salad specifies a relationship that is approximated by answering the question "is her (maiden) surname the same as my (maiden) surname?" in the negative — either she is a daugher of one of my mother's siblings, and doesn't share my surname because I have my father's surname, or she is my father's sister's daugher, and thus has her father's surname, which again is not the same as mine.
- deleted 5y ago[deleted]
- m_st 5y agoIsn't that "Kleincousin" in German? "Younger" could certainly match the "Klein" part. That would be the daughter of your cousins, so there's surely a male variant too.
- enzo1982 5y agoI'm German and I never heard the term "Kleincousin". According to Wikipedia [0] it seems to be used regionally to refer to 2nd degree cousins (which I would call "Großcousin"). Anyway, "Kleincousin" and "Großcousin" don't imply the age of the cousin, but a degree of relationship (with regional differences to what is actually meant). To refer to a younger cousin, I would just say "jüngerer Cousin". "kleiner Cousin" may be possible too (like "kleiner Bruder" for a younger Brother), but it sounds a bit like childs talk and it may not be immediately clear to everyone what is meant. [0] https://de.wikipedia.org/wiki/Verwandtschaftsbeziehung#Cousins_und_Cousinen_n._Grades https://de.wikipedia.org/wiki/Verwandtschaftsbeziehung#Cousi...
- karmasimida 5y ago表妹(mother's side) or 堂妹(father's side)
- gadders 5y agoFor other items that native English speakers may not know - I believe in some Indian languages there are different nouns for your uncle and aunt, depending if they are on your father's or mother's side.
- MagnumOpus 5y agoMany other languages do. I think all Chinese languages do, but you don't need to go that far. Even German/Dutch/Frisian/Swiss do have it, although nowadays few use them and many people don't even know. (Father's siblings are Onkel/Tante cognate to uncle/auntie, but Mother's siblings are Oheim/Ohm/Öhi if male and Muhme/Muoike if female.)
- m_eiman 5y agoI like the Swedish variant of this. It's basically describing the relationsship in terms of closes family ties, so maternal grandfather is "morfar" ie "mother father". Same principle applies to a bunch of relationships: farmor - father's mother farfar - father's father faster - father's sister (abbreviated from "far syster") moster - mother's sistem (abbreviated) farbror - father's brother I like to extend the basic set of these to older generations, so instead of "my mormor's father" it'd be "mormorfar". Very practical!
- Terry_Roll 5y agoIts interesting how different languages have evolved, so Inuit have many words for snow because this highlights area's of concern or importance for them. So the fact these language differentiations exist in Indian and Chinese language, highlights an area of concern or importance for them. In Iceland, surnames use the fathers firstname and sson for son and dotir for daughter, to highlight the relationship in an otherwise small community. Whether that cultural habit is to reduce the incidence of inbreeding I've yet to find out, but it makes me wonder. History and culture gives away a lot of metadata.
- tonguez 5y ago“ Whether that cultural habit is to reduce the incidence of inbreeding I've yet to find out, but it makes me wonder.” That’s racist. “The only way these people are going to be able to stop fucking their cousins as if they come up with a naming system that makes it extremely clear who is related to who.” There are probably other explanations other than being inbred as to why they do this. Like how some people go by Junior or Senior. Do you think that’s to prevent inbreeding also?
- ddoolin 5y agoYes, I believe these relationships also have their own names in Korean, if not lifted directly from Chinese most likely.
- qwerty456127 5y agoSounds like something probably inappropriate X-]
- victor9000 5y agoIf your class is called FooOrBar then you are bad at naming things.
- 317070 5y agoNot necessarily. If your code is in English, and your category does not exist in English (like this Chinese word described here), then I do not see how to do better than this salad. How would you have named this class?
- macleginn 5y agoOne option (not necessarily a better one) is to use standard notation for kin relationships that basically show how to traverse the tree starting from ego: https://www.kintip.net/index.php?option=com_content&view=article&id=35&Itemid=202&limitstart=3 https://www.kintip.net/index.php?option=com_content&view=art...
- Jcowell 5y agoFamily trees are not trees but graphs.
- malka 5y agoacyclic graphs, hopefully
- dankent 5y agoSee the German TV show Dark for in interesting take on what could happen if they somehow became cyclic.
- mrlonglong 5y agoSeconded! Quite bizzare it was, a fun bingeing session a few years back.
- fnord77 5y agoanti-pattern detected...
- deleted 5y ago[deleted]
- AnimalMuppet 5y agoOnly one?
- taspeotis 5y agoImagine the abstract bean proxy factory required to create an instance of that!
- orthoxerox 5y agoFireWomenAndDangerousThingsNounClass
- happytoexplain 5y agoA more brief, but less objective, way of saying this is "young female cousin via female parent". As others have pointed out, the Chinese care to track this relationship.
- Anon1096 5y agoIt's about being younger than you, not merely being young.
- pc86 5y agoAnd probably "via a female parent" as your father's sister's daughter isn't through your female parent.
- thaumasiotes 5y ago> A more brief, but less objective, way of saying this is It really isn't complex. 妹 - female, same generation, younger than you. 表 - cousin outside your family.
- stonogo 5y ago"cousin outside your family" is an oxymoron in most of the western world. getting this concept accross is why the constant is so awkwardly worded.
- thaumasiotes 5y ago> "cousin outside your family" is an oxymoron in most of the western world It's a tangent, but I would actually argue that in the Western world, all cousins are outside your family and the concept of a cousin belonging to the same family as you is the unthinkable one.
- gvx 5y agoIn the Netherlands at least, we use "familie" to refer to the extended family. To talk about the immediate family or one's household, we would use "gezin" (Although I think some parts of the Netherlands may use "familie" for the nuclear family as well? Not where I live, though.) We don't generally distinguish between matrilineally and patrilineally related family, which is what the "cousin outside the family" was originally about.
- lmilcin 5y agoInevitably, when I review code like that, I immediately suspect the person who wrote it is missing some fundamental programming concept. I had developer write something like that once and I learned she does not know how to write loops.
- dudeinjapan 5y agoI thought this was a Spaceballs reference.
- dudeinjapan 5y agoI thought this was a Spaceballs reference. https://www.youtube.com/watch?v=riqXhieWU3M https://www.youtube.com/watch?v=riqXhieWU3M
- chris_wot 5y agoOh yeah, what about this Java class? HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor It inherits the following methods from class org.aspectj.weaver.patterns.AbstractPatternNodeVisitor: visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit https://www.javadoc.io/doc/org.aspectj/aspectjweaver/1.8.10/org/aspectj/weaver/patterns/HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor.html https://www.javadoc.io/doc/org.aspectj/aspectjweaver/1.8.10/...
- rtsil 5y agoI like its boolean method wellHasItThen(). It pretty much describes the mood of the developer at the time of writing.
- glxxyz 5y agoThis video summarizes the family relationships that these variables represent: https://www.youtube.com/watch?v=nCFRoILS1jY https://www.youtube.com/watch?v=nCFRoILS1jY People really do use these relation names instead of given name. Everyone in the family using different names, which is confusing to watch as an outsider as you can't learn their given names. It would be like watching everyone else in a family refer to a single person as "sister", "cousin", "niece", "aunt" etc. No-one uses their given name so you as an outsider aren't sure what to call them.
- chrischen 5y agoOh wow it’s even longer. For some reason on iOS mobile it cuts off your text here.
- dang 5y agoPast discussions: CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaught - https://news.ycombinator.com/item?id=28712667 https://news.ycombinator.com/item?id=28712667 - Sept 2021 (132 comments) CNLabelContactRelation​YoungerCousin​MothersSiblingsDaughter​OrFathersSistersDaughter - https://news.ycombinator.com/item?id=20341855 https://news.ycombinator.com/item?id=20341855 - July 2019 (176 comments)