Code in formation: New York City teachers are using Beyonce to learn JavaScript

bey script beyonce code computer science
ANDRE DURAO/Shutterstock
Who would be better at teaching people how to get code in formation than Beyoncé? That’s what one educator asked herself when she was looking for a way to teach JavaScript.

While the singing superstar is not directly teaching people how to code, computer science educator Emily Thomforde is teaching Bey Script, a computational metaphor she developed that uses Beyoncé to teach nontechnical educators such as English and history teachers in New York City how to use JavaScript and teach it to their students. The three-session course is held throughout the year.

In computer science, a “metaphor” helps a user understand how certain computational procedures work by using an entity the user is familiar with. “If you imagine Beyoncé were an object we’re using in JavaScript, her ‘methods’ are things that she can do, like sing and dance,” Thomforde told Motherboard. “I relate all these arcane, technical, traditionally geeky things into ways my audience can relate to, and we found Beyonce was super-relatable.”

In the course, Thomforde teaches Javascript concepts such as “Properties” using things everyone can easily visualize, like Beyonce’s internationally revered and illusive hair. “Now we have ‘beyonce.hair’, since hair is a property of Beyoncé. What’s a thing about her hair that can change? Now we have ‘beyonce.hair.color’. Then we can set it equal to something: ‘beyonce.hair.color=red.'”

The Bey Script course is part of the New York City Foundation for Computer Science Education’s (CSNYC) 10-year, $80 million initative to provide every public school student with computer science education. Thomforde is currently writing the curriculum for Vidcode, an online platform that teaches teenagers to code. In May, Vidcode collaborated with the New York City Department of Education to host a hackathon event where 150 kids were tasked with using Vidcode to learn how to use Javascript to make a video that helps abandoned animals currently living in shelters.

With President Obama pledging $4 billion to make sure every kid across America gets computer science education, it may not be long before kids are making Lemonade on their computers.

Gaming

New ‘Battlefield V’ patch gives Nvidia’s ray tracing support a chance to shine

‘Battlefield V’ is the first game to use Nvidia’s ray tracing support, now available with the RTX 2080 and 2080 Ti graphics cards. The feature can, in an ideal scenario, make the game look better, but the performance hit may not be…
Deals

These Raspberry Pi 3 bundles will cover everyone, from coders to gamers

The Raspberry Pi 3 is a low-budget computing platform capable of doing just about anything. We rounded up a handful of the best Raspberry Pi 3 bundles to get you started on a variety of DIY projects.
Movies & TV

The best shows on Netflix, from 'Haunting of Hill House’ to ‘Twilight Zone’

Looking for a new show to binge? Lucky for you, we've curated a list of the best shows on Netflix, whether you're a fan of outlandish anime, dramatic period pieces, or shows that leave you questioning what lies beyond.
Emerging Tech

The 20 best tech toys for kids will make you wish you were 10 again

Looking for the perfect toy or gadget for your child? Thankfully, we've rounded up some of our personal favorite tech toys, including microscopes, computer kits, and a spherical droid from a galaxy far, far away.
Computing

Changing file associations in Windows 10 is quick and easy with these steps

Learning how to change file associations can make editing certain file types much quicker than manually selecting your preferred application every time you open them. Just follow these short steps and you'll be on your way in no time.
Computing

Intel's dedicated GPU is not far off -- here's what we know

Did you hear? Intel is working on a dedicated graphics card. It's called Arctic Sound and though we don't know a lot about it, we know that Intel has some ex-AMD Radeon graphics engineers developing it.
Computing

Edit, sign, append, and save with six of the best PDF editors

There are plenty of PDF editors to be had online, and though the selection is robust, finding a solid solution with the tools you need can be tough. Here, we've rounded up best PDF editors, so you can edit no matter your budget or OS.
Computing

How to easily record your laptop screen with apps you already have

Learning how to record your computer screen shouldn't be a challenge. Lucky for you, our comprehensive guide lays out how to do so using a host of methods, including both free and premium utilities, in both MacOS and Windows 10.
Computing

From beautiful to downright weird, check out these great dual monitor wallpapers

Multitasking with two monitors doesn't necessarily mean you need to split your screens with two separate wallpapers. From beautiful to downright weird, here are our top sites for finding the best dual monitor wallpapers for you.
Computing

Capture screenshots with print screen and a few alternative methods

Capturing a screenshot of your desktop is easier than you might think, and it's the kind of thing you'll probably need to know. Here's how to perform the important function in just a few, easy steps.
Computing

These cheap laptops will make you wonder why anyone spends more

Looking for a budget notebook for school, work, or play? The best budget laptops, including our top pick -- the Asus ZenBook UX331UA -- will get the job done without digging too deeply into your pockets.
Mobile

Vanquish lag for good with the best routers for gaming

Finding the best routers for gaming is no easy task. With so many out there, how do you know which to pick? We've looked at the many options available and put together a list of our lag-free favorites.
Computing

Stop your PC's vow of silence with these tips on how to fix audio problems

Sound problems got you down? Don't worry, with a few tweaks and tricks we'll get your sound card functioning as it should, and you listening to your favorite tunes and in-game audio in no time.
Product Review

It's not the sharpest tool, but the Surface Go does it all for $400

Microsoft has launched the $400 Surface Go to take on both the iPad and Chromebooks, all without compromising its core focus on productivity. Does it work as both a tablet and a PC?