Code Reuse with the SqlProgrammabilityProvider

In the process of creating a web service backend for a large web application for Diamler I've come across a few patterns that allow me to provide functionality without bloating my codebase. As the application is largely data driven one of my favorite patterns involves using the SqlProgrammabilityProvider and optional

Continue reading...

F# Card Game Part 2 - Dealing Cards

In part one of this series we walked through modeling the domain of our card game. In this post we'll use that domain as a guide to help us create a deck, shuffle the deck, and deal cards from the deck. Creating the deck There may be more elegant ways

Continue reading...

F# Card Game Part 1 - Modeling the Domain

This is the first post in a series where we'll walk through creating the card game Crazy Eights in F#. Playing cards are a fairly well known domain and, despite the name, Crazy Eights is quite easy to understand. In this post we'll walk through modeling the domain. Modeling our

Continue reading...

Understanding Discriminated Unions from Enums

When I started learning F# I had a hard time grokking how and when to use a Discriminated Union (Sum type). I had experience in several paradigms and languages, but had never seen or used this data construct. In this article we'll start with an Enum and then work our

Continue reading...

How to: Example F# application with functional flow

In a previous post on F# data access I dropped a hint about a functional way of handling invalid arguments. The code in question looked like this. let insertLocation city state = if state |> String.length >= 2 then DataAccess.createLocation city state else raise (System.ArgumentException("Not a valid

Continue reading...
Proudly published with Ghost