Skip to main content
  1. Home
  2. Computing
  3. Emerging Tech
  4. Music
  5. News

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

Add as a preferred source on Google

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 Staff Writer, Entertainment
Keith Nelson Jr is a music/tech journalist making big pictures by connecting dots. Born and raised in Brooklyn, NY he…
This app turns the iPhone Duo into a pocket-sized Mac
Headroom uses macOS's built-in Screen Sharing to let users control their Mac from the foldable iPhone, without installing additional software on the computer.
Headroom App on Apple iPhone Duo controlling a Mac

The iPhone Duo has barely been out for a day, and someone's already found a way to run their Mac on it. Well, sort of. Headroom, a remote desktop app from MusicFlow, lets users control their Mac from Apple's new foldable phone, with an interface that adapts as the device opens, closes, and folds in half. Think of it as turning a pocket-sized phone into a miniature MacBook, minus the actual MacBook.

Headroom turns the iPhone Duo into a mini Mac

Read more
AI helped uncover a hidden PHP flaw. Now websites worldwide are facing millions of hacking attempts.
A critical PHP vulnerability has websites worldwide racing to install security patches.
php-flaw-websites-under-attack

PHP is the programming language behind roughly 70% of websites, and it just ran into a serious problem. Security researchers used AI to uncover a critical flaw called PHP2Shell, which could let attackers take over web servers, steal data, or disrupt online services. Since the discovery, websites worldwide have been hit with millions of attempts to exploit it.

Hackers moved fast once the flaw went public. Cloudflare CEO Matthew Prince said the attack attempts jumped from tens of thousands within 45 minutes to millions overnight, The Guardian reports.

Read more
Microsoft has begun rolling out Copilot Code for building apps with natural language
The workplace-focused vibe coding tool can pull context from emails, documents, meetings, and chats.
Microsoft Copilot code logo

Microsoft introduced Code last month as one of the three core parts of its revamped Copilot app. The app was pitched as an easy-to-use coding agent that lets users describe what they want to build in natural language, like an app, a tracker, a dashboard, an automation, or a workflow, and Copilot would build it for them.

Essentially, it's a workplace-focused vibe-coding app that turns existing work into a functional app, and Microsoft has begun rolling it out through the Frontier program.

Read more