Justin du Coeur (jducoeur) wrote,
Justin du Coeur

Learn to use your tools

Pardon the brief frustrated rant:

Actionscript, like Javascript, is a functional language -- not a great one, but it has all the basics. In particular, it has first-class functions, and closures that mostly work correctly. If you're going to work seriously in the language, *please* learn to use these tools: used judiciously, they can make programs vastly clearer and more robust.

(This rant brought to you by my hacking through the thicket of XIFF, the open-source Actionscript XMPP library. It works, and the design isn't bad, but it would require far fewer lines of code if these folks had a little more experience with first-class functions, and used that to refactor away the enormous amounts of boilerplate. If I have one core complaint about Java, it's the fact that most Java programmers wind up with blinders about the power available in the other languages they're working in, and come out writing code with all of Java's usual flaws even when they're not necessary...)
Tags: programming

  • The Third Way: Beyond Fun and Authenticity

    I just came across this marvelous essay on the SCA fun/authenticity false dichotomy, and a different way of looking at it. It was written some…

  • How I Spent My Birthday

    (Warning: diary ramble ahead.) Intercon was scheduled a couple of weeks earlier than usual this year -- our experimental hotel last year wasn't…

  • Hamilton Sing-Along

    Almost done with a *very* long weekend at Arisia. Generally been a great time -- worked hard, got to spend lots of time with friends, and have had a…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded