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