TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Don't commit when you're drunk

89 pointsby onatmover 11 years ago

21 comments

wattover 11 years ago
This is wrong, this goes against DVCS philosophy.<p>You should be able to commit all you want all night long, but should not be able to <i>push</i>.
评论 #6914504 未加载
评论 #6914529 未加载
csmukover 11 years ago
I&#x27;ve written and committed my best bugs when drunk. Undoing them was a valuable learning exercie. The finest being, in C:<p><pre><code> if (nr = 0x56) ... </code></pre> That took and entire day to find and made me religiously avoid lvalue assigments in expressions by doing:<p><pre><code> if (0x56 == nr) ...</code></pre>
评论 #6914557 未加载
评论 #6913872 未加载
评论 #6913842 未加载
评论 #6914410 未加载
NicoJuicyover 11 years ago
Slightly drunk is fine, for me it helps for not overengineering things and i just write code that works.<p>When completely sober, i think to much and i overengineer (overthink) stuff... Programming is just slower...<p>(Think DDD-like programming)<p>1 beer is enough to get very concentrated... Just don&#x27;t overdue it (and don&#x27;t make a habbit of it).<p>I only do it when i need to get things done, when time is limited... Never had serious bugs (Windows ME like) though :-P<p>It happens once in the 2 months and mostly it&#x27;s for 2-3 days in the weekend (non-stop), with some light kind of music (Enya or concentration like mp3&#x27;s) and headphones.<p>Yeah, i&#x27;m a nerd then :P
minimaxover 11 years ago
Why is this stupid frat house bullshit on the front page of Hacker News? We can do better than this.
评论 #6915115 未加载
评论 #6914799 未加载
评论 #6914961 未加载
评论 #6914802 未加载
评论 #6914862 未加载
scootover 11 years ago
Obligatory xkcd (&quot;Ballmer Peak&quot;): <a href="http://xkcd.com/323/" rel="nofollow">http:&#x2F;&#x2F;xkcd.com&#x2F;323&#x2F;</a>
评论 #6914315 未加载
benjamincburnsover 11 years ago
Yes, I realize (hope) this is a joke, but this is the most &quot;programmer&quot; response to a drinking problem I&#x27;ve ever seen.<p><pre><code> I know, I&#x27;ll externalize and automate my impulse control!</code></pre>
msantosover 11 years ago
<p><pre><code> &gt; Don&#x27;t commit when you&#x27;re drunk </code></pre> That&#x27;s a valid premise for whatever you do in life, not only Git.
Critoover 11 years ago
It might be neat to replace the arduino&#x2F;breathalyzer part with some sort of typos&#x2F;minute metric, collected from the number of miss-typed commands you have had recently.<p>Trying to run `git psuh` too many times in an hour could get you a cooldown period so you can either sober up or wake up.
lmmover 11 years ago
It should be fine to commit when drunk, that&#x27;s what VCS is for. Make it tag the last sober commit and disable &quot;git push -f&quot; instead.
评论 #6913914 未加载
timclarkover 11 years ago
Also, don&#x27;t edit your bash profile when drunk! In my youth I did this and it took 3 weeks to return to normality - I didn&#x27;t know about source code control in those days.
josefrescoover 11 years ago
What about a check for <i>prescription</i> pain killers or amphetamines? Oh wait, those are culturally acceptable mind altering things. I&#x27;m half joking but this is a neat hack, although I know many functioning alcoholics that would laugh at the concept of this.
np422over 11 years ago
One of my old colleagues had the bright idea to log onto one of our production systems to &quot;re-index some of the database tables&quot; after coming home one Easter eve.<p>And yes, he wasn&#x27;t directly sober at the time.<p>I was moderately amused when I got woken up about 3 AM and got to spend a few hours trying to revert the &quot;re-indexing&quot; ...<p>I think integration with ssh-key management to prevent people logging onto production systems when drunk would be a good idea for this project, don&#x27;t be surprised if there is a pull request from me in the future ...
T-zexover 11 years ago
If you do, you better call Saul.
psutorover 11 years ago
I&#x27;d think the best use of this interface would be to only allow you to commit while in the Ballmer Peak.
goldenkeyover 11 years ago
Gotta love the names..Krunk mode and Balmer mode. Who woulda thunk of that..oh no one except a drunkard. :-)
professorTuringover 11 years ago
Kids and drunks always commit the truth.
nickthemagicmanover 11 years ago
I didn&#x27;t even read this. Is it as dumb as I immediately assumed?
belornover 11 years ago
Is committing tired more dangerous than committing tipsy?
dep_bover 11 years ago
Don&#x27;t get into any commitment when you are drunk.<p>Period.
exitover 11 years ago
definitely shouldn&#x27;t commit with a decreased libido
motyarover 11 years ago
Should be used in cars.
评论 #6913995 未加载
评论 #6913967 未加载