When I built Animator.js, I got some flack for suggesting that inheritance is not a Good Thing. Keen to avoid a holy war I restated my position to ‘inheritance is often useful, but more often overused.’ Over the last few months I’ve been trying to figure out exactly when it should be used, and have concluded – at least for the kind of systems GUI developers build – never.
This is the (long) story of how inamo became arguably the world’s first two-mouse Flash installation. If you enjoy the geeky details of programming projects, this is for you.
Sometimes a single sentence in a specification can balloon into a task as daunting as most of the other sentences put together. This is the story of one such sentence.
eval(). It’s so commonly abused that if I’m interviewing a JS web developer, I usually ask something along the lines of “what is
eval() because it’s perceived to be slow and insecure. In this article I describe a way to use
eval() to make your application faster.
- Version Française par Vicky Rotarova
- Русский перевод выполнен Санди Вольф
- Versão em português de Artur Weber
Animator.js was a library I wrote back in 2006 to handle animation on web pages. For a time it was quite ahead of the curve: It was the first library to feature CSS morphing - the ability to smoothly transition between two styles defined as CSS classes.
I'm keeping this page up here for historical interest, because it's written in a tutorial style that will be appropriate if you want to learn how to create programatic animation in any language.
Here’s a useful tip for Flash and Flex programmers. ActionScript 3.0 is great, but has no Singletons.
Samuel Agesilas has a solution that successfully prevents subclasses from calling the constructor using
super(), but it doesn’t prevent other code from creating new instances of a class with
Therefore I present to you a crafty hack to make a constructor truly private: add a required argument to the constructor, which must be set to a secret value that is only known to the class:
I want to share with you a trick for getting a world-class debugger for free in IE.