Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Adding an external dependency for a single function like that is a great example for everything wrong in the Javascript ecosystem.
-
@sam9669 I had made the same comment on someone else's screenshot on devrant. This is karma getting back at me. I tell you. (This is much better than hassle of screenshot I tell you, I am enlightened )
-
@configurator to be fair if you include a bloated dependency its shit (jQuery) and if you make a small dependency its not good....
Really small dependencies are better in my eyes since this eay you know you will use everything. So less code, which means smaller files, which means faster site. -
@Codex404 in my opinion we're going to need some dependencies in a project of a certain size, but we should keep that number small and manageable. Since my current project works with AngularJS, and AngularJS works so well with JQuery, we use that. We also use underscore for general functions. But when a function is as short as
function concatMap(array, f) {
return array.map(f).reduce((current, next) => current.concat(Array.isArray(next) ? next : [ next ]));
}
The added dependency feels like more trouble than it's worth.
See the notes.
He was really high I guess
undefined