Click here to Skip to main content
15,867,453 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: What are some stupid-useful coding tricks you rely on? Pin
Mircea Neacsu10-Jan-23 6:34
Mircea Neacsu10-Jan-23 6:34 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
Mike Hankey8-Jan-23 7:42
mveMike Hankey8-Jan-23 7:42 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
Marc Clifton8-Jan-23 11:28
mvaMarc Clifton8-Jan-23 11:28 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
honey the codewitch8-Jan-23 12:01
mvahoney the codewitch8-Jan-23 12:01 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
Gary R. Wheeler8-Jan-23 13:53
Gary R. Wheeler8-Jan-23 13:53 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
honey the codewitch8-Jan-23 14:52
mvahoney the codewitch8-Jan-23 14:52 
PraiseRe: What are some stupid-useful coding tricks you rely on? Pin
Gary Wheeler9-Jan-23 2:38
Gary Wheeler9-Jan-23 2:38 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
honey the codewitch9-Jan-23 5:18
mvahoney the codewitch9-Jan-23 5:18 
I didn't tell you the downside. You must initialize the statics to avoid a linker error, and I don't know about C++20 but previous versions require declarations like this for statics:

C++
template <uint8_t Pin, uint32_t DebounceMS , bool OpenHigh, size_t Events>
int_button<Pin, DebounceMS, OpenHigh, Events>*
int_button<Pin, DebounceMS, OpenHigh, Events>::m_this = nullptr;

To err is human. Fortune favors the monsters.

GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
Gary Wheeler9-Jan-23 5:23
Gary Wheeler9-Jan-23 5:23 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
honey the codewitch9-Jan-23 5:54
mvahoney the codewitch9-Jan-23 5:54 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
Mircea Neacsu8-Jan-23 14:08
Mircea Neacsu8-Jan-23 14:08 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
honey the codewitch8-Jan-23 14:53
mvahoney the codewitch8-Jan-23 14:53 
GeneralRe: What are some stupid-useful coding tricks you rely on? Pin
CPallini8-Jan-23 20:28
mveCPallini8-Jan-23 20:28 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
Dan Sutton9-Jan-23 6:30
Dan Sutton9-Jan-23 6:30 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
HappyDotNet10-Jan-23 5:01
professionalHappyDotNet10-Jan-23 5:01 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
englebart21-Jan-23 9:29
professionalenglebart21-Jan-23 9:29 
AnswerRe: What are some stupid-useful coding tricks you rely on? Pin
FormerBIOSGuy26-Jan-23 6:13
FormerBIOSGuy26-Jan-23 6:13 
GeneralStrange RDP problem Pin
dandy728-Jan-23 4:33
dandy728-Jan-23 4:33 
GeneralRecursively Searching for "text" in files in windows 11 Pin
jmaida7-Jan-23 18:10
jmaida7-Jan-23 18:10 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
David O'Neil7-Jan-23 20:27
professionalDavid O'Neil7-Jan-23 20:27 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
jmaida8-Jan-23 13:16
jmaida8-Jan-23 13:16 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
David O'Neil8-Jan-23 13:26
professionalDavid O'Neil8-Jan-23 13:26 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
jmaida8-Jan-23 15:38
jmaida8-Jan-23 15:38 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
Richard MacCutchan7-Jan-23 21:11
mveRichard MacCutchan7-Jan-23 21:11 
GeneralRe: Recursively Searching for "text" in files in windows 11 Pin
jmaida8-Jan-23 13:27
jmaida8-Jan-23 13:27 

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.