1136

Please dont take this seriously guys its just a dumb meme I haven't written a single line of code in half of these languages

top 50 comments
sorted by: hot top controversial new old
[-] smileyhead@discuss.tchncs.de 142 points 9 months ago

Every programming language has it's place.

JavaScript's place is in hell.

[-] Bishma@discuss.tchncs.de 54 points 9 months ago

I used to think Javascript was hell when I barely used it. Now I have to build with it regularly and... once in a while I'm just right about things.

[-] Da_Boom@iusearchlinux.fyi 26 points 9 months ago

Ever wanted to be somewhere inbetween java and JavaScript?

Yeah, that's Groovy. Only it's the wrong groove

[-] mindbleach@sh.itjust.works 14 points 9 months ago

JS is ironic punishment as a programming language. It's fun to screw around in! And then you have to use it for stuff, and pain ensues.

load more comments (2 replies)
[-] bort@sopuli.xyz 112 points 9 months ago* (last edited 9 months ago)

Latex: Problem --> \def\please@#1#2#3#4{\e@kill#2#3{\me#1}#4@now} -->

[-] renzev@lemmy.world 62 points 9 months ago

Accurate. LaTeX is great, it makes you feel like you have superpowers compared to "office suite"-style software. But every once in a while you just run into some bullshit that feels like it's stuck in 1985 and it completely breaks your flow. I remember wanting to make a longtable where text in the "date" column would be rotated by 90 degrees to leave more horizontal room for the other columns. It took me two rotateboxes, a phantom, a vspace, a hspace and 40 minutes of my life to get the alignment right. Would probably have taken a duckduckgo search and three clicks in Libreoffice.

load more comments (15 replies)
[-] bitwolf@lemmy.one 22 points 9 months ago

I got way too excited Lemmy parsed LaTeX for a second

load more comments (1 replies)
load more comments (1 replies)
[-] xlash123@sh.itjust.works 109 points 9 months ago

PHP: Problem -> real_solution_for_real_this_time() (real_solution_i_swear() is unsafe and deprecated)

[-] xmunk@sh.itjust.works 26 points 9 months ago

Eh, your statement is accurate for PHP4 and still relevant up to PHP5.2... We're on PHP8.3 now and PHP8.0 is now out of security updates. I know it's trend to hate on PHP but you've got to at least update your materials to var-vars... it's like knocking node for having substr() and substring().

load more comments (1 replies)
load more comments (3 replies)
[-] Swedneck@discuss.tchncs.de 105 points 9 months ago

missing the stage of C where it's all incomprehensible bitfucking with comments like "this works, i do not know why it works, do not touch this"

[-] sheepishly@kbin.social 37 points 9 months ago

Real fast inverse square root algorithm hours

[-] PlexSheep@feddit.de 17 points 9 months ago

That one is not that complicated if you don't think about the math. It's basically just if we interpret the float as int and add a magic number we have a good estimation.

From what I remember at least, it's been a little while since I implemented it.

load more comments (3 replies)
load more comments (1 replies)
[-] RageAgainstTheRich@lemmy.world 88 points 9 months ago

C: "Segmentation fault."

Where?

C: 🤷🏻

[-] Classy@sh.itjust.works 54 points 9 months ago

C: gestures vaguely everywhere

load more comments (1 replies)
[-] BeigeAgenda@lemmy.ca 33 points 9 months ago

Then you open the core file with GDB and hope the stack is not smashed.

load more comments (1 replies)
[-] vox@sopuli.xyz 17 points 9 months ago

gdb -> where

[-] Shady_Shiroe@lemmy.world 75 points 9 months ago
[-] turkishdelight@lemmy.ml 63 points 9 months ago

python is like that. someone waay smarter than you have already done this 10 years ago.

[-] stevedidwhat_infosec@infosec.pub 26 points 9 months ago

Idk I still like writing my own stuff purely pythonic when I can. Pythons syntax is the most “fun” and “natural” for me so I find it fun. Like doin a sudoku puzzle

[-] mindbleach@sh.itjust.works 14 points 9 months ago

I can't get over the load-bearing whitespace.

load more comments (30 replies)
load more comments (1 replies)
[-] xantoxis@lemmy.world 60 points 9 months ago
[-] PlexSheep@feddit.de 16 points 9 months ago

Yeah that one got me too. Rust has tons of c libs wrapped in safe rust.

[-] renzev@lemmy.world 13 points 9 months ago

I was mainly thinking about how so many Rust projects advertise very loudly that they're written in Rust. Like, they would have -rs in the name, or "in Rust" as part of their one-line description. You rarely see this kind of enthusiasms for the the language in other languages. Not a bad thing by the way! And also there's the "rewrite it in rust" meme, where people seem to take perfectly functional projects and port them to Rust (again, not a bad thing! Strength in diversity!)

