News for hackers. Stuff that matters.
Re:John Resig: Secrets of the JavaScript Ninja Update by oinksoft on Wednesday July 11, 2012 @05:15PM (#4231536)
Regarding #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.
Re:John Resig: Secrets of the JavaScript Ninja Update by jeresig on Wednesday July 11, 2012 @06:44PM (#4231860)
Interestingly, 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.

Re:John Resig: Secrets of the JavaScript Ninja Update by timdown on Thursday July 12, 2012 @05:05AM (#4233690)
Obviously 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.
Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Wednesday July 11, 2012 @06:21PM (#4231779)
Also, 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/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...
Re:John Resig: Secrets of the JavaScript Ninja Update by jeresig on Wednesday July 11, 2012 @06:34PM (#4231824)
I 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

Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Wednesday July 11, 2012 @06:53PM (#4231886)
Well, 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.

Re:John Resig: Secrets of the JavaScript Ninja Update by jeresig on Wednesday July 11, 2012 @07:08PM (#4231945)
I 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.

Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Wednesday July 11, 2012 @08:13PM (#4232163)
So you do agree that browser sniffing is a short-sighted method to test for browser capabities and that clj has been preaching on it since 07?

I'm not judging or anything, but sticking around on clj and trying to argument could have been very beneficial for both jQuery anc clj itself. There are ways of ignoring people in usenet, you know.

Also, Juriy, whom you cite in the book's preface, was a regular there long before his website really took off. That means you didn't dislike every member ;)

Re:John Resig: Secrets of the JavaScript Ninja Update by pbiggar on Thursday July 12, 2012 @01:25AM (#4233167)
He just wrote a post about being attacked, and you attack him? (Perhaps I'm misreading your tone, but it seems to be really aggressive)
Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Thursday July 12, 2012 @06:50AM (#4233942)
I'm not attacking anyone (at least not on purpose), I'm just trying to make a point here.

Resig's actions towards clj effectively turned his whole userbase against everyone and everything that was written in that newsgroup. Thousands of unexperienced js developers shunning great advice just because it came from someone Resig had a beef.

I do believe that it had a negative effect on the javascript industry for a few years.

Re:John Resig: Secrets of the JavaScript Ninja Update by javajosh on Thursday July 12, 2012 @01:19PM (#4235529)
Yeah, JavaScript really hasn't gone anywhere since Resig left clj in 2008.
Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Thursday July 12, 2012 @02:33PM (#4235929)
That's obviously not what I have said.
Re:John Resig: Secrets of the JavaScript Ninja Update by duko2 on Thursday July 12, 2012 @03:34AM (#4233497)
Let's just stifle real discussion so we can be sure no aggressive statements are made and no one's feelings get hurt.

The nannying influence of people like you is poisonous to a community. Your own comment is a veiled but difficult-to-analyse attack. Your weak observation asks us cow to your vision so that we will all respect one another and feel good about ourselves. You do not respect the technical aspect of this community which would value truth and quality discussion over feeling.

Re:John Resig: Secrets of the JavaScript Ninja Update by pbiggar on Thursday July 12, 2012 @03:38AM (#4233511)
Or perhaps, lets behave like adults and have adult conversations with other adults.
Re:John Resig: Secrets of the JavaScript Ninja Update by duko2 on Thursday July 12, 2012 @03:44AM (#4233527)
Lets be 'adults', huh? I'm not surprised that your response would have emotional and vague language. What does that mean 'lets behave like adults'?
Re:John Resig: Secrets of the JavaScript Ninja Update by anthonyb on Wednesday July 11, 2012 @11:07PM (#4232759)
What's the story with that David Mark guy? Based on the parent to that post (https://groups.google.com/d/msg/comp.lang.javascript/QVlJ0bz...) he seems to be mentally ill or something - there's about three pages of stream-of-consciousness ranting.

Or maybe I just haven't been on usenet news for a while...

Re:John Resig: Secrets of the JavaScript Ninja Update by specialist on Thursday July 12, 2012 @03:59PM (#4236437)

   it 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.

Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Wednesday July 11, 2012 @06:12PM (#4231753)
Exactly. 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/

Re:John Resig: Secrets of the JavaScript Ninja Update by oinksoft on Wednesday July 11, 2012 @09:14PM (#4232412)
I think you and I are saying the same thing, but to be clear, this was "common sense" on CLJ long before mainstream libraries adopted the practice.
Re:John Resig: Secrets of the JavaScript Ninja Update by gilini on Thursday July 12, 2012 @06:52AM (#4233945)
Yes, that's what I was trying to say.