this post was submitted on 24 Jul 2025
622 points (97.3% liked)

Programmer Humor

25448 readers
911 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 125 points 1 week ago (3 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 18 points 1 week ago (1 children)

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

[โ€“] RustyNova@lemmy.world 25 points 1 week 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

load more comments (1 replies)