WDI: Week 1, Day 4
Today
Boy was I not prepared for today. Object-oriented programming was a brand new can of worms. I could not believe how much information was squeezed into our brains. We reviewed objects and methods (let me just say that everything is an object in Ruby, and everything has a method) and learned how to organize everything into new classes. This was ten-fold more complex, not impossible, but more complex, than anything else Iād encounter all week. New item to stress over :-/
What Did I Learn?
I learned about this operator in between the two objects below:
a <=> b
It sorts things and tells the user what is bigger than the other. It will return one of the following depending on the outcome of the two:
-1 if first order is on the left 0 if equal 1 if first order is on the right
Tomorrow
I need to get through object-oriented programming. Current mood: getting my butt kicked. Got to look into it further tomorrow.













