By barneyb on May 17, 2010
This morning, in response to my Processing and Galcon post, I received this email:
Hey,
Stumbled across your article about using processing :) Â Sounds neat!
Anyway, I don't like having to make these requests – but because of how
trademark stuff works I have to request that you change the name of your
project to something that doesn't contain the [...]
Posted in personal
By barneyb on May 14, 2010
I did a little experiment last night using Processing, which is a Java-based visual programming environment that I've repeatedly run into in various different contexts, but had never really done anything with. I've become completely addicted to Galcon Lite on my iPhone, and figured it was a "sample" to build with Processing. Note that I [...]
Posted in development
By barneyb on May 5, 2010
I'd like to start with a confession. I love SQL (and it's Hibernate counterpart HQL). Its simplicity and elegance is remarkable. Its expressive power is stunning. It is almost universally disliked by developers. Why is that?
The answer, at least to me, is pretty straightforward. Developers spend a lot of their time programming, so that's where [...]
Posted in database, orm
By barneyb on April 25, 2010
Last Wednesday evening Sean Corfield and I were chatting over beers and he caught me by surprise with a statement he made. We were talking about the ORM functionality in CF9, and he liked how it just worked. You invoke a setter, and it gets to the database with nothing else. I agree in theory, [...]
Posted in coldfusion, orm
By barneyb on April 23, 2010
This afternoon I presented on Polyglot Programming at cf.objective() 2010. Unlike most presentations I give, this one has almost no code, so the slidedeck (as a PDF) is the whole shebang. The in-deck content is admittedly light; really just an outline to follow along as I talked. The short version of the verbal part is:
Using [...]
Posted in cfml, development, groovy
By barneyb on April 14, 2010
Unlike my last several posts, this one isn't ORM related. At least not directly. If you're using ORM, you necessarily care about your domain model's integrity, as it's a prerequisite for ORM doing it's job, but it has nothing to do with ORM specifically. The point of a domain model is to be a representation [...]
Posted in coldfusion, database, development, orm
By barneyb on April 12, 2010
I do. Because god knows front controllers and persistence layers don't have a one-to-one correspondence. Turns out that through the magic of application switching you can do it, as long as you're careful with your sessions. Not going to go into details right now, but this code works (and does what you'd expect):
<cfapplication name="ormtest1″ />
<cfset [...]
Posted in coldfusion, orm
By barneyb on April 9, 2010
When you're mapping relationships with Hibernate, you have to reconcile the uni-directional nature of Java references with the bi-directional nature of RDBMS foreign keys. Consider this simple database schema with a single relationship:
+———-+
+——–+ | PET |
+ PERSON | +———-+
+——–+ | [...]
Posted in coldfusion, database, orm
By barneyb on April 7, 2010
Over lunch I installed the WPTouch plugin to provide a iPhone OS-like interface for those of you who want to read site on your phone but not with the full layout. Mmobile devices will still see the normal layout by default; you must enable the new interface using the toggle in the footer. Once toggled, [...]
Posted in meta, wordpress
By barneyb on April 7, 2010
Continuing the transactions thread, I wanted to talk about a couple specific reasons that transactions are vitally important in ORM applications. Even more than in raw-SQL applications. I consider them mandatory anywhere, but I would argue that if you feel compelled to skip them for some reason, you'd be better off leaving them out of [...]
Posted in coldfusion, database, orm