Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Wednesday April 30, 2003
08:48 AM

Objective C, JavaScript

[ #11927 ]
This article about Objective C on the O'Reilly Network discusses (and advocates) the advantages of having a non-statically typed object language (as opposed, typically, to C++). Most of the points also apply to Perl, esp. to Perl 6.

I've also found (this is not new) an interesting paper, that explains that JavaScript is the world's most misunderstood programming language. This guy appears to have other interesting language resources about JavaScript as well. Quoting :

... JavaScript has more in common with functional languages like Lisp or Scheme than with C or Java. It has arrays instead of lists and objects instead of property lists. Functions are first class. It has closures. You get lambdas without having to balance all those parens.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • JavaScript is the world's most misunderstood programming language
    Hear, hear!

    broquaint out

  • Web scripting...

    To have Javascript enabled on your browser, you really should stay plugged in to the various Certs and patches that may arise due to security problems. I hate the nagging feeling that I'm never quite safe when browsing... There's always that 0-day exploit that will get me some day.

    Sure, some things have been found in HTML, forms in particular, that are similar, but I feel a lot safer knowing that the site isn't executing code behind my back.

    The other thing I hate about Web Scripting is t

    • Most excellent points and I agree with you, mostly. Here are some comments :

      1. Tree-views and fancy rollovers can be implemented without scripting, in pure CSS (of course this requires recent browsers, but also this degrades nicely, unlike script-based implementations.)

      2. The article I linked to discusses JavaScript from the point of view of language design : as it says, Lisp in C's Clothing, with that unusual function-are-objects approach. Quoting again : JavaScript is well suited to a large class of non

      • I think it's also well-suited as an easily embeddable generic scripting language, saving application developers the work of creating yet another half-baked domain specific environment. It's used in Dreamweaver (or at least it was the last time I looked) and these guys [] seem to be having a productive time with it as well.
  • Javascript is actually quite similar to Perl. It (only) has one-dimensional arrays. It has hashes, in Javascript known as "objects". Any parameter to a sub/function is optional. It even has native regular expressions unlike PHP, where a regexp is a string.

    IMO, one of the major differences between Javascript and Perl, is the OO system. And that isn't a bad thing: Javascript has a very interesting view on the world of objects.

    I don't think you can learn proper Javascript off the web. There's just to