Results 1 to 9 of 9
Thread: singleton object ...
- 06-19-2008, 01:20 PM #1Member
- Join Date
- Jun 2008
- Rep Power
- 06-19-2008, 01:25 PM #2
- 06-19-2008, 01:56 PM #3
Read this article...freedom exists in the world of ideas
- 06-22-2008, 04:10 AM #4
Such as "Singleton Considered Stupid "
And check into the JUnit groups and see how using Singletons makes proper unit testing much harder.
In general, a Singleton is just a wad of global stuff. Good OO design avoids global stuff, as it increases coupling.
- 06-23-2008, 05:02 AM #5
- 06-23-2008, 05:14 AM #6
Yes, good OO should be about abstractions and isolation. Coupling has been proven to make systems exponentially complex.
Sadly, a lot of Java, even professionally developed Java is not very good OO.
This bad Java will be the Year 2000 Cobol problem of the future, probably in five years or so.
- 06-23-2008, 06:29 AM #7
Lots of people working on Java(other languages too) without knowing any about OO. Some people don't want to use it either. I don't know why, but in later they found full wired with further maintainability and expandability of the application.
- 06-23-2008, 06:40 AM #8
I think part of it is that Java was cursed with a C-foundation, which greatly helped acceptance at first, but enables bad practices.
I did some professional Smalltalk, and while it wasn't long term useful (Smalltalk is dead) it forced you to think about OO seriously.
For a lot of applications, especially in the business domain, OO hasn't worked well. It works great for GUIs and other user interfaces, but gets hard to do with a payroll record.
Our continued use of Relational DBMS doesn't help.
This is probably moving a bit OT, probably should go into a less specific thread.
- 06-23-2008, 06:43 AM #9
- By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 12:41 PM
- By Java Tip in forum Java TipReplies: 0Last Post: 01-24-2008, 03:21 PM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:32 PM
- By levent in forum Java SoftwareReplies: 0Last Post: 07-26-2007, 08:12 PM
- By Peter in forum Advanced JavaReplies: 1Last Post: 07-09-2007, 04:45 AM