45

See the notes.
He was really high I guess

Comments
  • 9
    >tfw pic of screen instead of screenshot of it
  • 2
    Cinnamon 👍.
    And why .markdown and not just .md?
  • 2
    @sam9669 At least it's a quality picture
  • 2
    Adding an external dependency for a single function like that is a great example for everything wrong in the Javascript ecosystem.
  • 0
    @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 )
  • 0
    @LinusCDE because dev felt extra fancy :|
  • 3
    @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.
  • 1
    @Codex404 Yes, finally someone who gets it! I agree with you, friend.
  • 0
    @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.
Add Comment