Probably not a good title to seek upvotes. If it does get upvotes, more programmers get share in your pain 😅
Relevant XKCD : https://xkcd.com/859/
I can’t officially support this fork 😝
I mean, the headline of this post already makes me irrationally angry. 😂
Y u no close brackets!?
I think that’s the joke, Clyde!
I work as an embedded developer and when a new board is produced and half tested, every one expects fully functional code off the bat, right away.
Motherfucker, you didn’t even qualify your hardware and you expect my code, that hasn’t hit the new board, to be 100% functional, based on your mind map? We will find hardware issues that will inevitably be blamed on the code and spend hours “debugging” the code to eventually find out the hardware is shit.
You guys are too slow, we need to hire more of you and let the sales teams use AI to add features the client asks without waiting for you.
AI can code now, in 2 mins I can create an app, so it shouldn’t take you long to make changes to this 10year old product.
“we’re just trying to display <insert field here> why is this so hard? It’s a ten minute job!”
“It’s already in the demo you guys just did so why do you need weeks to make it?”
#define if while #define true false
Or a classic:
#define true (rand() % 2) #define false (rand() % 2)
You’d like the IOCCC.
Make them stand up.
You have no power here! I use a standing desk.
Replace a semicolon (;) with a Greek Question mark (;), provided they’re working in a language that uses semicolons at the end of every line, and their IDE doesn’t highlight the difference (which some do now)
Fun fact, Rust has a special error message for this:
Unicode character ‘;’ (Greek Question Mark) looks like a semicolon, but it is not.
It also detects other potentially confusing Unicode characters, like the division slash which looks like
/
.Replace all spaces with the unicode non-breaking space that looks the same.
Although I know at least some language servers will detect this and mark it as an error, lol.
I thought the joke here was that your unbalanced parentheses would make me angry (they did))
I clicked into the post expecting more text and then realized that was the joke.
Congrats OP, I am both upset and entertained!
… is that not the point of the title?
[Object object]
Actually it’s [object Object]
Ah, piss. So it is.
I’m going to blame it on autocorrect, even though we both know I just got it wrongIt’s fine, we all know what you meant.
short variable names, and the only vowel is ‘i’
skibidi = 42
I inherited an old Japanese codebase. Tons of stuff was just single-letter variables. Apparently, this used to be at least somewhat common here. I spent a lot of time just updating code to replace vars with something meaningful (and found bonus bugs due to improper scoping with same var names as a bonus). Didn’t have an IDE that would easily do it for me at the time and running something like
sed
felt too risky.
Good pay for me, no programming socks for thee!
You take that back! My programming socks are the source of my power!
I’ll make a deal. Write a kernel in Python, and I’ll consider it. Until then, YOUR SOCKS ARE MINE!
warms up your cold side
I’m the cold side of your pillow, so you’re causing harm to yourself
Despite causing myself harm, I am causing you to cease to exist, yes? :3c
Its called evolution.
What? Its evolving!
Coldsideofyourpillow turned into Warmsideofyourpillow!
Html is a programming language.
That’s right there with calling JS, PowerShell and Bash “programming languages”. I said what I said.
I think what people generally mean when they say programming language (other than just a language to write a program) is that the language is turing complete. Even with this more limited definition, JavaScript, Bash, and Powershell are turing complete and therefore programming languages.
Tell me you don’t know what a programming language is without telling me you don’t know what a programming language is
tbf javascript is not a programming language, it is the language of the devil
What if the devil is a programmer?
Would explain a lot of things actually
Figure out if they prefer spaces or tabs, insist on the other.
Please note this won’t work on Pythonistas as they’ve already had their spirit thoroughly broken.
Tabs set at 1 space.
I’ve only ever heard raging between the two, but never why. I’m guessing there were competing languages with different standards, or maybe historic hardware limiting input sets that kicked this debate off or?
A few languages force a decision (usually towards tabs), but otherwise it’s just a question of aesthetics vs. accessibility.
I see.
My worst experience was with spaces in code from an engineering professor who used a non-monospace typefont. Sadist. Though it was comic sans, they were probably just dyslexic. Despite the class focusing on numerical methods, we had to hand write Matlab code on paper using proper syntax. I have no clue why. Never learned much numerical method, nor were we ever allowed to use Matlab except on a few “projects” during the term. I found out about the spaces when i had to debug his example code he gave as solutions(which we were graded against). I saw errors and had to confirm i wasn’t losing my mind. …I wasn’t. Anyways there was a mix of spaces and tabs to align the comic sans.
TLDR: I couldn’t care less. Just don’t code in word, and use a monospace font.
A haiku for you:
Tabs or four spaces
Never a semicolon
Broken in spirit
What if you use tabs for indentations and space for alignment?
It’s alright… but have you considered spaces for indentation and tabs for alignment?
Uh, that would be infuriating to see. (Yes, I can see tabs in KDE Kate)
I feel like this is a debate that doesn’t exist - 4 spaces bound to tab is the only actual answer.
Hard tabs are much better as someone who works with an age diverse team where vision issues are a serious issue. Four space tabs are optimal for you but there are other lived experiences.
most things seem to have settled on this, but tabs are so much better for accessibility. programmers with bad vision can have trouble differentiating smaller indentation levels, while some of them just bump the font size up so high that 4 spaces takes up too much screen space. each one can set a tab width that is comfortable for them. https://alexandersandberg.com/articles/default-to-tabs-instead-of-spaces-for-an-accessible-first-environment/ has some good arguments
with a forced formatter and a configured editor there really isn’t any argument for spaces
For python, see which one they use and secretly replace a single indentation with the other.