Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Do you code while drunk and wake confused about how you made it work?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
huellewig Donating Member (700 posts) Send PM | Profile | Ignore Thu Feb-17-05 05:41 AM
Original message
Do you code while drunk and wake confused about how you made it work?
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$alb = $row<"Album">;
$so = $row<"Song">;
$ly = $row<"Lyrics">;
$Arrow = '<img src="arrow.png" border="0" alt="arrow" height="16" width="14">';
echo "<tr><td>";
echo '<a href=song.php?Artist=', rawurlencode($ar),'&Album=', rawurlencode($alb),'&Song=', rawurlencode($so),'>';
echo $Arrow;
echo $so;
echo "</a>";
echo "</td></tr>\n";
echo "<tr><td><p>";
echo nl2br("$ly");
echo "</p></td></tr><br>\n";
echo "<tr><td></td></tr>\n";
}

I had to Google to find out what nl2br was the next morning. I remember the problem. Fixing the problem is a bit fuzzy. sigh
Printer Friendly | Permalink |  | Top
Dogmudgeon Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-17-05 05:48 AM
Response to Original message
1. Ya gotta comment yer code, boy!
I used to code while sick and strung out on painkillers and antihistamine all the time.

I'd come in to work an hour late, looking like hell, dragging my butt bagel (an inflatable ring) and a shopping bag full of meds bottles, sugar-free soda, soup and salad, plop myself down and a few hours later The Boss would drop by and oooh and aaah at the results of my fever-driven oeuvre.

Comments made me look good. Comments made it work.

9/11 and offshoring brought that episode of my life to a close, alas!

--p!
Printer Friendly | Permalink |  | Top
 
bowens43 Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-17-05 05:52 AM
Response to Original message
2. I recently tried to modify an application I had written
a couple of years ago and found that I had used variable names like 'bob' , 'bob2' 'bob3' etc. I used to do this when tired or in a hurry. What a mess.
Printer Friendly | Permalink |  | Top
 
khashka Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Feb-17-05 07:39 AM
Response to Original message
3. Drunk doesn't describe it
My boyfriend was a speedfreak. So I'd end up doing several dozen lines with him, then at home realize that I wouldn't be sleeping for weeks and drink enormous amounts of vodka in the hope that I would eventually pass out. Of course I didn't. What I did do was work. Write code, design web pages.

Then days later - sober, solid - I'd look at it and think "Buddyboy you outdid yourself that's so damn cool". But I had no idea what I had actually done or how to do it again...

Khash.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Nov 03rd 2024, 08:36 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC