Thursday, December 9, 2010
make-up Post
Today I will be talking about compound conditionals. These are when you have multiple conditions that must be met before an action can be put into place, like an if or while statement. These are quite simple if you understand how single conditionals work. All you have to do is use the parentheses and brackets correctly! Sounds easy right? NO. It is not. It is a horrible pain in the (word mommy said not to use in public.) This seems to be the bane of programmers, who have an aversion to work proven by their constant striving for shorter, better ways to get things done. The only way I can recommend to fix chronic removal of vital but uninteresting syntax is lots and lots and lots of practice. However, compound conditionals themselves, such as ((isFlower(AHEAD)) || (isFlower(RIGHT))) are quite simple but extremely useful I finished the labs related to them with no problems.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment