Civilloquy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmy.world to Programmer Humor@programming.dev · 4 months ago

What's stopping you from writing your Rust like this?

lemmy.ml

message-square
25
fedilink
337

What's stopping you from writing your Rust like this?

lemmy.ml

cm0002@lemmy.world to Programmer Humor@programming.dev · 4 months ago
message-square
25
fedilink
alert-triangle
You must log in or register to comment.
  • parlaptie@feddit.org
    link
    fedilink
    arrow-up
    117
    ·
    4 months ago

    Hang on, this is just a C++ joke slapped onto Rust.

  • Laser@feddit.org
    link
    fedilink
    arrow-up
    73
    ·
    4 months ago

    • enemenemu@lemm.ee
      link
      fedilink
      arrow-up
      12
      ·
      4 months ago

      To me it just looks like you do not need the braces at all

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      A funny, but incredibly subtle joke to do would be to do a post like this, but get the indentation subtly wrong somewhere, so something that’s supposed to be inside a loop is outside according to indentation, but is inside according to braces.

  • duckythescientist@sh.itjust.works
    link
    fedilink
    arrow-up
    72
    ·
    4 months ago

    I’m good at Python, and I don’t know Rust. This looks fine to me. I’ve fully missed the joke.

    • Logi@lemmy.world
      link
      fedilink
      arrow-up
      145
      ·
      edit-2
      4 months ago

      Same. Until you notice the column of curly braces and semi colons in the right margin.

      • duckythescientist@sh.itjust.works
        link
        fedilink
        arrow-up
        7
        ·
        4 months ago

        Oh… Oh god

  • TheAgeOfSuperboredom@lemmy.ca
    link
    fedilink
    arrow-up
    49
    ·
    4 months ago

    Then some jerk runs rustfmt and ruins all your hard work!

    • wise_pancake@lemmy.ca
      link
      fedilink
      arrow-up
      24
      ·
      4 months ago

      Can’t you fix the default format to this?

  • Feathercrown@lemmy.world
    link
    fedilink
    English
    arrow-up
    48
    ·
    4 months ago

    It took me way too long to notice the horror on the right

    • Rusty Shackleford@programming.dev
      link
      fedilink
      English
      arrow-up
      7
      ·
      4 months ago

      My eyes!

  • mostlikelyaperson@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    4 months ago

    My medication mostly.

  • PhobosAnomaly@feddit.uk
    link
    fedilink
    arrow-up
    25
    ·
    4 months ago

    I hate it with every fibre of my being but also secretly calmed by that column of statement terminators and brackets.

    It’s like the code representation of the Vancouver riots kiss photo.

  • notabot@lemm.ee
    link
    fedilink
    arrow-up
    14
    ·
    4 months ago

    This makes my deeply uncomfortable, like an itch I can’t quite scratch.

    • bitcrafter@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      4 months ago

      More like a scratch you just can’t itch.

  • villainy@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    4 months ago

    DwangoAC and the TASBot crew are maniacs in the best possible way. I would like to continue having a high opinion of him, hence I will pretend that this post does not exist.

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    9
    ·
    4 months ago

    Wow, so this is possible.

    Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?

  • poireCartable@lemm.ee
    link
    fedilink
    arrow-up
    8
    ·
    4 months ago

    My eyes! My eyes!!!

  • BigMikeInAustin@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    4 months ago

    I’ll allow it!

  • bitcrafter@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    My humanity.

  • 🇦🇺𝕄𝕦𝕟𝕥𝕖𝕕𝕔𝕣𝕠𝕔𝕠𝕕𝕚𝕝𝕖@lemm.ee
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 months ago

    I like python like really really like it. But this should be a warcrime

  • /home/pineapplelover@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    No

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 907 users / day
  • 2.74K users / week
  • 7.08K users / month
  • 16.5K users / 6 months
  • 1 local subscriber
  • 24.8K subscribers
  • 1.37K Posts
  • 33.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org