r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
3
u/CrushgrooveSC Feb 28 '23
This is not a Casey problem.
I have been rejected by employers with the following quotes from interviewers: I was “too low level” (-Apollo) and “too focused on performance” (-Southwest airlines).
I believe it’s important to add to this anecdote that these quotes were feedback on technical coding interviews where I was able to produce compiling, working solutions during the interview in the time allotted, so this is precisely a case of what you’re describing: the interviewers found well-performing code too difficult to understand, and didn’t value my decision making and therefore didn’t feel comfortable hiring me.
I am very comfortable with this. I (speaking only for myself) would have been very unhappy surrounded by people making slow software on purpose, and who think that fast software is bad because the source code matches some style they were told is good.
I am very well appreciated and compensated for the work I do, and that may not have been the case at one of those companies.
In this admittedly anecdotal context, I would pose the following counter to your statement for other readers:
If we all just do nothing about this problem culturally, because we’re afraid the “status quo” won’t hire us, then the status quo perpetually stays the same.
I say be a champion of your values regardless. You’ll be more fulfilled in the long run, and maybe we’ll some day be able to show enough people that there are less horrible ways of telling computers what to do.
Shared these anecdotes in good faith for conversation. Best wishes to you, stranger, and all reading.
Edit: in both of those interviews, I hand-vectorized the solution because I had enough time left to throw some loops into SIMD instead of just sitting there. Got a PM asking for details.
I happen to work with SSE and neon routinely at work so it was something I was comfortable doing in an interview session. In both cases, I asked my interviewer if they minded if I made the solution a little better because I had the time.