Sunday, October 11, 2015
Reflection 2
For week 2, I persisted in my venture towards mastery in the Ruby coding language. Already I am familiar with common commands and inputs of the software. With this week, I have learned commands such as elsif and true and false statements. For elsif, it is used when the commands if, else, and end are used. These commands are primarily used for displaying text based on if the statement is true. For example, one prompt may read, "if 2>1 print 'I am being printed because 2>1'". Else is used if the prompt is different. It may read, "else print 'I am being printed because 2 is not >1'". Elsif makes it possible to not have to use both of these commands and saves a lot of time. I am happy with my progression and hope that next week is filled with more surprises and accomplishments!
Labels:
Nate
Subscribe to:
Post Comments (Atom)
Ruby is an excellent language to learn. I'm an old time coder and love the Smalltalk programming language which was created by the inventor of the term "Object-Oriented": Alan Kay. Here is a recent presentation by him https://youtu.be/NdSD07U5uBs
ReplyDelete