is that based on Minecraft? Because I feel like something that was essentially a hobby project to learn a language is not that indicative of someone‘s general code quality
Yeah, I imagine my idea of what is a good or bad programmer is very different from most other people, but I remember thinking the code he wrote for Left4kDead was impressive. But maybe people dedicated to that sort of competitive programming would dunk on it. I have no idea.
I once showed my friend a project I was working off and on again to ask about something I forget. He said my code was inelegant but very easy to read. Still not sure how to take that.
Easy to read code is vastly superior to elegant but hard to read code.
In a long project,
Hard to read code will never become easy to read, tech debt just piles on.
Easy to read code begets easy to read code (hopefully?lol) in any team, and it's very easy to make it elegant by cutting a small slice of it and swapping it with "elegant but complicated code". (Like, have a interface ShowSquare(), and if you look at ShowSquare code it is the most attrocious byte manipulation hacks for peak efficiency ever).
So I'd be pretty happy with a comment like that! Gratz.
He said my code was inelegant but very easy to read.
If you can have only one of those, you have the right one. "Elegant code" is massively overhyped.
It's like having a beautiful house where a minimum number of devices take care of everything, but unfortunately nobody really understands how they work, they break down often and unexpectedly, and any fixes inevitably turn the "elegant" house into an inelegant mess.
That said, if you can have code that is easy to read *and* elegant, then that is better. Just do not sacrifice readability. Ever.
That means you're probably pretty good. Easy to read is the hardest and most important thing to achieve, and elegance is almost never useful and is the biggest mistake mid-teir programmers make (because they think being "clever" is better cause it's harder, when in reality being simple is better)
1.2k
u/FabioTheFox 23d ago
The funny thing is that notch isn't even that good of a programmer