Dan Lew Codes
  • Github
  • Bluesky
  • Mastodon
Sign in Subscribe

javascript

A collection of 2 posts
javascript

How to use Jest mocks

For better or worse, my life has become infested by Jest mocks. I come from the land of dependency injection (I even gave a talk once!), but whenever I talk about dependency injection to JavaScript developers I get this reaction: Instead, mocking is king. Unfortunately, I’ve found Jests’s
28 May 2026 3 min read
Painting “The Death of Socrates” by Jacques-Louis David
javascript

JavaScript Nulls and Programming Minutiae

Socrates once said “the unexamined life is not worth living.” He was immediately sentenced to death afterwards. I, too, often find myself examining the minutiae of programming languages. Thankfully, I have not been put to death for it (yet). After spending more than a decade honing my Android development skills,
15 May 2024 5 min read
Page 1 of 1
Dan Lew Codes © 2026
Powered by Ghost