Click here to Skip to main content
15,889,462 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: do you like globals? I do not, Sam-I-Am Pin
#realJSOP27-Jun-20 3:18
mve#realJSOP27-Jun-20 3:18 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Slacker00726-Jun-20 13:48
professionalSlacker00726-Jun-20 13:48 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
bandarpoker27-Jun-20 1:17
bandarpoker27-Jun-20 1:17 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Slacker00727-Jun-20 3:28
professionalSlacker00727-Jun-20 3:28 
QuestionRe: do you like globals? I do not, Sam-I-Am Pin
enhzflep28-Jun-20 22:17
enhzflep28-Jun-20 22:17 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
TheGreatAndPowerfulOz27-Jun-20 20:23
TheGreatAndPowerfulOz27-Jun-20 20:23 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
David O'Neil26-Jun-20 17:21
professionalDavid O'Neil26-Jun-20 17:21 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Nelek27-Jun-20 0:15
protectorNelek27-Jun-20 0:15 
David O'Neil wrote:
But if I found a place where a Singleton absolutely made sense, I'd use a Singleton
I use it to keep a single instance of a logger that is used all over the application. The logger uses a blocking collection and so all other places can send stuff to the logger, the collection takes care of the entries and the logger just writes down in FIFO mode.

Would that be something making sense to you? (Just curious, I am not saying is absolutely making sense or correct, but I found the approach not that bad)
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.

GeneralRe: do you like globals? I do not, Sam-I-Am Pin
David O'Neil27-Jun-20 11:07
professionalDavid O'Neil27-Jun-20 11:07 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
#realJSOP27-Jun-20 3:24
mve#realJSOP27-Jun-20 3:24 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus27-Jun-20 6:02
mvaraddevus27-Jun-20 6:02 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
David O'Neil27-Jun-20 11:10
professionalDavid O'Neil27-Jun-20 11:10 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Greg Utas27-Jun-20 4:10
professionalGreg Utas27-Jun-20 4:10 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus27-Jun-20 6:11
mvaraddevus27-Jun-20 6:11 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus27-Jun-20 5:58
mvaraddevus27-Jun-20 5:58 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
David O'Neil27-Jun-20 11:11
professionalDavid O'Neil27-Jun-20 11:11 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus28-Jun-20 12:32
mvaraddevus28-Jun-20 12:32 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
David O'Neil28-Jun-20 12:42
professionalDavid O'Neil28-Jun-20 12:42 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus28-Jun-20 13:14
mvaraddevus28-Jun-20 13:14 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Super Lloyd26-Jun-20 17:39
Super Lloyd26-Jun-20 17:39 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus27-Jun-20 5:59
mvaraddevus27-Jun-20 5:59 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Jörgen Andersson26-Jun-20 21:51
professionalJörgen Andersson26-Jun-20 21:51 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
Richard MacCutchan26-Jun-20 23:24
mveRichard MacCutchan26-Jun-20 23:24 
GeneralRe: do you like globals? I do not, Sam-I-Am Pin
raddevus27-Jun-20 5:53
mvaraddevus27-Jun-20 5:53 
RantPlease don't microwave library books! Pin
Cp-Coder26-Jun-20 8:03
Cp-Coder26-Jun-20 8: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.