Saturday, July 28, 2007

FizzBuzz c# 3.0

I've been playing with the C# 3.0 Express beta....

(from n in Enumerable.Range(1, 100)
where (n % 3) == 0 || (n % 2) == 0
select n.ToString() + "=" + (((n % 2) == 0) ? "fizz" : "") + (((n % 3) == 0) ? "buzz" : "")).ToList().ForEach(Console.WriteLine);


Complexity

Every problem can be solved by adding another layer of indirection.

Unfortunately, adding another layer usually creates a new problem.

Thursday, July 26, 2007

The inverse of Moore's Law?

Moore’s Law

The power of computers per unit cost doubles every 24 month.

Wirth’s law

Software gets slower faster than hardware gets faster.

Another good law...

Conway’s Law

Any piece of software reflects the organizational structure that produced it

Put another way...

If you have four groups working on a compiler, you’ll get a 4-pass compiler.

A new tip one for my wall

Hofstadter’s Law

A task always takes longer than you expect, even when you take into account Hofstadter’s Law.