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.

From: [identity profile] vonknibble.livejournal.com Date: 2008-03-24 04:18 pm (UTC)
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?

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 04:49 pm (UTC)
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.

From: [identity profile] vonknibble.livejournal.com Date: 2008-03-24 06:26 pm (UTC)
Hee! I write pointless GUI code so I have something to point and go 'See! see! can do it!'

It's so freakin' demoralising.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 06:47 pm (UTC)
Oh man, if you can write pointless GUI code, FEEL SPECIAL. LOL I probably still can only make Java post on alert window on a good day. :p I always worked around it by doing every single problem possible as a web application in college. I got away with it way more than I should have, too.

-Bree

From: [identity profile] vonknibble.livejournal.com Date: 2008-03-24 06:55 pm (UTC)
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
ext_2751: (ianto eyebrow)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 04:21 pm (UTC)
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?

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 04:27 pm (UTC)
Okay, now I LOVE multidimensional arrays...but I HATE linked lists.

My brain thinks in arrays. I still can't take an object out of freaking queue without breaking it. My dream was haunted by "null pointer exceptions" for a very, very long time. ;)

Of course, now that I've graduated I can just use other people's linked list code. :D

-Bree
ext_2751: (Default)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 04:34 pm (UTC)
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.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 04:38 pm (UTC)
My least favorite thing EVER was when we had to implement a priority queue. God, it just all seemed so NEBULOUS! My information was floating around there in no man's land with only pointers to access them at all, and the minute you mess up that pointer...

Bah! Give me an array any day. :D Especially since I do a lot of programming in PHP now, and the only advantage linked-lists had in most firmly structured languages is gone in PHP since arrays can be of variable non-declared length. :D

Gosh, I sound like such a dork. LOL

-Bree
ext_2751: (ianto happy)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 04:59 pm (UTC)
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

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 05:24 pm (UTC)
...I wandered off to make a visual aid for arrays that included Karl Urban biting some woman's chin.

This is why I can never be a teacher outside of fandom. ;)

I'm such a big geek though. :D I have programmer squeeeeee. Right now I'm doing work for a website with databases and crazy arrays and being buried in that code has brought out my full-on geek.

-Bree (who signs her name because there are two people using this journal, /random disclaimer)
ext_2751: (jack mischevious)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 05:31 pm (UTC)
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*

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 04:50 pm (UTC)
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.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 04:24 pm (UTC)
Hahahaha. Seriously. Table[x][y]

A 2d array is a matrix, plain and simple.

And I LOVE them. I love them.

I have, in fact, used a 3d array once because multi-dimensional arrays just make me that damn happy.

If you ever wanna see 2d arrays in lots of action: http://www.cis.uab.edu/breecita I have my code posted still for that. It's a project I did for my Multimedia Database class that pretty much analyzes pictures on a pixel by pixel basis and compares pictures based on their content.

And I really, really want to load it full of hot actors and see if it can start recognizing them. My plan is for it to become sentient, turn into Skynet, and start manufacturing thousands of clones of very, very hot men since that's what it specializes in.

:D

-Bree
ext_2751: (Default)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 04:30 pm (UTC)
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.

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 04:52 pm (UTC)
*narrow eyes* If it had just *said* address? I would have been so much happier.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 04:55 pm (UTC)
Oh, I won't argue with you there. People are CRAP at teaching this. Textbooks are almost useless.

Seriously, the only reason I figured any of this out was because I kept trying and trying and trying. The sad but true truth is that I just continued to be confused until I suddenly GOT it.

And getting it rarely had to do with teaching. :p

It's one of the reasons I want to teach some days. Maybe I'm not perfect, but I KNOW how useless some of the tired old ways of explaining it are.

-Bree

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 05:01 pm (UTC)
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.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 05:19 pm (UTC)
If you forget, look at this:

Image

(If I were a teacher, I would teach everything with arbitrary pictures of hot people doin' it. Maybe I shouldn't be a teacher.)

-Bree
ext_2751: (janto missme)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 05:25 pm (UTC)
OMG, best teaching aid EVER.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 05:30 pm (UTC)
Maybe there needs to be a fandom programming class. "Learning Data Types with Hot Actors and Actresses."

