kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbyhypertown@lemmy.world
2 years

Life is hard

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

    • henfredemars@infosec.pubEnglish
      2 years

      Missing type or identifier.

      A const what?

      Also, I read that you have to assign a const when it is declared. Something doesn’t feel right about this statement.

        • Kaboom@reddthat.com
          2 years

          Its javascript, itll just let you do that

            • vithigar@lemmy.ca
              2 years

              it’ll just let you do that

              Pretty much sums up JavaScript’s entire philosophy.

                • jaybone@lemmy.world
                  2 years

                  Let me just coalesce these types for you.

                  • Kaboom@reddthat.com
                    2 years

                    Imo, its better for it. A tool shouldnt tell the user what to do

                      • Ziglin (it/they)@lemmy.world
                        2 years

                        But the CPU would be thoroughly confused in many cases. Like if you added a number with a string. This means low level tools have too and therefore people who do low level programming are confused and the generally carefree has rules can make it difficult to debug js.

                        Also I think rust making you write “safe” code unless you explicitly tell it otherwise is a great thing.

                        So I think that tools telling the user that they’re doing something wrong is great, tools telling the user to stick with physical limitations for better performance are completely valid but what js does seem really weird with having constants be reassignable, making them nothing but labels combined with HTML I find it even more annoying.

                          • Justas🇱🇹@sh.itjust.works
                            2 years

                            [‘a’] + [‘b’] = ‘ab’

                            Gets me every time.

                              • Ziglin (it/they)@lemmy.world
                                2 years

                                I’m always more confused by adding integers to strings or something being an empty object because something else was undefined and the console didn’t bother to tell me.

                            • Ephera@lemmy.ml
                              2 years

                              I think, most of us consider it part of the job of a good tool, that it prevents us from using it wrongly. Allows us to use it much more recklessly.

                              • skulbuny@sh.itjust.worksEnglish
                                2 years

                                You’re downvoted, but you’re 100% right. The web is designed to not break. Engineers who can’t accept that don’t get to complain

                          • TurtleTourParty@midwest.socialEnglish
                            2 years

                            const long pain = 1;

                              • jaybone@lemmy.world
                                2 years

                                1L

                              • 9point6@lemmy.world
                                2 years

                                void

                                  • S0UPernova@lemmy.world
                                    2 years

                                    Maybe…

                                    const pain = Infinity
                                    
                                  • hypertown@lemmy.world
                                    2 years

                                    :any

                                    • pipe01@programming.dev
                                      2 years

                                      Ackshually you don’t need a type qualifier in C

                                        • Static_Rocket@lemmy.worldEnglish
                                          2 years

                                          Well, assuming you meant type specifier, at least not before C99. After that it is required. C23 explicitly states that a type specifier is required for all declarations.

                                          If you actually meant type qualifier, then no. That was never required.

                                          • henfredemars@infosec.pubEnglish
                                            2 years

                                            Really? TIL.

                                              • zaphod@sopuli.xyz
                                                2 years

                                                Defaults to int if I’m not mistaken.

                                              • jaybone@lemmy.world
                                                2 years

                                                Huh?

                                            • randompasta@lemmy.today
                                              2 years

                                              Meanwhile in France: Lunch time!

                                                • lockhart@lemmy.ml
                                                  2 years

                                                  can’t stop eating though

                                                    • onion@feddit.de
                                                      2 years

                                                      Can’t stop eating dough

                                                        • jaybone@lemmy.world
                                                          2 years

                                                          Baguette du fromage

                                                      • oce 🐆@jlai.lu
                                                        2 years

                                                        For mage in pain:

                                                      • jflorez@sh.itjust.worksEnglish
                                                        2 years

                                                        If they move to Python they can just have pain without constant 😜

                                                          • lugal@sopuli.xyz
                                                            2 years

                                                            And if they learned French instead, they had bread but this is not how it works. We don’t always get what we want nor what we deserve

                                                          • Richard@lemmy.worldEnglish
                                                            2 years

                                                            The variable is not initialised.

                                                            • NegativeLookBehind@lemmy.worldEnglish
                                                              2 years

                                                              And pain is immutable

                                                              • danhab99@programming.dev
                                                                2 years

                                                                Age or experience? Because both are funny

                                                                  • TheReturnOfPEB@reddthat.comEnglish
                                                                    2 years

                                                                    const_cast<pain>

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

                                                                    For (life) { suffering; }

                                                                    • ArbitraryValue@sh.itjust.worksEnglish
                                                                      2 years

                                                                      I spent those years in dll hell.

                                                                        • jaybone@lemmy.world
                                                                          2 years

                                                                          .so please, I use arch btw.

                                                                        • flerp@lemm.ee
                                                                          2 years

                                                                          bool theEnd;

                                                                          • jaybone@lemmy.world
                                                                            2 years

                                                                            Is that a vaio?

                                                                            • const_void@lemmy.ml
                                                                              2 years

                                                                              Lol

                                                                              • laserm@lemmy.world
                                                                                2 years

                                                                                Mood

                                                                                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.

                                                                                • 179 users / Day
                                                                                • 205 users / Week
                                                                                • 212 users / Month
                                                                                • 14.5K users / 6 months
                                                                                • 2.33K posts
                                                                                • 89.8K 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