On Apr 20, 10:01 pm, Lasse Reichstein Nielsen <l...@hotpop.com> wrote:
>
>
> How do you measure "power" of a programming language at all?
I dunno -- I was asking him! My outsider's perspective would judge it
by the scope and depth of what it could do...thus, though you can use
JavaScript to even program an adventure game, it would be nothing like
the kind of game available with, it seems, Python!
> There is "computational power", but both are Turing-complete, so that's
> moot.
"Turing-complete"?? Wow, more stuff to learn...I am eagerly awaiting
my book "How Computer Programming Works"...I hope that it covers such
deep matters, even though the book is full of colorful pictures for a
newbie like me!
> There is "expressive power": How easy do you express what you mean?
Hmmm, true...that's why in that other thread on this NG I thought that
even though document.imageID.src="file.format" is strictly correct
JavaScript, it's much more user-friendly and, now, I guess, more
"expressively powerful" than
document.getElementByID("imageID").src="file.forma t"....
> I.e., how short, but still readable, can you express the solution
> to a problem.
> I can't say which one wins here. Closures in Javascript and classes in
> Java are both good at this. The greater standard library of Java
> increases the expressive power whe dealing with non-trivial
> algorithms, by introducing more "primitives", but Java is more verbose
> too.
Me, as a simple "non-technical" user, I like JavaScript 'cause it's
"invisible"...Java freezes up my browser (maybe it doesn't do this
anymore; I haven't visited any "Java-sites" that I know of lately) for
half a minute or so, and seems to run in little windows on the
page....
> Any other powers?
Keine Ahnung -- was wondering just so myself!
> /L
> --
> Lasse Reichstein Nielsen - l...@hotpop.com
> DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
> 'Faith without judgement merely degrades the spirit divine.'