Thursday, November 1, 2012

Lecture (Oct. 25)

Today, we had a lot of good quotes from Pops. A LOT of good ones.

Pops was talking about objects and classes.
"Inside here - well, I haven't opened it yet, so I hope it's in here - is a Rice Krispy Treat. Or at least there had better be, 'cause I paid a buck and a quarter for it. ... And, ya know, if you eat it, it tastes good. That's a behavior! And this..." *points to recipe* "...is NOT a Rice Krispy Treat! It's a class!"


“Ya know, you can build multiple houses with a single blueprint. In Java, you'd just say new house! I mean, it's not that easy, but I mean...yeah.”

“See, it's not software, and I'm not good at hardware.” -Pops, after failing to fly a paper airplane

“Call it something indicative of what it does. Don't call it Afghanistan. It's not! It's a point!” -Pops, on names of objects

Anyway, I've got a good feeling about objects.

Lab 8

This week in the lab, we dealt with 2D arrays. The first four problems were quite easy, and WH and I flew through them in a half hour at most. The last problem, however, kicked our asses. We sat there for at least an hour trying to figure it out, when Trick Master came by and mentioned that he did it using four Booleans and five "if" statements. He prodded us a little more and we finally got it. Turns out we were just overthinking it, like we tend to do.

Lecture (Oct. 30)

So today, we learned about constructors and what they do, which is pretty much that they initialize variables in an object. That's basically it. What was really fun about this particular lecture was the video for today and Pops' quote towards the end.
In the YouTube video of the day, we learned that if you want to enhance your computer's wireless range, wrap a cell phone in Ethernet cable and plug an end into your computer. You can make an aluminum foil "satellite dish" to enhance it further.

Wisdom from Pops:
The last thing you want is for someone to reach into your object and mess around with your privates! You're all objects, so I'm sure you can relate to that. If you want someone to mess around with your private parts, go ahead and make 'em public! And there /are/ reasons you'd want to be able to mess around with private parts...” - Pops, on why to make your variables private.