Skip to main content
  1. Home
  2. Computing
  3. Legacy Archives

Obama codes! President kicks off ‘Hour of Code’ by writing some JavaScript

Add as a preferred source on Google

History was made in the U.S. on Tuesday when Barack Obama became the first president to crank out a line of code.

But don’t be mistaken, this wasn’t the American leader flirting with the idea of a post-presidential career in programming, nor was it a man tinkering with the White House’s IT system for a bit of lunchtime fun. This was the U.S. president doing his bit to inspire kids to get involved in computer science.

Recommended Videos

Coder-in-chief

Obama’s stab at programming came on Monday as he launched Code.org‘s annual Computer Science Education Week, a global event aimed at expanding involvement in coding and related fields by increasing accessibility in schools.

At a special gathering at the White House, 20 students from a middle school in Newark, NJ joined the president for an Hour of Code workshop, similar to the ones being held around the world by a host of tech firms and other groups on December 11.

According to Code.org co-founder Hadi Partovi, who was also at the White House to help launch the event, the president completed a tutorial involving the writing of “a few lines of JavaScript” that moved an animation character across the screen.

Mission accomplished, Obama spent some time mingling with the students to see how they were getting on with their own coding exercises.

Encouragement

Speaking in a video posted on YouTube over the weekend, Obama encouraged kids to get involved in Computer Science Education Week.

The president said that “while no one is born a computer scientist, becoming a computer scientist isn’t as scary as it sounds. With hard work, and a little math and science, anyone can do it.”

He went on, “Don’t just consume things, create things. Take an hour to learn more about the technology that touches every part of our lives. That’s how you can prepare yourself with the skills you need for your future. And that’s how you can help prepare our country for the future as well.”

Obama urged both boys and girls to go along to one of the many coding events happening across the country this week, reminding them that the nation is “counting on America’s young people to keep us on the cutting edge.”

[Source: Wired, Code.org]

Trevor Mogg
Contributing Editor
Not so many moons ago, Trevor moved from one tea-loving island nation that drives on the left (Britain) to another (Japan)…
MacBook Air M5 drops $200 as Dell’s 6K monitor goes half price at B&H
A $799.99 Lenovo laptop and a Nikon Z8 bundle round out these four picks for work and photography
bh deal hero

B&H's current deals cover both everyday computing and more specialized upgrades. The MacBook Air M5 leads the selection, alongside a half-price Dell 6K monitor, a less expensive Windows laptop, and a Nikon Z8 bundle for photographers ready to move up.

Apple 13-inch MacBook Air M5 - $1,119 (15% off)

Read more
A hidden network of nudifying tools was found lurking inside harmless looking AI apps
Hundreds of AI apps were found playing innocent while hiding nudifying tools that generates explicit deepfakes.
ai-apps-hiding-nudifying-tools

An AI pet portrait maker or workout app that looks harmless could be hiding nudifying tools. According to a Wired investigation, hundreds of apps on Google's Play Store and Apple's App Store were found disguising themselves as pet photo editor, language tutor, workout coaches and other mundane apps.

Under the right conditions, those ordinary-looking apps quietly switched over to a hidden interface that generated sexually abusive deepfakes. Researchers from AI Forensics uncovered the network, which includes 400+ connected apps and domains.

Read more
Everything You Need in Your First Laptop Without the Luxury Price Tag 
The Dell 15 makes its case that budget laptops do not have to feel cheap, or sluggish.
everything you need in your first laptop without the luxury price tag dell 15 dc15250 stylish narrow bezels

The PC market has never been more diverse, and utterly punishing on the wallet, thanks to the AI boom and resultant price inflation we are seeing in 2026. Most people shopping for a pocket-friendly laptop don’t necessarily care about core counts, clock speeds, or refresh rates. They want something that opens Chrome quickly, plays Netflix without stuttering, and survives a few years of assignments.

For a long time, that was too much to ask. I’ve tested plenty of budget laptops that felt tired out of the box, with plastic that flexed under my palms and fans that roared every time I opened a few tabs. Most of them felt noticeably slower within a year.

Read more