22 Nov 2005 titus   » (Journeyer)

OCaml the Python way

Cute.

Ooh, ooh, I've got an ORM!

I'm deeply skeptical of Jeff Watkins' approach to ORMs, revealed via the Daily Python-URL.

For example, why the heck would "No Magic" be on the list of anyone using Python? Things like metaclasses and properties are effin' great at making code act like it should act based on how it reads. Sure, they can be abused -- but what can't? I've used metaclasses for several projects now -- twill and cucumber2, in particular -- and I'm extraordinarily happy with them. "Twiddling under the covers" can make things very neat. And, done properly, how can it not be Pythonic?

Then there's this. The logic appears to be: I hate COM, but must use it. It doesn't garbage collect (<-- inferred). Therefore I like languages that do garbage collect, like Java (blech) and JavaScript (blech**2). That's not logic, man -- that's faulty generalization, at least the way it's written.

Oh, and rather than half-baked CherryPy, you might check out Quixote. You'll have to roll your own more of the time, but I guarantee you you'll get consistency ;).

I definitely recommend the Python-Is-Not-Java and Java-Is-Not-Python, Either posts; some of the code you're posting looks awfully Java-like, and I'd be wary of porting ideas straight across.

--titus

Latest blog entries     Older blog entries

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!