Thanks to everyone who braved the elements yesterday. We had a good
turnout at 10. My notes for those who missed it are below - feel free
to respond with any questions. If I can't help, I'm sure someone else
We used https://github.com/edgecase/ruby_koans
as a guide to practice
what we learned. Download the zipped file, open them up one by one on
a text editor as specified and follow the instructions in the
comments. Then run the command “rake” to see how you did.
•Rails – platform, code written in Ruby that runs in open source.
Gives you methods to expose your code.
•Ruby – core language and library. Can run in other platforms other
•Gems – packets of functionality. Similar to plugins in WordPress.
•Think of Ruby as the ingredients and Rails as the cake.
•Others: PHP/CakePHP, Python/Django, .Net/MVC…
•Can easily change classes and re-define them in comparison to other
•In Ruby, everything is an Object
•Objects are methods that you can call that do things
•Classes are objects in Ruby
•Lasagna example: The recipe is the class, when you make it and it’s
on the plate, it’s an instance.
•Instance = object
•Class is a blueprint and an object is what you build from a blueprint
•Use .new to create an instance of a class
•“p” is a shortcut for “puts string”
•Can use double quotes or single quotes for strings
•Type “public_methods” to see the methods for the instances of that
•A string is a set of characters the computer can process. Imagine the
letters are on a string of laundry line and the quotes are clothespins
holding the ends. The quotes mark the beginning and end.
A big thanks to Len again for leading our session. Information on our
second meetup is coming soon!