Click here to Skip to main content
15,918,268 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.

 
GeneralBJOTD Pin
JimmyRopes22-May-15 19:03
professionalJimmyRopes22-May-15 19:03 
GeneralRe: BJOTD Pin
Roger Wright22-May-15 21:47
professionalRoger Wright22-May-15 21:47 
GeneralRe: BJOTD Pin
JimmyRopes22-May-15 23:12
professionalJimmyRopes22-May-15 23:12 
GeneralRe: BJOTD Pin
Mike Hankey23-May-15 2:28
mveMike Hankey23-May-15 2:28 
GeneralRe: BJOTD Pin
Michael Martin23-May-15 3:52
professionalMichael Martin23-May-15 3:52 
GeneralRe: BJOTD Pin
Roger Wright23-May-15 4:58
professionalRoger Wright23-May-15 4:58 
GeneralWorking on a utility library Pin
Brisingr Aerowing22-May-15 17:43
professionalBrisingr Aerowing22-May-15 17:43 
GeneralRe: Working on a utility library Pin
Gary R. Wheeler23-May-15 2:37
Gary R. Wheeler23-May-15 2:37 
I think almost every developer has their own 'bag-o-tricks' that they keep handy.

Two items that always went into my MFC/C++ apps stdafx.h file were the following:
C++
#define countof(array) (sizeof(array)/sizeof((array)[0]))

#include <afxtempl.h>
template<class T> class List : public CTypedPtrList<CPtrList,T *> { };
I didn't stop using the countof() macro until VS2008 came out and included the _countof() macro out of the box. Amazing it only took them 20+ years of making C and C++ compilers to figure that one out.

It's tough for me to come up with C# examples. The closest I can come is a set of TCP/IP socket communication classes I've reused in multiple applications, but they're more an implementation of a common protocol than generally useful.

Hmm. On second thought, I do have an example. We have in in-house tracing tool that we use for debugging distributed applications. We embed a piece of server code in each app, which communicates with a client application. We've written versions of the server code in several flavors of C++ and C#. It's almost always our first stop when developing a new application.
Software Zen: delete this;

GeneralDo you use MongoDB ? Pin
Ryan @ Microsoft22-May-15 13:57
Ryan @ Microsoft22-May-15 13:57 
GeneralRe: I love to hate MongoDB Pin
Super Lloyd22-May-15 14:28
Super Lloyd22-May-15 14:28 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 14:33
Ryan @ Microsoft22-May-15 14:33 
GeneralRe: I love to hate MongoDB Pin
Super Lloyd22-May-15 15:25
Super Lloyd22-May-15 15:25 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 15:51
Ryan @ Microsoft22-May-15 15:51 
GeneralRe: I love to hate MongoDB Pin
OriginalGriff22-May-15 21:43
mveOriginalGriff22-May-15 21:43 
GeneralRe: I love to hate MongoDB Pin
Marc Clifton22-May-15 15:25
mvaMarc Clifton22-May-15 15:25 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 15:50
Ryan @ Microsoft22-May-15 15:50 
GeneralRe: I love to hate MongoDB Pin
Marc Clifton22-May-15 16:02
mvaMarc Clifton22-May-15 16:02 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 16:21
Ryan @ Microsoft22-May-15 16:21 
GeneralRe: I love to hate MongoDB Pin
jschell24-May-15 7:36
jschell24-May-15 7:36 
GeneralRe: I love to hate MongoDB Pin
Richard MacCutchan22-May-15 23:43
mveRichard MacCutchan22-May-15 23:43 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 15:55
Ryan @ Microsoft22-May-15 15:55 
GeneralRe: I love to hate MongoDB Pin
Marc Clifton22-May-15 16:04
mvaMarc Clifton22-May-15 16:04 
GeneralRe: I love to hate MongoDB Pin
Ryan @ Microsoft22-May-15 16:22
Ryan @ Microsoft22-May-15 16:22 
GeneralRe: I love to hate MongoDB Pin
jschell24-May-15 7:34
jschell24-May-15 7:34 
GeneralRe: Do you use MongoDB ? Pin
jschell24-May-15 7:32
jschell24-May-15 7:32 

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.