this post was submitted on 15 Oct 2023
478 points (95.6% liked)

Programmer Humor

32479 readers
259 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 111 points 1 year ago (7 children)

I have a sneaking suspicion that most memes are from CS students, it all makes sense. People with jobs don't have time to make memes, get angsty about languages, or syntax issues.

[–] [email protected] 54 points 1 year ago (3 children)

Unfortunately this idea tracks with a lot of online content. People who have time and energy to be extremely opinionated about things generally either don't have a lot else going on, or have direct personal experience that led to their strong views. As people get older and life gets busier people seem far more likely to just do whatever they need to get by and shut up about it.

Seriously, go look up some of the user demographics polls and analysis that was done against various subs on the old site. Most users are/were college age or younger even. Puts a lot of the "sillier" subs like relationshipadvice into context.

[–] [email protected] 36 points 1 year ago (1 children)

This guy fucks^

In my opinion this is a problem with the internet in general, younger people tend to crave attention and often receive the most online because of the anonymous platform it gives them.

As I approach 35 I find myself half writing comments and deleting them because I don't fucking care. This time I will press send

[–] [email protected] 8 points 1 year ago

Dude, imagine taking the time out of your day to actually make a meme (like the one posted). I really can't be bothered.

[–] [email protected] 7 points 1 year ago

Yeah, if something in my life frustrates me, be it coding or otherwise, I search for solutions online and complain to friends "offline", If I ever thought of making content, it would be on solutions I found of things that frustrated me,. and I'm not even that old.

[–] [email protected] 14 points 1 year ago* (last edited 1 year ago)

I have time to meme but the memes are insider jokes specific to my company.

[–] [email protected] 7 points 1 year ago (3 children)

After 10 years of doing it for work, I still get frustrated about language issues.

But semicolons? It's 2023, why does your language have semicolons at all? If you're one of those poor sods stuck with Java, still it's not an issue, all IDEs will warn you, and basically complete half the code for you.

[–] [email protected] 11 points 1 year ago (2 children)

It's 2023, why does your language have semicolons at all?

Explicitly constructing your intentions are features of a language.

I LOVE types. I LOVE semi colons. I LOVE compiler errors.

