this post was submitted on 12 Jun 2025
546 points (98.9% liked)

Programmer Humor

30963 readers
1352 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
546
centerDiv.js (infosec.pub)
submitted 10 months ago* (last edited 10 months ago) by not_IO@lemmy.blahaj.zone to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[–] milicent_bystandr@lemm.ee 29 points 10 months ago (4 children)

Oh yes please. But not JavaScript. I use Rust frameworks to avoid all three!

[–] pewpew@feddit.it 16 points 10 months ago (2 children)

Eww Rust! I hate memory safe languages, I love torturing myself with C

[–] sevon@lemmy.kde.social 9 points 10 months ago (1 children)

You can wrap everything in unsafe and keep living dangerously!

[–] yetAnotherUser@lemmy.ca 1 points 10 months ago (1 children)

Tsoding has created a few rules for writing Rust to make Rust "fun" to program in, and gave them the name of Crust.

Here is the rule set (it may change over time):

  1. Every function is unsafe.
  2. No references, only pointers.
  3. No cargo, build with rustc directly.
  4. No std, but libc is allowed.
  5. Only Edition 2021.
  6. All user structs and enums #[derive(Clone, Copy)].
  7. Everything is pub by default.

If you ever want to try this out for some ungodly reason, there's a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it's raylib), and with a Makefile showing how to compile your projects (remember we aren't using cargo).

[–] sevon@lemmy.kde.social 1 points 10 months ago

Oh boy, now I can stop missing C++

[–] QuazarOmega@lemy.lol 2 points 10 months ago (1 children)
[–] bricklove@midwest.social 5 points 10 months ago (1 children)
[–] QuazarOmega@lemy.lol 4 points 10 months ago* (last edited 10 months ago)

Knew someone would say that, lol, gold project, sad that it's gone unmaintained and my man started working on home-manager at home
..wait

[–] peoplebeproblems@midwest.social 5 points 10 months ago

Yeah I gotta get my workplace to get on board with it. Rust->Webasm is simply amazing

[–] Colloidal@programming.dev 4 points 10 months ago

Flutter like a butterfly, sting like a Dart.

[–] TheMightyCat@lemm.ee 0 points 10 months ago (1 children)

Men really out here inventing entire JavaScript engines so they don't have to learn Rust/C/C++/whatever

[–] milicent_bystandr@lemm.ee 1 points 10 months ago

Meanwhile women are hand-coding in assembly, like God intended.