Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
chris11
7y ago
0 comments
Share
Code should be written for readability, not typing speed.
0 comments
default
newest
oldest
victords
7y ago
This is not production quality code that is running on some important business. It's competitive programming.
Speed is the goal here.
gaius
7y ago
This is not production quality code that is running on some important business.
Then why is it used in the interview process for the latter?
thomasahle
7y ago
I don't think code shortening is ever used for interview questions?
thallium205
7y ago
But if you're in a competitive environment that requires speed, why would you write for readability?
saagarjha
7y ago
Because you’ll end up debugging the code an hour later when it fails on an edge case?
kevmo314
7y ago
The really good competitors won't make that sort of mistake...
jack9
7y ago
Because you probably have to re-read some, if not most, of the code while working through a solution.
j
/
k
navigate · click thread line to collapse