b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Your first cigarette » Post 133310 | Search
This is a question Your first cigarette

To be honest, inhaling the fumes from some burning leaves isn't the most natural thing in the world.
Tell us about the first time. Where, when, and who were you trying to show off to?

Or, if you've never tried a cigarette, tell us something interesting on the subject of smoking.

Personally, I've never ever smoked a cigarette. Lung damage from pneumonia put me off.

(, Wed 19 Mar 2008, 18:49)
Pages: Latest, 17, 16, 15, 14, 13, ... 1

« Go Back

10 No, I'm not interested.
20 Ok, I'll try one.
30 GOTO 20
(, Thu 20 Mar 2008, 19:19, 5 replies)
hmmm, now
GOTOs considered harmful. The jury's out on the fegs.
(, Thu 20 Mar 2008, 19:29, closed)
Gotos are useful
Eg.

if something
{
  if something else that can't be tested until the 1st if is true
  {
    do this
  }
  else
  {
    goto ELSETHIS
  }
}
else
{
  ELSETHIS:
  do that
}

I mean, you could create a seperate function/method/subroutine and then execute that in both elses, but I think this way is cleaner.

Back on topic, *click*
(, Thu 20 Mar 2008, 20:04, closed)
nooo
Dijkstra says no, and Dijkstra wins. GOTOs are a four letter word. Purists don't need 'em!

Although - bollix - I used one in a post two weeks ago. Damn.
(, Thu 20 Mar 2008, 20:11, closed)
Pfft.
Nice one, Herr Doctor.
(, Fri 21 Mar 2008, 0:07, closed)
I agree GOTOs are bad form
If your language guarantees left-to-right evaluation of the if clause, you could just do:

if something && something else that can't be tested until the 1st if is true
{
  do this
}
else
{
  do that
}

...otherwise I much prefer this:

didThis = false
if something
{
  if something else that can't be tested until the 1st if is true
  {
    do this
    didThis = true
  }
}

if not didThis
{
  do that
}
(, Mon 24 Mar 2008, 21:21, closed)

« Go Back

Pages: Latest, 17, 16, 15, 14, 13, ... 1