I was reading

http://www.loudthinking.com/arc/000545.html

and it has an emphasis on Ruby's "beauty", and parsimony, as
demonstrated by the code excerpt (David: "I was more surprised to learn
that someone would actually prefer something like"):

class Project(meta.Model):
  project_manager = meta.ForeignKey(ProjectManager)
  milestones = meta.OneToOneField(Milestone)
  categories = meta.ManyToManyField(Category)

p  = projects.get_object(id__exact=1)
pp = projects.get_list

...over:

class Person < ActiveRecord::Base
  belongs_to :project_manager
  has_many   :milestones
  has_and_belongs_to_many :categories
end

p  = Project.find(1)
pp = Project.find(:all)

Then there's a whole presentation linked from that blog entry, in PDF
at

http://media.rubyonrails.org/presentations/pursuitofbeauty.pdf

-- which seems to elaborate on ruby/ror beauty (implied over
python/django).  Adrian, can you pls fill us in on what exactly are the
"beauty points" and what's your answer to that?

Cheers,
Alexy

Reply via email to