Man, I'd take that. You know, to refresh my knowledge. ;)

-Bree
ext_2751: (jackh smile)

From: [identity profile] x-pixel-x.livejournal.com Date: 2008-03-24 05:38 pm (UTC)
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...*
ext_2277: (Default)

From: [identity profile] gchick.livejournal.com Date: 2008-03-24 05:35 pm (UTC)
On the contrary, you SHOULD be a teacher. Mmmmm.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 05:57 pm (UTC)
Why thank you! :D With my large collection of hot pictures, you'll all be programming in no time. ;)
ext_2277: (Default)

From: [identity profile] gchick.livejournal.com Date: 2008-03-24 06:20 pm (UTC)
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.)

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 06:25 pm (UTC)
HAHAHA!

Yes, yes he is going to town (http://www.tapfer.org/karlurban/urban2.jpg) all right and I just gotta say...I feel inspired to learn. :D

I seriously learned so little from actual classes. I was somewhere in the middle of my Algorithms & Data Structures class before I really "got" classes and objects. I understood scope somewhere in the middle of my Programming Languages class, when I was building a bloody interpreter from scratch. (And oh, ouch. OUCH. Still the most painful experience of my young life.)

I actually explained Classes/Objects to someone using fanfiction once. It turned out to be a really good analogy! Much better than the freaking car or frogs or whatever the textbooks are prattling on about this week.

-Bree

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 06:29 pm (UTC)
*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.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 06:33 pm (UTC)
Yep. Damn CARS. I HATE that one!

I seriously didn't completely understand the point of encapsulation until I built the W/R archive that first time. LOL Or rather, when I sat down to try to make changes to it. Then I was like "...crap. THAT'S what encapsulation means. Not having to edit every. damn. file. because my data is being changed outside of the class."

-Bree

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 06:38 pm (UTC)
The really bad part is, he's pure book lecture, and the book sucks. Last semester, my prof would show random programs and rewrite bits while we watched, then answer questions about them--we didn't always understand it at the time, but I'd look later at my redline changes and be like, right. Of course! And got us used to actually seeing the structure as well as writing it, so we knew, in a vague way, what it was supposed to look like, and also, during class, could instantly ask questions about variations.

Here it's just--literally, staring at the text and googling until it clicks. And I swear the only reason the coordiate thing occurred to me was I was working on impossible graphs.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 06:42 pm (UTC)
What will really suck is if they start babbling on about converting 2d arrays to 1d arrays and back. We had to do that a couple times, and it took forever for me to understand what the hell they were talking about. :p

I really think it's easiest to think of a 2d array as a list of arrays. The first number tells you which array to go to, and the second number tells you which "cell" of that array to look in. All this crap they do otherwise is just silly.

-Bree

ETA: Ooh, though I forgot something that I've noticed confuse people. In a 1d array you have two "values"...the key and the value stored within that location. Array[x] = y. In a 2d you have 3 values, key 1, key 2, and the value that they point to. Array[x][y] = z. Once you truly understand how that works, you can use arrays for all SORTS of tricky things. (I love to use them for counting instances of numbers. I'm a cheater. :D)
edited at: Date: 2008-03-24 06:44 pm (UTC)

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 05:53 pm (UTC)
My learning curve would increase exponentially.

From: [identity profile] moirarogers.livejournal.com Date: 2008-03-24 05:55 pm (UTC)
Whose wouldn't?

Though I am slightly disturbed by the possibility that I will start thinking about 2d Arrays every time I see Karl Urban now... That wouldn't do at all. :D

-Bree

From: [identity profile] barkley.livejournal.com Date: 2008-03-24 04:28 pm (UTC)
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?"

From: [identity profile] seperis.livejournal.com Date: 2008-03-24 05:01 pm (UTC)
Hee! I hope one day to like them. When the scars heal.

Profile

seperis: (Default)
seperis

Tags

