G
G Matthew J
interesting "signal vs. noise" blog entry:
http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
http://37signals.com/svn/archives2/whats_wrong_with_ajax.php
already and it's just now the New Big Deal. I -knew- there had to be a
way to grab something from the server, but it seems that nobody had
documented it.
Razzbar said:Memory cleanup and garbage collection has always been one of
Javascript's worse traits. It's a black box for JS coders, not knowing
whether unused objects are hanging around. I don't like mysteries in my
programs, and that's one of my dislikes about Javascript, not knowing
exactly what I'm dealing with in terms of types and references. The
memory cleanup question is by no means limited to ajax apps. It's a
nagging question any time you have an app that creates an unknown
number of objects.
I seem to recall a discussion somewhere on the net entitled "Javascript
leaks like a sieve". Not a lot a JS coder can do about it, though.
The second issue you mention doesn't seem likely to be a problem. My
current project has the user initiate a fetch of three blocks of
content at a time from the server. At first I used three seperate
request objects, but was too vulnerable to "stuff happens". I also
tried the eval trick, where you send some JS code that sticks the
content where it's supposed to go. Trouble with that is you have to put
the content into JS strings, which gave me problems with unterminated
string literals, and... and... that's when I discovered how difficult
it can be to debug an ajax black box.
The deal is, somebody (like me) might be so encouraged by the blazing
speed at first, that they forget to anticipate a user clicks on 'go',
and nothing happens, so they click on go again. Any ajax app is going
to need a traffic management system, and that's been a tough one for me
to come up with.
It is kinda funny how this technique has been available for a few years
already and it's just now the New Big Deal. I -knew- there had to be a
way to grab something from the server, but it seems that nobody had
documented it.
in the ECMAScript Language specification the 'leaks' are defined?
If they aren't in the spec, then (if they exist) they are the fault of
the developer of the particular script engine, eh?
But of course, 'no names, no packdrill' ... hard to refute hearsay.
When your C++ programs swallowed all available memory, did you blame
the language or the shitty programmer who couldn't code any better?
Is ECMAScript supposed to provide automatic memory management? [...]
Zif said:But of course, 'no names, no packdrill' ... hard to refute hearsay.
When your C++ programs swallowed all available memory, did you blame the
language or the shitty programmer who couldn't code any better?
And how, spefically, does JavaScript or AJAX have any bearing on why
your script can't read your XML? AJAX isn't a 'black box', it's a new
name for an old design paradigm. It isn't a thing, or a bit of
software, it's 4 words (or three words and an acronym).
And that is a new problem? It certainly isn't unique to AJAX (or any web
technology), though the web does present different issues.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.