Click here to Skip to main content
15,314,594 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: Canadians - at the forefront of public decency... Pin
Alberto Bar-Noy9-Apr-12 20:37
MemberAlberto Bar-Noy9-Apr-12 20:37 
GeneralRe: Canadians - at the forefront of public decency... Pin
Bergholt Stuttley Johnson9-Apr-12 21:12
professionalBergholt Stuttley Johnson9-Apr-12 21:12 
GeneralWill technology ever progress again? Pin
killabyte9-Apr-12 16:43
Memberkillabyte9-Apr-12 16:43 
GeneralRe: Will technology ever progress again? Pin
Super Lloyd9-Apr-12 18:14
MemberSuper Lloyd9-Apr-12 18:14 
GeneralRe: Will technology ever progress again? Pin
Alberto Bar-Noy9-Apr-12 20:55
MemberAlberto Bar-Noy9-Apr-12 20:55 
GeneralRe: Will technology ever progress again? Pin
GuyThiebaut9-Apr-12 22:16
professionalGuyThiebaut9-Apr-12 22:16 
GeneralRe: Will technology ever progress again? Pin
killabyte9-Apr-12 22:44
Memberkillabyte9-Apr-12 22:44 
GeneralGnarly Declaration of the Week Pin
Chris Maunder9-Apr-12 15:45
cofounderChris Maunder9-Apr-12 15:45 
C#
public class MyType : BaseTypeController<MyType>
{
   ...
}

with
C#
public abstract class BaseTypeController<T> : BaseType where T : BaseTypeController<T>, new()
{
...
}

It's basically a way to allow us to have a bunch of similar helper classes that have static methods derive from a common implementator class so we're not repeating ourselves.

I've been working heavily with this all weekend and it's all extremely helpful and intuitive now, but there are a couple of "WTF | :WTF: " review comments attached to the classes.

Anyone else written anything a little different lately?
cheers,
Chris Maunder

The Code Project | Co-founder
Microsoft C++ MVP

GeneralRe: Gnarly Declaration of the Week Pin
Brisingr Aerowing9-Apr-12 16:18
professionalBrisingr Aerowing9-Apr-12 16:18 
GeneralRe: Gnarly Declaration of the Week Pin
killabyte9-Apr-12 16:35
Memberkillabyte9-Apr-12 16:35 
GeneralRe: Gnarly Declaration of the Week Pin
Chris Maunder9-Apr-12 16:47
cofounderChris Maunder9-Apr-12 16:47 
GeneralRe: Gnarly Declaration of the Week Pin
PIEBALDconsult9-Apr-12 18:29
professionalPIEBALDconsult9-Apr-12 18:29 
GeneralRe: Gnarly Declaration of the Week Pin
AspDotNetDev9-Apr-12 18:34
protectorAspDotNetDev9-Apr-12 18:34 
GeneralRe: Gnarly Declaration of the Week Pin
PIEBALDconsult9-Apr-12 18:53
professionalPIEBALDconsult9-Apr-12 18:53 
GeneralRe: Gnarly Declaration of the Week Pin
Brisingr Aerowing9-Apr-12 19:08
professionalBrisingr Aerowing9-Apr-12 19:08 
GeneralRe: Gnarly Declaration of the Week Pin
Mel Padden9-Apr-12 23:29
MemberMel Padden9-Apr-12 23:29 
GeneralRIP Jack Tramiel Pin
Dalek Dave9-Apr-12 12:08
professionalDalek Dave9-Apr-12 12:08 
GeneralRe: RIP Jack Tramiel Pin
Paul Conrad9-Apr-12 13:11
professionalPaul Conrad9-Apr-12 13:11 
GeneralRe: RIP Jack Tramiel Pin
Michael Bergman9-Apr-12 15:52
MemberMichael Bergman9-Apr-12 15:52 
GeneralRe: RIP Jack Tramiel Pin
Steve Mayfield9-Apr-12 18:06
MemberSteve Mayfield9-Apr-12 18:06 
GeneralIsn't she a little ........................................... Pin
Henry Minute9-Apr-12 10:32
MemberHenry Minute9-Apr-12 10:32 
GeneralRe: Isn't she a little ........................................... Pin
wizardzz9-Apr-12 10:47
Memberwizardzz9-Apr-12 10:47 
GeneralRe: Isn't she a little ........................................... Pin
PJ Arends9-Apr-12 16:29
professionalPJ Arends9-Apr-12 16:29 
GeneralRe: Isn't she a little ........................................... Pin
Septimus Hedgehog10-Apr-12 3:51
MemberSeptimus Hedgehog10-Apr-12 3:51 
GeneralCode Magazines Pin
bhogan9-Apr-12 9:43
Memberbhogan9-Apr-12 9:43 

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

How important is naming to you in your code?
There are 2 hard problems in Computer Science: caching, naming and off-by-one errors
  Results   816 votes