Ruby vs. Javascript

I used JavaScript for the first time this week (woo!). This post will be about JavaScript, the programming language, and how it differs in syntax and useability from a few other languages. I first learned how to program in high school. The year was 2007 and the language was Visual Basic. To me, it was a simple, easy to use, easy to learn language. In college I learned C, along with the basics of computer organization and machine languages. [Read More]

Ruby Building Blocks

I feel like a toddler. My brain hurts and nothing makes sense. The internet insists on explaining things to me like I already know things. Dear Internet, I most certainly do not. I have included here the stuff that did make sense. May these humble building blocks aid you in your own pursuit of understanding. Modules vs. Classes From my blog post on the map method, a module is a way of grouping together methods, classes, and constants - a collection of reuseable code. [Read More]

Lets Get Classy

I learned how to use a new Ruby ‘thing’ this week: Classes. To be completely honest with you, I don’t completely understand what’s going on with the Ruby ‘class’ object, but I’ve been using it, and I think I can do a reasonably competent job explaining the basics. Also this week, I learned some new tricks for arrays and hashes. Check them out at the end of my post from a few weeks ago. [Read More]

Method: Map

I’m quite new to the realm of Ruby. Don’t get me wrong, I’m a hughe fan. There are just a few things (many, many things) that I don’t quite understand yet. I’m going to throw some concept descriptions down below, but just so you know where I’m going with this - this post is about the Ruby ‘map’ method. It’s a super-simple, super-useful method. See below for descriptions and examples. [Read More]

Hash-tastic

This week I learned about the glorious data storage object that is the Hash. The following will be some fun information on how to differentiate, define, and reference arrays and hashes. Arrays and hashes are both constucts used for data storage. Their construction and syntax are different, so depending on what you’re trying to do, one will likely be better than the other for specific applications. Define Array Ordered, iteger-indexed collections of any object. [Read More]
ruby  hash  array