(no subject)

Date: 2005-05-12 01:29 pm (UTC)
From: [identity profile] tisiphone.livejournal.com
Sounds like some of my coworkers...

(no subject)

Date: 2005-05-12 01:34 pm (UTC)
From: [identity profile] kadath.livejournal.com
I can't program my way out of a paper bag, but wouldn't you do something like:

WHILE i < i + 11
i++

?

(no subject)

Date: 2005-05-12 01:54 pm (UTC)
From: [identity profile] solipsistnation.livejournal.com
well, yes and no. See, if you do that, i changes while you're looping, so i will ALWAYS be less than i+11...

(no subject)

Date: 2005-05-12 01:58 pm (UTC)
From: [identity profile] kadath.livejournal.com
Oh.

Like I said. Trapped in the paper bag that is algorithms.

(no subject)

Date: 2005-05-12 02:42 pm (UTC)
From: [identity profile] tisiphone.livejournal.com
Or, you could just do $i = $i + 11.
Just a thought.

(no subject)

Date: 2005-05-12 02:46 pm (UTC)
From: [identity profile] kadath.livejournal.com
Oh. *headdesk* (If it wasn't clear already, I think like an engineer, not a programmer.)

(no subject)

Date: 2005-05-12 02:47 pm (UTC)

(no subject)

Date: 2005-05-12 01:43 pm (UTC)

(no subject)

Date: 2005-05-12 01:48 pm (UTC)
From: [identity profile] st-darwin.livejournal.com
I think a lot of modern programming languages have the SpinalTap() operator, which will increment by 11...

(no subject)

Date: 2005-05-12 02:53 pm (UTC)
From: [identity profile] mazianni.livejournal.com
I liked the suggestion to use:

++i;++i;++i;++i;++i;++i;++i;++i;++i;++i;++i;


Although I think St. Darwin has something with SpinalTap()

(no subject)

Date: 2005-05-12 08:07 pm (UTC)
ext_8707: Taken in front of Carnegie Hall (monterey)
From: [identity profile] ronebofh.livejournal.com
My favorite was the overloading suggestion.

(no subject)

Date: 2005-05-12 10:42 pm (UTC)
From: [identity profile] memetic-glutton.livejournal.com
The switch is my favourite.

It's scary how close that is to some "real" code I see at work though...

Profile

solipsistnation: page of cups (Default)
solipsistnation

October 2012

S M T W T F S
 123456
7 8910111213
14151617181920
21222324252627
28293031   

Style Credit

Expand Cut Tags

No cut tags