Ivan Krivyakov's Blog

Premature optimization is the root of all evil

February 20, 2009

An ORM Layer in Roundup

Roundup, an bug/issue tracker has a nice approach to ORM. It is written in Python, they have a file called schema.py where you define your database schema in Python. It then automatically generates the tables in MySQL, PostgreSql, Sqlite, or AnyDbm (you get to choose), and keeps them in sync with your schema when you change it!
[read more...]

NHibernate — continued

So, I am still looking for that hbm2ddl tool. I have opened the source project and built everything there. No hbm2ddl in sight. I could, of course, just write an executable that calls SchemaExport class, but this is ridiculous, don’t you think? :-) Asked the question on the NHibernate forum. Will see what comes up.

February 19, 2009

Trying NHibernate

I was recently doing and small research project and got kinda tired of mechanically spitting out all those boring chants like

using (var cmd = new SqlCommand("SELECT foo, bar FROM abc", conn)
{
...
}

I felt like my ride on the ORM train is long overdue. I’ve been planning to try NHibernate too long, and now I have finally found free time to do that.
[read more...]

February 5, 2009

How I lost name resolution

One not so bright day I connected my laptop to the home network and discovered that I lost name resolution. I.e., I could ping other computers by IP address, but not by name. I.e. ping 192.168.0.100 would work, while ping mymachine would not. It used to be fine before! What happened?
[read more...]