all 8 comments

sorted by: hot top controversial new old
[–] 17 points 1 year ago (7 children)

Fitting to post this on Lemmy

  • source
  • hideshow 7 child comments
  • [–] 8 points 1 year ago (6 children)

    is this holy war taking place on lemmy?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 22 points 1 year ago (3 children)
  • 17 comments in c/programmer_humor@programming.dev view that post
    [–] 143 points 1 year ago (4 children)

    Might even call it a cargo cult.

  • source
  • hideshow 4 child comments
  • [–] 32 points 1 year ago

    Report reason: I'm in this picture and I don't like it.

    I do find it funny though :D

  • source
  • [–] 23 points 1 year ago* (2 children)

    I just realized that the 2 characters in the back of the truck originally aren’t there, and then they randomly appear. It’s in the original episode too.

  • source
  • hideshow 2 child comments
  • [–] 7 points 1 year ago

    I'm trying to come up with a good pun how ownership and safety could have prevented this but..

    use std::sync::OnceLock;

    #[derive(Debug)] struct BrainCell { in_use: bool, }

    static BRAIN_CELL: OnceLock = OnceLock::new();

    fn get_brain_cell() -> &'static BrainCell { BRAIN_CELL.get_or_init(|| { println!("Allocating brain power... this might take a while."); BrainCell { in_use: true } }) }

  • source
  • parent
  • [–] 39 points 1 year ago

    deprogrammer humor

  • source
  • [–] 9 points 1 year ago (1 child)

    I like how Bill and Boomhauer aren't in the truck in the first frame

  • source
  • hideshow 1 child comment
  • [–] 5 points 1 year ago (2 children)

    Would be better at illustrating Rust's cultiness if it were instead "Rust is not FP, you can opt out of it, and const by default is just good practice".

  • source
  • hideshow 2 child comments
  • [–] 25 points 1 year ago

    I mean should const not be the default? I do want to mutate objects sometimes but usually I just need a view of it's state and not write access. It also makes mutable data a lot more obvious if whoever wrote the code your reading wasn't putting const on stuff they should have been. Seems like something all languages with const semantics should have done

  • source
  • parent
  • [–] 8 points 1 year ago

    "You just don't understand strong typing" when the problem at hand is about lifetimes.

    I'm glad the Rust compiler is super helpful, because the community isn't.

  • source
  • [–] 2 points 1 year ago* (last edited 1 year ago)

    Is the free rust programming book like the free brainwashing pamphlet you get from scientologists?

  • source