• 2 Posts
  • 22 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.










  • What the article fails to address and what I’ve been struggling with personally is… We all need food. Yeah it’s great working on GPL code and ensuring it’s all open. But when companies consider your gpl library vs someone else’s mit library they will naturally go with mit. And then they’ll say “well we’re using this free library already might as well donate/fund it”. So suddenly this MIT dev is able to put way more time into the mit library than your gpl library because it becomes their job. Something that feeds them. Their library gets better faster… And more and more companies use it and fund it. GPL is great if absolutely everyone is on board and everyone is fed. But that’s not the world we live in.