Coding while drunk

Inane baanter or words of wisdom - you decide...
User avatar
20thCenturyBoy
Baaaaa!
Baaaaa!
Posts: 1093
Joined: Fri Oct 01, 2004 8:16 am 0
Location: Perth, Australia

Coding while drunk

Post by 20thCenturyBoy »

Nothing good ever comes of it, does it?

Can anyone prove me wrong?
User avatar
fdave
Baaaaaa!
Baaaaaa!
Posts: 2029
Joined: Fri Feb 18, 2005 1:17 pm 0
Contact:

Re: Coding while drunk

Post by fdave »

20thCenturyBoy wrote:Nothing good ever comes of it, does it?

Can anyone prove me wrong?
Seriously... I've made some great breakthroughs at 2am after coming home drunk - it focuses my mind!
User avatar
Yak
Sheepie Whore
Sheepie Whore
Posts: 20266
Joined: Wed Apr 17, 2002 10:22 am 0
Location: Wales
Contact:

Post by Yak »

I have proven the truth of that. I never code when drunk, it always ends in tears...
Justified and Ancient.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Post by Dio »

Yep. Coding while drunk ended my programming career on the ST/Falcon.

Made two attempts at the code I was trying to do, failed both times, never touched the game again.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Post by gravy »

Me and some other guys out a very stupid cheat mode in Diablo PS1 after a few bottles of red.

And got in trouble for it.

:D
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

I've done good things when nicely stoned.

One bit of code I had to do was all a bit abstract and I was having problems fully grokking what I should be doing so to be entirely honest I gave up and went out with no intention of even doing the code.

Went out, got stoned, looked at it. Closed my eyes for a minute, visualised my data in the way only a mildly stoned person can and wrote the code to handle it.

Job done :)
User avatar
korruptor
Baaaaaa!
Baaaaaa!
Posts: 4291
Joined: Sun Sep 22, 2002 10:35 am 0
Location: Under The Northern Lights
Contact:

Post by korruptor »

Actually, schmoke can help.

Or you can write utter shite on it. One of the two :D
User avatar
andym00
Baaaa!
Baaaa!
Posts: 967
Joined: Sun Nov 02, 2003 10:05 pm 0
Location: A Viennese cow field..

Post by andym00 »

I've never managed to write anything other than complete bollocks when either wasted or drunk and in charge of a compiler :D Though at the time I'm convinced it's really ace stuff, the next morning it tends to be ctrl+a delete, or revert :)

Just don't try it anymore.. Though I know one programmer who does amazing shit whilst stoned off his face 8O
Grand Master Turing once dreamed that he was a machine. When he awoke he exclaimed:
"I don't know whether I am Turing dreaming that I am a machine, or a machine dreaming that I am Turing!''
User avatar
randomdude
Baaaaaa!
Baaaaaa!
Posts: 4609
Joined: Sat Aug 02, 2003 3:54 am 0

Post by randomdude »

I find that being drnk lets me code brilliantly. I can make code to do a task no problem.

But when I look at it in the morning, I haven't got a fucking clue - and theres inevitably subtle bugs that corrupt the heap ;)
I am both the king and the queen of cheese.
<Wife_of_Snake> Random the sugar rush fairy!
<}stinky_beast{> I'd do a zebra if it'd stand still
User avatar
toxibunny
Baaaaaaa!
Baaaaaaa!
Posts: 5906
Joined: Thu Jun 17, 2004 11:59 pm 0
Location: limb clock land

Post by toxibunny »

did you get yer game done last night, random?
User avatar
sack
Baaaaaaa!
Baaaaaaa!
Posts: 7077
Joined: Fri May 10, 2002 4:13 pm 0
XBL Gamertag: evilgopher
PSN: sixFiveOhTwo
Location: Rijswijk, The Netherlands
Contact:

Post by sack »

remember the first time I ever tried coding whilst off-titted. I was having too much fun moving the scrollbar up and down and staring at the indentation waving back and forth to do anything.
User avatar
arron
Baaaaaaa!
Baaaaaaa!
Posts: 7047
Joined: Mon Apr 22, 2002 11:42 pm 0
Location: Here and Now

Post by arron »

One of my collegues does "drunken coding".

The code that he writes does spectacularly good things.

The source is a completely unmaintainable intelligable mess that no one can understand. Even he doesn't know why or how he wrote it. If asked why something does what it does, he just says.. "It's works. What more do you want."

Ironically, the only way we can get changes to the code is to ply him with drink and let him loose. I think that there's something ethically wrong with this.. :?
"Observation is the path to understanding. Self-observation is the path to self-understanding."
User avatar
Munky
Baaaaaa!
Baaaaaa!
Posts: 2209
Joined: Fri Sep 10, 2004 7:11 pm 0

Post by Munky »

Been there, done that.

Sometimes the code works perfectly well, but the next day you realise that you can optimize it considerably by taking out all the repetition.

The drunken mind seems to be designed to focus on smaller tasks rather than looking at the big picture. Demonstrated by the fact that with concentration it's very easy to get the key in the front door, but in the process you've probably woken up half the street and been sick all over your doorstep.
User avatar
randomdude
Baaaaaa!
Baaaaaa!
Posts: 4609
Joined: Sat Aug 02, 2003 3:54 am 0

Post by randomdude »

toxibunny wrote:did you get yer game done last night, random?
Yup, thanks :D
I am both the king and the queen of cheese.
<Wife_of_Snake> Random the sugar rush fairy!
<}stinky_beast{> I'd do a zebra if it'd stand still
User avatar
piku
Sheepie Whore
Sheepie Whore
Posts: 20960
Joined: Wed Apr 24, 2002 10:44 am 0
Website: Http://Www.ncot.uk
Location: Wakefield
Contact:

Post by piku »

I find the more drunk I am, the less code I produce and the more daft comments I write...

Code: Select all

/* This function brought to you by Flaming Sambuca... the drink you /really/ don't want to spill ;-)
   this is also brought to you by some Underworld */
void makeSprites()
{
        int xx, yy;

        numsprites = 0;
        spriteinfo[numsprites].alive = 1;
        spriteinfo[numsprites].x = x;
        spriteinfo[numsprites++].y = y;

        for (xx = 0; xx < 32; xx++) {
                for (yy = 0; yy < 24; yy++) {
                        if (MAPENTRY(0,xx,yy) == EGG) {
                                spriteinfo[numsprites].x = (xx*8)-8;
                                spriteinfo[numsprites].y = yy*8;
                                spriteinfo[numsprites].alive = 1;
                                setAnim (numsprites++, 0, 192, 200);
                                MAPENTRY(0,xx,yy) = 0;
                        } else if (MAPENTRY(0,xx,yy) == BIRDSEED) {
                                spriteinfo[numsprites].x = (xx*8)-8;
                                spriteinfo[numsprites].y = yy*8;
                                spriteinfo[numsprites].alive = 1;
                                setAnim (numsprites++, 0, 200, 208);
                                MAPENTRY(0,xx,yy) = 0;
                        }
                }
        }
}
MAPENTRY() of course being a #define. I think I know what this code should do, but it definitely never worked :)

Then again, I just think I shouldn't be allowed anywhere near a computer when slightly blind ;)
return (0);
Post Reply