Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "wk116"
Got semi drunk and thought "Now would be a good time to implement this feature"
*Codes for 2 hours straight without compiling once*
"Done. Good night"
The next morning:
Gets up and tries out feature
*Fixes 2 syntax errors/typos*
That deserves to be here.
For me coding is best at about half of second 0,5l beer with ~5-6% alc. drunk at rate beer/hour. Did half of my bachelor's thesis during half of that second beer probably.
Don’t drink and code. Definitely don’t drink and commit. Absolutely don’t drink and push to master at 4:55 on a Friday.3
Oh, great question! I ended up removing my account of all things -.-
NEVER AGAIN!! THAT THING NEEDS FUCKING SUDO AND AN ALCOHOL TEST!!!17
I type very fast and nearly without errors when tipsy. (tipsy is a step between normal and drunk here)
Also my easy-problem solving skills become awesome when on alcohol.
That's why i love programming tipsy! 😊10
A few years back, there was a super repetitive task I needed to do to create a bunch of new screens for a new feature.
The task was so repetitive that I just couldn't bring myself to do it, and was avoiding it as long as possible.
Finally the day came where I needed to get it done. I sat at the computer readying myself to finally start/finish the task.
As I was going through the files, I could see all the work had already been done..? Confused, I opened up git history, and saw that I had checked the files in a few nights back.
Best I could do was trace it back to a house party where I was the last to go to sleep.
That was the day that I realised the power of auto-pilot :)1
10-1 AM - 4 of us got drunk.
2-4 AM - 2 hours straight coding, solving big-ass problems
10 AM - Fucking hangover and python code in a java project!4
Had to do a course on database design a couple of years ago. One exercise was about SQL queries and a bit of theory of databases.
On the night of the submission I got so drunk that I had to use both hands to control the mouse and instead of my solution I uploaded the exercise description.4
I very very rarely drink, but when I do I party hard.
I negotiated an entire piece of complex web architecture (really huge, works at 50k transactions per second), with my boss who's a lead architect, from a bar (he thought I was home), while moderately drunk.
It got me a lotta praise and till date it's one of the best pieces of software I've ever written. It saved the company 500+ hours or something #humblebrag.
To this day I have no recollection of what I said (huge hangover after) or how I managed to come up with that shit. I don't think I'd have been able to do it sober. The sheer size of the problem would've made me go "yea it works, I'm not touching that. Nope."
DAE notice any increase in pattern recognition in their code while drunk?1
!dev I'd just helped a client cut over to a new fiber connection and then left for Vegas, about 2 days into the trip my wife and I decided to hit a breakfast spot that had bottomless mimosa's, which was of course a claim we had to test.
As we are walking(stumbling) out of the restaurant I get a call that the connection has crashed and the entire car dealership is unable to sell cars, which they tell me is important functionality.
So I make it up to my room and break out the laptop, luckily the mgmt interfaces are still available externally so I'm able to log in and then have the fun challenge of 1) not falling off of my chair 2) not accidentally making a change that kills what connection I have in and 3) fixing their actual issue.
Took me almost an hour to find a simple OSPF issue but at least got them working and happy. However by that time I was beginning to sober up, which is the absolute worst thing that can happen while day-drinking and ended up basically causing me to be be hung-over for the rest of the night, including my wifes friends wedding, which she wasn't thrilled about...
The moral of this story is to make sure to NOT stop drinking while dealing with unexpected production impacting events.1
One fine Friday night in early '97 while drinking with my buddies I got a page from work. Called the office to understand what the problem is.
*shit I can't fix this over the phone, and buddy here doesn't have a PC so I can't dial-in via PCAnywhere*
Told told the users "Ok I'll be there in an hour and a half. Stop all the running jobs and start the backup"
*figures I still have 1hr to spare so continues to down fair amounts of O-be-joyful with buddies then hailed a cab to office*
I arrived in office 1.5hrs later (2am) exactly as I predicted and went straight to work. Initial checks confirmed my suspicion of the issue so I wrote the appropriate SQL to get started:
'drop table foobar'
***The specified table (foobar) is not in the database***
I looked at foobar and figured out immediately why I got the error, then corrected the SQL and ran again:
'drop database foobar'
*What the FUCK!!! You fucking drunk!!! What did you fucking do? What if I disappear to another country, work as a waiter or something*
After a few moments of panic and a good deal of 'What ifs' I calmed down, looked to the users and made up some bullshit "Some of the indexes are corrupted, we need to restore from the backup"
I wrote most of my '94 midterm project during weekends where me and my buddies were drunk
Had to do an assignment in Haskell and had some bugs all over the way. After some Wodka I did a one liner that worked but I never found out why. 10/10 would do again3
Let's apply dark theme to the sun. So that I can at least stay away from my airco for 2 fucking minutes and not sweat like a goddamn pig!!! Over a month of this shitty heatwave it's been already.. it never ends, does it?! Fucking hell - literally!!!
Sorry for repost. Apparently it's not possible to edit the tags anymore, and I didn't want this to land up in wk116.6
I don't really drink alcohol, but every time I look at my (old) code, it looks like I was drunk when writing it.
Drunk as in wasted?
I've never coded in such a pitiful state because it kills all concentration cells, but a Depressados once in a while makes enthusiasm +10 and stressIgnoring +50.5
Nopes. Not worth it. I still drink to get a lil tipsy and enjoy beer and liquor.
But after you land in the hospital due to alcohol poisoning and you beg the nurse to kill you to stop the suffering you NEVER want to be drunk again.
Damn near 8 years sober and without a hangover. When I was in the hospital I vow to never be put in that position.
Nope nope nope nope and more nope.
Being high af feels fucked up as well. Don't know why people would subject themselves to all this bullshit.19
This one was probably last week of my highschool education so everyone including myself were drunk as fuck like 90% of the time.
Came home drunk one evening and woke up in the morning with a working keylogger waiting to be deployed on school computers. Apparently I've even implemented FTP upload, some basic firewall bypasses and autostart feature. Everything was actually quite good, excluding my stupidness to upload captured data on server through FTP, but there was anyways no-one smart enough in that school to decompile a Windows executable binary.
What's more interesting is until that moment I've never written anything remotely so complicated - I was doing examples from the book and didn't think I have enough knowledge to make program that has any real life application.
After that day it started coming to me that one day I could actually earn for life with programming.2
Go to Denver with a friend for an Iron Maiden concert. I try edibles for the first time, which of course means take way too much. Hallucinate that lead singer is an arm flailing inflatable tube Man. I have a pretty good time. Walk back to the motel at midnight and have to launch a client's website from stage to production on the slow Motel Wi-Fi. I'm ready to pass out at this point, but I got my laptop, and I got my VPN running. So I spend the next 6 hours moving the site from one server to another while occasionally passing out for 20 to 30 minutes at a time.
One of the best road trips of my life. Five stars would do again.2
Ended in an UPDATE without WHERE query to a core table in a Drupal project (in a dev database stored in the same server that production database was)2
It was about my 30th progress meeting with the clients on a website I was working on for them. At that point, I knew what was gonna happen. Change bloody requests.
Before attending that meeting I thought, "I'll change them on the fly as they comment for more ridiculous changes" as I drank 4 cans of RedBull. At the meeting I was having my 5th and the clients was firing all sorts of changes and complaints in the air and I whack them all with my lightning fast fingers can go.
I didn't know I could go that fast, like I was flying. Clients were impressed. Boss was worried that I don't look so... Normal. In fact, I jitter every mid sentence.
Told him to tell them to email changes/complaints instead of bringing it to this meeting. A complete waste of my Red Bulls.2
A man's best friend is a Martini when you realize the college semester begins again at your birthday, and you're turning 29 that month with a year left before graduation. Fuck college. FML.
Yes, I'm writing this after having 3 martinis. My code can't pawsibbly go wrong tonight. Being a little tipsy is awwwwweeesome. :D4
Wanted to make a blog where I could vent about shit on the internet like 'influencers', Facebook etc
Got bored waiting for Gems to install and played Need for Speed instead5
I've made 200 dollars in 2 weeks with fiverr back in the days. Completely fucken drunken all the time.
Not much money, but a very nice experience :D3
Alcohol is somewhat only a socialising drug for me - so I never coded when drunk.
Is it an experience worth making?4
Let's find out... (Self-made Long island iced tea, loving my GF for giving me cocktailshaker to birthday)2
We were all drunk at a college party. I pretended that I was able to code something for a friend. He put me on his laptop and made me code. In 20 minutes I had finished. Everybody reviewed the little program and said it was all good.
When we reviewed again the program sober, it was full of bugs that none of my drunk buddies tested out1
At the beginning of programming the languages were complex and you had to think like a machine to do what you had in mind. Now code is art, it's like a poem. That's why some people (including me) when drink a beer or a cup of wine do better code.
When I was in college I was working on a game in Java using Slick2D. My folks were away on holiday so I had the ability to drink in the house (I was over 18). I worked on this coursework piece whilst drinking.
The next morning I went into college with my work and found that it had a massive memory leak that was included by the work that I’d done whilst under the influence.
The issue was fixed (quite easily tbh) but everyone in my class reminded me for the rest of the year...5
I was absolutely angry, my ego had been wounded. I had built the entire product from scratch, while my bosses just clinged onto one feature that i had not done.
It wasn't even going to be used i knew that and hence was slack. It also required a lot of algo writing.
Post the discussion i decided I'm gonna take out my hurt ego's anger on this algo. I drank whole night and coded. Damn fucking one of the most complex logics i had ever written. It was done and tested while the sun rose. And i slept, next day was a Sunday. I couldn't get hungover.
I was wrong, the logic was used and is one of the core logics of the product. Something that we boast of. 😁
What people don't get about drinking and coding is this.
Coding and development is very similar to art. You've to be creative in your solutions. You've withdraw all emotions and concentrate. And you've to find your own creativity.
You have drunk artists all the time, why not drunk coders?11
Fucking Ballmer peak and blowing by it 9 times out of 10. But that every once in a while when you hit it. Oh it’s real. So real. Focus and problem solving rolled into one.
I'M OUT OF WHISKY!
Creativity -= 100;
I guess no home project for tonight...4
Ok this is a weird story.
So myself and two friends were working on a chrome extension several years ago, probably late high school/early college years.
So before any of us had seen the ballmer peak xkcd, I had discovered it on my own. I was telling my friend that we should start drinking because a)it's Saturday night, and b) I code better buzzed. So he decided to push the limits. He poured my drink super heavy, then another, then didn't finish his and insisted I did. He ended up getting me super drunk. I started going off on how they were doing it wrong, then took over the keyboard. What I wrote cannot even be considered code. I went on an incoherent rant, puked in a trash can, and then woke up in the bathroom with a towel as a pillow.
And that's the story of why my friends are convinced the ballmer peak is definitely not a thing.1
By far the stupidest thing I've done while drunk is setting up a layered LVM-over-RAID1 + striped LVM storage system *and* managing not to lose any data.
Next time I ran `lsblk` and realized how that structure came to be I kinda turned white.
I love programming drunk! I can't sit still and always want to do stuff. When I'm drunk / tipsy I come up with ideas and start working on it. Most of the time in the morning, when my mind is clear, I'm not so creative and open minded as I'm drunk. Sometimes my ideas ain't that bad, but I loose interest in developing it any further. So I stop working on it.
This is a while == true loop
I came home about 1am and saw a bug in a small (unpaid...) project that had to do with timezones (see some earlier rants). Fixed it, got to bed.
A few days later I realized that a feature I implemented before was gone. Going through the git log I found out it was me in that night who removed it, by accident I suppose.
Not the end of the world but I was quite intrigued by my own drunk ability to remove a feature that had nothing to to with what I was doing and not even noticing it.2
When working on a schoolproject I actually managed to do loads of work in a night when I was mad drunk.
Two days later I met with the project group again at school and I remembered I did something with the project, but had not the slightest idea anymore.
My project group showed up all excited that a lot of bugs were resolvee and we finally had something really nice working in the frontend thanks to me. It was a similar feeling to waking up when your arm/hand is numb and on your face and you have no clue whats going on, at first youre scared and later it was a damn cool experience.
At first glance, this week's group rant seems perfect for me since I have drunk coded at least 2 to 3 times per month (my TGIFs are usually followed by Saturday morning demo meetings).
However I cannot say I have had any particular "worst" code that I have done so far.
Yea I once formatted and installed some linux distro while drunk and couldn't remember the login info the next morning.
Yea I once exported, imported between dbs from prod and local while drunk and lost this and that data.
Yes I once decided to organize my repositories and somehow deleted some repos without any backup while I was drunk.
I was fine. I somehow solved my way out by either bullshitting or being quiet or fixing without any sleep. Most of the times nobody really comprehend the extent of my actions. So I was fine. Hence I really don't have any particular worst drunk coding experience yet.
Best drunk coding experience?
Well I do not agree that coding while drunk is a pleasurable or fun thing to do. So I don't really have that either.
This week's topic is actually a very tough one although it might seem easy.
Boy oh boy.. Reminds me of good ol college days. I was in my final sem when Amazon came to our university for campus hiring. I was very confident that I will get selected. Funnily enough I went till the final round and I had a feeling that it went well if not excellent. It was a Friday night and we had to wait two excruciating days for the final shortlisted result to come. On the evening of Monday my friend T called me and told me my name is not on the list. I was heartbroken. I asked him who all got selected and he said our friend A did. A was, and still is a good friend of ours and I was happy for him. That night we sat down for drinks and as the night progressed I anguished over my selection. I still remember solving a binary tree problem holding a glass of whiskey in my one hand. The next morning I woke up at 6, detoxed myself with fruit juices and sat in front of my laptop feeling full rage from last night. I sat till lunch and hacked a chrome extension in one sitting. Mind you I had no existing knowledge of extensions at that point of time. I sometimes look how my life has turned since that time and now I am one of the devs in a team which work on a product that itself is a browser extension. :)
Most of my private code is created in the evening hours and after one to two beers, so I got that covered pretty well - though if you want to see what happens if you code literally shitfaced, just go play Mafia 3. That deterred me from trying.
The one thing I did at a party was fix a computer after (I think) 4 beers. Apparently I got it together because the sounds worked after that, but don't ask me how. Besides, it had OSX, I usually avoid that thing like the plague. I guess getting drunk means I can handle even that shit.
1-2 Beers is the max I still can code (or properly think) with. Any more and I can't get a single line out.
Worst thing I tried was coding high. I was on a short trip to Amsterdam and a friend of mine brought on some White Widow...
Yeah, I could focus alright... The code worked and the program was done in two hours (It was an exploit for... well, lets not get into details here).
When I reread the code while not high anymore, it might as well have been binary (it was Python). I could, for the life of me, not figure out what the hell I had been writing there or how/why it worked - but it did its job.
Never again. I mean, WW is my favourite and I hear a lot of artists use it to enhance their "flow" when creating art...
I guess it makes sense to code on that, but I generally try to avoid flow when coding - it makes you produce unreadable and unmaintainable code.1
Not drunk, still underage. I can share a wonderful story from when my wisdom teeth were pulled. My mom made me agree to not work on anything, especially code, when I came home. However, I had an awesome CPU architecture design project, and I was ready to make a few example programs in the assembly language. When I woke up the next morning with a clearer mind, I looked at the code again. ^A , ^X. Mom said "I told you so."
> somehow decides to fix two bugs at 3 a.m, since they looked simple enough
> fixes bugs
> also causes a memory leak in the same JS script
> next morning the app compiled but kept crashing (duh)
> obviously cant remember what happened
> hangover doesnt let me think, i.e forgets to check the Local History in the IDE
> spends an extra 2 hours.
Nothing better than stay at home during a thunderstorm, writing some shit in VS and drinking some whisky
Rm -rf /usr/share/pacman/*...
It took me 5 more attempts to re-read the command I wrote and realise what I had done... This was under a week ago..1
... worst drunk coding experience?
none. or to be more precise, all of the three of them I had. I can't code drunk, i hate doing it, i hatw even thinking about doing it when drunk.
so after those initial three attempts i don't try to do it again, ever.
BUT, best coding experience while high?
ALL OF THEM.
some of the best pieces of code I wrote i did when I was high. my mind goes into overdrive at those times, and my thinking is not lines/threads of thought, but TREES of thought, branching and branching, all nodes of each layer of the tree coming to me AT ONCE, one packet == whole layer across all of the branches.
and the best was when one day, in about 14 hour marathon of coding while high, i wrote from scratch a whole vertical slice of my AI system that i've been toying around in my head for several years prior, and I had all of the high-level concepts ALMOST down, but could never specify them into concrete implementations.
and I do mean MY ai system, my own design, from the ground up, mixing principles of neural networks and neuropsychology/human brain that I still haven't seen even mentioned anywhere.
autonomous game ai which percieves and explores its environment and tools within it via code reflection, remembers and learns, uses tools, makes decisions for itself for its own well-being.
in the end, i had a testbed with person, zombie and shotgun.
all they had pre-defined in their brains were concepts of hunger and health. nothing more.
upon launching it, zombie realized it wants to feed, approached oblivious person, and started eating it.
at which point, purely out of how the system worked, person realized: "this hurts, the hurt is caused by zombie, therefore i hate zombie, therefore i want to hurt it", then looked around, saw the shotgun, inspected its class by reflection, realized "this can hurt stuff", picked the shotgun up, and shot the zombie.
remembered all of that, and upon seeing another zombie, shot it immediately.
it was a complete system, all it needed to become full-fledged thing was adding more concepts and usable objects, and it would automatically be able to create complex multi-stage, multi-element plans to achieve its goals/needs/wants and execute them. and the system was designed in such a way that by just adding a dictionary of natural language words for the concept objects on top of it, it should have been able to generate (crude but functional) english sentences to "talk" about its memories, explain what happened when, how it reacted, what it did and why, just by exploring the memory graph the same way as when it was doing its decision process... and by reversing the function, it should have been able to recieve (crude) english sentences that would make it learn what happened somewhere else in the gameworld to someone else, how to use stuff and tell it what to do, as in, actually transfer actual actionable usable knowledge to it...
it felt amazing to code for 14 hours straight, with no testruns during that, run it for the first time after those 14 hours, and see that happen.
and it did, i swear! while i was coding, i was routinely just realizing typos and mistakes i did 5-20 minutes ago, 4 files/classes ago! the kind you (and i) usually notice only when you try to run the thing and it bugs out.
it was a transcendental experience.
and then, two days later, i don't remember anymore what happened, but i lost all of that code.
and since then, i never mustered enough strength and resolve to try and write the whole thing again.
... that was like 4 years ago.
i hope that miracle will happen again one day...3
Once I had a stupid idea, on a Wednesday, started coding, found the buzz, found the booze, got in the groove, realized that it was 7am and had to to work 😭
At least I was almost done, but damn that was a long Thursday
I don't drink, mainly because I'm not going to be 21 until November, but I have been extremely tired while programming before. One time it was like 4 in the morning and I just wanted to get my app to build successfully with no errors. I got that to happen, then went to bed. When I woke up seven hours later, I went back to work on the app some more, and I had no idea what I changed when I was borderline asleep to make the app build successfully. Go figure.1
Passed Out on my keyboard and woke up to fucken errors that cannot be undone.
Then I saw the importance of source control
Built my first user generated content loading system that I still use today (obviously cleaned up code that doesn't contain the words fuck and cunt every second variable)
The only thing I coded while drunk was a girls name and her phone number,
I write "leyla" and it then turned out her name was actually "irem"
Yeah I'm not going to open the pandoras box with drunk commits when I can fuck up a name 😐3
So for a project we needed some last minute changes to make it work (friday eve).
So at 10pm after I got home from the bar i started coding. I got in a flow opened up another bottle of rum and went berserk on the last feature with refactors.
The monday when i entered the office i got a intervention about my drunken code habit.
Apparently its not a good thing to just bash on someones code in the comments....1
Worst: Writing a quick thing in Python, debugging endlessly because some class I created wasn't being instantiated properly and then realising that I haven't added the holy "()" while creating the object and before using methods in my unit tests.
Best: Creating some pretty sweet algorithms because I was thinking more out of the box and trying things out just for the lulz.
I've never gotten drunk while coding, but definitely a whiskey always is the finest accompoint to writing some beautiful code 😉
Well i managed to finish a pet project after a very very long time while drunk coding for the first time. Def gonna do it again 12/104
Dont fuck with firewall rules when intoxicated.
I was on a weekend, my mailserver was acting weird again.
I do my shizzle, git commit, push.... And it broke
And i was too far gone tp notice on time where the forward rules were broken... That made it stop completely
At least it was not an open firewall
Once I was working on a project that had a few complex implementations that needed to be done. So I got a colleague to get me a few Coronas from the staff bar on a Friday afternoon and did a little overtime. For some reason I was extremely focused, my mind was rushing, and I managed to do some pretty good implementations as well. I guess beer can make you smarter.
Actually I've never really drunk coded (eventhough I can be a bad drinker lol), but one time I was apparently discussing a problem I encountered with a friend of mine and we came up with a solution. All I had to write it down was a reciept from the supermarket though, but I totally forgot about it the next day, until months later when I was cleaning out my wallet and to this day I have no clue what I was trying to tell.3
Not *drunk* coding per se, but there have been a couple evenings where a bottle of red has provided just the right push to finally get something done that I’d been stalling on...
Any of the several hundred (no joke) xss, csrf or sql injection bugs I've fixed in our legacy apps...
It's 10 PM, 3 week long hackathon project needs to be done by 8AM, nothing actually works.
I remember pouring a beer and sitting down at my PC, and then coming in second in the hackathon the next morning, but nothing in between.
To be honest, I've never been drunk. Really, teenagers couldn't be drunk, yeah? Only thing I drink is a lot of coffee, yerba, and tea. Never drink yerba before you're going to sleep. That could end with another sleepless night in front of your laptop. Also, never drink yerba in public, some may call you hipster, some may call you gay. But I still don't know what homosexual thing is in yerba.4
So there was this project in second year of uni, I was in a team with 2 friends, we had to do a small project to learn programming. I was the most experimented one but still very bad.
One night, I took a few beers and started coding.
I wrote almost all the thing that night, the main functionalities plus the input/output.
But as I was drunk I made some weird decisions:
-naming all the classes in french and all the variables in English
-no tests (who does tests?)
-comments in Spanish
The next morning, when I send the code to my friends (we didn't know about git yet), they started hallucinating. We spent a lot of time refactoring and cleaning.
In the end, as most of the logic was there, we ended up the project a few days before due date and celebrated with more beers 🍺2
This one night over Christmas break I was drinking with a few friends from the program when I decided to take out my laptop and learn Elixir. I kept saying I need to learn more or I wasn't gonna get a job 👌
Should I try?
Some obscure dating app would come out I guess o_o (considering I get depressive when drunk :D)
Worst: working on a lare functiong thinking you got it but in the morning reqlizing that all formula's are in reverse (out is in, in is out)
Best: being a little tipsy, coding withouth the ocd of having every thing correct. Then reformat in the morning, it goes roughly .5 times faster