Hi Everyone, I'd like to announce that, coming mid-April, I will be conducting an online course on the subject of database Agility through Net Objectives, Inc....
Hello group, I'm a mac developer and I've been developing applications for about a year. I always design my applications using the OOP principles and I always...
It's pretty good, Mario. I'd shy away from a singleton that is read-write. I think of Singleton like slapping someone in the face: it's appropriate every once...
Max's points about Singleton are spot on, Mario. I'll just add the following two suggestions: 1) Generally, don't think about patterns as things you use...
Yeah. Scott's the one who got me to see that about the Singleton pattern. Before I knew him my advice RE: Singletons was "don't." Now it's "don't do it...
Thank you Max and Scott. @Max I'll take note about your singleton explanation. Actually, the main purpose of my wizard is for hardware configuration. It will...
After reading many articles about singleton, I realize that using singleton that will have a global read-write access is not good since it will make your...
Mario, I get what you are going for and I highly recommend that you avoid the Singleton if you can. For example: maybe you have two States in your problem....
Max, Yeah. I realized that too. I'll probably revisit again my problem domain and discover an alternative solution rather than using a read/write Singleton....
That would work. You could also simply use a value object, reference held in the base class, to store the accumulating state. The issue with Singleton is that...
Excellent point! -S- From: leanprogramming@yahoogroups.com [mailto:leanprogramming@yahoogroups.com] On Behalf Of Max Guernsey, III Sent: Monday, May 04, 2009...
Scott, I'm still quite confuse about your suggestion that is why I would just like to clarify some of your points. :) 1.)You could also simply use a value ...
It may be that I didn’t completely understand your problem, but if I did, this is what I mean… The states all derive from a common base class, typically....
I see. It's now clear to me. Thanks a lot for all the suggestions (especially to Scott and Max). ________________________________ From: Scott L. Bain...
hi, I am currently under the belief that while "tell don't ask" is a great rule of thumb for doing OO, it is not possible to do that all the way throughout the...
"Tell Don't Ask" is a principle, not a practice, in my view. Principles are always evaluated, and at times are not followed, but this is always done...
(i asked this on the Kanban list; Alan suggested posting here, thanks!) what do we need to do to make sure folks who inherit the code for whatever reason can...
Massive question.... In general, this is the reason Michael Feathers wrote his book "Working Effectively With Legacy Code", wherein he focuses on getting...
... many thanks for the thoughts and the link! to constrain the question somewhat (this is all relevant to a job i'm interviewing for), assume that the code is...
Hey Scott, ... Yeah, I think ref/out expose a problem with separating command/query. Sometimes it feels like there's a hierarchy or chain of command among the...
... No, there are other alternatives. (Disclaimer: I'm not going to argue that they are better, or that getters are bad practice in this case. I'm only arguing...
This is a really interesting question. I am in a position right now where I have a lot of influence on a team where we are developing a green-field app. I just...
Ceiling cat kind of sees what you did there… I have to ask this, though: Is invoking a getter not telling the object you want something from it? It’s not...
It's on a continuum of encapsulation. Un-Encapsulated: String street = Address.street; // public primitive data member, static. Might as well call it a...
... thank you for taking the time to share the perspective. it is definitely helpful, and is sparking some thoughts for me. i'm starting with the negatives...
Hi Raoul. The question of inquisitive vs. assertive (ask vs. tell) is often in the eye of the beholder. The real question is not what Stuff you're having the...
I'm having a little trouble understanding the continum. i don't understand the difference in what's being encapsulated in the first two, un-encapsulated and...