Re:The most copied StackOverflow snippet of all time is flaw...
by bruce343434 on Thursday June 17, 2021 @02:03AM
(#27536524)
The flaw of human nature on display. And I don't mean that personal, not to you anyway, but to the human species.
[ Parent
| on HN ]
Re:The most copied StackOverflow snippet of all time is flaw...
by coopsmoss on Thursday June 17, 2021 @02:24AM
(#27536676)
Why? 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.
Re:The most copied StackOverflow snippet of all time is flaw...
by kamray23 on Thursday June 17, 2021 @02:31AM
(#27536720)
Exactly, 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.
Re:The most copied StackOverflow snippet of all time is flaw...
by bruce343434 on Thursday June 17, 2021 @04:33AM
(#27537378)
Why learn anything at all then? Why bother learning OOP paradigms if procedural just works? Why bother ...? Do you see the flaw in your argument?
Re:The most copied StackOverflow snippet of all time is flaw...
by passivate on Thursday June 17, 2021 @03:17PM
(#27543391)
I 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.
Re:The most copied StackOverflow snippet of all time is flaw...
by wruza on Thursday June 17, 2021 @06:11AM
(#27538009)
One doesn’t learn rock climbing to step over a brick, man.