Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. JavaScript

JavaScript

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
152 Posts 83 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M [email protected]

    That's also my understanding: "Javascript is great because you can use other languages and then transpile them to JS."

    F This user is from outside of this forum
    F This user is from outside of this forum
    [email protected]
    wrote on last edited by [email protected]
    #139

    JS itself is great, I prefer it to most other languages due to the flexibility that it allows. Adding types through TS to safeguard against footguns doesn't mean you're not still using JS. You can also add the types using comments instead if you prefer it, which means you're actually writing raw JS.

    1 Reply Last reply
    0
    • calavera@lemmy.zipC [email protected]

      It makes sense though

      Z This user is from outside of this forum
      Z This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #140

      .... It does?

      1 Reply Last reply
      6
      • _ [email protected]

        The correct way to do it is to load a 500mb library that has an add function in it.

        B This user is from outside of this forum
        B This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #141

        Point taken but the one I use is only ~200k for the whole package, ~11k for the actual file that gets loaded

        1 Reply Last reply
        0
        • H [email protected]

          I know nothing about javascript, what is wrong with using + for math? perhaps naively, I'd say it looks suited for the job

          B This user is from outside of this forum
          B This user is from outside of this forum
          [email protected]
          wrote on last edited by [email protected]
          #142

          The native arithmetic operators are prone to floating point rounding errors

          1 Reply Last reply
          1
          • supervisor194@lemmy.worldS [email protected]

            So all you've mustered is some lame-ass ad-hominem? Have a good day

            S This user is from outside of this forum
            S This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #143

            No, it just so happens I have a minute to talk about our lord and saviour JS. What is His holy and sacred mission?

            supervisor194@lemmy.worldS 1 Reply Last reply
            0
            • Q [email protected]

              https://en.wikipedia.org/wiki/Stockholm_syndrome

              M This user is from outside of this forum
              M This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #144

              This here is my absolute favorits way to diss someone. Send the a wikipeda link and bam!

              rivalarrival@lemmy.todayR 1 Reply Last reply
              4
              • S [email protected]

                No, it just so happens I have a minute to talk about our lord and saviour JS. What is His holy and sacred mission?

                supervisor194@lemmy.worldS This user is from outside of this forum
                supervisor194@lemmy.worldS This user is from outside of this forum
                [email protected]
                wrote on last edited by [email protected]
                #145

                Ah, you're a troll. I see. Blocked.

                S 1 Reply Last reply
                0
                • supervisor194@lemmy.worldS [email protected]

                  Ah, you're a troll. I see. Blocked.

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #146

                  You asked for it, smart ass

                  1 Reply Last reply
                  0
                  • K [email protected]

                    That is just the tip of the iceberg:

                    https://whatthefsharp.com/JavaScript/3

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #147

                    so plus coerces into string if not number, was that so hard?

                    1 Reply Last reply
                    1
                    • W [email protected]

                      This has got to be baNaNa

                      maggiwuerze@feddit.orgM This user is from outside of this forum
                      maggiwuerze@feddit.orgM This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #148

                      1 Reply Last reply
                      0
                      • calavera@lemmy.zipC [email protected]

                        It makes sense though

                        P This user is from outside of this forum
                        P This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #149

                        It does to some degree.

                        • "11" is string, 1 is an int, because strings can be added (+) convert int to string and combine: "11"+"1" = "111"
                        • "11" is string, 1 is an int, because strings cant be subtracted (-) convert string to int and combine: 11-1 = 10

                        I'm not into JS so I don't know how it takes priority. ints can be added too, so I guess its basing it on the first variable which is compatible with the operator: in the first case string, in the second case int.

                        If this is how it works, it makes sense. But imo its a case of the designers being preoccupied with whether or not they could, they didn't stop to think if they should.

                        1 Reply Last reply
                        1
                        • cm0002@lemmy.worldC [email protected]
                          This post did not contain any content.
                          Z This user is from outside of this forum
                          Z This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #150

                          What no type safety does to an MF...

                          1 Reply Last reply
                          0
                          • cm0002@lemmy.worldC [email protected]
                            This post did not contain any content.
                            cupcakezealot@lemmy.blahaj.zoneC This user is from outside of this forum
                            cupcakezealot@lemmy.blahaj.zoneC This user is from outside of this forum
                            [email protected]
                            wrote on last edited by [email protected]
                            #151

                            javascript is to web developers what powerpoint is to sales people

                            1 Reply Last reply
                            1
                            • M [email protected]

                              This here is my absolute favorits way to diss someone. Send the a wikipeda link and bam!

                              rivalarrival@lemmy.todayR This user is from outside of this forum
                              rivalarrival@lemmy.todayR This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #152

                              https://en.m.wikipedia.org/wiki/Anilingus

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups