[Gambas-user] Call control from one module

EA7DFH ea7dfh at ...2382...
Thu May 13 14:59:23 CEST 2010


I may be wrong, but generally it is considered a bad practice mixing GUI
code with "service" code.

It is a matter of encapsulation, and in OOP it is one of the most
important feature.

Yes, less code not always means easy code..., it's just my opinion and
I'm not criticizing.

Regards,

Jesus

l 13/05/10 14:24, Jussi Lahtinen escribió:
>> (I think it is not a good idea to make public controls)
> 
>  Just for interest, why? What is the downside?
>  Maybe it is easier to write not so nicely structured code with public controls,
>  but in this case I may prefer way that creates less code.
>  I think they are both fine...
> 
> Jussi
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 





More information about the User mailing list