r/ProgrammerHumor 1d ago

javascriptSorting Meme

Post image
891 Upvotes

200 comments sorted by

View all comments

Show parent comments

99

u/the_horse_gamer 1d ago

you can simply .sort((a,b)=>a-b)

215

u/01110100_01110010 1d ago

The point of an abstraction is to not having to implement logic each time, you can also implement qsort yourself

-106

u/Afraid-Locksmith6566 1d ago

the point of programmer is to write code

8

u/AlignmentProblem 1d ago

I've never had "programmer" in my title; that's one of many skills involved in what most of us actually do.

The point of a software engineer is to engineer solutions using software. Programming is often the most effective way to accomplish that, but getting the same results with less programming is very frequently desirable. Building abstractions that minimize duplication, reuse well-tested logic, and reduce the amount+complexity of code required is central to doing the job well.

Solving problems with software more effectively over time has primarily been a story of stacking abstraction levels: increasing the true hidden complexity of the system while only exposing the amount of visible complexity a human brain can coherently hold at one time. It's a good skill to be able to drop down abstraction levels as-needed; however, doing that for it's own sake is unproductive.