Skip to main content

Digital Trends may earn a commission when you buy through links on our site. Why trust us?

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.

Editors' Recommendations

Keith Nelson Jr.
Former Digital Trends Contributor
Keith Nelson Jr is a music/tech journalist making big pictures by connecting dots. Born and raised in Brooklyn, NY he…
Best gaming laptop deals: Razer, Alienware, MSI, and more
Razer Blade 17 angled view showing display and left side.

There has been a huge boom in gaming laptops in the past few years; once they were bulky, expensive, and not that good, we now have thin and lightweight configurations with lots of power. We're also seeing more and more powerful GPUs in gaming laptops, although it's important to note that even if laptop GPUs have the same name as desktop GPUs, they often aren't the same. Even so, having a laptop RTX 4070 or 4080, which are one step down from their desktop counterparts, are leaps and bounds better than a few years ago when we'd have to rely on the processor to do all the graphical lifting.
There's a lot of variety to pick from, and the market is saturated with deals, so to help you along, we've collected some of our favorite gaming laptop deals below. We've broken it up between Intel CPUs and AMD CPUs so you can pick the processor family you feel most comfortable with.

Best Gaming Laptop Deals (Intel)

Read more
Best Chromebook deals: Get an HP Chromebook for $190 and more
Front view of Samsung Galaxy Chromebook over blue background.

If the laptop deals that you're seeing are still beyond your budget, you may want to check out Chromebooks, which are generally more affordable alternatives to Windows-based machines. Powered by Chrome OS, these devices are capable of running fast and smooth despite low-end components because of their operating system's web-based nature, so you don't have to install much software that slows down laptops. While a few Chromebooks are pushing the envelope with top-tier specifications, most of the Chromebook deals that we've gathered here are on the cheaper side -- if you see one that you like, proceed with the purchase immediately because there's no telling how much time is remaining on any of them.
Best Chromebook deals

While Chromebooks come in all shapes and sizes, one thing that they all have in common is the ease of using Chrome OS. The operating system grants quick access to Google's wide network of services, including Google Docs where you can create your reports, Google Play Store where you can download apps, and Google Drive where you can save your files. The best Chromebooks also promise decent displays and solid build quality, which make them excellent choices as work or school companions. Check out our favorite Chromebook deals below for the top bargains online.

Read more
How to convert MOV files to MP4
A woman using a MacBook Pro in a studio.

Today, most people consider MOV files to be an outdated format, and since it's more convenient to use MP4 files, you'll want to know how to convert MOV to MP4. If you still have an extensive collection of old MOV files taking up space on your Mac, you can convert them into an MP4 file format with a little bit of patience by following these step-by-step instructions.

Read more