Justin du Coeur (jducoeur) wrote,
Justin du Coeur
jducoeur

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
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 8 comments