Lately I’ve been wasting a lot of time trying to anticipate what methods I might need to make a project work. partially because I have in mind that such functions might be easier to test
what ive tried doing today i just start writing once super function where I print every variable to see what my function does, then I split repetative code into their own function. I figure these smaller functions are what I will write code to test but only after Ive written my super function.
I know TDD doesnt mean test first which i thought for a long time but still feels kinda wrong because I have it burned in my mind that smaller code is better
took me like 5 hours to write because I kept making mistakes and starting over then I just said fk it and went for mono code which took me less than an hour but it works so far and is absolutely unmaintainable
like I said, i plan to break this up down the line, just want to get some tips for faster coding with less confusion