The Domain of Steven Pinnacle of Paperless Perfection

23Jan/051

“So, what’d you ge…” “Fuck you.”

On Saturday, I took the last old SAT ever to be given, and it went smoothly. I ended up getting either a few minutes worth of checking time, always put to good use, or finishing by the skin of my teeth (and let's say I just brushed my teeth, so there's not a lot). I was able to put down definitive answers for all the math questions, though I was less confident about some of the verbal, and on one I twirled my pencil around the scantron while not looking, hoping that the spirits would make the pencil home in on the right answer. We'll see.

However, in the game of studying, Steven-0, Procrastination-3.

Compilation of Amusing Conversations updated. Edit: Updated again on the 26th.


SarcasticSteven (10:38:11 PM): ok, abstract classes
SarcasticSteven (10:38:27 PM): (explanation)
SarcasticSteven (10:38:35 PM): let's say there's an abstract class called weapon
SarcasticSteven (10:38:43 PM): weapon's pretty vague, so you can't make a weapon object
SarcasticSteven (10:38:52 PM): but you can make classes that extend weapon
ProdigalElement4 (10:38:53 PM): = many forms
SarcasticSteven (10:38:55 PM): in essence, they're weapons
ProdigalElement4 (10:39:01 PM): like shuriken
SarcasticSteven (10:39:07 PM): so you can make a knife and a gun that extend weapon
SarcasticSteven (10:39:18 PM): weapon can have methods like kill()
SarcasticSteven (10:39:22 PM): because weapons kill
ProdigalElement4 (10:39:25 PM): it should be howkill
SarcasticSteven (10:39:30 PM): but each weapon defines it's own kill method
SarcasticSteven (10:39:39 PM): a knife will have a different kill method than a gun
SarcasticSteven (10:39:44 PM): but it MUST have a kill method defined

SarcasticSteven (10:42:06 PM): polymorphism
SarcasticSteven (10:42:21 PM): let's use the class weapon
SarcasticSteven (10:42:23 PM): again
HeadlessRoland12 (10:42:28 PM): yay
SarcasticSteven (10:42:30 PM): this time, it's not abstract
SarcasticSteven (10:42:35 PM): you can make a weapon
SarcasticSteven (10:42:44 PM): gun still extends weapon
SarcasticSteven (10:43:04 PM): you would normally make a gun like Gun pistol=new Gun()
SarcasticSteven (10:43:18 PM): however, because gun is considered a weapon, you can make a new weapon that's a gun
SarcasticSteven (10:43:26 PM): Weapon pistol=new Gun()
ProdigalElement4 (10:43:36 PM): eh?
ProdigalElement4 (10:43:40 PM): u can do that?
SarcasticSteven (10:43:42 PM): yea
HeadlessRoland12 (10:43:46 PM): but why
ProdigalElement4 (10:43:48 PM): wouldnt it still be a gun?
ProdigalElement4 (10:43:56 PM): wouldnt it still be the same thing?
SarcasticSteven (10:44:01 PM): it's a gun
SarcasticSteven (10:44:04 PM): let me go on
ProdigalElement4 (10:44:04 PM): since gun extends weapon
SarcasticSteven (10:44:08 PM): let's say you own a weapon store
SarcasticSteven (10:44:14 PM): a weapon array
SarcasticSteven (10:44:27 PM): you don't want to limit your inventory, so you carry guns AND knives
ProdigalElement4 (10:44:27 PM): (matrix jacket)
SarcasticSteven (10:44:41 PM): instead of making a gun array and a knife array
SarcasticSteven (10:44:44 PM): you can make a weapon array
ProdigalElement4 (10:44:53 PM): whats the difference?
SarcasticSteven (10:44:59 PM): and each weapon slot can be made into a new weapon, either a gun or a knife
ProdigalElement4 (10:45:04 PM): oh
HeadlessRoland12 (10:45:10 PM): i c
SarcasticSteven (10:45:10 PM): a gun array can't hold knives
ProdigalElement4 (10:45:11 PM): ohhhhh i kinda get it now

ProdigalElement4 (10:46:17 PM): i get dynamic binding sorta
CorpseDrk (10:46:22 PM): i think i can answer that
ProdigalElement4 (10:46:37 PM): its that an object could be set to several different objects
CorpseDrk (10:46:46 PM): you can make knives and guns as individual objects etc
ProdigalElement4 (10:46:48 PM): but its not figured out until it gets to runtime
SarcasticSteven (10:46:53 PM): yea
SarcasticSteven (10:47:09 PM): like, let's say you're doing an inventory of your weapon store
SarcasticSteven (10:47:22 PM): you check each weapon to make sure the weapon can kill
SarcasticSteven (10:47:26 PM): the weapon class has a kill function
SarcasticSteven (10:47:41 PM): but you don't use the gun's specific kill function until you run it
SarcasticSteven (10:47:46 PM): i.e. go on a rampage
SarcasticSteven (10:48:10 PM): RAMPAGE!!!!!
SarcasticSteven (10:48:14 PM): RAWRRRRR

HeadlessRoland12 (10:53:01 PM): wait so what is iterator exactlz
HeadlessRoland12 (10:53:07 PM): exaclty
ProdigalElement4 (10:53:17 PM): u can use it to help u in ur loops and stuff
SarcasticSteven (10:53:18 PM): make an iterator first, with Iterator itr=arraylistname.iterator();
SarcasticSteven (10:53:23 PM): it's like a spy
SarcasticSteven (10:53:37 PM): you make a spy to snoop around a certain country
SarcasticSteven (10:53:39 PM): or arraylist
SarcasticSteven (10:53:43 PM): and he stays in that country
HeadlessRoland12 (10:53:51 PM): ok
ProdigalElement4 (10:53:54 PM): *snoop*
ProdigalElement4 (10:53:58 PM): *snoopy*
SarcasticSteven (10:54:24 PM): so when you want to know if there are any more evil schemes (items in the arraylist), you call itr.hasNext
SarcasticSteven (10:54:34 PM): and it'll return a boolean
SarcasticSteven (10:54:40 PM): oh yea, parenthesis
SarcasticSteven (10:54:42 PM): like always
SarcasticSteven (10:54:55 PM): and if you want to know the evil plot, call itr.next()
SarcasticSteven (10:55:10 PM): and it'll return the item that hasnext located
SarcasticSteven (10:55:50 PM): when you're making an iterator, is iterator capitalized at the end?
HeadlessRoland12 (10:55:57 PM): so how does it progress along the array
ProdigalElement4 (10:56:13 PM): how does it progree?
ProdigalElement4 (10:56:17 PM): progress*
SarcasticSteven (10:56:32 PM): it starts at the beginning
SarcasticSteven (10:56:37 PM): at the earliest evil scheme
SarcasticSteven (10:56:51 PM): then when you call next, it silently moves to the next evil scheme at the next index
SarcasticSteven (10:57:09 PM): that is, if there is another evil scheme

Comments (1) Trackbacks (0)
  1. The first two weapons explanations refer to stuff in my computer game. Exept, I had damage rather than kill and gave kill to the person class. And the game didn’t work. But the class structure was fine. Well, sort of.

    Nonehteless, I shall still leave a token “Dude, you should publish a Comp Sci textbook for villains. Like, you know, Comp Sci for dummies. Only Comp Sci for villains. Mad awesome. Just rememebr to set it to descreetly explode a week after somebody buys it, because there can be only one, god damn it!


Leave a comment

No trackbacks yet.