In a perfect world the business/sales guys are held back from complete
insanity by reason directed by developers. In the real world this is seldom
the case, especially in larger companies (which is why I've tried very hard
to stick with start-ups). Abstraction and layers buy you some wiggle room
"Last year I was involved in my most complex Ruby on Rails application to
date that is now 23K lines of model code, 14K lines of controller code, and
4.5K lines of lib code."
That many lines of code piques my suspicion that there's some pattern
recognition/refactoring that need to happen. It's als
A fairy dies every time a developer speaks the phrase 'Services Layer'.
Sometimes it feels like Object Oriented programmers just can't commit to OO
design. They constantly want to pull application logic up into services so they
can make it more procedural. If no-one has ever killed a fairy in th
I put non-ORM classes - or "services layer" classes - in app/models,
not lib. To me, lib seems like the place to put library (i.e. generic,
or not application specific) Ruby files that don't happen to be
packaged as gems. To me, the directory 'app' implies 'application
specific'. In the example lin
My reading of this article:
Your application may be more than just DB-backed models and REST-based
HTTP controllers.
Don't be afraid to introduce additional objects to better model your domain.
A services layer sits between your external interfaces (e.g.
controllers, and others) and your models.
I found this article insightful and thought others might as well.
http://blog.firsthand.ca/2011/10/rails-is-not-your-application.html
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To post to this group, send email to rails-oceania@goo
Might have posted my question in haste without checking the location of the
hackathon. As a Melbourne developer I might struggle to join you after all!
Thanks for the replies though, hope it's a good one.
Cheers,
Ben
On Oct 22, 2011 9:51 PM, wrote:
> Today's Topic Summary
>
> Group: http://gro