Steven Vachon

Archive for posts categorized as “Engineering

Benchmark: PHP strlen vs. count (and sizeof)

0 comments

I was writing some code that generated a string from an array and came across a pretty rare situation where I could either get the length of that array or the length of the assembled string. Wondering which was faster and finding nothing on Google, I put this benchmark together. Read more

_global Across Remote ActionScript Timelines

0 comments

Like many Flash developers, I like writing classes and optimizing bandwidth with remote libraries. ActionScript 1 uses prototypes to extend methods to a function object, and to be able to access that class globally, one would use _global. Unfortunately, global do not work as well as they’re explained to. This bug is resident in all minor versions of Flash Player 6, and still exists in Flash Player 7. Read more