Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Monday, August 22, 2011

Sad State of Software Engineers

Let's have a little programming lesson, in simple, straightforward Actionscript.

This is how you output some text to the console:
trace("foobar!");
This is a variable:
var number_of_sheep=5;
This is how you make a loop that counts from 1 to 10:
for(var count=1; count<=10; count++){}
Now let's combine these concepts to count sheep.
for(var number_of_sheep=1; number_of_sheep<100; number_of_sheep++)
{
    trace("There are "+number_of_sheep+" sheep.");
}
This should output:
There are 1 sheep.
There are 2 sheep.
There are 3 sheep.
There are 4 sheep.
...all the way to 100.
Congratulations.  You are now more talented than 199 out of 200 people who apply for programming jobs.