Erik_
The notorious "is-even" npm is an extreme example of that..
Mon Oct 11, 2021 2:03pm
68.129.13.241

32 million downloads: https://www.npmjs.com/package/is-even

But in a rational sense, that's a good philosophy. These days, I find myself looking to see if someone already created a package or library online before attempting to reinvent the wheel myself.

I think my first real experience with getting libraries from online (besides SDL in C++) was with Perl and CPAN. I remember thinking it was awesome. Want to send email messages? we got a package for that!

That's a good point about the books. 3rd party books can also be written in a way that makes the learning "fun" for the reader whereas manuals are usually just that, manuals.

    • I didn't really understand what most of those things did - Puckdropper, Sun Oct 10 2021 12:07am
      until I was introduced to them in college... I may not be super familiar with Perl, but Larry Wall's philosophies changed the way I view certain things. One is if an operation is really common, maybe someone's already got a command for it. So there's RTRIM$, LTRIM$, etc because people needed to r... more
      • The notorious "is-even" npm is an extreme example of that..- Erik_, Mon Oct 11 2021 2:03pm
        • Wait, so there's an entire package that just divides by 2 an - Puckdropper, Tue Oct 12 2021 4:57am
          d tells you if the result has a remainder? (Or shoot, you can just look at the last bit. If 1, not even.) It would kinda make sense in C, where the package could handle different numbers and number types, but isn't a number in JS just a number? (Been a while since I've looked at JS.) One area... more
          • It relies on another package called "is-odd". This is the entire code for "is-even" From: https://github.com/i-voted-for-trump/is-even/blob/master/index.js /*! * is-even * * Copyright (c) 2015, 2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; ... more
            • Wow... You never know what people show they need. - Puckdropper, Sun Oct 24 2021 4:34am
              I guess that could be a good programming language feature. After all, you're better off with well used libraries than you are writing your own in most cases. (The number of "Apps" on Android that are rewritten versions of other apps--with no more features or even a different design is staggering. ... more
              • Most languages have a standard library or an equivalent but Javascript doesn't really have an official one. This leads to packages being created to fill this void. Which is fine, but sometimes people hijack these "standard" packages used by many and introduce vulnerabilities or malware into them on ... more
                • It's not too late... - Puckdropper, Mon Nov 01 2021 3:19am
                  They just have to create an official standard library. It'd work kinda like CPAN: You don't get them included with the library but they're easily accessible from a trusted place.
  • Click here to receive daily updates
    "Forces act when not restrained" - Puckdropper