kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devby𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.world
2 years

I need this....

lemmy.world
26
    You must log in or register to comment.

    • histic@lemmy.dbzer0.comEnglish
      2 years

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

        • InnerScientist@lemmy.world
          2 years

          Can’t Improve Upon Perfection

          • 𝔻𝔼𝕍𝕀𝕃𝕀𝕊ℍ@lemmy.world
            2 years

            Congrats then…

          • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 🏆@yiffit.netEnglish
            2 years

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

              • radix@lemm.ee
                2 years

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

                  • loics2@lemm.ee
                    2 years

                    “pret tier”?

                  • hemko@lemmy.dbzer0.comEnglish
                    2 years

                    Yes

                    • geogle@lemmy.world
                      2 years

                      Superb-owl

                    • Admiral Patrick@dubvee.orgEnglish
                      2 years

                      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.alEnglish
                          2 years

                          Sounds like you’re using a shittier prettier

                          • BombOmOm@lemmy.worldEnglish
                            2 years

                            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
                                2 years

                                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
                              2 years
                              function is_equal (x, y) {
                                if (x == y)
                                    print("x is equal to y")
                                    return true;
                                return false;
                              }
                              
                                • KairuByte@lemmy.dbzer0.com
                                  2 years

                                  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
                                      2 years

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

                                        • KairuByte@lemmy.dbzer0.com
                                          2 years

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

                                      • MTK@lemmy.world
                                        2 years

                                        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
                                            2 years
                                            function is_equal (x ,y) {
                                                if (Math.Random() > 0.38) {
                                                    console.log(x + " is equal to " + y)
                                                    return true
                                                }
                                                
                                                return false
                                            }
                                            
                                        • The Assman@sh.itjust.works
                                          2 years

                                          Okay where’s the link

                                            • LoudWaterHombre@lemmy.dbzer0.com
                                              2 years

                                              https://github.com/rohitdhas/shittier

                                                • CodeMonkey@programming.dev
                                                  2 years

                                                  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
                                                      2 years

                                                      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
                                                  2 years

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

                                                  • sag@lemm.ee
                                                    2 years

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

                                                    • bruhduh@lemmy.world
                                                      2 years

                                                      Yamedekudastop

                                                      • HootinNHollerin@lemmy.world
                                                        2 years

                                                        Hail chaos

                                                        Programmer Humor@programming.dev

                                                        programmer_humor@programming.dev

                                                        Subscribe from remote instance

                                                        Create post

                                                        Report community

                                                        Modlog
                                                        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

                                                        This community is visible to everyone.

                                                        • 1.19K users / Day
                                                        • 572 users / Week
                                                        • 586 users / Month
                                                        • 14.5K users / 6 months
                                                        • 2.34K posts
                                                        • 90K comments
                                                        • 2 local subscribers
                                                        • 31.9K subscribers
                                                        • UI: 1.0.0-beta.0
                                                        • BE: 1.0.0-alpha.20
                                                        • Modlog
                                                        • Instances
                                                        • Docs
                                                        • Code
                                                        • join-lemmy.org