The Artima Developer Community
Sponsored Link

Python Buzz Forum
off-track

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
maxim khesin

Posts: 251
Nickname: xamdam
Registered: Mar, 2005

Maxim Khesin is developer for Liquidnet. I like C++, python, attend design patterns study group/NYC.
off-track Posted: Nov 19, 2005 9:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by maxim khesin.
Original Post: off-track
Feed Title: python and the web
Feed URL: http://feeds.feedburner.com/PythonAndTheWeb
Feed Description: blog dedicated to python and the networks we live in
Latest Python Buzz Posts
Latest Python Buzz Posts by maxim khesin
Latest Posts From python and the web

Advertisement
So I am going through the Rails book, just because everyone should, to get a better idea of how a simple Web framework in a good language works.

So far I have one specific peeve about Rails that might make developing an app in it a very annoying for me. I admit that this is very personal, and has to do with the fact that I managed to avoid using SQL for most of my career doing image processing+Windoze GUI for 5 very formative years. So I still program SQL on a 1st-grade level.

Rails requires you to define your objects in SQL. Doh. Me not like. Not that I cannot do it, but it makes for an annoying experience.

Here are some reasons why I rationalize my annoyance:

- This setup violates the DRY principle: foreing key qualifier has to be replicated in Rails code vie belongs_to:
- Database portability? Switching databases could happen for business reasons; another common practice is using SQLite for development and switching to some heavy SQL in deployment. Having to commit to an SQL flavor up front is going to make this difficult.
- Unncesessay syntactic sturggles. VARCHAR NOT NULL WTF? I always have to look little things like this up.

And while the "real" answer to the last point is for me to stop whining and go practice my database skills, why should I ? For small apps that I am interested in and that represent most of Ruby's target audience, simple representation using objects for data and some metaprogramming for data relatonships would be more than sufficient. SQLObject, I'll take 2!

And now... back to the Rails book.

Read: off-track

Topic: MochiKit 1.1 Intro Screencast Previous Topic   Next Topic Topic: MochiKit 1.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use