Archive for February, 2010

Uncountable vs. Infinite

What does it mean to be infinite? Never-ending? What about uncountable? Is the set of integers uncountable? How about the real numbers? What’s the difference?
Questions from a freshman math student, no doubt. The uncountable vs. infinite problem is a turning point in the quest for a bachelor’s degree in mathematics. To be crude, it’s the [...]

February 27, 2010   Posted in: math  No Comments

How to be an Awesome Open Source Developer

I’m a big fan of open source. Capitalism is awesome, but it inspires and encourages greed, so it’s nice to see somebody defying that system by working hard at something, and then giving it away for free.
Of course, you’re at the mercy of whatever kind of limping scrod they shove out their codehole, but hey, [...]

February 22, 2010   Posted in: php, windows  No Comments

Setting null values in anonymous object initializer in C#

The spec claims you can’t do this:
It is a compile-time error for an expression in an anonymous object initializer to be of the null type.

And you can’t. Directly.

var obj = new {
Value = null //syntax error: "cannot assign null to anonymous type property"
};

var obj = new {
Value = (object)null //full of [...]

February 5, 2010   Posted in: c#  2 Comments

Reddit in 61 minutes and 97 lines of PHP

I read this article, about a guy who made a Reddit clone in 10 minutes in Clojure. He was inspired by this guy, who made a Reddit clone in Lisp in 20 minutes and a hundred lines.
I’m so sick of Lisp hackers. Functional programming is pretty awesome, but every single Lisp/Erlang/Haskell/Clojure/Emacs guy thinks Lisp is [...]

February 3, 2010   Posted in: php, rants  15 Comments