🔒 Locked
Programming while drunk....
Advertisement
Original Post
Heh.... ok seriously, has anyone written code in a not-so sober state?
Did it compile/build?
Did it run?
Did it run right?
Was is better than what you coulda done sober?
I dunno, I bet there''s some funny stories out there.... Post any code you have
ratman
---------------
http://ratfest.org
hehe.
If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare.
|
If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare.
When I'm having major problems and get angry I start using profanity as variables.
Other times I use band names that I'm listenting to at the time.
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
Edited by - Nazrix on October 10, 2000 8:42:07 PM
Other times I use band names that I'm listenting to at the time.
"""" "'Nazrix is cool' -- Nazrix" --Darkmage --Godfree"-Nazrix" -- runemaster --and now dwarfsoft" -- dwarfsoft --pouya" -- Nazrix
""You see... I'm not crazy... you see?!? Nazrix believes me!" --Wavinator
Need help? Well, go FAQ yourself.
Edited by - Nazrix on October 10, 2000 8:42:07 PM
That was during christmas, when all I ever knew how to do was display Hello World to the screen... I had a little too much EggNog or whatever it''s called, and then at first I started typing slowly and the best that I could, but after that I started lose interest and roll my hands around on the keyboard..
Interestingly enough, it didn''t compile nor run.
If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare.
Interestingly enough, it didn''t compile nor run.
If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare.
one time while i was doing C/C++ classes, my teacher asked me to do a stupid program(it was about something with arrays) but i already know how make that, and i asked him to give me the nest lesson, but he said that he won´t give me the next lesson until i finish the programm. i realy got upset so i made the program using idiot naming like:
(off curse in the original was in portuguese)
i was never able to finish the program, it got just too confuse...
========
There´s no ugly woman
You that didn´t drink enough
A brazilian popular belief
(off curse in the original was in portuguese)
|
i was never able to finish the program, it got just too confuse...
========
There´s no ugly woman
You that didn´t drink enough
A brazilian popular belief
I occassionally start doing a routine, do all of the initialisation and all of the cleanup but then when it comes to the actual code:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Chris Bennett of Dwarfsoft
"The Philosophers' Stone of Programming Alchemy"
IOL (The list formerly known as NPCAI) - A GDNet production
Our Doc - The future of RPGs
Thanks to all the goblins over in our little Game Design Corner niche

|
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-Chris Bennett of Dwarfsoft
"The Philosophers' Stone of Programming Alchemy"
IOL (The list formerly known as NPCAI) - A GDNet production
Our Doc - The future of RPGs
Thanks to all the goblins over in our little Game Design Corner niche
Hehe, the only things that I typed when I was drunk was that amusing one with my friend... Hangon.. I''ll just check my site to see if I still have it there..
Nah, don''t have it... But I posted it up before
-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche

Nah, don''t have it... But I posted it up before
-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche
Do most people here program better when they are half asleep? Amazingly, I find this so, and when I go to read the code in the morning - I can''t even remember where I learned those types of techniques - but damn it works and works well. But even trying to change the variable names from "bob" "fred" "jim" "poo" and "foo" results in too many errors to count. Ah, the dream code
-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche

-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche
I''ve never been drunk. Or, hmm... it depends on how you define "drunk." I have been slightly confused a few times, but not so much that my typing would have suffered. I just couldn''t think straight.
When I can''t make up a variable name, I either think until I can invent a descriptive one or use Temp, Buffer or x when it''s appropriate.
-Jussi
When I can''t make up a variable name, I either think until I can invent a descriptive one or use Temp, Buffer or x when it''s appropriate.
-Jussi
Every one of my programs has a buffer variable in it. Usually along the lines of "char *buffer" or "char buffer[20]"
. I think that the name "buffer" describes more what that particular variable does than any other name that I can think of
-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche

-Chris Bennett of Dwarfsoft - Site:"The Philosophers' Stone of Programming Alchemy" - IOL
The future of RPGs - Thanks to all the goblins over in our little Game Design Corner niche
LOL!!! That is so true. Now i have to learn programming just so when people decompile my software I can diss them through my variables.
Allow the flaming to begin
Conshape Electronic Arts
Allow the flaming to begin
Conshape Electronic Arts
Um, unfortunately variable names are not preserved in decompilation/dissassembly. You would have to do something like this:
But VC++ optimisation features would probably eliminate it.
------------------------------
#pragma twice
|
But VC++ optimisation features would probably eliminate it.
------------------------------
#pragma twice
I always seem to do my best programming after I''ve had a bit to drink. For example, in one of my classes I had a project on operator overloading. Before-hand, I had no clue what to do and thought about not handing it in. Then I grabbed 2 beers, drank them quickly and was soon inspired. I had the thing done in about 20 minutes!
I tend to use x, y, and z and other combinations with other letters for some reason, like dx, nz, my, bz, fx, and other things, just because I need more than one x or y or z, not because those other letters symbolize anything. I also tend to abreviate stuff until they''re other words, like portal becomes port. I also put way too long winded comments, like "Okay, let''s try to do this..." then after that "I think it worked, but I''m not sure. Ahh, screw it". This is put in alot when trying to allocate memory.
Fredric: "If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare"
That''s an interesting quote, I''ve actually seen it before. It applies to evolution. The thing is though, with the monkeys, not only would you have the shakespeare, but you would have an infinate amount of uniteligeable crap that the other monkeys banged out. When this is likened to real life, we see that there is no correlation. If the shakespeare is likened to the creation of man, then where is all the junk? If we look at our universe, with all the mathematical representation of everything, we soon realize that everything is indeed perfect, from humans, to rocks to galaxies to germs to whatever, everything is perfect. Nothing contradicts the rules of the universe, even if we don''t completely know what those rules are. there is no, to put it in the above example, monkey crap. So if perfection could be achieved at random, then what are the odds that everything in the univerese would randomly be perfect all at the same time and that there would be no monkey crap?
Fredric: "If you place an infinate amount of monkeys in a room with an infinate amount of type-writers, it is likely that within time, they will have typed up the entire workings of Shakespeare"
That''s an interesting quote, I''ve actually seen it before. It applies to evolution. The thing is though, with the monkeys, not only would you have the shakespeare, but you would have an infinate amount of uniteligeable crap that the other monkeys banged out. When this is likened to real life, we see that there is no correlation. If the shakespeare is likened to the creation of man, then where is all the junk? If we look at our universe, with all the mathematical representation of everything, we soon realize that everything is indeed perfect, from humans, to rocks to galaxies to germs to whatever, everything is perfect. Nothing contradicts the rules of the universe, even if we don''t completely know what those rules are. there is no, to put it in the above example, monkey crap. So if perfection could be achieved at random, then what are the odds that everything in the univerese would randomly be perfect all at the same time and that there would be no monkey crap?
I'll go hide in the corner now. I use meaningful variable names. Darn, I knew I was doing something wrong!
[edit]
SPAR: what does stoned mean? Sorry I know hardly any slang words in English
[/edit]
- JQ, PWC Software
"There are no pessimists, optimists and realists; just pessimists and optimists who think they're realists" -me
Edited by - JonnyQuest on October 11, 2000 12:59:52 PM
[edit]
SPAR: what does stoned mean? Sorry I know hardly any slang words in English
[/edit]
- JQ, PWC Software
"There are no pessimists, optimists and realists; just pessimists and optimists who think they're realists" -me
Edited by - JonnyQuest on October 11, 2000 12:59:52 PM
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement