Linked by Kroc Camen on Sat 20th Dec 2008 17:54 UTC
General Development IBM delves into what's new in PHP 5.3: Part-1 shows you the changes to the object-orientated capabilities, and Part-2 shows you the exciting new possibilities with real closures and lambda functions. ["Read more" for Kroc's personal commentary]
E-mail Print r 4   · Read More · 41 Comment(s)
Thread beginning with comment 341088
To view parent comment, click here.
To read all comments associated with this story, please click here.
Member since:

Javascript was invented almost in an evening by one Netscape engineer. It was a hack from the word go.

I think you mean 'conceived of', and I suspect every actually usable programming language out there was conceived of by a single person on a particular evening. What Brendan Eich *wanted* to do was more along the lines of Lisp, but that wasn't politically acceptable, so yes it was a compromise of C-style syntax with functional/prototype capabilities. I think it was an inspired choice, compared to the meandering mess of most scripting languages.

Of course Javascript has security problems, but they will not take eons to iron out. Mainly, what's required is the ability to freeze the function/prototype relationship, (or classes, as will probably happen in Javascript 2). (It would also perhaps be appropriate to think about the fact that Javascript has had a completely different security problem to solve than most other languages)

It's not that I think Javascript is the best thing in the world, but it is a far cry from the slapped-together nature of PHP, and I think it has a more promising future.

Reply Parent Score: 1

sbergman27 Member since:

What Brendan Eich *wanted* to do was more along the lines of Lisp, but that wasn't politically acceptable, so...

I think it is pretty amazing (in a way) that Lisp (which stands for LISt Processor, and actually predates COBOL (which was released in 1959 (and incidentally was one of the more notable achievements of Grace Hopper (who was an Admiral (in the Navy (which was particularly unusual for a woman at that time)))) has had such an influence upon modern languages (aside from those which descend from ALGOL (which was also contemporaneous to Lisp (and COBOL, of course (though Cobol never had as much influence (although it is the one of that trio which has survived to this day (in the sense that COBOL code is still being actively developed (particularly for commercial accounting applications (even though most of the younger folks today probably do not realize it. (Fortran, too, BTW.)))))))))) (Come to think of it, though, Java is pretty much the Object Oriented COBOL of the 21st century. (Too bad about all those curly brackets and semicolons, though.))).

Edited 2008-12-22 21:39 UTC

Reply Parent Score: 3