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…
Microsoft Edge’s latest Chrome-inspired feature could tame your tab chaos
A small change being tested in Edge Canary could make managing a messy collection of vertical tabs considerably easier.
Microsoft Edge illustration official

Microsoft Edge and Google Chrome have been borrowing ideas from each other for years, and Microsoft appears to have spotted another Chrome feature worth bringing over. As Windows Report has spotted, a new Tab Groups button is starting to appear in Edge Canary for people using vertical tabs. Instead of hunting through your open tabs to find a particular group, the new button provides one place to see the groups you've already created or start a new one.

It isn't an entirely new feature for Edge. Microsoft's browser has supported Tab Groups for some time, including when using vertical tabs. What's changing is how easy those groups are to get to. That might sound like a tiny interface tweak, but anyone who routinely ends up with dozens of tabs open will probably understand why it could be useful.

Read more
Dell 14S (DS14260) review: Easy to love, but Dell already has a better option for you
A stylish, mid-priced, mid-spec laptop for freelancers and road warriors who appreciate good design and a great display.
Angled top view of Dell 14S (DS14260)

See at Dell

Quick Take

Read more
ChatGPT wants to learn your writing style so it can write more like you
Your emails, documents, and messages could give ChatGPT a better sense of how you communicate.
ChatGPT on iPhone

I have lost count of how many times I have pasted my own old emails into a chatbot just to get it to sound like me. If OpenAI has its way, that annoying step might disappear soon.

The company is testing a new feature called Writing Style inside ChatGPT, and it does something clever. Instead of asking you to explain your tone every single time, it looks at how you already write across your connected apps and mimics it.

Read more