Click here to Skip to main content
15,434,532 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: Coding vent post Pin
honey the codewitch8-Dec-21 4:33
mvahoney the codewitch8-Dec-21 4:33 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 4:47
Memberjeron18-Dec-21 4:47 
GeneralRe: Coding vent post Pin
honey the codewitch8-Dec-21 5:23
mvahoney the codewitch8-Dec-21 5:23 
GeneralRe: Coding vent post Pin
jeron18-Dec-21 5:28
Memberjeron18-Dec-21 5:28 
Generalmy first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 13:06
MemberSuper Lloyd7-Dec-21 13:06 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 14:32
mvahoney the codewitch7-Dec-21 14:32 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 15:43
MemberSuper Lloyd7-Dec-21 15:43 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 15:53
mvahoney the codewitch7-Dec-21 15:53 
I didn't realize your culture changed over the life of the application.

You could still do this, but you'd just have to reset your lazy init. If Lazy won't let you do it you can make your own poor man's lazy using lock(object) {} but you don't even need to do that unless your object will be accessed from multiple threads.

If it's not, you can just do
C#
if(myres==null) {
   // fetch my res
}
return myres;


and then in your update routine you just set myres to null.
Real programmers use butterflies

GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:01
MemberSuper Lloyd7-Dec-21 16:01 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 16:12
MemberSuper Lloyd7-Dec-21 16:12 
GeneralRe: my first source code generator, yea!.. and a question Pin
honey the codewitch7-Dec-21 16:55
mvahoney the codewitch7-Dec-21 16:55 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 21:49
MemberSuper Lloyd7-Dec-21 21:49 
GeneralRe: my first source code generator, yea!.. and a question Pin
Richard Deeming7-Dec-21 22:32
mveRichard Deeming7-Dec-21 22:32 
GeneralRe: my first source code generator, yea!.. and a question Pin
Super Lloyd7-Dec-21 22:47
MemberSuper Lloyd7-Dec-21 22:47 
GeneralAn interesting blockchain read PinPopular
David O'Neil7-Dec-21 5:18
professionalDavid O'Neil7-Dec-21 5:18 
GeneralRe: An interesting blockchain read Pin
raddevus7-Dec-21 5:31
mvaraddevus7-Dec-21 5:31 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:00
professionalFabio Franco8-Dec-21 0:00 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 3:14
mvaraddevus8-Dec-21 3:14 
GeneralRe: An interesting blockchain read Pin
Yortw8-Dec-21 8:44
MemberYortw8-Dec-21 8:44 
GeneralRe: An interesting blockchain read Pin
raddevus8-Dec-21 9:07
mvaraddevus8-Dec-21 9:07 
GeneralRe: An interesting blockchain read Pin
Gerry Schmitz7-Dec-21 6:16
mveGerry Schmitz7-Dec-21 6:16 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:07
professionalFabio Franco8-Dec-21 0:07 
GeneralRe: An interesting blockchain read Pin
Fabio Franco8-Dec-21 0:04
professionalFabio Franco8-Dec-21 0:04 
GeneralRe: An interesting blockchain read Pin
trønderen8-Dec-21 3:22
Membertrønderen8-Dec-21 3:22 
GeneralRe: An interesting blockchain read Pin
Kirk 103898218-Dec-21 4:50
MemberKirk 103898218-Dec-21 4:50 

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

Who do you listen to most when making decisions about software development?
  Results   466 votes