You know how some mornings you wake up, jump out of bed, and you’re full of piss and vinegar and ready to take on the world?

And other days you wake up and it’s like you got hit by a cement truck rolling down the hill with no brakes?


I was going to write today about either Constate and how much I love it for state management, especially with hooks, or about building webapps with Gatsby.

But writing feels a lot like dragging barbed wire through my brain right now, so here’s a 2-hour livecoding session instead. We worked on building a webapp with Gatsby and using Constate for state management.

We continue tonight, and on Wednesday, you get an article about it. Deal?

Tips & tricks I learned this week

Let’s try a new section for these wonderful Monday emails. Every day, I try to write 200 words about something new I learned. The cute little posts go on to live or die on Twitter and Facebook.

But you’re my favorite, so I should share them here as well.

  1. An important lesson about JavaScript testing. You really really have to make sure tests don’t run in PhantomJS by accident.
  2. Getting help on Twitter can be absolutely fantastic
  3. Out-of-box Rails caching isn’t actually that useful
  4. Novelty makes teaching and sharing easy. Preserving that enthusiasm as a grizzled veteran ain’t easy
  5. is great basic documentation, but you need more

A few cool things

Here’s a bunch of cool things I discovered this week.

  • BestOfJS released their 2018 findings of most popular repositories. Interestingly Vue is the most popular frontend framework, but the most popular full-stack frameworks and site builders are all based on React. 🤔
  • react-simple-img is like a better version of my react-lazyload-fadein component.
  • The Towards Data Science blog published a really cool study of SF Bay Area commuter regions. I need to find time to do more machine learning, it’s amazing for things like this.
  • This Pew Research are you middle class calculator is a beautiful example of how even very simple data visuals can greatly enhance a story.
  • And here’s one I’ve been meaning to share for a while 👉 The Pudding is an amazing independent blog that publishes data-based stories with beautiful visualizations. Great for inspiration.

Learned something new? Want to improve your skills?

Join over 10,000 engineers just like you already improving their skills!

Here's how it works 👇

Leave your email and I'll send you an Interactive Modern JavaScript Cheatsheet 📖right away. After that you'll get thoughtfully written emails every week about React, JavaScript, and your career. Lessons learned over my 20 years in the industry working with companies ranging from tiny startups to Fortune5 behemoths.

PS: You should also follow me on twitter 👉 here.
It's where I go to shoot the shit about programming.