Skip to content

Instantly share code, notes, and snippets.

@mausch
mausch / gist:6774627
Created October 1, 2013 06:37
Applicative validation is simple.
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
// As opposed to magic validation libraries that rely on reflection and attributes,
// applicative validation is pure, total, composable, type-safe, works with immutable types, and it's easy to implement.
public abstract class Result<T> {
private Result() { }
@ashic
ashic / gist:7371417
Last active December 27, 2015 18:39
C# vs F# 0MQ sync REP server
public class Server
{
private readonly NetMQContext _context;
private readonly string _id;
public Server(NetMQContext context, string id)
{
_context = context;
_id = id;
}
@JefClaes
JefClaes / gist:7428657
Created November 12, 2013 10:22
Can you guess which country this is about?
What happened here was the gradual habituation of the people, little by little, to being governed by surprise; to receiving decisions deliberated in secret; to believing that the situation was so complicated that the government had to act on information which the people could not understand, or so dangerous that, even if the people could not understand it, it could not be released because of national security.