Live data from Hacker News

Lodash 4.0.0 is out

github.com

41–50 of 102 posts

Re: Lodash 4.0.0 is out

#41

I think it's time to check out a jquery alternative. My recent projects are basically only using deep copies and some semi-complex selectors. lodash + querySelector should cover pretty much everything at this point.

[deleted]

Re: Lodash 4.0.0 is out

#42

Earlier quoted context omitted.

Lodash dropped bower support in favor of npm because "16% use bower vs. 76% npm for AMD packages": https://twitter.com/jdalton/status/677323442488672257

...according to a twitter poll on a personal account :P I avoid bower wherever possible, but removing support does smell a bit like an activist move. There may be more to the story, though.

The poll was, should it be dropped, given that fact. The fact was not the poll result.

Re: Lodash 4.0.0 is out

#44
post #30

Earlier quoted context omitted.

I've seen projects that use jQuery just for the selector part, nothing else is used. Selectors are a core strength of jQuery. With document.querySelector, I wouldn't even include jQuery in a new project. `window.addEventListener` isn't much different than .on

It's used out of convenience, and avoiding errors. jQuery selectors are stupidly simple to do complex stuff with. I just wish they had a jQuery.selector distribution.

It does! https://github.com/jquery/sizzle/blob/master/dist/sizzle.js

Re: Lodash 4.0.0 is out

#45
post #30

I think it's time to check out a jquery alternative. My recent projects are basically only using deep copies and some semi-complex selectors. lodash + querySelector should cover pretty much everything at this point.

I've seen projects that use jQuery just for the selector part, nothing else is used. Selectors are a core strength of jQuery. With document.querySelector, I wouldn't even include jQuery in a new project. `window.addEventListener` isn't much different than .on

I mostly use it because it's a dependency in so many other stuff that I end up using in my projects.

Re: Lodash 4.0.0 is out

#46

Earlier quoted context omitted.

If more major libraries drop support for bower, it might (hopefully) die soon. What does bower do better than NPM?

JSPM! It works a lot like NPM but is specifically intended for use with front-end modules. Features: - uses System.js (a polyfill for the future ES6-module-loader spec - supports CommonJS, AMD, and UMD formats - has plugins for importing other types (ex css) - support Typescript/Traceur/Babel out of the box - uses a flat dependency structure (ie like NPM v3) - can generate bundles and self-executing bundles (incl tre…

Personally I'll stick with RPM for all my JS packaging needs.

Re: Lodash 4.0.0 is out

#47
post #40

I think it's time to check out a jquery alternative. My recent projects are basically only using deep copies and some semi-complex selectors. lodash + querySelector should cover pretty much everything at this point.

Not to be forgotten is d3, which in addition to selectors allows you to very easily bind data to the DOM. And with the big 4.0 refactor that is underway, you can very easily pull in the selection[1] stuff only. [1] https://github.com/d3/d3-selection

At 4.4KB (gzipped), it seems like a really good alternative to jQuery. Thanks for the suggestion!

Re: Lodash 4.0.0 is out

#49

Earlier quoted context omitted.

JSPM! It works a lot like NPM but is specifically intended for use with front-end modules. Features: - uses System.js (a polyfill for the future ES6-module-loader spec - supports CommonJS, AMD, and UMD formats - has plugins for importing other types (ex css) - support Typescript/Traceur/Babel out of the box - uses a flat dependency structure (ie like NPM v3) - can generate bundles and self-executing bundles (incl tre…

Personally I'll stick with RPM for all my JS packaging needs.

What do you use to polyfill the browser to support RPM? :)

Re: Lodash 4.0.0 is out

#50

Earlier quoted context omitted.

JSPM! It works a lot like NPM but is specifically intended for use with front-end modules. Features: - uses System.js (a polyfill for the future ES6-module-loader spec - supports CommonJS, AMD, and UMD formats - has plugins for importing other types (ex css) - support Typescript/Traceur/Babel out of the box - uses a flat dependency structure (ie like NPM v3) - can generate bundles and self-executing bundles (incl tre…

Personally I'll stick with RPM for all my JS packaging needs.

yum makes rpm easymode!
Post reply on HN