×
Create a Free Profile on PowerToFly
Exclusive event invitations with hiring managers, live chats with female thought leaders and the latest remote, flexible and in office roles at companies committed to creating more diverse and inclusive workplaces.
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

Business Casual for Women - Summer Edition

With Instagram Feeds From Your Favorite Style Influencers

Is anyone else holding their breath for summer to arrive? I know I can't wait to dust off my summer wardrobe.

As the seasons change, we have an opportunity to switch things up and have some fun liberating our personal style! But business casual for women in the summer can get confusing. Men can rely on the standard khakis plus polo shirt summer work vibe, but for women it's not so straightforward. Even less so when you need an outfit that works just as well during a sweaty morning commute as it does in a freezing office with the thermostat set way too low.

So how can you create a summer look that's breathable, comfortable, professional, and modern? I'm here to help you navigate those questionable waters!

READ MORE Show less
Inspiration

The Problem With "Boys Will Be Boys"

How It Ends Up Hurting Women And Men

The phrase "boys will be boys" makes my blood boil. But I realized when I sat down to write this piece that I didn't know exactly why.

READ MORE Show less

Women in Finance: Help Us Understand the Gaps by Completing This 5-Minute Survey

Although nearly 50% of employees in the finance industry are women, 85% of finance executives are men.

We want to learn from the experiences of women working in the industry - and the perspectives of women working outside it - to help finance leaders make real strides towards gender parity at all levels.

Have 5 minutes to help? Share your opinions in the anonymous survey below. (You can access it here if it doesn't load.)


Create your own user feedback survey

What Is a Competitive Salary - And How To Negotiate One

You see an ad for your dream job. And by some miracle, you actually have all 20 of the preferred qualifications!

So you hurriedly scroll to the bottom of the publication to see what the salary range and benefits are… only to find that "competitive salary" is all that's listed.

What the heck does competitive salary actually mean?!

READ MORE Show less
Loading...
© Rebelmouse 2019