News for hackers. Stuff that matters.
Re:Learn SQL, dammit by bayesianhorse on Wednesday May 08, 2013 @03:13PM (#5676213)
Most of my experience is with the Django ORM. The point of the django ORM is not to replace SQL knowledge, even though that is feasible. The main point is reusability.

I had to work with SQL through PHP for a while and I found myself "composing" SQL queries in a myriad of ways. I tried to not repeat myself, but it felt like the Django ORM would have gone a lot further in cleaning up the query-building.

In conjunction with Django forms and Django Admin, maybe even the template language, the ORM makes query construction reusable.

One of the kickers is the ability to unify object construction from table columns. It's easy to convert a string or number to some Python field. It's more elaborate with Decimal, Json, or whatever you want to cook up.

There are no comments on this comment yet.