Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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 programming

JavaScript programming

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
26 Posts 20 Posters 1 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.
  • cm0002@lemmy.worldC This user is from outside of this forum
    cm0002@lemmy.worldC This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1
    This post did not contain any content.
    J M skullgrid@lemmy.worldS L G 12 Replies Last reply
    497
    • cm0002@lemmy.worldC [email protected]
      This post did not contain any content.
      J This user is from outside of this forum
      J This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      This can be fixed by switching from npm to pnpm or bun. They use hard links and a package cache.

      X 1 Reply Last reply
      7
      • cm0002@lemmy.worldC [email protected]
        This post did not contain any content.
        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
        #3

        That's the thought I always had: When I develop in Node, I stand on the shoulders of ten thousand microbes.

        1 Reply Last reply
        40
        • J [email protected]

          This can be fixed by switching from npm to pnpm or bun. They use hard links and a package cache.

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

          This does not fix anything. Your final packaged code is the same.

          J M L 3 Replies Last reply
          22
          • X [email protected]

            This does not fix anything. Your final packaged code is the same.

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

            Modern JavaScript has come a long way.

            M 1 Reply Last reply
            1
            • J [email protected]

              Modern JavaScript has come a long way.

              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 [email protected]
              #6

              Modern CSS has come a long way.

              A 1 Reply Last reply
              6
              • X [email protected]

                This does not fix anything. Your final packaged code is the same.

                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
                #7

                Depends firstly what you are building. For a Node backend, it of course matters a lot. For a JS frontend you always only ship a fraction of the dependency code, so the meme doesn't really apply. Modern JS frameworks are alright as long as you know what you are doing šŸ™‚

                1 Reply Last reply
                6
                • X [email protected]

                  This does not fix anything. Your final packaged code is the same.

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

                  I think you two are taking about something different. Yes, pnpm slims down node modules, and yes it does nothing for your package.

                  But tree shaking is what I think the other person should've referenced to make their point.

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

                    Me working on basic js:

                    Well JS, you are an odd fellow, but you run in a browser.

                    HELP! HEEELP!

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

                      Thank the programming gods for tree shaking.

                      Shake dat thicc tree for me, bb.

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

                        and I thought my little python exe weighting 33MB was a bit much

                        1 Reply Last reply
                        1
                        • cm0002@lemmy.worldC [email protected]
                          This post did not contain any content.
                          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
                          #12

                          I'd like full stack developers to try something. Next time you have an itch for a personal project, see if you can make it with no frontend JavaScript. Just some CSS and HTML forms. All templating handled on the backend. Just try it and see how far you get. Don't worry if it looks like a GeoCities page.

                          Then try finding places where JavaScript would make it more responsive or better UX in some way. Does the back button still work? Is it actually faster? Does it provide any benefit at all?

                          Maybe it does, but just try.

                          B C 2 Replies Last reply
                          33
                          • F [email protected]

                            I'd like full stack developers to try something. Next time you have an itch for a personal project, see if you can make it with no frontend JavaScript. Just some CSS and HTML forms. All templating handled on the backend. Just try it and see how far you get. Don't worry if it looks like a GeoCities page.

                            Then try finding places where JavaScript would make it more responsive or better UX in some way. Does the back button still work? Is it actually faster? Does it provide any benefit at all?

                            Maybe it does, but just try.

                            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
                            #13

                            https://developer.mozilla.org/en-US/docs/Web/API/Web_components

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

                              Just fucking use HTML.

                              rustyshackleford@programming.devR R 2 Replies Last reply
                              46
                              • rustyshackleford@programming.devR [email protected]

                                Just fucking use HTML.

                                rustyshackleford@programming.devR This user is from outside of this forum
                                rustyshackleford@programming.devR This user is from outside of this forum
                                [email protected]
                                wrote on last edited by [email protected]
                                #15

                                "Why not write Assembly then?"

                                Oh, here comes the genius motherfucker with the big-brain counterargument: "Well, if HTML's so great, why not just write everything in Assembly, huh?". Wow, look at you, you clever little prick. Did you come up with that all by yourself? Writing web pages in Assembly is like using a fucking scalpel to slice your overcooked steak: sure, it'll get the job done, but you're gonna look like a complete asshole while you're at it. HTML just works, you absolute tool. It's been the backbone of the web since Al Gore flipped the switch, and it'll still be here long after your trendy framework is rotting in a GitHub graveyard. So take your smartass logic and shove it. HTML's king, and you're just a peasant with a keyboard.

                                🤣

                                1 Reply Last reply
                                50
                                • F [email protected]

                                  I'd like full stack developers to try something. Next time you have an itch for a personal project, see if you can make it with no frontend JavaScript. Just some CSS and HTML forms. All templating handled on the backend. Just try it and see how far you get. Don't worry if it looks like a GeoCities page.

                                  Then try finding places where JavaScript would make it more responsive or better UX in some way. Does the back button still work? Is it actually faster? Does it provide any benefit at all?

                                  Maybe it does, but just try.

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

                                  I'm a JavaScript developer. But it is fully possible to create a site with no frontend JavaScript

                                  Like many things, you should use JavaScript if you need it. If you don't need remote data sources or live refreshes, pure html and css work perfectly fine and, I would go so far as to say, may even be necessary for resistance web pages.

                                  This is especially true if you're using tor. JavaScript can leak your IP address and sites will work more reliability if you have static content that's refreshed on the back end than using a bloated next.js app taking up RAM.

                                  G 1 Reply Last reply
                                  19
                                  • rustyshackleford@programming.devR [email protected]

                                    Just fucking use HTML.

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

                                    If you don't believe HTML is enough, check any socialist/communist web page.

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

                                      me with rust. I like rust, but this is like I feel it XD

                                      1 Reply Last reply
                                      4
                                      • C [email protected]

                                        I'm a JavaScript developer. But it is fully possible to create a site with no frontend JavaScript

                                        Like many things, you should use JavaScript if you need it. If you don't need remote data sources or live refreshes, pure html and css work perfectly fine and, I would go so far as to say, may even be necessary for resistance web pages.

                                        This is especially true if you're using tor. JavaScript can leak your IP address and sites will work more reliability if you have static content that's refreshed on the back end than using a bloated next.js app taking up RAM.

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

                                        The vast majority of those are useless animations. Some are even a much worse implementation of something done much simpler with JS and requires significantly more code weighing down the page speed. Some examples of this are the cursor tracking examples which use hundreds of divs in a grid.

                                        While there are some useful examples, it seems like this repo is more of a list of to show off advanced CSS, fancy animations, and designs.

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

                                          I'm here still using jQuery and php+sockets for nearly all my needs. Only once in my life I actually needed node

                                          1 Reply Last reply
                                          4
                                          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