Saturday, March 14, 2009

Weekend Reading

Steve McConnel: Classic mistakes:

Few Short Methods Per Class:

The Big Ball of Mud and Other Architectural Disasters:

How to Design Exception Hierarchies:

Design Principles and Design Patterns:

What Makes a System Hard to Work With?

Big Ball of Mud (classic)

Thursday, March 5, 2009

How to create a custom url protocol

 HKEY_CLASSES_ROOT/
  your
-protocol-name/
   
(Default)    "URL:your-protocol-name Protocol"
    URL
Protocol ""
    shell
/
      open
/
        command
/
         
(Default) PathToExecutable
Useful links:




Tuesday, March 3, 2009

How to check if the current user is administrator

bool isAdmin = new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);

Frameworks and DDD: Keeping the Model Clean

How to avoid pitfalls and preserve a clean domain model while using frameworks. 

Tim McCarthy is is the author of .NET Domain-Driven Design with C#: Problem-Design-Solution



REGSVR32 VS REGASM

REGSVR32 : This is used for registering a COM based DLL:

REGASM: This is used to register a .NET Assembly for COM Interop: