Hacker News new | ask | show | jobs
by snapdangle 2439 days ago
It's worth checking out the Red ORM, great progress is being made and it feels very Perl 6 native in terms of its semantics.
1 comments

Red looks interesting. Though I don't like the mapping of tables to "model". In general, I find that a model should be a consumer of an ORM, not the ORM itself. Otherwise, you expose to much to the business layer and it's harder to refactor.

For example, if you have a column on table A and you later need to move that to table B, a clean model can encapsulate that change. Hard to do when the ORM is being treated directly as the model.

Try Xoos. Red also uses a meta model syntax for extra ugliness.