Instructions Unclear, Stuck Inside Washing Machine Inside Blender

Instructions Unclear, Stuck Inside Washing Machine Inside Blender

The trouble with Code Academy is that its instructions aren’t clear a lot of the time. For instance, it gives the following Javascript code:

var understand = true;

while( FILL THIS BLANK ){
console.log(“I’m learning while loops!”);
understand = false;
}

And says, “complete the while loop… Do this by adding the condition between the parentheses”. The clue: “As long as the condition evaluates to true, the loop will continue to run. As soon as it’s false, it’ll stop. (When you use a number in a condition, as we did earlier, JavaScript understands 1 to mean true and 0 to mean false.)”

When a novice reads this, he/she thinks, I can put anything True in there! So, I crashed the browser three times before I realised it wants me to put the variable “understand” in there.

This lack of clarity can get quite frustrating if it makes you spend an hour or more trying to interpret the vagueness rather than working on code. It happens enough to be noticeable, but I’m patient so I’ll slog on.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s