News for hackers. Stuff that matters.
Re:The Zen of Python by Example by Legion on Thursday February 10, 2011 @03:34PM (#2203594)
Just like how he reached for PyUnit for "readability counts", I definitely think of ORMs over raw SQL when it comes to "readability counts". Especially when you're actually working with data, not just the table creation step.
Re:The Zen of Python by Example by mcginleyr1 on Thursday February 10, 2011 @04:04PM (#2203720)
The pretty examples aren't in order. In this case the doctests are the "pretty".
Re:The Zen of Python by Example by endtime on Thursday February 10, 2011 @03:44PM (#2203634)
Agreed completely. The difference between a good ORM and raw SQL is like the difference between, well, Python and assembly, IMO. Perhaps the difference is a little less extreme, but it's similar in spirit.
Re:The Zen of Python by Example by coolgeek on Thursday February 10, 2011 @04:36PM (#2203880)
er, as someone who did much database access in assembler, I'm going to have to disagree with your analogy.

You could argue "between Python and C"... but most certainly NOT assembler

Re:The Zen of Python by Example by endtime on Friday February 11, 2011 @01:11AM (#2205379)
Wow, I'm sorry you had to do that, haha. Python and C is surely a more reasonable comparison in terms of actual ease of use; I was thinking in terms of "raw instructions" versus "high level abstraction".