r/ProgrammerHumor • • Aug 08 '16

JQuery Does All Things!

https://i.reddituploads.com/b79bb2d6e2f14e65b769686647cc4782?fit=max&h=1536&w=1536&s=ed6be616a7a0467c49330eda9253811e
3.0k Upvotes

207 comments sorted by

View all comments

86

u/[deleted] Aug 08 '16

an old one but a good one.

Just today I googled something to get "try xxx jQuery plugin" which literally could be replaced by 5 lines of vanilla JS.

13

u/AlfredKnows Aug 08 '16

Today it is "npm install grunt gulp bower browserify omg basic-math build testify" which downloads 130MB and 12000 files to your project and then you can use this "Number.prototype.maths.addition.basicadd" method to add the numbers (it breaks if any of numbers is negative)...

16

u/senntenial Aug 08 '16

Luckily, you can easily check for negative numbers beforehand!

var number = -5;

var isNegative = (number.toString().charAt(0) == "-");

5

u/AlfredKnows Aug 09 '16

Please commit it to NPM as a module!

1

u/ccricers Aug 08 '16

This is why I do not touch the node_modules folder when I need to share code between two computers. It's made offline copying of projects more cumbersome too.