Discover · danlew.net

No picture published by danlew.net

My life before & after automated testing

Dan Lew Codes danlew.net

It’s hard for me to overstate how much my coding has improved since embracing automated testing. And yet, I used to think of it as a waste of time! This post is for my former self, demonstrating why I embrace the practice now.

Allow me to demonstrate with an example. Let’s say I’m adding job cancellation to a work queue. Jobs could be canceled at any time (including mid-execution), so it’s complex and error prone. How do I make sure the code I wrote works?

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Names and references

  1. After — person

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

More like this

Also from Dan Lew Codes

  1. Nitpicking in code reviews wastes timeDan Lew danlew.net
  2. There's more to software development than codingDan Lew danlew.net
  3. Obfuscated Rhythm GamesDan Lew danlew.net
  4. How to use Jest mocksDan Lew danlew.net
  5. What the fuck are passkeys and why are they everywhere now?Dan Lew danlew.net
  6. Don't Cite Unsold eBay Listing PricesDan Lew danlew.net