Click here to Skip to main content
15,891,567 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch11-Dec-21 10:04
mvahoney the codewitch11-Dec-21 10:04 
GeneralRe: I don't know why I hate statics so much Pin
PIEBALDconsult11-Dec-21 5:54
mvePIEBALDconsult11-Dec-21 5:54 
GeneralRe: I don't know why I hate statics so much Pin
Greg Utas11-Dec-21 6:17
professionalGreg Utas11-Dec-21 6:17 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch11-Dec-21 6:23
mvahoney the codewitch11-Dec-21 6:23 
GeneralRe: I don't know why I hate statics so much Pin
Gerry Schmitz11-Dec-21 6:37
mveGerry Schmitz11-Dec-21 6:37 
GeneralRe: I don't know why I hate statics so much Pin
Gary R. Wheeler11-Dec-21 10:23
Gary R. Wheeler11-Dec-21 10:23 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch11-Dec-21 10:27
mvahoney the codewitch11-Dec-21 10:27 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch12-Dec-21 4:51
mvahoney the codewitch12-Dec-21 4:51 
That makes sense though.

There is a time and a place for singletons. I'm not denying that. I just don't like them. They "smell" to me.

They do solve some very sticky design problems though, particularly when you're creating binary interfaces to be used across DLL/EXE/NETWORK and you need a "factory" to create objects from. That's probably where I've used them the most, because you can't export static "interfaces" with binary interface binding like that. (Think COM or DCOM, or really any kind of binary RPC)
Real programmers use butterflies

GeneralRe: I don't know why I hate statics so much Pin
Super Lloyd11-Dec-21 17:22
Super Lloyd11-Dec-21 17:22 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch12-Dec-21 4:48
mvahoney the codewitch12-Dec-21 4:48 
GeneralRe: I don't know why I hate statics so much Pin
Super Lloyd12-Dec-21 5:58
Super Lloyd12-Dec-21 5:58 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch12-Dec-21 6:02
mvahoney the codewitch12-Dec-21 6:02 
GeneralRe: I don't know why I hate statics so much Pin
11917640 Member 11-Dec-21 19:39
11917640 Member 11-Dec-21 19:39 
GeneralRe: I don't know why I hate statics so much Pin
PIEBALDconsult12-Dec-21 4:19
mvePIEBALDconsult12-Dec-21 4:19 
GeneralRe: I don't know why I hate statics so much Pin
honey the codewitch12-Dec-21 4:48
mvahoney the codewitch12-Dec-21 4:48 
GeneralHave you ever wondered what the words to "Non Je Ne Regrette Rien" actually mean? Pin
OriginalGriff11-Dec-21 1:43
mveOriginalGriff11-Dec-21 1:43 
GeneralRe: Have you ever wondered what the words to "Non Je Ne Regrette Rien" actually mean? Pin
RickZeeland11-Dec-21 2:06
mveRickZeeland11-Dec-21 2:06 
GeneralRe: Have you ever wondered what the words to "Non Je Ne Regrette Rien" actually mean? Pin
Super Lloyd11-Dec-21 17:22
Super Lloyd11-Dec-21 17:22 
GeneralRe: Have you ever wondered what the words to "Non Je Ne Regrette Rien" actually mean? Pin
Daniel Pfeffer12-Dec-21 1:19
professionalDaniel Pfeffer12-Dec-21 1:19 
JokeThings to think about PinPopular
Mike Hankey10-Dec-21 23:11
mveMike Hankey10-Dec-21 23:11 
GeneralRe: Things to think about Pin
Chris C-B10-Dec-21 23:51
Chris C-B10-Dec-21 23:51 
GeneralRe: Things to think about Pin
Eddy Vluggen11-Dec-21 2:10
professionalEddy Vluggen11-Dec-21 2:10 
GeneralRe: Things to think about Pin
Richard MacCutchan11-Dec-21 2:22
mveRichard MacCutchan11-Dec-21 2:22 
GeneralRe: Things to think about Pin
Eddy Vluggen11-Dec-21 2:34
professionalEddy Vluggen11-Dec-21 2:34 
GeneralRe: Things to think about Pin
peterkmx11-Dec-21 7:03
professionalpeterkmx11-Dec-21 7:03 

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.