1. Computing
Michael Morin

Everything You Wanted to Know about Control Structures

By September 30, 2012

Follow me on:

I imagine the first computers were rather simple, running through a set of instructions and producing a result.  Load a new program (or, as it were, rewire the entire computer with a giant patch panel), load a new set of data and set it going yet again.  Until stored programs came about, and someone had the idea of a "jump" instruction.  This implies a "conditional" part, if the accululator is 0, then jump.  Thus was born the conditional statement.  And Ruby has no shortage of conditional statements (though a bit more sophisticated than the description above).

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.