feyd | okay, that misspelling in the title has driven me nuts long enough, fixed.
Someone remind me not to unit test when drunk!
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Someone remind me not to unit test when drunk!
I have just spent the best part of an hour swearing at MySQL, re-installing PHP and MySQL from fink and working up a sweat because a the minutes that were being returned as part of a unit test were matching the hours, not the minutes. After all this faffing about I suddenly decided it kight be a good idea to look over my test case again and discovered I'd mis-typed "hours" instead of "minutes". Grr... unit testing sucks 
feyd | okay, that misspelling in the title has driven me nuts long enough, fixed.
feyd | okay, that misspelling in the title has driven me nuts long enough, fixed.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Someone reming me not to unit test when drunk!
Were the units pints or code?d11wtq wrote:Grr... unit testing sucks
(#10850)
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
yeah...one time i spent about two hours wondering why
wouldn't work. lesson learned, no coding when drunk.
Code: Select all
<?php
if(int i=0;i<50;i+)
{
echo i
}
?>- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Yeah, CUI.. Coding Under the Influence. I don't recall the UK equivalent of DUI (or DWI in some states).. Driving Under the Influence (or Driving While Intoxicated.)d11wtq wrote:CUI? If it refers to drug taking then yes, I'll bear it in mindOf course, d11 would never do anythng like that
edit: boo-boo
Last edited by feyd on Mon Feb 26, 2007 10:13 am, edited 1 time in total.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- jyhm
- Forum Contributor
- Posts: 228
- Joined: Tue Dec 19, 2006 10:08 pm
- Location: Connecticut, USA
- Contact:
Eye, its whats me 'sposed to do laddy,
and Patties Day just a month away!
I don't know how or if they make corned beef and cabbage over there Reaper, but here a lot of places boil the h3ll out of everything and you get one big soggy mess, its gross. I personally throw every thing in a crock pot with veggies on bottom, corned beef sitting on the veggies, and the cabbage cut in wedges sitting on top of the beef. This way the cabbage is steamed and still crisp. And you can elect how much of each you want on your plate, without sifting through a big soggy mess.
Sorry to digress from topic. I don't believe drinking while coding is good. The only time is when you put a shot in your coffee to loosen up or get rid of a head ache. When its time for a drink, log off and go to happy hour at your local pub, and play a game of billiards, or darts or what ever. I like billiards, its an excellent challenge for the mind and still loosens you up. I've never played English billiards though, only pockets for me.
and Patties Day just a month away!
I don't know how or if they make corned beef and cabbage over there Reaper, but here a lot of places boil the h3ll out of everything and you get one big soggy mess, its gross. I personally throw every thing in a crock pot with veggies on bottom, corned beef sitting on the veggies, and the cabbage cut in wedges sitting on top of the beef. This way the cabbage is steamed and still crisp. And you can elect how much of each you want on your plate, without sifting through a big soggy mess.
Sorry to digress from topic. I don't believe drinking while coding is good. The only time is when you put a shot in your coffee to loosen up or get rid of a head ache. When its time for a drink, log off and go to happy hour at your local pub, and play a game of billiards, or darts or what ever. I like billiards, its an excellent challenge for the mind and still loosens you up. I've never played English billiards though, only pockets for me.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
They do indeed
. But I prefer a non-soggy mess too - cabbage is only good lightly steamed. Otherwise its green mush...
On topic, being true to the stereotype I do drink and code but not excessively. You definitely get more error prone, but I find it's acceptable if you're TDD'ing and not just unit testing (the instant feedback loop helps). Likely that's just a bit of an Irish attitude - we do drink a bit more than is good for us (stereotype isn't inaccurate there I'm afraid).
On topic, being true to the stereotype I do drink and code but not excessively. You definitely get more error prone, but I find it's acceptable if you're TDD'ing and not just unit testing (the instant feedback loop helps). Likely that's just a bit of an Irish attitude - we do drink a bit more than is good for us (stereotype isn't inaccurate there I'm afraid).
- jyhm
- Forum Contributor
- Posts: 228
- Joined: Tue Dec 19, 2006 10:08 pm
- Location: Connecticut, USA
- Contact:
I'm afraid the stereotype in the States is a bit over glorified and taken with immaturity. Where by I was told by an Italian man who was my language teacher that most Europeans know that the Irish drink more than most but the connotations associated isn't quite like it is here in the States.
It's ok to have fun and raise a pint but I think a proper demeanor should be kept about yourself at all times. And for goodness sake (note to self) be within the legal limits when you turn that ignition key.
It's ok to have fun and raise a pint but I think a proper demeanor should be kept about yourself at all times. And for goodness sake (note to self) be within the legal limits when you turn that ignition key.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I think most of Britain is full of plonkies to be honest. It's embedded in the culture. We all go out and get sloshed more than we should do... the sad thing is that we have a "reputation" for it though. It just takes that small minority to not be sensible about having a good time and it reflects badly on everyone else. The worst you'll get from me when I'm drunk is long boring ramblings about stuff that seems really interesting at the time 