this post was submitted on 24 Jul 2025
589 points (97.4% liked)

Programmer Humor

25253 readers
1161 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
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] RustyNova@lemmy.world 116 points 3 days ago (2 children)

They didn't even have mentioned the comments in the source code

/// Mommy intentionally lets her little ones call her recursively, since they might want to hear more from her~
///
/// If they call her a thousand times in a row, though, something has probably gone wrong ๐Ÿ˜
const RECURSION_LIMIT: u8 = 100;
/// This name is intentionally not user-configurable. Mommy can't let the little ones make *too*
/// much of a mess~
const RECURSION_LIMIT_VAR: &str = "CARGO_MOMMY_RECURSION_LIMIT";
[โ€“] jaybone@lemmy.zip 14 points 2 days ago (1 children)

They set a limit on number of recursive calls? Good luck trying to sort or search anything.

[โ€“] RustyNova@lemmy.world 19 points 2 days ago

...

Looking back at the code (Sigh), it's to prevent setting the CARGO variable to cargo mommy, and causing an infinite loop. You can still do cargo mommy mommy if you like double praises