Quotes

  • If you don't send me feedback, I will sob uncontrollably for hours on end, until finally, in a fit of depression, I slash my wrists and bleed out on the bathroom floor. My death will be on your heads. Murderers
    . -- Unknown, on feedback
    BTS List
  • That's why he goes bad, you know -- all the good people hit him on the head or try to shoot him and constantly mistrust him, while there's this vast cohort of minions saying, We wouldn't hurt you, Lex, and we'll give you power and greatness and oh so much sex...
    Wow. That was scary. Lex is like Jesus in the desert.
    -- pricklyelf, on why Lex goes bad
    LJ
  • Obi-Wan has a sort of desperate, pathetic patience in this movie. You can just see it in his eyes: "My padawan is a psychopath, and no one will believe me; I'm barely keeping him under control and expect to wake up any night now to find him standing over my bed with a knife!"
    -- Teague, reviewing "Star Wars: Attack of the Clones"
    LJ
  • Beth: god, why do i have so many beads?
    Jenn: Because you are an addict.
    Jenn: There are twelve step programs for this.
    Beth: i dunno they'd work, might have to go straight for the electroshock.
    Jenn: I'm not sure that helps with bead addiction.
    Beth: i was thinking more to demagnitize my credit card.
    -- hwmitzy and seperis, on bead addiction
    AIM, 12/24/2003
  • I could rape a goat and it will DIE PRETTIER than they write.
    -- anonymous, on terrible writing
    AIM, 2/17/2004
  • In medical billing there is a diagnosis code for someone who commits suicide by sea anenemoe.
    -- silverkyst, on wtf
    AIM, 3/25/2004
  • Anonymous: sorry. i just wanted to tell you how much i liked you. i'd like to take this to a higher level if you're willing
    Eleveninches: By higher level I hope you mean email.
    -- eleveninches and anonymous, on things that are disturbing
    LJ, 4/2/2004
  • silverkyst: I need to not be taking molecular genetics.
    silverkyst: though, as a sidenote, I did learn how to eviscerate a fruit fly larvae by pulling it's mouth out by it's mouthparts today.
    silverkyst: I'm just nowhere near competent in the subject material to be taking it.
    Jenn: I'd like to thank you for that image.
    -- silverkyst and seperis, on more wtf
    AIM, 1/25/2005
  • You know, if obi-wan had just disciplined the boy *properly* we wouldn't be having these problems. Can't you just see yoda? "Take him in hand, you must. The true Force, you must show him."
    -- Issaro, on spanking Anakin in his formative years
    LJ, 3/15/2005
  • Aside from the fact that one person should never go near another with a penis, a bottle of body wash, and a hopeful expression...
    -- Summerfling, on shower sex
    LJ, 7/22/2005
  • It's weird, after you get used to the affection you get from a rabbit, it's like any other BDSM relationship. Only without the sex and hot chicks in leather corsets wielding floggers. You'll grow to like it.
    -- revelininsanity, on my relationship with my rabbit
    LJ, 2/7/2006
  • Smudged upon the near horizon, lapine shadows in the mist. Like a doomsday vision from Watership Down, the bunny intervention approaches.
    -- cpt_untouchable, on my addition of The Fourth Bunny
    LJ, 4/13/2006
  • Rule 3. Chemistry is kind of like bondage. Some people like it, some people like reading about or watching other people doing it, and a large number of people's reaction to actually doing the serious stuff is to recoil in horror.
    -- deadlychameleon, on class
    LJ, 9/1/2007
  • If imitation is the sincerest form of flattery, then Fan Fiction is John Cusack standing outside your house with a boombox.
    -- JRDSkinner, on fanfiction
    Twitter
  • I will unashamedly and unapologetically celebrate the joy and the warmth and the creativity of a community of people sharing something positive and beautiful and connective and if you don’t like it you are most welcome to very fuck off.
    -- Michael Sheen, on Good Omens fanfic
    Twitter
    , 6/19/2019
  • Adding for Mastodon.
    -- Jenn, traceback
    Fosstodon
    , 11/6/2022

Credit

November 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2022
Page generated Apr. 23rd, 2025 06:53 am
Powered by Dreamwidth Studios