4 ms·
To me it's an means to an end. I don't care if my solution takes 100ms instead of 1ms, it's the superior choice for me if it takes me 1 minute to do it instead
by dannyw 5y ago
To me it's an means to an end. I don't care if my solution takes 100ms instead of 1ms, it's the superior choice for me if it takes me 1 minute to do it instead of 10 minutes to learn something new.
- bruce343434 5y agoThe flaw of human nature on display. And I don't mean that personal, not to you anyway, but to the human species.
- coopsmoss 5y agoWhy? It seems very rational. Especially if you're just going to run it once to get a value and not as a part of some system.
- kamray23 5y agoExactly, that's not a flaw, that's rational behaviour. Why design an intricate solution for a one-off. Using 15 times the amount of time it would have taken you manually to automate a pretty standard task is just stupid, though we all do it. Do the first thing that works, don't overthink it.
- bruce343434 5y agoWhy learn anything at all then? Why bother learning OOP paradigms if procedural just works? Why bother ...? Do you see the flaw in your argument?
- dizzy3gg 5y agoBecause when it's not a one off?
- wruza 5y agoOne doesn’t learn rock climbing to step over a brick, man.
- passivate 5y agoI think the flaw is you misinterpreting the argument. In my opinion, the bottom line with obvious caveats is this - Human-time is more valuable than CPU-time. If you are shipping at scale then the calculus is different - Don't waste end-users' human-time and their cpu-time and/or server's cpu-time. If you're writing code with a team the calculus is different - Use/Learn techniques and tools to reduce the teams' human-time wastage plus all the above. If you're writing code just for yourself the calculus is different - Save your own human-time.
- laumars 5y agoIf that was a fair comment then we’d be writing all our code in assembly still.
- BrandoElFollito 5y agoTrue, but sometimes these 10 minutes help you to discover something new that will improve your code. I had a few of these cases in my life: - discovering optimized patterns in Perl, which led to code I could not understand the next day - discovering decorators in Python, which led to better code - discovering comprehensions in Python (a magical thing) that led to better code, except when I wanted to be too clever and ended up with Perl-like code