MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
devilish666@lemmy.world to Programmer Humor@programming.dev · 1 year ago

I need this....

lemmy.world

message-square
26
fedilink
368

I need this....

lemmy.world

devilish666@lemmy.world to Programmer Humor@programming.dev · 1 year ago
message-square
26
fedilink
alert-triangle
You must log in or register to comment.
  • histic@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    97
    ·
    1 year ago

    Help! It didn’t change my code at all it’s just the same!

    • InnerScientist@lemmy.world
      link
      fedilink
      arrow-up
      37
      ·
      1 year ago

      Can’t Improve Upon Perfection

    • devilish666@lemmy.worldOP
      link
      fedilink
      arrow-up
      14
      ·
      1 year ago

      Congrats then…

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.net
    link
    fedilink
    English
    arrow-up
    21
    ·
    1 year ago

    Is that pronounced “shitty er” or “shit tier?” 🤔

    • radix@lemm.ee
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      “Shitty-er” to rhyme with “prettier”, I would guess.

      • loics2@lemm.ee
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        “pret tier”?

    • hemko@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      1 year ago

      Yes

    • geogle@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Superb-owl

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    26
    arrow-down
    7
    ·
    edit-2
    1 year ago

    So…basically a prettier. I’ve never seen them improve the readability of my code. If I want pretty code, I just write pretty code :shrug:

    All the prettiers do is just 'eff up my deliberate indentations and break the editor’s ability to collapse code sections.

    • lazynooblet@lazysoci.al
      link
      fedilink
      English
      arrow-up
      30
      arrow-down
      1
      ·
      1 year ago

      Sounds like you’re using a shittier prettier

    • BombOmOm@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      3
      ·
      edit-2
      1 year ago

      Same. There is a logic to all code choices. Even basic things like the placement of empty lines to group code into ‘idea blocks’ massively helps with readability. This idea block touches x, and this next idea block touches y.

      A tool can’t perform perform even basic logic like that.

      • Kogasa@programming.dev
        link
        fedilink
        arrow-up
        9
        ·
        1 year ago

        If you have a lot of semantic breakpoints (like the end of a concept) that don’t line up with syntactic breakpoints (like the end of a method or expression body) your code probably needs to be refactored. If you don’t, then automatic code formatting is probably all you need.

  • gandalf_der_12te@feddit.de
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago
    function is_equal (x, y) {
      if (x == y)
          print("x is equal to y")
          return true;
      return false;
    }
    
    • MTK@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      edit-2
      1 year ago

      function is_equal (x, y) {

      if (is_equal(x,y))

        print("x is equal to y")
      
        return true;
      

      return false;

      }

      Fixed it for you

      • Ironfacebuster@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago
        function is_equal (x ,y) {
            if (Math.Random() > 0.38) {
                console.log(x + " is equal to " + y)
                return true
            }
            
            return false
        }
        
    • KairuByte@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Wouldn’t this fail to compile due to the missing semicolon, and if that is corrected only ever return true?

      • Ziglin (it/they)@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Compile? This is JavaScript! Semicolons are optional, didn’t you know?

        • KairuByte@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Mmm I don’t think this could be JavaScript. Unless we are always returning true.

  • The Assman@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    ·
    1 year ago

    Okay where’s the link

    • LoudWaterHombre@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

      https://github.com/rohitdhas/shittier

      • CodeMonkey@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        It looks like it targets JavaScript, the language that least needs it. What is the job security advantage of this tool over a minifier?

        • learningduck@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          Guess, it’s to make your code look hand crafted and not copied from Chat GPT or SO for some take home assignment.

  • asyncrosaurus@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Apparently every code base I’ve ever worked on was run through this.

  • sag@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    It’s not working It make my code look pretty not shitty 3/10

  • bruhduh@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Yamedekudastop

  • HootinNHollerin@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Hail chaos

  • brlemworld@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    deleted by creator

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.

  • 470 users / day
  • 4.44K users / week
  • 9.2K users / month
  • 17.9K users / 6 months
  • 4 local subscribers
  • 23.3K subscribers
  • 1.41K Posts
  • 51.3K 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