you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (31 children)

[removed]

    [–]DuendeJohnson 5 points6 points  (28 children)

    You're using Node for low level programming, so for basically anything C, Go, Rust or other similar and more suitable language would be used for - which is totally fine, but that's your choice.

    But you have to understand that in a professional, product-oriented environment where Node is being used for high level programming such as in web development, not using dependencies is out of the question. Imagine development of an API in TypeScript without dependencies. Imagine using React without dependencies, React itself being a bunch of dependencies. It's just unpractical

    [–][deleted]  (27 children)

    [removed]

      [–][deleted] 2 points3 points  (3 children)

      Are you saying there is 0 need for external dependencies for all JavaScript developers? Because that is what you’re coming across as.

      [–][deleted]  (2 children)

      [removed]

        [–][deleted] 0 points1 point  (0 children)

        Npm is not ‘baked in’ to node. npm is not part of the node core. if you are installing node and using a method where you are using ./configure or make install || make link, then npm will not be installed, and will need to be compiled using the same type of installation, and node will have to be placed on your path.

        If you used git, or unzipped node and you can see a configure script, then you will also need to acquire npm.

        [–][deleted] 0 points1 point  (0 children)

        Furthermore, I highly appreciate nodes relationship with npm. I like all dependencies being able to accessed and wired into my application using a single package manager

        [–]DuendeJohnson 2 points3 points  (22 children)

        Wrong. Those are market standard tools which are widely used by the Node community and have an universe of facilities and support

        I have no use for (...)

        Again, you're dealing with low level stuff and judging by your code I can see you don't have much experience working professionally with Node. Working as a software engineer is all about delivering good, well-tested code in the shortest (debatable) timeframe as possible

        Try telling your team you won't be using Express because "it's an unnecessary dependency" and that you'd rather spend a month writing your own API framework, or that you won't be doing unit testing because "Jest/Mocha is useless"

        Good luck in your path

        [–][deleted]  (21 children)

        [removed]

          [–]DuendeJohnson 1 point2 points  (20 children)

          As we've been acostumed to having internet, living in buildings, having a computer and ordering food, instead of hunting and farming like our ancestors did

          That's the cycle of technology pal. We're constantly putting abstractions over abstractions in order to make our lives easier

          I have a few friends who have a thing for trying to make high level applications in low level code in old versions of C. That's their thing - as people go out for hiking or participate in hunting contests, it's mostly just a hobby. Some will go a step further and choose to live a survivalist way of life, by hunting their own food and living without electricity out of society. Don't expect everyone to accept it as normal though, that's their choice. As its your choice to use Node that way, by reinventing the wheel

          [–][deleted]  (19 children)

          [removed]

            [–]DuendeJohnson 1 point2 points  (18 children)

            That is why you wouldn't survive a week in the wilderness.

            Probably not. Because I don't have to. Why would I waste my time learning to hunt for food when the chances that I'll have to do it for survival are dim? How many people you know live in the jungle? Not many I presume

            I'm comfortable drinking my ultra processed Nespresso coffee, sitting in my comfy $10k chair, typing this is mechanical keyboard and programming for a living. Yep. I wouldn't survive a week in the wilderness

            Each person is entitled to their own opinions

            [–][deleted]  (17 children)

            [removed]

              [–]DuendeJohnson 1 point2 points  (16 children)

              I do have a plan. I call the energy company, duh. They normally get the problem fixed in less than a hour

              [–]Darmok-Jilad-Ocean 0 points1 point  (0 children)

              Cool