resources["psych_flashcards_8_3_0"] = new Array();
e"] = "Flashcards: Operant Conditioning";
resources["psych_flashcards_8_3_0"]["url"] = "http://psychology.lindseys-job.com/flashcards/chapter8/section3/yes/this/is/fake/";
e"] = "Flashcards";
eFormat"] = "html";
lindseykuper: It's a friggin' enormous .js file. There's probably a more efficient way for me to do that associative array
lindseykuper: like, an object or something
jes 5 1 9 9: but you should have a look at JSON
lindseykuper: I've used it. I like it.
lindseykuper: yeah, that totally makes sense for this.
I thought, "No way. No, it can't." But it turns out it totally can. Now I've got an object of things like
"name": "Flashcards: Operant Conditioning",
It comes out to 374 KB. 40% less code, and the cool part is that nothing else had to change, because all my old code that used the double array indices still works. How great is that?