Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
giancarlostoro
6 days ago
|
parent
|
context
|
favorite
| on:
Graceful Shutdown in Go: Practical Patterns
I had a coworker that would always say, if your program cannot cleanly handle ctrl c and a few other commands to close it, then its written poorly.
danhau
5 days ago
|
next
[–]
Your coworker is correct.
reply
amelius
6 days ago
|
prev
[–]
Ctrl-C is reserved for copy into the clipboard ... Stopping the program instead is highly counter-intuitive and will result in angry users.
reply
moooo99
5 days ago
|
parent
[–]
Have you really never cancelled a program in a terminal session?
reply
tgv
5 days ago
|
root
|
parent
[–]
I think it was a joke. The style, clearly, almost pedantically stating an annoyance as fact, does suggest that.
reply
kevin_thibedeau
5 days ago
|
root
|
parent
|
next
[–]
Definitely yanking us around.
reply
moooo99
5 days ago
|
root
|
parent
|
prev
[–]
Probably was an r/whoosh moment on my part
reply
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: