GET EMAIL UPDATES FROM POWERTOFLY
By signing up you accept the Terms of Service and Privacy Policy
BROWSE CATEGORIES
GET EMAIL UPDATES FROM POWERTOFLY
Tech Talk

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.

When translated to JavaScript, a function is written so whenever The Good Place is called to be rebooted, each characters knowledge/deduction capacity multiplies together, and then the entire function reboots itself once again.

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)+1

I know we're all dying to see how how this function show ends - but we'll have to wait until January to find out!
popular

Best Work-From-Home Companies 2022

Every year, PowerToFly creates a list of the best work-from-home companies. Now that over half of the U.S. workforce is remote, compiling that list was a bit more challenging.

This year, we prioritized selecting companies that are remote-friendly—meaning they have both remote and in-person roles—but they have made long-term commitments to hiring and supporting employees who choose to work from home; and we think they have the perks, values, and organizational framework to allow all employees to flourish in their careers, regardless of location.

READ MORE AND DISCUSS Show less
popular

12 (Inclusive) Holiday Greetings to Use This December

We gathered a year’s worth of holidays in our Diversity and Inclusion Calendar, and here’s a summary of key holidays coming up this month and what you can say to teammates who celebrate them (in ways that are appropriate and not generic!):

Hanukkah

For Hanukkah, which is celebrated from November 28 to December 6:

READ MORE AND DISCUSS Show less
National Security Agency (NSA)

How This Former Teacher Keeps Learning at NSA — And Helps Others Do the Same

Christina S., Deputy Director of the Computer Science Skill Community at the National Security Agency, is a computer scientist by trade and an educator at heart.

Whether she’s volunteering, providing mentorship, or spending time with her husband and two daughters, Christina finds ways to infuse learning in every encounter.

READ MORE AND DISCUSS Show less
Capco

4 Tips that Helped Capco Partner So Jene Kim Transition from Banking to Consulting

So Jene Kim isn’t afraid of change.

Some of the shifts she’s made in her life have been major ones: English major to Wall Streeter. New York to Hong Kong. Banking to consulting.

READ MORE AND DISCUSS Show less
Webinars

Unlocking Your Team’s Potential Through Inclusive Leadership

The teams that we are working with in 2021 are more diverse than ever. We all have unique values, beliefs, experiences, backgrounds, and behaviors. Our diversity is a strength, and having unique talent and perspectives drives organizational and individual performance forward. However, the real benefits of diversity like innovation, creativity, and financial gain can only be realized in an inclusive environment where individuals feel like they are valued and belong.

How do you set your team up to thrive in an environment where they feel like they belong?

READ MORE AND DISCUSS Show less
© Rebelmouse 2020