From: Robert Klemme Date: 2013-05-27T22:48:32+09:00 Subject: Re: Mixins vs OOP --047d7b5d8e7969e7f904ddb36707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2013 at 3:12 PM, S=E9bastien Durand w= rote: > Being new to Ruby, I was toying with Rack and trying to build a simple > request/response web framework. I coded this : > ... > Is it a good idea to extensively use mixins like this ? Rather than > being 100% object-oriented ? It's still OO. Other than that your question is probably difficult to answer with so little input. Since you do not use those mixins in multiple places I would probably say: not necessary. I would certainly question module HTTP. That seems overhead and should probably merged with Controller. But, as I said, little input, so please take the answer with a grain of salt. Kind regards robert --=20 remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b5d8e7969e7f904ddb36707 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, May 27, 2013 at 3:12 PM, S=E9bastien Durand <lists@ruby= -forum.com> wrote:
Being new to Ruby, I was toying with Rack an= d trying to build a simple
request/response web framework. I coded this :
...=A0
Is it a good idea to extensively use mixins like this ? Rather than
being 100% object-oriented ?
<= br>
It's still OO. =A0Other than = that your question is probably difficult to answer with so little input. = =A0Since you do not use those mixins in multiple places I would probably sa= y: not necessary. =A0I would certainly question module HTTP. =A0That seems = overhead and should probably merged with Controller. =A0But, as I said, lit= tle input, so please take the answer with a grain of salt.

Kind regards

robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.co= m/
--047d7b5d8e7969e7f904ddb36707--