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…
GeForce Now introduces a 100-hour monthly playtime cap
nvidia geforce now ultimate halfway across country 1

Nvidia’s GeForce Now is undergoing significant changes. Its Priority membership has been rebranded as the "Performance" tier, bringing an enhanced gaming experience at the same price. Performance members can now stream games at up to 1440p resolution and in ultrawide formats, with settings saved across sessions. This upgrade aligns the Performance tier closer to Ultimate, the highest tier, which supports 4K streaming and high refresh rates through GeForce RTX 4080-powered servers.

One of the most notable changes coming in 2025 is the introduction of a 100-hour monthly playtime cap for both Performance and Ultimate members, aimed at managing Nvidia’s cloud infrastructure. Nvidia also mentions in its blog post that this limit will affect only a small percentage of its player base, with over 94% of users typically playing well within this timeframe. To offer flexibility, Nvidia will allow up to 15 unused hours to roll over to the following month. Users who reach their limit can purchase extra playtime, with additional 15-hour blocks available at $2.99 for Performance members and $5.99 for Ultimate members.

Read more
These AI features might actually make me use Paint and Notepad again
Windows 11 logo on a laptop.

Your everyday Windows apps are going to get a whole lot smarter. As Microsoft mentions in its Windows Insiders Blog, using the Windows 11 Paint and Notepad app will improve thanks to new AI features that the tech giant is adding to make it more helpful for users. It's still in early testing, and there is no official information about when or if it'll roll out to all users.

For starters, the Notepad app for Windows 11, after getting an update that added autocorrect and spellcheck, is now getting a new Rewrite ability that helps you rewrite highlighted text following any instructions you add.

Read more
Best Samsung Galaxy deals: S24, Buds, Watches and more
The Galaxy Z Fold 4's Cover Screen.

Samsung’s Galaxy lineup is one of the more popular tech lineups on the market. Among it you’ll find some of the best headphone deals, best smartwatch deals, best tablet deals, and best phone deals available. Whatever piece of tech you may have your eye on Samsung likely has within the Galaxy lineup. These devices also see pretty significant discounts pretty regularly, so we thought we’d round up all of the best Samsung Galaxy deals to make finding the right Samsung Galaxy model for you more convenient. Read onward for all of the details on how to save, and if you’d like to shop more specifically within the Galaxy lineup you can start with Samsung Galaxy Z Flip 5 deals, Samsung Galaxy Z Fold 5 deals, Samsung Galaxy Buds deals, or Samsung tablet deals.
Samsung Galaxy Buds Pro 2 — $107 $199 46% off

The Galaxy Buds 2 Pro are the high-end model of Samsung’s Galaxy Buds earbuds. They make great competition for the best wireless earbuds even if they don’t make everyone’s list, and with their Intelligent Active Noise-Cancelation technology they compare well with the best noise-canceling headphones. The Galaxy Buds 2 Pro produce high quality audio whether you’re listening to music, watching movies, or talking on the phone, and they pair easily with any Bluetooth device.

Read more