• 4 Posts
  • 80 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle




  • The Test part of TDD isn’t meant to encompass your whole need before developing the application. It’s function-by function based. It also forces you to not have giant functions. Let’s say you’re making a compiler. First you need to parse text. Idk what language structure we are doing yet but first we need to tokenize our steam. You write a test that inputs hello world into your tokenizer then expects two tokens back. You start implementing your tokenizer. Repeat for parser. Then you realize you need to tokenize numbers too. So you go back and make a token test for numbers.

    So you don’t need to make all the tests ahead of time. You just expand at the smallest test possible.















  • 8 years ago I posted on facebook that whoever is interested in keeping in touch should text me and I deleted my account a week later. 4 people texted - all 4 were my high school friend. I’m very good friends with them still. We have a tiny discord server for communication. Since then I had maybe 4 more people who I thought “huh, I wonder what are they up to now” over the years, but my curiosity wasn’t big enough to start facebook again. For the rest I didn’t really care.