3 ms·
Funny you should mention global data structures. Last winter, when doing Advent of Code, it took me an embarrassingly long time to realize that I didn't really
by mr_crankypants 7y ago
Funny you should mention global data structures. Last winter, when doing Advent of Code, it took me an embarrassingly long time to realize that I didn't really need to be writing super well-factored Clean Code™ with no globals or anything like that to solve these problems. And, when I stopped worrying about that stuff, my code ended up getting cleaner and easier to understand and debug.
New hypothesis: Some practices make all the sense in the world in huge enterprise projects, and no sense at all in small utility projects.
- 6thaccount2 7y agoAgreed. The way I code would need to flip-flop if I was more involved with the writing of large software projects. Funny enough though. Those that I work with still write a lot of what I would call scripts, but they're super over architected and a lot of time is wasted and it is hard to read them. Sometimes simplicity is best as you observed.