5 ms·
I really admire Resig, and this post contains a few gems: 1. Knew about PPK[0], didn't know about JZ[1] 2. Feature detection came about from writing this book
by javajosh 14y ago
I really admire Resig, and this post contains a few gems:
1. Knew about PPK[0], didn't know about JZ[1]
2. Feature detection came about from writing this book! Which generalizes too: writing is a great way to innovate (something pg has said, too).
3. A nice little jab at GRRM, who thoroughly deserves it.
4. An exciting glimpse into the future of computer science pedagogy by way of JavaScript in the browser. (And I can't help but wonder if this is an oblique response to the recent Alan Kay Dr. Dobbs interview, where Kay asserts, "The Web, in comparison, is a joke. The Web was done by amateurs."[2])
5. Points out that even the best of us can get stuck in a procrastination loop.
6. Resig is going to finish a JavaScript book [3]
[0] http://www.quirksmode.org/ http://www.quirksmode.org/
[1] http://perfectionkills.com/ http://perfectionkills.com/
[2] http://www.drdobbs.com/architecture-and-design/interview-with-alan-kay/240003442?pgno=1 http://www.drdobbs.com/architecture-and-design/interview-wit...
[3] http://jsninja.com/ http://jsninja.com/
- oinksoft 14y agoRegarding #2, regulars on comp.lang.javascript have been saying this since at least 2008, notably in critiques of jQuery. Resig even posted to some of these threads defending jQuery's misbehavior (though I don't recall if he defended browser sniffing). I find it very surprising that it took the act of writing a book to realize this fundamental design flaw. And for those who will want to say "oh, that's just because David Mark is so grating," quite a few mild-mannered regulars reached the same conclusion, so it's not as though there was one firebrand suggesting this.
- gilini 14y agoExactly. Eventually everyone turned to feature testing and it became common sense in clj. comp.lang.javascript's FAQ on browser-sniffing: http://jibbering.com/faq/notes/detect-browser/ http://jibbering.com/faq/notes/detect-browser/
- gilini 14y agoAlso, here's Resig's take on feature detection circa '07: "Yawwwwnnnnn.... this is, quite possibly, the most inane set of ramblings set up by someone who has obviously never created a JavaScript library of any kind, nor has used JavaScript code in any sort of production environment." https://groups.google.com/d/msg/comp.lang.javascript/QVlJ0bzObmo/tftosTAr0lYJ https://groups.google.com/d/msg/comp.lang.javascript/QVlJ0bz... >> Do you have any idea how many agents jQuery will identify as IE? >The ones we care about? I wonder why jQuery eventually turned to feature testing...
- jeresig 14y agoI think that post has less to do with my opinions of feature testing and more to do with the environment presented by that usergroup. As to why jQuery moved to feature testing, we discussed that in the jQuery 1.3 release notes: http://docs.jquery.com/Release:jQuery_1.3 http://docs.jquery.com/Release:jQuery_1.3
- gilini 14y agoWell, you did respond to the code critiques after all, so that makes it about jQuery's source. But I do agree that your opinion was biased by the behavior of the people participating that discussion (if that's what you meant). Nonetheless, IMO, a community leader should be able to deal with criticism, and I don't recall reading personal attacks. As of your link, I was being sarcastic.
- jeresig 14y agoI wish I could say that I haven't been personally attacked by them, unfortunately it has been rather extensive and ongoing. Thankfully I've been able to avoid most of it by not visiting clj since 2008-ish and blocking choice Twitter users. Sometimes is trickles back up to me from people letting me know what's going on. I'm 100% fine with code criticism - I think you'll find no JS library more open to it than the jQuery project, we've shifted the code base many times over the years making large quality/performance/API improvements based upon criticism. That being said I have no interest in talking with people - valid code criticism or not - if they're personally attacking me as well.
- jeresig 14y agoInterestingly, jQuery was the first major library to switch to a feature detection model. Looking around it appears that a number of other libraries still use browser sniffing (such as MooTools, Prototype, and Dojo). The reason why I switched jQuery over to that model is largely due to my personal research into the matter during the process of writing Secrets of the JavaScript Ninja (largely as a desire to future-proof jQuery against upcoming bug fixes by major browsers). It's rather amusing to see a case where I, unfortunately, fed the trolls trotted out as an example of future decision making. In this case the decision behind this was my own and largely done through my personal examination of the jQuery code base.
- timdown 14y agoObviously your decision to implement feature detection in jQuery was your own, but you're doing a disservice to the comp.lang.javascript regulars who laid this out for you. Describing David Mark as a troll is also unfair: I concede he has been rude to you and others, but his knowledge was and is extensive and, like it or not, was something that at the time you could learn from.
- specialist 14y agoit took the act of writing a book to realize this fundamental design flaw. Not cool. Most everyone is too close to their own work. Writers need editors. Artists need critics. Devs need QA/test. Fortunately, letting code rest for 6+ months is a pretty good strategy for getting a "new mind". So is explaining your work to someone else, such as writing about it.
- jergason 14y agoWhat is GRRM?
- shill 14y agoGeorge R. R. Martin is the author of the 'A Song of Ice and Fire' series, otherwise known as Game of Thrones--the title of the first book and the HBO adaptation. He has gone as long as six years between book releases in the series.
- swang 14y agoGeorge R. R. Martin. Wrote the Game of Thrones novel series. He's known for taking his time with writing his novels and instead focuses on other things, like ranting about the NY Jets. His last book, "A Dance of Dragons" took about 5+ years to finish and get to publication. It was published in 2011, the last novel before that was published in 2005.
- deleted 14y ago[deleted]
- javajosh 14y agoSorry, should have added a footnote for him: http://georgerrmartin.com/ http://georgerrmartin.com/ There's also a wikipedia article, of course. He wrote the first 3 books of his 7 book series at a normal pace, about every 18 months, but then slowed to a crawl for book 4 - something like a 5 year delay. Writer's block happens, but what makes people angry is that he continues to have an extensive "extra-curricular" schedule involving workshops, cons, and travel. And he's told his fans "I don't owe you anything," and has shown not only not-shame, but active antipathy to those who have the temerity to call him out on his irresponsibility. What's worse, is that his bad behavior is being rewarded with new interest thanks to the HBO miniseries of the books. I mean, manipulating financial markets for gain, losing your bets, and taking taxpayer money to give yourself a bonus is one thing, but leaving fantasy readers in a lurch is quite another level of villainy.
- BadassFractal 14y agoHow dare he!