»
S
I
D
E
B
A
R
«
Design Principles
Jun 23rd, 2009 by Josh Rivers

Digging out the Draft Bucket: This isn’t really a completed post, but rather than
leave it in my Draft folder forever, I’m just going to post it. That way it’s infamy
will live forever.

There’s a massive summary of design principles in the ASP.NET
MVC Forums project introduction
. The actual code in the project is opaque to me.
I’d need to learn the framework before I’d understand how he’s working on it.

Rocky on TDD, with an
explanation on how comprehensive testing means writing more test code than real code.
"No one actually does this." "I once watched a TDD (and MVC/MVP) presentation.
The speaker wrote several pages of code to build and test a presenter that did a bunch
of work. Nice stuff, until you realized that all that could have been done in 1-3
lines of code using data binding. I asked him why he did this rather than using data
binding. The answer: you can’t test data binding. I’m afraid my jaw dropped. See,
I have a wife and kids. I like to get home and spend time with them. If I can write
3 lines of code, or write 3 pages of code that I need to test and debug, I’m going
to pick the 3 lines of code every time"

Authorization system in
CSLA
.

Polymorphic MV*.

For when I need some new article materials: A
Big Hanselman Article on Code Learning Online
.

Cohesion
and Coupling

Articles on SOLID:

  1. Single
    Responsibility Principle
  2. Open/Closed
    Principle
  3. Liskov
    Substitution Principle
»  Substance: WordPress   »  Style: Ahren Ahimsa