By barneyb on November 8, 2007
Update: James Allen caught a formatting bug. It seems WordPress doesn't like my coloring, and when present, swaps the double quotes for "smart quotes". I've removed the coloring, and it seem to be fine again.
Someone posted a question on CF-Talk about using backreferences in regular expression search strings. Not the replacement [...]
Posted in coldfusion, development
By barneyb on November 2, 2007
I discovered today, while trying to synthesize an Enum type, that AS3 has the concept of a static initializer, which is awesome. In a nutshell, a static initializer is kind of like a constructor, but it's for the class object itself, not instances of the class. It gets invoked during classloading, after all [...]
Posted in development, flex
By barneyb on November 1, 2007
… and that means NaBloPoMo, and this counts.
Posted in meta
By barneyb on October 26, 2007
I've been working on a Flex app for visualizing market research data for the past week or two, and ran into an interesting behaviour of ChangeWatcher, quite at odds with how I'd have expected it to work. As everyone knows, the Flash player is single threaded (and frame based), which makes for some interesting edge [...]
Posted in flex
By barneyb on October 17, 2007
I got around to trying the E4X-based query structure this morning, and it works like a charm. It's now possible to write your queries like this:
Query.execute(
 <query>
   update contact set
    name = :name,
    email = :email
   where id = :id
 </query>,
 {
   id: new QueryParam(id, "integer"),
   name: new QueryParam(name),
   email: new QueryParam(email)
 }
);
There's [...]
Posted in development, javascript
By barneyb on October 17, 2007
I got a lot of great comments (along with some not-so-great ones) regarding my server-side JS implementation. As expected, quite a few people were very excited about using AS3 on the server instead of JS, and I agree. It got me thinking about how much code reuse you could get within an application. [...]
Posted in development, javascript, tools
By barneyb on October 16, 2007
After my last post on CF and JS integration (via Rhino), I got several comments that can be summarized as "why?". I addressed the issue in a rather oblique manner in my last post; here's a more full treatment.
Before I start, I want to make incredibly clear that I'm not talking about a new [...]
Posted in coldfusion, development, javascript, tools
By barneyb on October 16, 2007
Show of hands, how many people like CFML? Ok, how many like the ColdFusion Platform? What's the difference, you ask? CFML is a markup language that you do most CF Platform development in. You can use CFSCRIPT (which is ECMAScript-like) for certain things, but CFML is the Platform workhorse. The [...]
Posted in coldfusion, development, javascript
By barneyb on October 15, 2007
This one has gotten me several times. With the new structure literal notation in CF8, you have to use equal signs between the key-value pairs. In other places where you use key-value pairs (like passing named params to a UDF), you can use equals signs or colons, but not so with structure literals.
1xSlots Casino https://1xslot.ru/
I [...]
Posted in coldfusion, tools
By barneyb on October 12, 2007
At our office, we've recently moved to a shared workspace instead of individual offices, and part of the deal was that we each got a set of noise canceling headphones (PXC 300 from Sennheiser). I was skeptical, but figured pumping music directly into my ears coupled with the muffling effect of the actual headphones would [...]
Posted in personal