this is maybe a more general coding philosophy question, but those who feel like they Know How To Do This, a question:
how do you decide when a feature is workable and when something should be redone/“cleaned up”?
i’m working on a little sequencing script and every time i get a function actually working correctly i feel like I need to redo the entire thing from scratch because i’ve used way too many variables/lines/arguments for what i actually need. and maybe this aspect of this function should be its own function and there must be a way to do this with less for loops and…
i’m on rewrite 5 of my script and have just gotten the behavior of encoder 1 to be 100% what i want. do i start on encoder 2 or do fix i the 100 line “modulate_scale” function with 4 loops and 12 variables that i had to make to get it there.
two competing schools of thought in my brain:
1- if it works, it works
2- if it later turns out not to work, it will be way harder to identify the problem with these monster blocks of code, so i should just start over now…