Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sfeng
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
271.
▲
by
sfeng
13y ago
You don't need an abstraction to do something that's natively implemented on your platform.
272.
▲
by
sfeng
13y ago
The question is, how many of those gory details still exist in modern browsers? There's not much to test if you're just calling el.classList.add().
273.
▲
by
sfeng
13y ago
It will still be here when the world is ready
274.
▲
by
sfeng
13y ago
One could ask if that's actually a good thing. You also get the same thing from the existential operator in coffeescript, if you're in to that.
275.
▲
by
sfeng
13y ago
The question at hand is, are fallbacks necessary anymore for the browsers we are targeting today?
276.
▲
by
sfeng
13y ago
You have it a bit backwards, IE8 doesn't include JSON support when you are in quirks mode, which no modern application should ever be in.
277.
▲
by
sfeng
13y ago
This is exactly what we're trying to combat. For modern browsers, in many cases, it's just not true. There are a few utility methods that are tricky to replace, but you really shouldn't be including jQuery only for it'
278.
▲
by
sfeng
13y ago
One way of looking at it is that if you already have underscore to give you _.extend and the like, you can get pretty far with just what the browser gives you.
279.
▲
by
sfeng
13y ago
I think that what it's saying is that you can write yourself a microlibrary that just includes the ten or fifteen lines of adapter code you actually need for the thing you're building, and that you should use native browser constr
280.
▲
by
sfeng
13y ago
Like it says at the top of that page: > jQuery and its cousins are great, and by all means use them if it makes it easier to develop your application.
281.
▲
by
sfeng
13y ago
Since I've started using an MVC, I use chaining less and less. I tend to just use a variable the few times I need to do a bunch of manipulation to the same element. Beyond that, any chain using .end is nuts to me.
282.
▲
by
sfeng
13y ago
This is actually a great example of the purpose of the site. Since IE8, browsers have supported a native 'sizzle-style' element querying syntax: http://youmightnotneedjquery.com/#finding_elements IE9 and later al
283.
▲
You might not need jQuery
(youmightnotneedjquery.com)
994 points
by
sfeng
13y ago
|
349 comments
284.
▲
by
sfeng
13y ago
You think they only have 82 users?
285.
▲
by
sfeng
13y ago
and Chrome, Safari, Firefox and Opera.