Today I am part of the “Leaders of Tomorrow Symposium” at SANER 2016. I got to present my past and future work (I’ll add a link to the talk here later, it will be on YT) but I was also asked to give some tips to aspiring future leaders, by answering the question: So here […]
A tale on testing [Desiderius part #12]
Last week I wrote a post on transforming the playing logic from C# to F#, and, I admit it, I testing neither. In my defense: I was in a hurry 🙂 So, I added a few tests now, and what do you know? First test, first bug found! In a previous post I talked about on transforming an […]
Feedback on Desiderius [Desiderius part 11b]
I got me some feedback! Who knew, after 11 posts, people starting reading my posts and tweeting me feedback and ideas. @Felienne in F# can you do ` List.sortBy (helper.getRank) hand` instead of `List.sortBy (fun x-> helper.getRank(x)) hand`? — Daan van Berkel (@daan_van_berkel) March 6, 2016 Turns out, you can! That makes my code a bit […]
Playing in F# [Desiderius part 11]
Last week I reluctantly shared the ugle initial C# version of my simple playing AI “nextCard”. Today, let’s look at the nicer version. One of the first things I did in F# was make getSuit and getRank helpers: let getSuit (c: Desi.Card) : Desi.Suit = match c with | Desi.Card (s,r) -> s let getRank (c: […]