Eric Elliott
Sep 22 · 1 min read

When I read that example I’m immediately confused because I read `itemUpdated` as the item to be updated, when, in fact, it should simply be a boolean value representing whether or not the component should update.

It turns out that naming things is hard, and if you can avoid doing it and still communicate the meaning clearly, you should.

There are only two hard problems in computer science:

  • Naming things
  • Cache invalidation
  • Off by one errors

Eric Elliott

Written by

Make some magic. #JavaScript

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade