IAmTheRockstar

Yes. Yes I am.
You are accessing the archives. Commenting has been disabled, and archive posts are likely to be horribly out of date and, in some cases, rendered oddly because the styles from archive posts are no longer being maintained.
November 5, 2007

Comments Now Live!

I finally got around to creating a good comment system in Django. It wasn't necessarily hard, I just didn't have time for to read all of the documentation. After reading "The Pragmatic Programmer," I was insistent that since I was already working on other pieces of the site that will also warrant commenting, I would need to create a commenting system that's easily ported to other parts of the site (DRY). While this is a simple task to create at the database level, I needed to utilize Django's tools to create the relationships.

What finally ended up happening was that I needed to use Generic Relations. This became an easier task when I got around to reading the documentation. I also started to feel the pinch of models and database tables becoming out of sync, which caused a lot of problems. That's the biggest flaw in Django. However, I have yet to see a good framework that handles it well.

These problems are the best reason that you should rarely use a framework to perform actions automatically when you don't understand the underpinnings (I use the word rarely because frankly, C compilers are about as low level as I care to go).

Comments on "Comments Now Live!"

November 6, 2007 @ 10:11
Steven said...
great job paul. i'm pretty sure i'm the only one who reads this. :)

All opinions expressed here constitute my personal opinion, and do not necessarily represent the opinion of any other organization or person, including, but not limited to, my fellow employees, my employer, its clients or their agents.