Coding while drunk

Inane baanter or words of wisdom - you decide...
User avatar
manicx
Baaaaa!
Baaaaa!
Posts: 1209
Joined: Tue Jan 14, 2003 10:50 am 0
Location: Greece
Contact:

Post by manicx »

When attending some Atari ST parties in the early 90s, we used to do some programming while being drunk... None of the intros/demos ever worked! :lol:
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Post by super charlie »

gravy wrote: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
what was it then?

cheers
charlie
Visit my website here to have a look at my game.
User avatar
Orava
Sheepie Whore
Sheepie Whore
Posts: 12698
Joined: Sat Mar 13, 2004 12:13 am 0
Location: The West Country

Post by Orava »

My last job was at one of large UK IT consultancy firms until 90% of staff roles were shifted to Bangalore. The morale towards the end was bad, to say at least.

Spot the bits coded after one of the numerous lunchtime drinks sessions.
drunken coder wrote:
(Sorry about the black blocks - names Censored
and sorry it is in hideous VB ! )


Image
The application had some other 'unique' features like error-handler driven logic and use of obscure DLLs for which the source code was 'lost'.

I think the whole project was dropped soon after the transfer to India took place.
User avatar
KidQuaalude
Baaaa!
Baaaa!
Posts: 762
Joined: Wed Dec 22, 2004 6:29 pm 0
PSN: ChrisBinary
Location: Glasgow, Scotland

Post by KidQuaalude »

korruptor wrote:Actually, schmoke can help.

Or you can write utter shite on it. One of the two :D
same experience here. either you completely get in the zone for hours or you dont and just sit and pick at code, confused ;)
User avatar
TDM
Baaaaa!
Baaaaa!
Posts: 1202
Joined: Fri Feb 25, 2005 1:50 pm 0
Location: A portion of space between 3 points x,y,z.

Post by TDM »

How about coding on acid? :lol: :wink:
"The Gnomes have found a new way to say 'hoooray!'"
User avatar
cyric100
Baaaaaa!
Baaaaaa!
Posts: 2316
Joined: Thu Apr 25, 2002 5:51 pm 0
Location: My underwater lair at Monterey bay

Post by cyric100 »

After a few bevvies you can come up with some interesting designs, but I wouldn't want to try implementation whilst under the influence.
No time for heartache, no time to run and hide,
no time for breaking down, no time to cry.
User avatar
kel
Baaaaaa!
Baaaaaa!
Posts: 2461
Joined: Thu Oct 02, 2003 1:29 pm 0
Location: england

Post by kel »

Oh dear, I'm probably going to be a little tispy later and no doubt I'll fancy a bit of arsing around with the little game I'm working on, best make a back up copy now :D

I'm a terrible coder anyway and it often takes me a long time to get the simplest of things done incorrectly. I always end up breaking large parts of code if I code drunk, yet if I'm stuck in with a few beers I know somewhere down the line I'm going to open up the editor and have a little play about, damn you beer.
User avatar
arron
Baaaaaaa!
Baaaaaaa!
Posts: 7047
Joined: Mon Apr 22, 2002 11:42 pm 0
Location: Here and Now

Post by arron »

Most of the Spiral1 code was written after a pissed night out watching Matrix Revolutions. You've got variable structures like SMITH and NEO, the main binary data store from the hardware is called MATRIX.

Even though we are one revision seven of the code to add rapid breathing capability, I've been trying to document functions that have useful names such as pull_the_plug, reload_matrix and he_is_the_one. The latter one is used for setting the current system variable structure from one of the six volunteers defined in the system.

I think that the source might get de-referenced before it's published as a document as it might confuse people..
"Observation is the path to understanding. Self-observation is the path to self-understanding."
User avatar
RageMatrix
Baaaaaaa!
Baaaaaaa!
Posts: 5515
Joined: Fri May 10, 2002 12:52 pm 0
XBL Gamertag: Jon256
Location: East Sussex

Post by RageMatrix »

TDM wrote:How about coding on acid? :lol: :wink:
Honestly, really tried it. Its terrible. My head kept sinking into the screen and the keyboard feels too funny.....like human skin. <shudder>

I shit you not.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Post by Firefox »

piku wrote: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;
                        }
                }
        }
}
... Not to mention what happens to your braces! :twisted:

:wink:
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27259
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Post by gilesgoat »

Coding drunk is like having sex drunk, it simply can't come out properly
or nice as it should be 8)

Coding with some mods is another thing, it's alchool that does not work fine.

Yet coding normal with a good inspiration is the best you can do/get :)
Giles the billy goat
"Baa"
Njal
Baaaa!
Baaaa!
Posts: 766
Joined: Mon May 24, 2004 11:06 am 0
Location: The Ribble Valley
Contact:

Post by Njal »

RageMatrix wrote:
TDM wrote:How about coding on acid? :lol: :wink:
Honestly, really tried it. Its terrible. My head kept sinking into the screen and the keyboard feels too funny.....like human skin. <shudder>

I shit you not.
Oooo... sounds like the typewriter in Naked Lunch
User avatar
Bubba
Sheepie Whore
Sheepie Whore
Posts: 10013
Joined: Tue Apr 22, 2003 12:52 pm 0
XBL Gamertag: BubbaFatAss
PSN: BubbaFatAs
Location: Cambridge

Post by Bubba »

"On error resume next". Possibly the best way to handle errors ever :).

"What? An error occured? Ahh well - just pretend it didn't :)".

Cheers

Bubba
||Work || Flickr||
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 »

Firefox wrote: ... Not to mention what happens to your braces! :twisted:
:wink:
Quiet you ;) Go write some Python :)
return (0);
User avatar
moosedude
Baaaaaaa!
Baaaaaaa!
Posts: 6209
Joined: Fri Nov 19, 2004 1:19 pm 0
Location: Craggy Island
Contact:

Post by moosedude »

I write daft comments when I'm sober !!!

my old work place is full of stupid comments hidden for new programmers to find - I got bored quickly there and then I started to entertain myself. (whenever somebody read them, they would spurt tea out of their nose in surprise)

anyway, when I'm drunk I think I'm the best coder in the world. Then comes tomorrow; I spend the next day undoing all the damage I did yesterday.

cannot code when ill either, I completely cack things up then as well. just cannot focus enough to know what I'm doing is a bad, bad idea.

01000101 01000100 01000111 01000101

http://www.redbubble.com/people/fotofill/ buy my photos!
Post Reply