Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Big Number Pin
BobInNJ15-May-12 13:08
BobInNJ15-May-12 13:08 
AnswerRe: Big Number Pin
Luc Pattyn15-May-12 13:16
sitebuilderLuc Pattyn15-May-12 13:16 
QuestionSkipping locked section already in use Pin
varunpandeyengg15-May-12 5:41
varunpandeyengg15-May-12 5:41 
GeneralRe: Skipping locked section already in use PinPopular
PIEBALDconsult15-May-12 5:58
mvePIEBALDconsult15-May-12 5:58 
GeneralRe: Skipping locked section already in use Pin
varunpandeyengg15-May-12 6:13
varunpandeyengg15-May-12 6:13 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 6:29
mvePIEBALDconsult15-May-12 6:29 
GeneralRe: Skipping locked section already in use Pin
Sentenryu15-May-12 7:33
Sentenryu15-May-12 7:33 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 7:51
mvePIEBALDconsult15-May-12 7:51 
Sentenryu wrote:
i was thinking in replacing the static class with a singleton, you think it's a
bad idea?


Mainly I just don't see the point. Does it work as a static class? What do you think a Singleton would provide that a static class doesn't? If the users are running in different systems then they wouldn't share the Singleton anyway -- and if it's behind a Service then it's just a black box so what difference does it make to the clients?

If you've read up on the Singleton Pattern, then you should know that it provides a shared instance -- if it isn't going to be shared, then it probably isn't the right tool for the job. Nor am I sure that a static class is either; I'd likely just instantiate one instance of a regular class.


When I wrote a chat system, it had a database and each client connected to the database server to log in/out, get the list of users, send/get messages, etc. -- I haven't gotten around to writing a Web Service for it yet, and haven't experimented with Web Services at all for two years. But I wouldn't automatically run off and write a Singleton to hide behind the Service.
GeneralRe: Skipping locked section already in use Pin
Sentenryu15-May-12 8:19
Sentenryu15-May-12 8:19 
GeneralRe: Skipping locked section already in use Pin
jschell15-May-12 8:56
jschell15-May-12 8:56 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 9:11
mvePIEBALDconsult15-May-12 9:11 
GeneralRe: Skipping locked section already in use Pin
Sentenryu15-May-12 9:34
Sentenryu15-May-12 9:34 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 9:50
mvePIEBALDconsult15-May-12 9:50 
GeneralRe: Skipping locked section already in use Pin
Sentenryu16-May-12 0:29
Sentenryu16-May-12 0:29 
AnswerRe: Skipping locked section already in use Pin
Ravi Bhavnani15-May-12 11:36
professionalRavi Bhavnani15-May-12 11:36 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 12:51
mvePIEBALDconsult15-May-12 12:51 
GeneralRe: Skipping locked section already in use Pin
Ravi Bhavnani15-May-12 13:04
professionalRavi Bhavnani15-May-12 13:04 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 14:32
mvePIEBALDconsult15-May-12 14:32 
GeneralRe: Skipping locked section already in use Pin
Ravi Bhavnani15-May-12 14:43
professionalRavi Bhavnani15-May-12 14:43 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 14:56
mvePIEBALDconsult15-May-12 14:56 
GeneralRe: Skipping locked section already in use Pin
Ravi Bhavnani15-May-12 15:02
professionalRavi Bhavnani15-May-12 15:02 
GeneralRe: Skipping locked section already in use Pin
PIEBALDconsult15-May-12 17:21
mvePIEBALDconsult15-May-12 17:21 
GeneralRe: Skipping locked section already in use Pin
jschell16-May-12 9:04
jschell16-May-12 9:04 
GeneralRe: Skipping locked section already in use Pin
Pete O'Hanlon15-May-12 8:20
mvePete O'Hanlon15-May-12 8:20 
GeneralRe: Skipping locked section already in use Pin
Sentenryu15-May-12 8:39
Sentenryu15-May-12 8:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.