News for hackers. Stuff that matters.
Re:Optimizations on Linear Search (2016) by a1369209993 on Saturday October 03, 2020 @06:32PM (#24675171)
> How do the commenters know whether the optimization is premature?

> when the person is just learning/curious

Not that the code being bad matters in such a case, but if something is just for learning/curiousity, then it is by definition not critically important. Sometimes trying to optimize it is the terminal goal, but it's basically never a relevant instrumental goal.

Re:Optimizations on Linear Search (2016) by gameswithgo on Tuesday October 06, 2020 @10:14AM (#24697827)
A lot of software would be better if more programmers had built up some intuition about performance issues by being encouraged, rather than discouraged, when learning. A lot of kids coming out of college have absolutely no exposure to anything low level, or with regard to constant factor performance improvements.