#The grader was like 'why did you make a dictionary of dictionaries. That's absurdly inefficient and wastes so much memory'
Explore tagged Tumblr posts
Text
The thing about programming is that there's a level on which it feels like total wizard shit, like you're grappling with concepts directly on an abstract plane, splitting them apart and restructuring them into more elegant and fundamental forms, limited only by your own comprehension which you can practically feel expanding as you synthesize constructs and destroy them and remake them
But it is also, simultaneously, one hundred percent pedantic bullshit all the way down.
#this is a hilariously grandiose post to make given that the code I wrote today is absolutely cludgy bullshit#just the most gratuitous overbuilt data structure misuse possible#at least in the process of writing through it all I think I've conceptuallized a better way#So i might jump to writing that version. Rather than even trying to debug this clusterfuck into working order.#The problem is that I think dictionaries are a really cool data structure and they're easy to conceptualize#But they really are not efficient. And especially not if you're trying to cross-reference more than one of them.#This was also the problem with the one assignment in my coding class where I lost points on an inelegant solution#The grader was like 'why did you make a dictionary of dictionaries. That's absurdly inefficient and wastes so much memory'#and I was like. Well you see I thought it was neat conceptually.
3 notes
·
View notes