Some Stories and Questions

Posted by Tasm on June 17, 2006, 3:23 p.m.

The past couple days we've been noticing signs of rodents taking refuge around my front porch. We promptly spread some poison around, which worked surprisingly well. Except for the bodies left sitting around. Nasty stuff. Big freaking rats, they were.

Yesterday I took a little walk through our back yard (we have a few acres of land, mostly woods). I checked out some animals, interesting trees and such, but one thing became abundantly clear - we have MILLIONS of ferns in HUGE 'colonies.' I was bored so I grabbed a stick and starting hacking away, literally needing to cut out a path to continue into some areas. Next time I'll bring a machete. But for now I can marvel at the masses of fallen ferns , and the new plants that are already growing back…

On to the questions:

Question 1

I've been having problems with my internet service lately. This question really only goes out to those of you who use Road Runner for an ISP. You see, it seems that the connection is lost during the middle of the day, coincidently when the sun is high in the sky. I don't know is there's any connection, but it's weird that it works without a porblem at night.

Question 2

Lately I've been going through the code in my game and cleaning it up a bit. My question is: How do you guys structure your code? For instance, I usually do this-

{

—if (something)

–{

——do something

—}

}

EDIT: turns out I can't use fieldsets, so I just bolded the questions.

Comments

melee-master 18 years, 6 months ago

Damn… That sucks about the internet.

My code structure:

if( <[blk]expression[blk]> )

{

     <[blk]do something[blk]>

}

Polystyrene Man 18 years, 6 months ago

I do it like this:

if (do_something=true){

show_message("Something happened");}

else{

show_message("Nothing happened");}

marbs 18 years, 6 months ago

The 2 main ways of coding are:

if something {

do something

}

else{

do something

}

and:

if something

{

do something

}

else

{

do something

}

I use the latter.

marbs 18 years, 6 months ago

*But with indenting of course