?

Log in

No account? Create an account

The Toybox

people for the conservation of limited amounts of indignation


Previous Entry Share Next Entry
for my next trick, staring into the sun
angry!snail
seperis
Hi and Welcome

So. Multidimensional arrays. Well.

See, I thought hell was classes. No. Hell was functions? No. Is hell, in fact, a two dimensional array? Actually, no.

Hell is a book that acts like they are just two arrays brought together magically.

Starting on Friday, through midnight Sunday, I suffered under the delusion that all I had to do was create two arrays, then bring them together with magic. Like this.

table[array1][array2]

Voila! Your work here is done. Or so the book says.

And I'm sure in some universe--the example in the book, say--that works. You might be surprised to know I cried, considered drowning myself, and opened up The Erdős–Faber–Lovász conjecture to stare at (speaking of, I'm still not sure why two people can't just belong to one committee period, because that would short circuit that entire issue right off the bat). And let me tell you, when working on unsolved graphing problems you don't even understand is preferable to spending any amount of time looking at your two dimensional array? You have reached hell.

(Seriously. Why can't two people work only one committee? I'm also weirded out by the fact the entire thing really looks neat if it's k chairs, k people and k+1 committees. I don't even know what that means but the graph has four colors and is deeply, deeply awesome and also congruent, which satisfies the small part of me that likes everything to be balanced. I ended up trying to do it three dimensionally but again, no toothpicks. I also gave the people names. Perhaps off my flist. It was more fun that way).

But you know what's so much easier than both of these? Treat the fucker like an address.

table[rows][columns]

I keep going back to read the book and they just do not even imply that. They don't! They initialize it, or enter data from it, but nowhere does it say, "Oh, by the way. Please don't take this literally. This is an address." An address. A pointer, though not officially, if you will. You don't have to create an array to take your data before hand! No, this one can do it all on its own!

One. Line. Would. Have. Saved. My. Sanity.

The only comfort I have atm is that the average grade on this is very low so far. Still have searching the char array to do (Pretty sure this isn't going well; my first attempt last night ended up with strange results that might be, oh, crazy) and organizing the data. Yeah.

I always wondered about people who said they could pass a class easily and never learn anything. It scares me that it's very possible without a lab practical, which makes me wonder why on earth there isn't one for this.

I wish there were other news, but really. Really close to writing a sternly worded letter to the book person to use examples that are, say, clearer. Using the Angry Snail Icon of Anger.


  • 1
And let me tell you, when working on unsolved graphing problems you don't even understand is preferable to spending any amount of time looking at your two dimensional array? You have reached hell.

Oh, god. This is exactly where I am right now. I laughed my ass off when i read this, and if that laughter was somewhat manically tinged...I know you understand why. Who new there was a worse hell than classes?

Classes seem like a snap now. Seriously, I wrote one into this program for fun so as to feel entirely less stupid than I did with the arrays.

Hee! I write pointless GUI code so I have something to point and go 'See! see! can do it!'

It's so freakin' demoralising.

(Deleted comment)
The latest assignment uses a GUI, which I spent hours and hours on because the rest of it scares me silly and I'm avoiding it. It might not actually *do* much of anything, but damn if i don't have the prettiest GUI in the class :D

What stupid book is this?

Multidimensional arrays are fun, and useful, and fun. I'm sorry the book made them way more difficult then they should have been :/

Have you done linked lists?

(Deleted comment)
LOL, YES!
We did linked lists first, and they so broke my brain. I could use them now, if I needed to, which I don't, pretty much ever. Then we went on to arrays and that made so much more sense.

Hah, I had dreams about how the items in my linked lists would just...move around all by themselves >.< Then it would be all out of order, and I'd never know, and I think somewhere I had some sort of linked list loop...It was bad times for sure.


(Deleted comment)
I think that is what scared me the most about linked lists, objects could just disappear....

We have lists and other fun collection objects in Java that make linked lists just not useful.


Hahaha...programmer squee

(Deleted comment)
With that sort of incentive aid, I'd sign up for any of your classes ;)

And the programmer squee? Comes with the territory, at least for us programmers who don't get to talk to other programmers much. :D (I'm so glad I still get excited about it, once you're not excited, get out of the field, too much work if you don't enjoy it.)

*needs a geek icon*

They are! When it finally made sense, I was like--oh. Jesus. God. You are kidding me. Even now, though I have to stare at my program and say THESE ARE COORDINATES. ON A GRAPH and that snaps me into the right place.

(Deleted comment)
3 dimensional arrays are so made of WIN. I use them, and I marvel at how everything is all right *THERE* together, happy, organized, wonderous.

*narrow eyes* If it had just *said* address? I would have been so much happier.

(Deleted comment)
I'm in the middle of a deep sulk, because I have this horrible feeling I will default back into thinking of it like two bonded arrays and cry.

...seriously. Looking back, that was just insane.

(Deleted comment)
OMG, best teaching aid EVER.

(Deleted comment)
I'll teach if you do the....aids. :D

We can all be....refreshed.

*insert some witty remark about linked lists and 7 degrees of separation...*

On the contrary, you SHOULD be a teacher. Mmmmm.

(Deleted comment)
I already do! But clearly, I'm in need of the refresher course, because somehow my 2D arrays never seem to have Karl Urban in them.

(I'm also prone to long boring rants about how CS is traditionally taught, and could be taught better, and might do better if better addressed to different personalities/learning styles. Including what is clearly a large and untapped population of what are not just visual learners, but OMG KARL URBAN GOING TO TOWN ON THAT WOMAN'S CHIN learners.)

(Deleted comment)
*sad* Cars, Ford, transistors. We all stared blankly until Blueprints, House. Then I sat down and thought, functions with added variables. That (mostly) did the trick.

(Deleted comment)
My learning curve would increase exponentially.

I love two dimensional arrays. Except for the part where I had a brain blank on what they were called the other day and I was correcting someone's code and I said, "That's not going to work because you have to pass in a..." and then I couldn't remember the word so I just made dual bracket symbols with my hands which probably looked really wrong, but apparently it got the point across as he said, "a multidimensional array?"

Hee! I hope one day to like them. When the scars heal.

  • 1