I’ve decided to learn Haskell, and I’ve also decided to make all the horrible Haskell that I write publicly available over on github.
So far there’s some stuff from Learn You a Haskell, some Euler problems and a pretty terrible implementation of Tsuru’s code sample/challenge thing.
Snap is a great Haskell web framework, and thanks to the magic of cabal it’s easy to get going.
However, for some reason it’s not added to ~/.cabal/bin meaning that it won’t be in your path. I found my snap executable hiding ~/Library/Haskell/bin and adding that to PATH made everything work swimmingly.
A few months ago I shared the logging code that I use in a side project. I’ve been writing to stdout during development but today I found myself aching for something that can write to files reliably. I took a look at a lot of the .NET logging libraries and was very turned off by [...]
I’m currently working on a fairly large F# project and I wanted something that would make logging nicer than the typical .NET String.Format. The code is on GitHub.
Usage is pretty straightforward:
log Error “Error retrieving record for %A. Exception: %s” item exc
You can use whatever you want [...]
Parsing XML on .NET is quite easy especially with XPath and LINQ. However both of those were designed for use in C# and VB.NET and while perfectly functional and efficient they look slightly weird (at least to me) when used in F#.
In contrast, Scala ships with excellent XML support baked-in which is probably my [...]
I am a big fan of F#. It’s a functional language that targets .NET and as such gives you the best of both worlds. One of my favorite things is the pipeline operator |>. For those unfamiliar it is defined something like:
a |> b = b a
That is, given a value a and [...]
I’ve decided to start a blog since it seems that all the cool kids are doing it. Most of the content will focus on F# and possibly Ruby (on Rails) since that is what I use for my side projects.
