Author Topic: What is a good way to get into coding?  (Read 918 times)

wtf wat language u run on??
that was a condition.................... . JEEZ, guy.......

no language that has its nose on straight would make you have a semicolon there

do{
} while( markup_language != coding );

ok fine i guess so :(

if(a != b)
{
    do.stuff(lol);
}

lrn2code

that's an if??
i used a loop?????


I didn't see your post whoops. I just posted it there.

I'm not really experienced with java, I have a decent understanding of the basics though. I've never used a do-while loop, wouldn't it accomplish pretty much the same thing as a for loop?

it might be a java thing, but i was coding it as i would in c.
a do while loop will always run through once, and then will loop if the conditional is true.

it might be a java thing, but i was coding it as i would in c.
a do while loop will always run through once, and then will loop if the conditional is true.

Yeah it's exactly what a for loop would do then.

for( int i = 0; i<5; i++)

So it declares variable, some condition for the variable to meet, then you affect the variable. I know do-while exists in java and it seems pointless to have both a for loop and the do-while loop.

Yeah it's exactly what a for loop would do then.

for( int i = 0; i<5; i++)

So it declares variable, some condition for the variable to meet, then you affect the variable. I know do-while exists in java and it seems pointless to have both a for loop and the do-while loop.

a for loop is not guaranteed to run at least once

a for loop is not guaranteed to run at least once

What? I guess if you screw up setting up the for loop it won't run. If you initialize the variable in the for loop wouldn't it be guaranteed to run?

What? I guess if you screw up setting up the for loop it won't run. If you initialize the variable in the for loop wouldn't it be guaranteed to run?
not necessarily

in some cases you may have to code for at least one guaranteed run

not necessarily

in some cases you may have to code for at least one guaranteed run

Could you show me how that would happen? It's actually confusing me. I'm not the best at coding but I think I have a pretty good understanding of the basics so far, sorry if this questioning is annoying.

Does anyone know Java? I plan to learn it soon, I know some basic Python.

Could you show me how that would happen? It's actually confusing me. I'm not the best at coding but I think I have a pretty good understanding of the basics so far, sorry if this questioning is annoying.
torquescript because i'm too focused on it to think of C++ or Java
Code: [Select]
for(%i = getRandom(0, 5); %i < 3; %i++)
{
echo(%i);
}

i could be four or five, and that's certainly not less than three so it wouldn't run

torquescript because i'm too focused on it to think of C++ or Java
Code: [Select]
for(%i = getRandom(0, 5); %i < 3; %i++)
{
echo(%i);
}

i could be four or five, and that's certainly not less than three so it wouldn't run

Ok, so only if you forget up on initializing the variable. I got it then.