C#

Quick Post: Easy Enums

On any engineering team, it’s sometimes difficult to agree on best practices. Everyone has different ideas of good style, consistency, etc. But there’s one thing we’ve reached consensus on: enums. Here is what our best practices say an enum definition should look like (keep in mind, this is only for int valued enums): public enum […]

More

C# Musings…

I had a few ideas for C# constructs, so I thought I might as well write them down. Perhaps, some day, someone can tell me why these don’t exist… Making Generics More Generic Several times I’ve been frustrated by the fact that Func<TResult> has a bunch of variants. Wouldn’t it be cool it you could […]

More

Earthican Shader

In my previous post, I described a process for generating terrain on a spherical mesh. As the screenshot showed, the algorithm worked pretty well to give you a lumpy looking planet or asteroid. But– what if you want it to look like Earth? Green continents, blue water? You know the Earth I’m talking about. Well here’s […]

More

Book Review: Effective C#

It’s a fact that there are just too many crappy technical resources out there. It’s also a fact that there are probably too many good ones to read in any one lifetime (I’ve still only made it through book one of Euclid’s Elements— and, embarrassingly, I’ve never even started my copy of Principia Mathematica). Anyway, I […]

More

Geosphere: Revisited

Update: At long last, the SO answer has been found! Added a link. Lately I’ve been shrinking my goals so that I can actually reach them. I mean, I’d rather have fifty small projects that have all been completed than ten large ones that haven’t (you wouldn’t believe how many things I have 90% completed […]

More