Re: [JSMentors] Today, Web Development Sucks

2011-02-03 Thread Guillaume Andrieu
Hi Garrett. In 2007 I started reviewing YUI and moved on to prototype.js, Dojo, jQuery, Mootools, Ext-js, Sencha, and others. They all have different problems but the common problematic themes seem to be interdependency, being too general, making poor inferences and typechecking. So what do

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Sergio Cinos
2011/2/3 Guillaume Andrieu gh...@taleo-initiative.org: What should I recommend to new employees in my company when they have to learn Javascript, who have to start coding with Javascript without having had any proper formation ? Why do you have people that needs to start coding JavaScript

[JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread RobG
On Feb 3, 6:39 pm, Guillaume Andrieu gh...@taleo-initiative.org wrote: Hi Rob. A consequence of using most general purpose libraries is that because they only support a small number of current browsers and don't tolerate new browsers very well (a consequence of their poor code quality

[JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Fran
Hi guys, I know this is more jQuery related question and perhaps it'd be better to ask in its forum but I'll drop it in case some jQuery experts in this group could answer it. Is there any reason why I should be using $(document).bind/trigger over $('body').bind/trigger (or the other way

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Mads Erik Forberg
Den 03.02.2011 13:03, skrev Fran: Hi guys, I know this is more jQuery related question and perhaps it'd be better to ask in its forum but I'll drop it in case some jQuery experts in this group could answer it. Is there any reason why I should be using $(document).bind/trigger over

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Peter Higgins
That plugin is essentially the same thing as using $(body).trigger/bind, has the overhead of going through the event system and is actually larger by a few bytes* than my simplified version: https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js ~phiggins * or at least it

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Chris Heilmann
Well written, robust code that uses appropriate feature detection and fall back strategies is not difficult to write. That's why the web is full of that, right? If you write for yourself or an app for your hairdresser, yes. If you write in a company decisions are made by committee, not

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Peter Higgins
it would only really matter if you were triggering dom events. Also, the point about it going the event system and bubbling and whatnot still is valid. ~phiggins On 2/3/11 7:38 AM, Fran wrote: I like this really tiny but clever plugin. I'll definitely keep it in mine, but still I have the

Re: [JSMentors] localStorage - special setter and getter

2011-02-03 Thread Asen Bozhilov
Juriy Zaytsev : But is it a bug really? As far as I know, web storage spec ( http://dev.w3.org/html5/webstorage/) makes no clarification on whether interface members are writable; or enumerable/configurable for that matter. WebIDL spec, however, does mention something about interface members

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Poetro
2011/2/3 Fran m...@fran.ie: I like this really tiny but clever plugin. I'll definitely keep it in mine, but still I have the question whether using $(document) or $('body') makes any different. Any idea ? There is one small difference. The $(document) selector is a bit faster. I dont think

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Peter Higgins
On 2/3/11 9:12 AM, Poetro wrote: 2011/2/3 Franm...@fran.ie: I like this really tiny but clever plugin. I'll definitely keep it in mine, but still I have the question whether using $(document) or $('body') makes any different. Any idea ? There is one small difference. The $(document) selector

RE: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Joel Dart
1. Body will bubble up through HTML to document. document doesn't have any place to bubble. 2. You don't have to use the dom when doing jQuery custom events. $(document).trigger works the same way as $(myNS).trigger where myNS is your global namespaced object This probably makes more sense

[JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Michael Haufe (TNO)
On Feb 3, 6:38 am, Chris Heilmann code...@gmail.com wrote: Well written, robust code that uses appropriate feature detection and fall back strategies is not difficult to write. That's why the web is full of that, right? If you write for yourself or an app for your hairdresser, yes. If you

Re: [JSMentors] $('body') vs $(document) in Pub/Sub pattern

2011-02-03 Thread Fran
Hi Joel, I didn't thought about the first point, thanks for that. About the second one, I thought about it but found that I could get intro trouble with certain versions of jQuery if I tried to unbind events since jQuery seems to try to call detachEvent or removeEventListener (depending on

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Chris Heilmann
Some cheese with that whine? All the big libraries are open source and very much in use. If you really are that gifted and care about what people use on the web, file bugs and fix these oh so poorly written libraries. I see comments like this often, but this is easier said than done and I

Re: [JSMentors] Today, Web Development Sucks

2011-02-03 Thread Garrett Smith
On 2/3/11, Guillaume Andrieu gh...@taleo-initiative.org wrote: Hi Garrett. In 2007 I started reviewing YUI and moved on to prototype.js, Dojo, jQuery, Mootools, Ext-js, Sencha, and others. They all have different problems but the common problematic themes seem to be interdependency, being

Re: [JSMentors] localStorage - special setter and getter

2011-02-03 Thread Juriy Zaytsev
On Thu, Feb 3, 2011 at 8:09 AM, Asen Bozhilov asen.bozhi...@gmail.comwrote: Juriy Zaytsev : But is it a bug really? As far as I know, web storage spec ( http://dev.w3.org/html5/webstorage/) makes no clarification on whether interface members are writable; or enumerable/configurable for

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Ryan Grove
On Thu, Feb 3, 2011 at 9:35 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: And I've filed well over a dozen bugs on YUI. I've submitted patches and even forked YUI so that I could help with that (my Github username is GarrettS) YUI bugs didn't get fixed. I've gone into more detail about that

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Garrett Smith
On 2/3/11, Ryan Grove r...@wonko.com wrote: On Thu, Feb 3, 2011 at 9:35 AM, Garrett Smith dhtmlkitc...@gmail.com wrote: And I've filed well over a dozen bugs on YUI. I've submitted patches and even forked YUI so that I could help with that (my Github username is GarrettS) YUI bugs didn't get

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Ryan Grove
On Thu, Feb 3, 2011 at 7:45 PM, Garrett Smith dhtmlkitc...@gmail.com wrote: http://yuilibrary.com/projects/yui2/ticket/1922892 Patched that myself too. I can't speak for anyone else, but the insulting tone you used in the comment on this ticket can't have helped your chances of convincing

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Garrett Smith
On 2/3/11, Ryan Grove r...@wonko.com wrote: On Thu, Feb 3, 2011 at 7:45 PM, Garrett Smith dhtmlkitc...@gmail.com wrote: http://yuilibrary.com/projects/yui2/ticket/1922892 Patched that myself too. I can't speak for anyone else, but the insulting tone you used in the comment on this ticket

Re: [JSMentors] Re: Today, Web Development Sucks

2011-02-03 Thread Garrett Smith
On 2/3/11, Ryan Grove r...@wonko.com wrote: On Thu, Feb 3, 2011 at 7:45 PM, Garrett Smith dhtmlkitc...@gmail.com wrote: http://yuilibrary.com/projects/yui2/ticket/1922892 Patched that myself too. I can't speak for anyone else, but the insulting tone you used in the comment on this ticket