Re: gEBI wrapper (Code Worth Recommending Project)



On Dec 11, 3:04 pm, VK <schools_r...@xxxxxxxxx> wrote:
On Dec 11, 9:29 pm, David Mark <dmark.cins...@xxxxxxxxx> wrote:

You don't seem to understand that the developer may not realize they
screwed up if the gEBI wrapper is allowed to return elements without
the proper ID.

The developer is screwed if the docs say "$(String id) returns DOM
element reference with such ID or null if doesn't exist" - and the
developer is using it to get over it an element by NAME or get
something useful out of say $(undefined); Such developer is screwed by
default and sooner realized it so he will start to read the docs - so
better for him. By compensating rude programming errors up to the last
possibility you do not help anyone: the program will still eventually
fail, but on higher execution level where it will be times more
difficult to find the reason.

You have the wrong end of the stick on this one. I am not
compensating anything as my solution will fail sooner, rather than
later.


Who knows what browsers (or other agents) are in use this year?

If you don't know that then why are you trying to program in
JavaScript anything at all above simple form control helpers?
Theoretically possible someone is still using Windows 3.0 with
Netscape 2.0b (the first one with JavaScript 1.0)

You apparently don't understand feature detection at all.


Again: let's stop that fallacy pretending to program "for the
humanity's past, present and future generations". For _a hell of a
good_ start let's try to cover at least A grade UAs from Yahoo! charthttp://developer.yahoo.com/yui/articles/gbs/

Why? I can write robust Web applications that degrade gracefully in Z-
grade browsers. I am hardly going to take a cue from the YUI
developers on this. As bloated as their code is, they should be able
to do the same.


If your program ever gets any popularity, you'll get a bunch of bug
reports and you'll fix them then.

What program?


One thing is for sure, if you blindly declare a function that wraps a host
method which may not be supported, calling applications will have
unpredictable behavior.

If UA doesn't have document.getElementById support then it's NN4 or
older or IE4 or older or something else from the last century. If you

And what would you have an application do when it encounters such an
agent? Degrade gracefully or blunder ahead into the unknown?

really want to make it work on IE4 then I want you to make it work on
NN4 as well as of the same period browser. What the problem? Not
possible? It is possible but extremely ugly and labor intensive. Much
much more labor intensive then ...else if (document.all)... and "look
ma' now how do I care of every possible user!".

On the contrary, that branch allows for the retrieval of an element by
its ID. That is but one feature. Applications that require other
features will have to test those other features. One of the functions
of the API is to make feature testing as simple and concise a process
as possible. Your suggestions indicate that you would prefer to skip
feature testing altogether, which is hardly a realistic option.
.



Relevant Pages

  • Re: FC4 or FC5
    ... cost it is equivalent in Windows. ... won't happen for the individual private developer. ... happens one more license was needed for the Matrox DigiSuite SDK. ... If somebody sees an income model for the feature ...
    (Fedora)
  • Re: [kde-linux] Users guide to KDE?
    ... hurry you into a feature before it's ready. ... will probably under no circumstances "bend over" to unrealstic expectations ... user base for KDE expands, the nature of communications is bound to change. ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [RFC] Unify KVM kernel-space and user-space code into a single project
    ... slows down to a crawl - while the complexity of the change might be very ... If you ever tried to implement a combo GCC+glibc+kernel feature you'll know ... developer exhaustion ... contributions skyrocketed and basically all contributions were top-notch. ...
    (Linux-Kernel)
  • MSITOSIT: [2] ERROR processed: has no associated directory
    ... Developer Comment:: has no associated directory, verify the Feature table is correct ... HRESULT: -2147467259 ...
    (microsoft.public.vsnet.setup)
  • Re: How to make application work on Symbol MC3000?
    ... My applications would work on a Symbol MC9000 and Dell Axim running ... their SDK and it solved the problem. ... Developer Kit for .Net v1.2. ... install the application on the device so it will run properly. ...
    (microsoft.public.dotnet.framework.compactframework)