Why? Because the ALTERNATIVE is finding (if you're lucky) unexpected behaviour at run-time.

I promise, I promise SO HARD, that memes about semi colons or "my code doesn't compile" are GREAT problems to have.if that's what's making you sad, your life is good and you're getting paid 10x too much.

[–] [email protected] 10 points 1 year ago (1 children)

People who are annoyed by types have never had to spend weeks of their life hunting for a missing property on an object.

Compilation errors are so much more preferable than finding out the same error at runtime.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Ada has got your back. Entire classes of runtime bugs in C code are eliminated by compiler errors.

You can't even make a integer overflow unless you've explicitly declared that statement as unsafe.

[–] [email protected] 7 points 1 year ago

Semicolons are not at all comparable to types.

Types give structure to your program, prevent bugs and make team work easier. Semicolons are an artifact of the times it was thought multiple statements could go on a same line. Although I do admit, they make language design easier.

[–] [email protected] 4 points 1 year ago

They pay me more money than all of the other Devs because I'm the only guy willing to take on our existing stacks usage of shudders JavaScript. Most Devs I meet straight up refuse to learn it, let alone code in it.

[–] [email protected] 1 points 1 year ago (1 children)

Semicolons are optional in JavaScript unless you are combining multiple statements on a single line, which is generally not something you should be doing anyway.

I avoid them whenever possible. It encourages people to write poorly formatted code. But then I'm a python dev so I tend to be opinionated when it comes to whitespace.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Just slap a formatter on there and call it a day. Semicolon or not, IDGAF, let's just stop with the formatting bikeshedding. There are more important things to think about. They don't encourage anything if you don't think about formatting.

load more comments (1 replies)
[–] [email protected] 6 points 1 year ago (2 children)

I will cut someone for leaving trailing whitespace or mixing spaces and tabs, though.

[–] [email protected] 15 points 1 year ago (3 children)

Just use an opinionated code formatter in your per-commit automation. Fewer people get cut and noone gets sick with linting issues.

[–] [email protected] 3 points 1 year ago (2 children)

It's annoying to be the weird one that rewrites all the code on the files I touch because I bothered to press format. Then someone forgets to pull before changing the code and suddenly the merge is not fast forward and the conflict resolution is a mess. It's not that big of a deal, for me a t least, but when i format the code it's 3 other dumbasses that get conflicts, and sometimes I just can't bother enough to fix their issues because I took care of formatting it once.

Nowadays I use an opinionated linter, format my stuff and call it a day.

[–] [email protected] 3 points 1 year ago

You don't have an autoformatter in your pre-commit hook? Why not?

[–] [email protected] 1 points 1 year ago

I loathe linter errors. If you know that I did it wrong and how, just fix it and stop wasting everyone's time. That's why I'm in favor of opinionated formatters in the per-commit automation. No point in wasting everyone's time and making silly merge conflicts possible.

[–] [email protected] 3 points 1 year ago (1 children)

Can I integrate the linter with our HR management software to automate employee reviews?

[–] [email protected] 2 points 1 year ago

Sure but I'm not sure that most HR management software companies are going to be keen on handing over source for you to review.

5/7 Software package is pure garbage. Tim forgot to remove his TODO comment from line 1052 of main and there are three instances of inconsistent indentation in the API module. Therefore, our automation pipeline has marked our own employees as "needs improvement".

[–] [email protected] 2 points 1 year ago

But Shoggoth demands blood

[–] [email protected] 1 points 1 year ago

last week I had misconfigured my auto-format and it was leaving commas and whitespaces. The amount of "WHAT HAVE YOU DONE???" comments I got were of the chart.

There was a linter in place, I literally could not merge unless the issues were fixed, yet people felt compelled to point them out.

[–] [email protected] 3 points 1 year ago

shit I am a CS student and I barely have the time for memeing about the languages I'm using between all my other classes, and the other stuff I study in my downtime. I'm just stoked to get a slapdash of code together and actually have it do what I want it to the first time around.

[–] [email protected] 1 points 1 year ago

That would also explain all the memes complaining about lack of comments.

load more comments (1 replies)
[–] [email protected] 27 points 1 year ago (1 children)

Shouldn’t it be “The amount of missing semicolon memes is too damn high;”?

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Google Greek question mark 😁

[–] [email protected] 25 points 1 year ago (1 children)

So we need to post more? So that fewer are missing?

[–] [email protected] 7 points 1 year ago* (last edited 1 year ago)

Ah, a fellow grammar enjoyer!
Seems I wasn't understood with my own comment

[–] [email protected] 18 points 1 year ago (2 children)

What are you using; notepad?

(I don't know what semicolons are for in English)

[–] [email protected] 9 points 1 year ago (1 children)

That's fine. Nobody else does either.

[–] [email protected] 2 points 1 year ago (1 children)

Here is a lesson in creative writing. First rule: Do not use semicolons. They are transvestite hermaphrodites representing absolutely nothing. All they do is show you've been to college.

  • Kurt Vonnegut
[–] [email protected] 6 points 1 year ago

Unpopular opinion: I dislike Vonnegut and his particular brand of snark. His anti-intellectualism drives me mad.

[–] [email protected] 3 points 1 year ago

They are for pedantic literature people to argue about, duh.

[–] [email protected] 9 points 1 year ago (1 children)

IDE is bloat; return to text editor.

(Xed is more than sufficient for the relatively small scripts I need to write. It even does syntax highlighting and bracket closing.)

[–] [email protected] 5 points 1 year ago

Interface is bloat; return to sed (or better yet some horrible combination of using echo and cat)

[–] [email protected] 8 points 1 year ago (2 children)

learning to use a raspberry pi. the interpreter that works on the mini Python I'm learning seems to have no linting so when I missed a colon in a for loop it took me ages to find.

[–] [email protected] 14 points 1 year ago (5 children)

use something like vscode with ssh - remote to code in a real editor with proper linting, or code in a proper environment and then use a git repo to deploy to the pi, idk. If what you are doing is basically ssh-ing to the device and opening a console editor (a well set up vim does have linting, but anyway) it's no wonder it is being hard to work on it.

It's better to invest time investigating proper tools to work on than to bruteforce the work and then spend tons of time hotwiring everything. Hotwiring code is not the end of the world but if it reaches a point where the tools frustrate you, search for alternatives dammit.

[–] [email protected] 3 points 1 year ago (1 children)

I have vscode, I'm just following the tutorial and this particular software works with uploading to the pi and runs the code and I didn't want to get distracted following other ones about how to shift those functions to other software, I just wanted to play

Does vscode work with the pi out of box?

[–] [email protected] 2 points 1 year ago

Iirc, when you try to connect to a device through the SSH-Remote extension it downloads whatever it needs in the device and you connect to it. I have not connected to a Pi yet, but in any other cloud based or local linux machine it has worked flawlessly so I don't think it will be different. The terminal window also opens a ssh'd terminal, so you can do whatever you do locally, through the app.

I did a quick search and the first link stated "All you have to do is to install the Remote-SSH extension on VS Code" so I guess that yeah, it works just like any other linux device. As an addendum, the folder browser UI works as a sftp drag-and-drop window, you can drop local files and they will get transferred into the SSH'd device.

[–] [email protected] 2 points 1 year ago

I will never understand people in programming who do stuff in tedious/inefficient ways without stopping to consider the alternatives. 9/10 if it feels stupid, it probably is.

load more comments (3 replies)
load more comments (1 replies)
[–] [email protected] 3 points 1 year ago

Eh, sometimes the IDE from a chip manufacturer is bad enough that I go back to using a text editor.

Glares at Microchip Studio

Their on-chip hardware is great though. In everything else I've found tons of bugs. Even the cables that come with their dev kit have bugs.

[–] [email protected] 3 points 1 year ago

i do all my coding in sass

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Got it, more semicolon memes for you!

[–] [email protected] 6 points 1 year ago (1 children)

*Got it; more semicolon memes for you!

[–] [email protected] 2 points 1 year ago

Very clever

load more comments
view more: next ›