To note for later exploration:

I think it was when I was messing with Python a few months ago (what a delightfully weird statement, taken out of context) when I first learned about if/else statements.

I’m about halfway through Codecademy’s Ruby track right now, learning about if/else statements again. I just spent a slightly embarrassing amount of time trying to pass one exercise before finding code in the help forums that looked just like mine, save for one exception: the code that worked had an “elsif” where I had an “else.” I used “else” because there were only two options within this method, and I remember learning *somewhere* that you don’t use “elsif” when you’re not going to put an “else” after it.

It’s very possible that I learned this in Python and it doesn’t apply the same way in Ruby. Of course, it’s also possible (by which I mean “likely”) that I shouldn’t be trying to do my homework at 3:30am after eating a giant dinner of porkchops (meat coma, hooray!) at the end of a long day. I don’t know, but I intend to find out.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>