By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

How big should be your Session Façades?

P: n/a
Mine is getting quite big(more than 15 functions)
Is there any limit where there is too much and you
should try to find commonalities to split it?
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
po*******@hotmail.com (GASOLINE) wrote in message news:<55**************************@posting.google. com>...
Mine is getting quite big(more than 15 functions)
Is there any limit where there is too much and you
should try to find commonalities to split it?


Size isn't everything!

More important is variation encapsulation, i.e., make sure all your
Facades are interfaces and not implementation classes. If your Facades
are interfaces, then splitting them into more interfaces is fine.

If your Facades are classes, then splitting them will expose more
public classes outside the package, which violates its encapsulation.

Golden rule: have one public class per package.

..ed

www.EdmundKirwan.com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.