News for hackers. Stuff that matters.
Re:New Grad vs. Senior Dev by kevinventullo on Saturday March 28, 2020 @12:04PM (#22711938)
To be fair, in my experience it is often the case that asymptotic complexity is a good proxy for real-world performance, even for small values of n. Not always, but often.

I think it's fine that the academic courses focus a bit more on what's better in theory than in practice, because there are always caveats to "in practice"; the person who writes the special-purpose genomics libraries was also once a new grad.

Re:New Grad vs. Senior Dev by RookyNumbas on Saturday March 28, 2020 @01:03PM (#22712436)
I like to start by thinking about cache locality and ensuring linear layout. Next focus on one-time, or minimal memory allocation. Then there are a bunch of small, systemic things you need to get right. After that you can start worrying about worst case big O scenarios.

Of course this depends on your language. A c programmer will have a different mental model than a python one.

Re:New Grad vs. Senior Dev by lonelappde on Saturday March 28, 2020 @01:23PM (#22712603)
In Python performance is your last consideration, and that's OK. Most things computers do don't need to be fast. Only the innermost loops run the most do.
Re:New Grad vs. Senior Dev by SaxonRobber on Saturday March 28, 2020 @04:32PM (#22714112)
This is the philosophy that has led to our software becoming slower despite improvements in hardware.

Performance is always important. Especially for consumer applications, where your software will probably need to run alongside many other processes each competing for resources.

Re:New Grad vs. Senior Dev by celeritascelery on Sunday March 29, 2020 @08:19AM (#22718357)
> This is the philosophy that has led to our software becoming slower despite improvements in hardware.

I disagree. Software has gotten slower over time because we are adding more fluff to it (SDK’s, libraries, electron, GUI animations, web interactions, frameworks, etc). Not because the developers are failing to focus on code optimizations.

Re:New Grad vs. Senior Dev by why_only_15 on Saturday March 28, 2020 @02:35PM (#22713251)
i used to think this was true, but theres a lot of stuff recently where there really aren't such hotspots everywhere. when i profile UI stuff for instance there isn't some big obvious hotspot to optimize, the runtime is spread all throughout the app doing random things. if all the regular code you write is just ludicrously slow, you're going to end up with something that's just laggy and without any way to fix it other than rewriting it
Re:New Grad vs. Senior Dev by saagarjha on Saturday March 28, 2020 @12:15PM (#22712053)
Often, for small values of n performance matters less anyways matching that as n gets larger is often a nice bonus. Sometimes this makes the code more complicated, yes, but occasionally it can even make the code simpler, especially in a language with good data structures and algorithms (C++ is a shining example.)
Re:New Grad vs. Senior Dev by monocasa on Saturday March 28, 2020 @01:25PM (#22712631)
What if you have a large number of small N lists to be sorted?
Re:New Grad vs. Senior Dev by monocasa on Saturday March 28, 2020 @01:24PM (#22712619)
Eh, bubble sort can be quicker than q sort for samll values of N for instance.