Skip to Content.
Sympa Menu

devel - Re: [sympa-developpers] [sympa-commits] sympa[11063] trunk/src/lib/Sympa/Message.pm: [dev] pass required values as parameters, instead of accessing configuration directly

Subject: Developers of Sympa

List archive

Chronological Thread  
  • 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.

I feel that breaking encapsulation for convenience of testing
is mistaking means for ends.
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'.

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




Archive powered by MHonArc 2.6.19+.

Top of Page