News for hackers. Stuff that matters.
Re:Lodash 4.0.0 is out by overcast on Tuesday January 12, 2016 @07:58PM (#10891585)
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.
Re:Lodash 4.0.0 is out by krat0sprakhar on Tuesday January 12, 2016 @08:02PM (#10891606)
Have you checked out Lea Verou's Bliss.js? http://blissfuljs.com/ It's super minimal and basically relies on querySelector. Give it a whirl and see if it fits your needs.
Re:Lodash 4.0.0 is out by cubano on Tuesday January 12, 2016 @11:49PM (#10892370)
Very cool...been looking for something like that for a project I am working on right now, as a matter of fact.
Re:Lodash 4.0.0 is out by overcast on Tuesday January 12, 2016 @08:54PM (#10891824)
Cool! I'll check it out thanks. Deep Clone is required though, I'll poke around.
Re:Lodash 4.0.0 is out by pygy_ on Wednesday January 13, 2016 @05:55AM (#10893490)
lodash.cloneDeep is available as a standalone npm module (as are all lodash functions).

It clocks at 2.5KB mingzipped, after browserification.

There are probably lighter implementations.

Re:Lodash 4.0.0 is out by nsonnad on Tuesday January 12, 2016 @10:03PM (#10892078)
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

Re:Lodash 4.0.0 is out by epidemian on Tuesday January 12, 2016 @10:34PM (#10892179)
At 4.4KB (gzipped), it seems like a really good alternative to jQuery. Thanks for the suggestion!
Re:Lodash 4.0.0 is out by _RPM on Tuesday January 12, 2016 @09:13PM (#10891909)
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
Re:Lodash 4.0.0 is out by overcast on Tuesday January 12, 2016 @09:26PM (#10891965)
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.
Re:Lodash 4.0.0 is out by jeresig on Tuesday January 12, 2016 @10:13PM (#10892110)
Re:Lodash 4.0.0 is out by overcast on Wednesday January 13, 2016 @08:59AM (#10894248)
I looked at sizzle, but is it just me, or is the syntax not anywhere near as convenient as jQuery? Doesn't seem like it's making anything easier.
Re:Lodash 4.0.0 is out by kyriakos on Tuesday January 12, 2016 @10:16PM (#10892115)
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 by leeoniya on Tuesday January 12, 2016 @09:45PM (#10892034)
look at

https://github.com/finom/bala

(or balalaika by same author)

also sprint.js and cash.js