load more comments (4 replies)
load more comments (1 replies)
[-] Hotzilla@sopuli.xyz 60 points 9 months ago* (last edited 9 months ago)

C# Solution -> .sln

(brought to you by .net gang)

[-] onlinepersona@programming.dev 53 points 9 months ago

C --> segfault --> new problem

[-] fl42v@lemmy.ml 37 points 9 months ago* (last edited 9 months ago)

ResizedImage_2024-03-12_22-25-43_1

Sry, the best I can do on mobile

load more comments (2 replies)
[-] underisk@lemmy.ml 50 points 9 months ago

The line between problem and solution for C should be 30 miles long.

[-] kevincox@lemmy.ml 28 points 9 months ago

...with 19 bugs 9 of which are exploitable.

[-] witty_username@feddit.nl 19 points 9 months ago

And one bug that one person found once but is not reproducible

[-] Rodeo@lemmy.ca 18 points 9 months ago

So the developers claim, but the users still encounter it, and the bug report stays open for 22 years ... possibly more.

load more comments (1 replies)
load more comments (2 replies)
[-] affiliate@lemmy.world 48 points 9 months ago

i feel like javascript could also be

Problem -> solution -> 3 days pass -> all dependencies had breaking changes made -> problem

[-] stevedidwhat_infosec@infosec.pub 42 points 9 months ago

I never understood this logic:

“I know nothing about this subject, I’m gonna post a meme (a funny graphic usually about a specific topic, this one outlining the differences between languages) but I know nothing about the subject and will ask that nobody correct me or try to apply rationale here because I choose to be ignorant and have no interest in expanding my knowledge of the world and people around me, I just want people to tell me I’m funny and give me internet points”

To each their own ig

[-] twei@discuss.tchncs.de 56 points 9 months ago

...but it's funny (although it would've been funnier if C was "Problem -> Buffer Overflow")

[-] magic_lobster_party@kbin.run 38 points 9 months ago

If you have never had a segmentation fault, then you have never programmed in C

load more comments (1 replies)
load more comments (1 replies)
[-] CarlosCheddar@lemmy.world 20 points 9 months ago

We need a SeniorProgrammerHumor community. Less jokes about quitting vim and programming languages and more about every day funny issues.

[-] AnarchoSnowPlow@midwest.social 32 points 9 months ago

We no longer have humor, it's been beaten out of us by code reviews and merge conflicts.

load more comments (3 replies)
load more comments (19 replies)
[-] leaky_shower_thought@feddit.nl 40 points 9 months ago

for the ones missing the marvelous HTML, I gotchu bro:

<problem />

[-] Mr_Fish@lemmy.world 25 points 9 months ago

Add css, and the problem looks really pretty now

[-] lutillian@sh.itjust.works 13 points 9 months ago
load more comments (6 replies)
[-] xigoi@lemmy.sdf.org 35 points 9 months ago

Actual C: Problem → Segmentation fault

load more comments (2 replies)
[-] loweffortname 29 points 9 months ago
[-] theherk@lemmy.world 16 points 9 months ago

I’ve seen this before but don’t accept it myself. There are cases where you just wanted to cat. In this case, maybe to review the problem. Then you want to extend the command. Preserving it in the next commands where you start stacking on pipes is useful since it can be fewer strokes and maintain a habit.

[-] nintendiator@feddit.cl 26 points 9 months ago* (last edited 9 months ago)

C:

Problemreturn Solution;

C++:

Problem

const [auto]&& (Problem&& problem) noexcept(noexcept( Solution<Problem>{}(std::forward<Problem>(problem)) )) { return Solution<Problem>{}(std::forward<Problem>(problem)); } -> decltype( Solution<Problem>{}(std::forward<Problem>(problem)) )
load more comments (4 replies)
[-] wabafee@lemm.ee 19 points 9 months ago

JS is basically the Hydra from the Greek Mythology.

Though PHP is literally the problem had me lol.

[-] deathmetal27@lemmy.world 19 points 9 months ago

Java:

Problem -> NullPointerException.

[-] bleistift2@feddit.de 33 points 9 months ago

More like

Problem → new ProblemSolverFactory().createProblemSolver().solveProblem();

[-] MajorHavoc@programming.dev 18 points 9 months ago

Exactly. And configured by 5000 lines of brittle XML.

[-] renzev@lemmy.world 14 points 9 months ago

XML is great because while most config formats compromise on either being human-readable or machine-readable, XML solves this problem by being utterly incomprehensible to man and machine alike 😍

load more comments (1 replies)
load more comments (1 replies)
load more comments (3 replies)
load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 12 Mar 2024
1136 points (100.0% liked)

Programmer Humor

32712 readers
1238 users here now

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

Rules:

founded 5 years ago
MODERATORS