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.

Recommended Videos

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.

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…
This Lenovo ThinkPad is almost $1,800 off today!
A press photo of the ThinkPad X1 Carbon Gen 11.

One of the best laptops for a busy computer-heavy workplace is the Lenovo ThinkPad. For years, this tried and true laptop and 2-in-1 has delivered a fast and reliable Windows experience to many a 9 to 5 go-getter. Processor speed and power evolve year over year, and new features are added to these laptops all the time. This also means you’ll be able to find discounts on older machines, which is precisely what we came across while scouring through Lenovo ThinkPad deals:

Right now, as part of Lenovo’s doorbuster sale, you’ll save $1,800 on the purchase of a brand-new Lenovo ThinkPad X1 Carbon Gen 11 when you order through Lenovo.

Read more
Runway brings precise camera controls to AI videos
Gen-3 alpha advanced camera controls

Content creators will have more control over the look and feel of their AI-generated videos thanks to a new feature set coming to Runway's Gen-3 Alpha model.

Advanced Camera Control is rolling out on Gen-3 Alpha Turbo starting today, the company announced via a post on X (formerly Twitter).

Read more
Score the Dell XPS 15 for less than $1,000 during this sale
Dell XPS 15 9520 front view showing display and keyboard deck.

If you’ve been looking for laptop deals but feel disappointed with the results of your research, we know the pain. Searching for a new PC can take months, especially if you’ve got the time and energy to vet through numerous brands and models. Fortunately, there are a few tried and true PC names, one of which happens to be Dell. We see Dell laptop deals pretty regularly, but this one stopped us in our tracks:

Right now, when you order the Dell XPS 15 Laptop through the manufacturer, you’ll save $300. At full price, this model sells for $1,300.

Read more