Earlier quoted context omitted.
Personally, no, but even if it did, what if a bug is found in the future? The community fixes the bug, not necessarily you!
The possibility of having bugs in code you don't control (that usually has a clause for no warranties) is an argument for implementing it yourself, not against it. Don't forget how hard it is to get a maintainer even agree on whether something is 1. a bug 2. that needs to be fixed.
I've Just Liberated My Modules
471–480 of 827 posts
Re: I've Just Liberated My Modules
#472Earlier quoted context omitted.
Realistically 17 lines of code is total overkill for this function. In many cases you could achieve the same thing more efficiently in a single line.
Feel free to show a smaller implementation that's more efficient. I've seen several "one liners" in this thread already, and most of them either blow up when something that's not a string is passed in (regardless of how you view strict typing, js doesn't have it and this shouldn't happen), or are extremely slow comparatively (most of them creating and destroying an array every time they are called). Plus this has 100…
How's this:
function leftpad (str, len, ch) {
ch = (len -= str.length) 0) ch += ch[0];
return ch + String(str);
}
No local variables, less manipulation of the input string, the string grows at the tail which is more efficient, and the code is much shorter.(With a bit of work you can use the longer ch string that is built to reduce the number of string appends even more by appending multiple characters at once. Although probably not worth it for this function.)
Re: I've Just Liberated My Modules
#473Azer has contributed awesome modules to the community, but such a move _obviously_ messes with a bunch of people who previously didn't trust npm, but Azer. Npm works fine. There might be issues with it, but the reason builds are failing right now is that he decided to unpublish all of them - in a move that feels very kneejerky, despite him claiming that it's the opposite. If this had been actually in the interest of…
Didn't NPM break builds by completely swapping out the contents of a known module ? Obviously NPM should not be relied on, but this really makes the case. NPM will arbitrarily modify packages without notice -- this could be the unwinding of NPM.
(elsewhere in this thread)
Re: I've Just Liberated My Modules
#474I applaud this action and while I'd like to point the finger at NPM, there's no real other method to fix historical package versions that depend on this. It is worth pointing to the silly state of NPM packages: Who decided that an external dependency was necessary for a module that is 17 lines of code? module.exports = leftpad; function leftpad (str, len, ch) { str = String(str); var i = -1; if (!ch && ch !== 0) ch =…
> Developers: less dependencies is better, especially when they're so simple! No! The opposite of that. Lots of little µframeworks, defining composable and generic types, is much better than a giant monolith. The Swift Package Manager is taking this approach, and I think it's great: https://github.com/apple/swift-package-manager#modules The caret character doesn't appear anywhere in the semver spec, so whatever that…
Re: I've Just Liberated My Modules
#475Earlier quoted context omitted.
How about a blockchain-based NPM? Can't take all the computers down. Legal, shmegal.
You can still be jailed for contempt of the order, though. "I've found a clever workaround for court orders" doesn't work around that bit.
magnet:?xt=urn:btih:14f146cdfaef83951ca9d3ac647e18e1977d1367
I'll wait
Re: I've Just Liberated My Modules
#476Earlier quoted context omitted.
It doesn't have anything to do with the API. Kik (the company) registered the name and have rights to the name. Technically, Kik (the company) registered their trademark in the class "Computer Software" [0]. That means that no-one else can use the word Kik (and the logo) for this class of activity. The key issue is when the registration happened. Since they've been going since 2009, and Kik (the software project) onl…
> Everyone knows the example of Spam. Please show an example of someone other than Hormel Foods Corporation marketing a meat product using any derivative of the name 'Spam' and getting away with it.
Re: I've Just Liberated My Modules
#477Earlier quoted context omitted.
Taking an idea to the logical extreme is an effective means of invalidating said idea. How many UNIX utilities are 17 silly lines long? A bit of code duplication would go a long way towards bringing sanity to JS land.
I wonder how long /usr/bin/true source is.
In OpenBSD, it's 3 LoC IIRC.
Re: I've Just Liberated My Modules
#478Earlier quoted context omitted.
You can still be jailed for contempt of the order, though. "I've found a clever workaround for court orders" doesn't work around that bit.
OK, now tell me how you can remove this file from BitTorrent (it's Fedora 18 KDE) magnet:?xt=urn:btih:14f146cdfaef83951ca9d3ac647e18e1977d1367 I'll wait
Even when the former is actually impossible, a court could still punish for the latter. "Ha ha ha I use technology to cleverly show how futile your orders are" is not the kind of thing you want to say to a court with broad contempt powers.
Re: I've Just Liberated My Modules
#479Earlier quoted context omitted.
The Apple thing doesn't work though, for a specific reason: it's a very common word/name. Smith is a very common surname. If one person starts the Smith Automobile Company and another person starts the Smith Farm, obviously there's no issue there. That's because none of us invented "Smith", it's understood to be a common name, etc. On the other hand, if I start "The Google Paper Company", I'm pretty damn sure I would…
That is not how trademarks work. Feel free to start the Google Paper Co. Uniqueness is not a merit for trademark infringement. To infringe you have to be a competitor.
Re: I've Just Liberated My Modules
#480Earlier quoted context omitted.
An NPM package name is just what NPM scraped from a package.json file.
The technical details of how package names enter their system aren't really relevant from a legal point of view.
> There are no legal claims to be made over NPM package names.