In Thor's offence
July 8, 2025
I've seen his code, you've seen it too. Here's a refresher:
And here's another one:
Plenty of people who are not developers have seen the code, and some have attempted to defend him, saying "it's faster that way".
But it's not, not even close, and just screams "I really don't know what I'm doing here", "novice alert" or simply "I don't really care that much tbh".
Using somevariable[some number] is like pouring every medication you have into the same plain white bottles, scribbling random numbers on each, and tossing the labels. It feels “faster” until 3 a.m rolls around, when your pounding head reaches for #17 which as far as you remember was ibuprofen and you end up downing a laxative instead.
Labeling the bottles is almost as fast as numbering them, and saves you a guaranteed trip to the bathroom later. And if you claim numbering them is in any way better, you're either delusional, or lying.
Ok, you can argue that numbering 2 medications can be faster, but in the first screenshot, we're up to 26. And in the second it's even worse, we're at global.storyline_array[333].
What does global.storyline_array[251] represent? I have no idea. The original developer probably has no idea. Only god knows.
The solution? Use named constants and/or enums. Look them up, they're pretty neat.
That's literally the only thing I wanted to add to this conversation, because I was a little pissed about it.
Realistically, using this wonky approach is not going to slow down how the game runs, and won't have any observable impact on the players. It'll just make the developer prone to making mistakes, and slow them down, so it's not the worst thing one could do, it's just...a little silly.
In conclusion, I don't think Thor should be crucified for this, but he shouldn't be defended either. It is what it is. What matters the most is if his game is good. And that's something only you can answer.
Now that we're done with that, it's time for your daily reminder to sign the Stop Killing Games petition, if you haven't already.
If you've never heard of it, go here get informed, and sign it if you agree.
Until next time.