Y
Hacker News
new
|
ask
|
show
|
jobs
by
chris11
2966 days ago
Code should be written for readability, not typing speed.
2 comments
victords
2966 days ago
This is not production quality code that is running on some important business. It's competitive programming.
Speed is the goal here.
link
gaius
2966 days 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?
link
thomasahle
2966 days ago
I don't think code shortening is ever used for interview questions?
link
thallium205
2966 days ago
But if you're in a competitive environment that requires speed, why would you write for readability?
link
saagarjha
2966 days ago
Because you’ll end up debugging the code an hour later when it fails on an edge case?
link
kevmo314
2966 days ago
The really good competitors won't make that sort of mistake...
link
jack9
2966 days ago
Because you probably have to re-read some, if not most, of the code while working through a solution.
link
Speed is the goal here.