1 Comment
Jul 18Liked by Bite Code!

I've been falling somewhere along the line of mocking the external dependencies, and using the real versions of internal ones. The way I'm seeing it, is if method X depends on method Y, and method X passes, if method Y is failing, method X is not the reason why.

Who knows, maybe in 6 months I'll be changing my tune. That seems to happen a lot. I learned some principle and argue with jet gbt about how ridiculous it seems, because I'm not yet writing good enough code to take advantage of the concept, And then down the line I'm refactoring with better skills, And suddenly the thing that I was railing against before makes my code a lot better 😁 It's almost like decades of software engineers might know a bit more than somebody who picked it up last year 😂

As the "intern" (and also the senior developer lol), My test writing process is to ask chat GPT, or usually Claude, to write these tests And then watching them all fail 😅

Then I have to work out whether it's the test that is broken or the method. 90% of the time, it's the test.

Expand full comment