Click here to Skip to main content
15,897,518 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 5:48
mvahoney the codewitch11-Dec-21 5:48 
GeneralRe: I don't know why I hate statics so much Pin
David O'Neil11-Dec-21 7:44
professionalDavid O'Neil11-Dec-21 7:44 
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 
I know it's pedantic, but the right tool for the job. I'll grant you that the singleton pattern can be overused, especially by programmers who aren't proficient at OOP principles like encapsulation and data hiding. "But I need this value over here too, and I don't know how to make that happen unless I let everybody see it." Globals, globals everywhere.

The most common use I make of staticly-declared 'singleton' values is where there is one instance of a thing but multiple users. In this case, the users are implemented as instances of the class around the static value. The instances then mediate access to the static value by the class user.

I know what I'm doing... I'm a professional. Big Grin | :-D
Software Zen: delete this;

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 
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 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   147 votes