Node-noop – Implements a noop function
github.com
github.com
At one point it was PHP. Then it was Rails. Of late it's been Node. I'm sure Windows users might have some old VB war stories. (Admittedly, I'm not sure what to make of the Java StackOverflow tag, seeing that it's also is a sewers. Presumably school or Android related.)
Edit: good related reading:
http://yosefk.com/blog/redundancy-vs-dependencies-which-is-w...
> Redundancy sucks. Redundancy always means duplicated efforts, and sometimes interoperability problems. But dependencies are worse. The only reasonable thing to depend on is a full-fledged, real module, not an amorphous bunch of code. You can usually look at a problem and guess quite well if its solution has good chances to become a real module, with a real owner, with a stable interface making all its users happy enough. If these chances are low, pick redundancy. And estimate those chances conservatively, too. Redundancy is bad, but dependencies can actually paralyze you. I say – kill dependencies first.
[1] https://api.jquery.com/jquery.noop/
[2] https://lodash.com/docs/#noop
[3] http://underscorejs.org/#noop
[4] http://reactivex.io/rxjs/file/es6/util/noop.js.html
[5] https://docs.angularjs.org/api/ng/function/angular.noop
edited: formatting
https://github.com/sindresorhus/noop3
https://github.com/yoshuawuyts/noop2
import {noop} from 'node-noop'
export default () => <noscript>{noop()}</noscript>I doubt non-english languages quite overload as much as "zalgo" generators.
ironically-shitty
javascript
left-pad-level-dumb-module
noop
parody
satirehttps://www.npmjs.com/package/noop
> 202 downloads in the last month
> Dependents (3): meta-noop, scrappers, npl
Usually, a 100 of those would be from bots by sites that also host npm package information.
https://www.npmjs.com/package/scrappers which depends on noop looks like an actual, real, useful package.
No need to create a new function object when you need a noop.
~So functional~
This is why funny stories like leftpadgate can happen.
Relying on an external dependency is a net win if and only if the time gain overcomes the loss of control.
Maybe regrouping all these tiny libraries under an umbrella project (lets call it node-utils or js-tinytools or whatever) will mitigate the problem?
This project will not have any external dependency though will be used by most of the projects and ergo might be watched with much more attention.
I had a problem with running out of inodes on my server because of the massive number of files that end up in node_modules for even a smallish project.
Turns out, the combination of vboxsf and ntfs masquerading as a linux filesystem is not without bugs-
Sometimes, the directory depths that npm reached caused the filesystem to "soft crash", where it would just fail to do operations on files, meaning you had to run `npm install` a few times to actually grab all the dependencies.
Other times, it caused the host machine to blue screen.
One of the times this happened, it had the side effect of irreversibly corrupting my favourite programming font (Fira Code) for all JetBrains IDEs on that Windows install.
Not so much a problem now I'm not being forced to develop in Windows. But even though I dug up bugs in unrelated pieces of software / the host OS kernel, npm was still pushing that software to the limits with that crazy recursive directory structure it was attempting to build.
You don't get this shit with python!
Did you write about it somewhere?
Having them separate like this at least means that if one library doesn't implement things 'right' you can switch to another easily.
Look at python (or ruby)'s standard library, it's awesome, and of high quality (most of the time, see urllib/requests for a counterexample).
Everybody should remember this