Subject: Developers of Sympa
List archive
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly
- From: Guillaume Rousse <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly
- Date: Wed, 25 Jun 2014 09:11:21 +0200
Le 24/06/2014 11:23, IKEDA Soji a écrit :
I don't agree.Breaking encapsulation means accessing the internal state of something (usually an object) directly, instead of using the dedicated interface. I fails to see how accessing the configuration exactly the same way, but from a different point in the program, can be considered as 'breaking encapsulation'.
I feel that breaking encapsulation for convenience of testing
is mistaking means for ends.
And that's not just for testing purpose, but also for decoupling software components, as already stated.
--
Guillaume Rousse
INRIA, Direction des systèmes d'information
Domaine de Voluceau
Rocquencourt - BP 105
78153 Le Chesnay
Tel: 01 39 63 58 31
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
IKEDA, Soji, 06/23/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
Guillaume Rousse, 06/24/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
IKEDA Soji, 06/24/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
Guillaume Rousse, 06/25/2014
- Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly, IKEDA Soji, 06/25/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
Guillaume Rousse, 06/25/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
IKEDA Soji, 06/24/2014
-
Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly,
Guillaume Rousse, 06/24/2014
Archive powered by MHonArc 2.6.19+.