Re: RFD: How To Recognize Bad Javascript Code
- From: Anthony Levensalor <anthony@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 01 Jan 2008 13:13:51 -0500
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!
.
- Follow-Ups:
- Re: RFD: How To Recognize Bad Javascript Code
- From: Dr J R Stockton
- Re: RFD: How To Recognize Bad Javascript Code
- From: Jeremy J Starcher
- Re: RFD: How To Recognize Bad Javascript Code
- From: Thomas 'PointedEars' Lahn
- Re: RFD: How To Recognize Bad Javascript Code
- References:
- RFD: How To Recognize Bad Javascript Code
- From: Jeremy J Starcher
- Re: RFD: How To Recognize Bad Javascript Code
- From: Thomas 'PointedEars' Lahn
- RFD: How To Recognize Bad Javascript Code
- Prev by Date: Re: RFD: How To Recognize Bad Javascript Code
- Next by Date: Re: Fluffy.AJAX is not a constructor. Why not?
- Previous by thread: Re: RFD: How To Recognize Bad Javascript Code
- Next by thread: Re: RFD: How To Recognize Bad Javascript Code
- Index(es):
Relevant Pages
|