Hello World for JavaScript with npm modules in the browser

Ok. So when I started writing JavaScript the world was a very simple place. You’d just open up a html file, write a JavaScript tag, and them boom — you are running JavaScript. <script> console.log(“Hello!”); </script> We’ll things have changed. I haven’t programmed JavaScript regularly in the last few years and I feel like a JavaScript Rip … Continue reading Hello World for JavaScript with npm modules in the browser

Which Percent are You? — The Actual Income Distribution in the United States

There’s been a lot said and written about income and wealth inequality in the United States recently, but most of it refers to he-said-she-said quotes and data and statistics. I thought it was time to actually dive into the primary source data to see what the real story is. And the real story is that … Continue reading Which Percent are You? — The Actual Income Distribution in the United States

Read, Write, Code — Why Computer Science Should be Required in High School

Do you use a computer? I think now the question isn’t if you use a computer—but rather, how many computers you use. The computer or phone you are reading this on, the computer you use for work, or school, the computers in your car, the computers that go into making your favorite movie, or favorite … Continue reading Read, Write, Code — Why Computer Science Should be Required in High School

Around the Country with CodeHS

Michael Brandt joined me for 10 days on the road trip from New Orleans to DC, and made this film about our trip and computer science education around the country. It’s great!

Create MySQL Database and Give User Permissions

I always find myself needing to look up this exact syntax. mysql> create database MY_DATABASE character set utf8; Query OK, 1 row affected (0.04 sec) mysql> grant all privileges on MY_DATABASE.* to ‘MY_USERNAME’@’localhost’ identified by ‘MY_PASSWORD’; Query OK, 0 rows affected (0.06 sec)