Why I think the statement "The code is stupid" is actually correct to use. CW: U...
Luzzy @meluzzy@woof.tech
Content warning: Why I think the statement "The code is stupid" is actually correct to use. CW: Use of the word "stupid"
Imagine you enter a website or an app and a dialog shows up with a question.
In that dialog the "Accept" button is just a piece of underlined small blue text on the left of the screen. The "Cancel" button is called "Abort" instead, and is located to the right and looks like a real button.
99% of people want to click Accept but they end up clicking Abort by mistake.
Now, in this case there is an obvious design flaw. Everyone would tell you: "It's not the user's fault, it's the website having a stupid design".
I think the same thing applies to code.
You usually get people saying "The code just does what it is written to do, not what you want it to do". This is used commonly to tell someone "If the code doesn't work as you expect it to work it's your fault".
That would mean that code is not "stupid", the stupid is the person who wrote it. However, let's go back to the example of the web/app and think: "Whoever made this website must be stupid for making it that way". And I think we can agree that in a lot of cases, this can be applied the same way to code.
Sometimes It's unfair to say that the fact that the code doesn't work as expected is solely the programmer's fault. You have languages and frameworks that are not intuitive, that are not well documented, that are not good at doing what they do.
So I think sometimes It's valid to say
"The code is stupid".