<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>DOM Scripting comments: Your own personal library</title>
        <link>http://domscripting.com/blog/display/94</link>
        <description>Dan Webb lists his desert island functions.</description>
        <language>en</language>
        <item>
            <title>Jeremy Keith</title>
            <link>http://domscripting.com/blog/display.php/94#comment766</link>
            <content:encoded><![CDATA[<p>What a wonderfully elucidated argument, Elsi: not at all reductio ad absurdum. You&#8217;ve run rings around me logically.</p>
]]></content:encoded>
            <pubDate>Thu, 08 Feb 2007 22:59:32 GMT</pubDate>
        </item>
        <item>
            <title>Elsi</title>
            <link>http://domscripting.com/blog/display.php/94#comment765</link>
            <content:encoded><![CDATA[<p>As for me library is very important. You can easy make program for just one day. If you think that libraries are hazardous you always can make programs in Assembler</p>
]]></content:encoded>
            <pubDate>Thu, 08 Feb 2007 22:50:32 GMT</pubDate>
        </item>
        <item>
            <title>Stuart Langridge</title>
            <link>http://domscripting.com/blog/display.php/94#comment747</link>
            <content:encoded><![CDATA[<p>Chris: did it take you a while to test your Ajax calls in Firefox 0.9, 1.0, 1.5, 2.0, Opera 6, 7, 8, 9, IE 5.1, 5.5, 6.0, 7.0, IE for the Mac, and Safari? I imagine that after you did all that testing you&#8217;d put yourself together a little &quot;do_ajax()&quot; function which takes care of the minor inconsistencies between browsers. Do you then copy that function to each new project you use, or do you reconstruct it from scratch and from first principles every go? If you copy it, then&#8230;it&#8217;s a library. It may be your own personal one, but it&#8217;s still a library.</p>
]]></content:encoded>
            <pubDate>Wed, 17 Jan 2007 10:30:38 GMT</pubDate>
        </item>
        <item>
            <title>Chris Phillips</title>
            <link>http://domscripting.com/blog/display.php/94#comment746</link>
            <content:encoded><![CDATA[<p>I do web development for a living and I&#8217;m pretty well versed in javascript. For the life of me I can&#8217;t understand how using a library or API with it&#8217;s code-bloat for your own personalized project is any easier than writting things out from scratch. I just don&#8217;t get why anyone needs an AJAX framework, library or API like Googles or Yahoos etc. I do my own AJAX thing using HTML, DOM, XSLT, XML &amp; ECMA JavaScript with TextPad as my IDE and get along just fine. Some of these commercial AJAX libraries remind me of ColdFusion that try too hard to reinvent the wheel (for non-techies) by creating their own markup/scripting language.  Could someone please email me and explain it, I&#8217;m clueless.</p>
]]></content:encoded>
            <pubDate>Wed, 17 Jan 2007 05:18:13 GMT</pubDate>
        </item>
        <item>
            <title>Robert Nyman</title>
            <link>http://domscripting.com/blog/display.php/94#comment744</link>
            <content:encoded><![CDATA[<p>Basically, we&#8217;re on the same page here, Jeremy. I don&#8217;t dislike all libraries, but rather how they&#8217;re often used and somewhat also encouraged to be used. The attitude is somewhat like &quot;This will solve all your JavaScript issues, lean back and we&#8217;ll take care of it for you&quot;, and people go for it (that was partly the reason for my ironic naming of my post; no library can ever be the ultimate one).</p>

<p>I&#8217;m all for people using libraries, if they truly understand how they, and JavaScript itself, work. However, as long as libraries are out there, the people most prone to using them (of the people I&#8217;ve seen; I might be wrong here and it is not meant to offend anyone), all the time, are the ones most stressed and/or least skilled when it comes to JavaScript development.</p>

<p>Regarding Stuart&#8217;s idea about having some kind of unobtrusive/accessible code-check, it&#8217;s interesting, but not the only solution to it all. In the end, I think it&#8217;s the web developer&#8217;s responsibility to know what they&#8217;re doing, but nevertheless, maybe we can take some baby steps in that direction. What I did when I developed ASK (
<a href="http://www.robertnyman.com/2006/02/08/ask-ajax-source-kit">http://www.robertnyman.com/2006/02/08/ask-ajax-source-kit</a>) was to make sure that links dynamically getting content through AJAX could only be applied to links in the page.</p>

<p>In the end, I think it&#8217;s fair to ask of someone using a tool to know at least the very basics of how it works. To me, that&#8217;s not elitist but rather something that they themselves will benefit from in the long run. It&#8217;s for their own good, not for the sake of excluding them.</p>
]]></content:encoded>
            <pubDate>Tue, 16 Jan 2007 09:04:40 GMT</pubDate>
        </item>
        <item>
            <title>Binny V A</title>
            <link>http://domscripting.com/blog/display.php/94#comment739</link>
            <content:encoded><![CDATA[<p>I totally agree with your conclusions. I don&#8217;t want to call it a personal library - but my common.js file. </p>

<p>I don&#8217;t want big classes for handling events - I just need my addEvent() function. I have a collection of such very useful functions in my common file - it can be called a library.</p>

<p>If anyone wishes you want to create a &#8216;personal library&#8217;, Dustin Diaz, top 10 functions would be a good starting point.
<a href="http://www.dustindiaz.com/top-ten-javascript/">http://www.dustindiaz.com/top-ten-javascript/</a></p>
]]></content:encoded>
            <pubDate>Mon, 15 Jan 2007 08:35:28 GMT</pubDate>
        </item>
        <item>
            <title>Stuart Langridge</title>
            <link>http://domscripting.com/blog/display.php/94#comment735</link>
            <content:encoded><![CDATA[<p>Stephen: perhaps. That&#8217;s what I meant about taking some responsibility, though. If library authors are doing it for the fame and popularity rather than, say, to make the world of JavaScript better, then they shouldn&#8217;t be. (I personally don&#8217;t think they are; the ones I know, at least.)</p>
]]></content:encoded>
            <pubDate>Sat, 13 Jan 2007 00:01:50 GMT</pubDate>
        </item>
        <item>
            <title>Stephen Stchur</title>
            <link>http://domscripting.com/blog/display.php/94#comment734</link>
            <content:encoded><![CDATA[<p>I like the idea of a library not allowing programmers to do something they shouldn&#8217;t (your example of using href = &quot;#&quot; or &quot;javascript:&quot; is a good one).</p>

<p>But I have to imagine anyone who writes a library wants people (a lot of people) to use it.  Not only that, but authors would probably like to see their libraries adopted as quickly as possible.  On the off-chance that someone writing a library has actually considered your idea Stuart, I wouldn&#8217;t be surprised if it was decided against simply for fear that it would hinder the rate of adoption.</p>

<p>I&#8217;m not necessarily saying that&#8217;s a reason <em>not</em> to do what you suggest; I&#8217;m just saying perhaps it&#8217;s one of the reasons we haven&#8217;t seen it done yet?</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 22:00:06 GMT</pubDate>
        </item>
        <item>
            <title>Stuart Langridge</title>
            <link>http://domscripting.com/blog/display.php/94#comment733</link>
            <content:encoded><![CDATA[<p>Dan: I do see your point, but it doesn&#8217;t work. The whole point of &quot;trusting&quot; people to Do The Right Thing relies on the fact that they <em>know what the right thing is</em>. People like that are people like you, like Jeremy, like ppk, like me, and we&#8217;re not really using libraries much. I&#8217;m trying to reach out to people who don&#8217;t know what the Right Thing is and help them to do it that way. Now, one way of doing that is with lots of examples, all of which demonstrate the correct way to do things, but it&#8217;s jolly hard to teach a <em>mindset</em> (which is what we&#8217;re trying to do here). You&#8217;re a perfect example here: you didn&#8217;t feel that the existing libraries did the stuff you wanted, so you wrote your own library. What do we do with the people who don&#8217;t have the ability to do that (or don&#8217;t have the time to learn how)? Too much, I feel that the answer is (not necessarily from you, but from some people) that they should just not use JavaScript because they don&#8217;t know enough: that&#8217;s why I characterised that view as elitist.</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 11:18:01 GMT</pubDate>
        </item>
        <item>
            <title>Dan Webb</title>
            <link>http://domscripting.com/blog/display.php/94#comment732</link>
            <content:encoded><![CDATA[<p>Stuart:  Penalising people for doing things wrongly is quite a hardcore.  I&#8217;d prefer libraries that make progressive enhancement the path of least resitance rather than just not letting you do certain things which seems a little bit patronising to me.</p>

<p>Making the &#8216;best practice&#8217; ways to do things easy in the case of a JS library would be things like making DOM navigation easier, providing a DOMContentReady event cross browser and easy and performant ways of selecting elements via CSS selectors or class names.  jQuery does quite well at this and for that reason we see alot more unobtrusive code coming out of the jQuery camp than say the Dojo or Prototype camps.  Prototype is actually missing alot of functionality in these important areas at the moment which is why I put together Low Pro.  It contains all the bits missing from Prototye than I needed to code unobtrusively.</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 10:53:33 GMT</pubDate>
        </item>
        <item>
            <title>Stuart Langridge</title>
            <link>http://domscripting.com/blog/display.php/94#comment730</link>
            <content:encoded><![CDATA[<p>Agreed on the point about libraries being hazardous. What I&#8217;d like to see is libraries deliberately encouraging people to use progressive enhancement, and penalising those who don&#8217;t. One example I just thought up over at ppk&#8217;s blog is that of having the library refusing to attach onclick handlers to an A element with an href of &quot;#&quot; or &quot;javascript:*&quot;. I&#8217;d like to see library owners take some social responsibility for the quality of the code that uses them. This is where the @media &quot;guns in the hands of children&quot; argument is thrown into sharp relief; gun manufacturers take the NRA &quot;guns don&#8217;t kill people, people kill people&quot; approach to responsibility, where you just say &quot;it&#8217;s not our fault if people use our product wrong&quot;. Making a gun that knows who it&#8217;s pointing at is hard. Making a library that knows how it&#8217;s being used might be hard and might not; no-one&#8217;s really tried very hard (because the NRA abdication of liability approach is a lot easier). Why don&#8217;t we start thinking about that; we could (at least try to) fix one of the major objections to libraries by having them explicitly act as a force for good?</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 08:23:43 GMT</pubDate>
        </item>
        <item>
            <title>Stephen Stchur</title>
            <link>http://domscripting.com/blog/display.php/94#comment728</link>
            <content:encoded><![CDATA[<p>Jeremy, I agree with you completely!  Excellent blog entry.</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 05:43:24 GMT</pubDate>
        </item>
        <item>
            <title>brothercake</title>
            <link>http://domscripting.com/blog/display.php/94#comment727</link>
            <content:encoded><![CDATA[<p>When digital music technology became affordable in the late 80s, similar things were said - an &quot;elitist&quot; attitude was that it allows people who know nothing about music to make music, and that undermines the artform as a whole. A &quot;grass roots&quot; attitude was that this is a good thing, because then creating musical art is no longer the preserve of highly trained specialists and the rare few who are naturally gifted - now anyone can do it, and surely that can only be a good thing?</p>

<p>The difference is that making music doesn&#8217;t come with accessibility problems built in - nobody relies on techno to pay their bills; you don&#8217;t need drum &#8216;n&#8217; bass to read the news and keep in touch with the world, and if house music makes no sense to you then you haven&#8217;t actually lost anything in practical terms.</p>

<p>But with web development it&#8217;s different - it matters that what we produce is right under the hood, because what you don&#8217;t see does matter! And that&#8217;s why I side with the &quot;elitist&quot; view in this case - frameworks and APIs are useful for fast prototyping, they have a role to play in allowing for more agile development cycles, but the vast majority of them pay no regard to accessibilty, and those that do still need to be handled with care and skill.</p>

<p>Therefore I would hesitate to use any framework without knowing exactly how it works, and testing it myself in every target environment. It&#8217;s not that I don&#8217;t trust Mr Resig, it&#8217;s just that every situation is unique and it&#8217;s impossible to predict every contingency - it&#8217;s not until you have your code running in it&#8217;s final situation that you can test whether it really works.</p>
]]></content:encoded>
            <pubDate>Fri, 12 Jan 2007 00:47:17 GMT</pubDate>
        </item>
        <item>
            <title>Guilherme Zühlke O'Connor</title>
            <link>http://domscripting.com/blog/display.php/94#comment726</link>
            <content:encoded><![CDATA[<p>Well, I do agree with you that the extense use of libraries is a problem, however I&#8217;m not sure I agree with the reasons.</p>

<p>One caveat that is inherent to the web is that is very easy to copy and paste some code and actually have something very quickly.</p>

<p>If you are the kind of guy that hdan&#8217;t a particular idea in mind when started (like a real designer would), you may be pleased with just about anything under the sun. If someone else enjoy your work, you are halfway to be a self-proclaimed web-developer or web-designer.</p>

<p>I think libraries are just a facet of this wider problem.</p>

<p>Of course if you write your on library is because you are good enough to be using it, and that gives a sure shot about quality. But if the web is to be even more resourceful and start to show features that today are only available to standalone applications, then, 3rd party libraries will be necessary, just as they are today in traditional SW develpment.</p>

<p>Even further, if Ajax is to succed, it will probably be managed through some standard libraries, instead of handcrafted code, which will be a nice thing for serious developers, as well as the bad ones.</p>

<p>Oops, I think I should have written a shorter comment, sorry for that.</p>
]]></content:encoded>
            <pubDate>Thu, 11 Jan 2007 14:56:07 GMT</pubDate>
        </item>
   </channel>
</rss>