Learn Recursion from 'The Good Place'
Dec. 19, 2017
It's no surprise that NBC's 'The Good Place' was just renewed for it's third season; Kristen
Bell is so forkin' funny and this whole "Good Place/ Bad Place" twist needs some further explanation. But we're not here to talk theories or spoilers, rather, we're looking at the shows major plot line and translating it into code, specifically a process known as 'recursion'.
Recursion is a computer science method used in many programming languages, in which a function can call itself.
While her blog post does have spoilers- Carol Scott breaks this down step by step for you in her piece, "How 'The Good Place' Is A Great Example of Recursion." We'll do a quick synopsis below, but you really should check out the full version on her blog!
There are many times in the show where Michael (Ted Danson), the Head Demon, chooses to 'reboot' The Good Place after something "bad" happens, hoping to wipe the many characters' memories.
This process would continue in perfect harmony for eternity, however, everyone's favorite character, Janet (D'Arcy Carden) changes things.
Every time Janet is rebooted, she becomes more intuitive, unlike the other characters who maintain the same knowledge/ deduction capacity, which means Janet serves as a multiplier for the other characters.
This means, no matter how many times the other characters are rebooted, each new reboot produces a new Janet. (In computer science terms, you would say Janet is what makes the recursive change its state.)
(Janet + 1)
(Janet + 1)+1I know we're all dying to see how how this function show ends - but we'll have to wait until January to find out!
- Girls Who Code -- Join 40,000 Girls Who Code today! ›
- Girls Who Code - Home | Facebook ›
- About Us - Girls Who Code ›
- Girls Who Code (@GirlsWhoCode) | Twitter ›
- Girls Who Code - Wikipedia ›
- Women Who Code: Welcome ›
- Women Who Code (@WomenWhoCode) | Twitter ›
- Jobs | Women Who Code ›
- Women Who Code SF (San Francisco, CA) | Meetup ›
- About Us | Women Who Code ›
- Women Who Code - Home | Facebook ›
- Women Who Code – Medium ›
- Women Who Code | LinkedIn ›
- Women Who Code - Wikipedia ›
- Women Who Code HK ›
Balancing two full-time jobs — as a mom and Director of Revenue Operations — has never been easy. Add to that the stress of the holiday season and a global pandemic, and your brain may well feel ready to explode.
If you're feeling overwhelmed these days, you're not alone. Hear how Ping Del Giudice, Director of Revenue Operations at Chainalysis and mother of two, has been coping amidst the chaos. (Spoiler alert: she's perfected her multitasking skills.)
What are your best work-life integration tips during this challenging time? Let us know in the comments.
Learn more about Chainalysis' culture here!
From Puzzle Solver to Data Detective: Rockstar Director of Analytics Caroline Peika Talks Data Analytics in the Gaming Industry
Caroline Peika has loved puzzles—and mystery novels—for just about as long as she can remember. Both are extensions of the same core interest: problem solving.