Re:jQuery "Genealogy" plugin
by iaskwhy on Wednesday June 29, 2011 @05:20AM
(#2708847)
Read this in a funny way but I really hope I never get one project done with this, I am so bad at understanding family relations, I struggle to remember what a niece or nephew is, what's the relation name of my brother's wife, etc.
Re:jQuery "Genealogy" plugin
by jeresig on Wednesday June 29, 2011 @01:48AM
(#2708551)
Hilarious - nice job Ben! I was bemusing in the Khan Academy chat the other day that I always thought it'd be hilarious (although, useful) to have a .uncle() or .aunt() method (for getting .parent().siblings()). Quite amused that Ben put the effort into making this happen.
Re:jQuery "Genealogy" plugin
by jarin on Tuesday June 28, 2011 @11:35PM
(#2708313)
While this definitely does make things more concise, does it make things clearer? I've never had to deal with overly complex hierarchies like that in JS, so I'm not sure.
Re:jQuery "Genealogy" plugin
by spicyj on Wednesday June 29, 2011 @12:04AM
(#2708357)
As the opening paragraph suggests (and my cough sibling cough comment says as well), I wrote this mostly just for fun but it could be used in an actual project as well.
Also, peruse means to pore over meticulously, not glance over.
A cursory examination is not a thorough one.
I don't think it's ready for production anyway until it has el.creepyUncle() and el.nieceWithInappropriateFacebookPhotos()
(Maybe if I saw the code, I could actually keep straight how those more distant relations work...)