Carsten Koenig's blog articles

0
comment
on 3/10/2015 9:52 AM
(TL;DR: Intro to the reader-monad in F# for dependency-injection – see the source) intro: the problem Let’s say you have a function f that needs an object implementing some interface to do it’s work. a dirty solution (not advised) Another solution that can work is to make the dependency a mutable part of your defining […]
>> Read the full article
.
0
comment
on 3/10/2015 4:33 AM
I just stumbled upon a blog-post where Mittal Patel solved this little puzzle using PHP: 100 people standing in a circle in an order 1 to 100. No. 1 has a sword. He kills next person (i.e. no. 2) and gives sword to next to next (i.e no. 3). All person does the same until […]
>> Read the full article
.
0
comment
on 3/5/2015 12:30 AM
This is a outline of how you can setup a simple RESTlike client/server communication using WebAPI and Restsharp. As you will see F# records are great for this: equality out of the box, read-only by default but still nicely serializeable. I hosted the code on github for your convenience and the rest of the post […]
>> Read the full article
.
0
comment
on 3/3/2015 11:07 PM
Just a quick follow up on yesterdays post on Monoids. Maybe you did not like the way the structure of the monoids was passed around using a simple record and indeed there is a way to define the Z and ++ as generic operators by exploiting Statically Resolved Type Parameters in F#. As far as […]
>> Read the full article
.
0
comment
on 3/3/2015 7:54 AM
A Monoid is one of the most basic algebraic structures that has many instances and applications in computer science and (functional) programming. And despite it’s scary mathy name it’s really easy to grasp and you are using them already! first example A typical example of a Monoid for functional programmers are lists over some type. […]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper