Re: RFD: How To Recognize Bad Javascript Code



Thomas 'PointedEars' Lahn posted :

[snip]
1. "Depreciated script tag usage"

a. The word you were looking for is _deprecated_, not "depreciated".


Well, if we're being anal, Thomas, "_deprecated_" is not a word. "deprecated" is, though.


b. The term you were looking for is `script' _element_, not "tag".
Elements consist of tags (start tag, close tag) and content:

http://www.w3.org/TR/REC-html40/intro/sgmltut.html#h-3.2.1



Funny thing is, I looked that page up and down buddy, and I didn't see anything about a script _element_ anywhere. Maybe your underscore is broken.

c. Your example `script' elements are empty where they should have
content. At least that should be indicated in some way.



Pretty sure that's already been under discussion regarding the type attribute. Please read before you post, as you like to say.

One point of recommending against `javascript:'
there is that

| it cannot provide a fallback to browsers not running Javascript.

There are other points that I have also mentioned in my FAQ notes last
year. There are also exceptions to be made in special cases.



You know what would be even more helpful? A link or even a hint about where your big ole FAQ is for those of us not arrogant enough to read your mind.

3. "Excessive use document.write"

should read "Excessive use *of* document.write()".



Are you a programmer or an English teacher? Oh, you're both! That would explain a whole bunch.

A recommendation for a viable alternative is missing.



Like the link to your FAQ, Mr. Kettle?


[snip]


Or did I do a smashing bang-up job that will keep the new coders away from
the horrors of most online examples and finally end c.l.j's favorite
hobby?(*)

Hardly.



This, right here, this is why people get irritated with you, I think. Maybe you just like being a pompous arrogant , I dunno, but most other people don't care for it. You lack that internal filter that says "don't say that, that's what a pontificating, unmitigated ass would say"

~A!
.



Relevant Pages

  • Re: Model Castle sale - 20% off
    ... Because these goobers have repeatedly spammed RGMW before with untagged ... (Exactly how hard is it to read an FAQ ... time can manage to tag his off topic posts related to Starship Troopers, ... Castleworks pretty much ignored the polite emails about spamming last ...
    (rec.games.miniatures.warhammer)
  • Re: fast dictionary search algorithm
    ... > SaSW, Willem ... Thomas Matthews ... C++ Faq: http://www.parashift.com/c++-faq-lite ... http://www.josuttis.com -- C++ STL Library book ...
    (comp.programming)
  • Re: search engine not reading websites meta taqs
    ... > point you had to watch the total number of characters in your keyword tag. ... > Thomas A. Rowe ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... >> choose for your keywords search terms people will actually use to find ...
    (microsoft.public.frontpage.client)
  • Re: Pulling out data between
tags using regular expressions
... > If I had this tag and wanted to return 123 how would I do it? ... your local documentation first, then you'll get better answers faster, ... which is why they wrote the FAQ in the first place! ... return if shift ne "td"; ...
(comp.lang.perl.misc)
  • Re: Selected text coordinates
    ... > Uh, Thomas, you're posting in comp.programming. ... a platform or Windowing newsgroup, such as MS Windows, WxWindows, ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.programming)