I think the single most important principle to writing readable code(imho)is SRP(Single Responsibility Principle)
In a nutshell
It is just making your classes and methods do one thing and that’s it.
Or at the very least name your methods accordingly if they do a couple of things.
An MS Example of breaking the SRP Rule.
bool Int32.TryParse(string s, out [...]
Posts from ‘December, 2007’
Writing Readable Code
Inversion of Control
Even though topics on Inversion of Control have been done to death.
I want to revisit the subject to talk about the use of interfaces in inversion of control.
I think Interfaces should be used to isolate all dependencies on the outside world, not just databases.
When doing something with WCF. The client side service calls should [...]
Recovering data from a computer that won’t boot and has a bad dvd rom
If the computer will not boot and the dvd drive is bad. You will have to find an alternate way to boot the computer.
I used a thumbdrive since the bios supported it.
First get the thumbdrive bootable.
In order to get access to the windows drives you should do a
fdisk -l to see the physical devices.
You will [...]