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. You typical Node project

You typical Node project

Scheduled Pinned Locked Moved Programmer Humor
67 Posts 47 Posters 3 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.
  • O [email protected]

    Why not import all code ever created by human kind just in case we might need some of it.

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

    ...and then we can grind all the code ever created by human kind into a fine paste, and write a clever algorithm to regurgitate it as a squishy code slurry in response to questions about problems that the standard libraries already solved.

    1 Reply Last reply
    6
    • icastfist@programming.devI [email protected]

      "Yes, I'd like a wheel. I don't want to invent it. Why, of course, give me the full package of wheel, axis, rotor, engine, fuel tank, windshield, mirrors, tire, front panel, brakes. This wheel will be great for me manually spinning cotton!"

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

      And I have the option to spin cotton off-road on rugged terrain...so there's that...

      1 Reply Last reply
      0
      • D [email protected]

        You say that, but I've watched the JS community move from one framework and tool suite to the next quite rapidly. By my recollection, I've seen a wholesale change in popular tooling at least four times in the last decade. Granted, that's not every developer's trajectory through all this, but (IMO) that's still a lot.

        bleistift2@sopuli.xyzB This user is from outside of this forum
        bleistift2@sopuli.xyzB This user is from outside of this forum
        [email protected]
        wrote last edited by
        #60

        But changing frameworks is not why node_modules is so large. You don’t import Angular and Vue.

        D 1 Reply Last reply
        0
        • F [email protected]

          The problem is "I need function, library with 1000 functions has function, include." Library's 823rd function turns out to have a vulnerability.

          bleistift2@sopuli.xyzB This user is from outside of this forum
          bleistift2@sopuli.xyzB This user is from outside of this forum
          [email protected]
          wrote last edited by
          #61

          Enter tree-shaking.

          1 Reply Last reply
          0
          • F [email protected]

            And this is why tree shaking exists.

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

            I feel like the end result of tree shaking would be the image here https://fedia.io/m/[email protected]/t/2547352/CSS-Gardening

            icastfist@programming.devI 1 Reply Last reply
            0
            • D [email protected]

              Feels like a lot of “not inventing the wheel” - which is good? There are plenty of good wheels out there.

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

              Is this why pip packages are called wheels...?

              1 Reply Last reply
              0
              • S [email protected]

                I feel like the end result of tree shaking would be the image here https://fedia.io/m/[email protected]/t/2547352/CSS-Gardening

                icastfist@programming.devI This user is from outside of this forum
                icastfist@programming.devI This user is from outside of this forum
                [email protected]
                wrote last edited by
                #64

                Gotta fix that link

                1 Reply Last reply
                1
                • bleistift2@sopuli.xyzB [email protected]

                  But changing frameworks is not why node_modules is so large. You don’t import Angular and Vue.

                  D This user is from outside of this forum
                  D This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #65

                  I agree. Rather each one of those is rather substantial on its own. Plus the churn of going from framework to framework makes it less useful to compress and bundle all this stuff into fixed versions on a slower schedule (e.g. like Ubuntu packages do). I think that all contributes to bloat.

                  1 Reply Last reply
                  1
                  • Q [email protected]

                    Because we're monkeys

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

                    We ARE all apes

                    1 Reply Last reply
                    1
                    • D [email protected]

                      I used to struggle with this, until I realized what's really going on. To do conventional web development, you have to download a zillion node modules so you can:

                      • Build one or more "transpilers" (e.g. Typescript, Sass support, JSX)
                      • Build linters and other SAST/DAST tooling
                      • Build packaging tools, to bundle, tree-shake, and minify your code
                      • Use shims/glue to hold all that together
                      • Use libraries that support the end product (e.g. React)
                      • Furnish multiple versions of dependencies in order for each tool to have its own (stable) graph

                      All this dwarfs any code you're going to write by multiple orders of magnitude. I once had a node_modules tree that clocked in at over 1.5GB of sourcecode. What I was writing would have fit on a floppy-disk.

                      That said, it's kind of insane. The problem is that there's no binary releases, nor fully-vendored/bundled packages. The entire toolchain source, except nodejs and npm, is downloaded in its entirety, on every such project you run.

                      In contrast, if you made C++ or Rust developers rebuild their entire toolchain from source on every project, they'd riot. Or, they would re-invent binary releases that weekend.

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

                      Boy do i have news concerning rust 😛

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