F# Bloggers

Blog articles of F# Bloggers

0
comment
on 2/8/2015 11:35 AM
In this post, we are going to test the escaped concact/split functions that we implemented last time. Along the way, it will become apparent why F# is an ideal language for writing .NET unit tests. These are the signatures of the two F# functions to be tested: val concatEscape : esc:char -> sep:string -> strings:seq<string> -> string val splitUnescape : esc:char -> sep:string -> string:string -> seq<string> Seen from C# (e.g., in Visual Studio's object browser), the signatures would look like this: public [...]
>> Read the full article
.
0
comment
on 2/7/2015 7:01 AM
I attended the first London meetup group for the D programming language last week with my friend David.  Near the end we had a chance to try and solve a cool programming problem called the secret santa challenge. disclaimer – I am a complete D 'lol newb' so there might be nicer stuff I could do with syntax etc!  Also I have not yet fixed my syntax highlighter to include auto, mixin, assert, and others The Challenge The secret santa problem is deceptively simple.  You are given a list of names like so. enum[...]
>> Read the full article
.
0
comment
on 1/24/2015 8:06 AM
Je kunt F# op verschillende manieren gebruiken, waaronder het “Exploratief Programmeren”. Wie wel eens een SQL query heeft geschreven in een Database tool, heeft al eens aan “exploratief programmeren” gedaan. Eerst maak je een query, daarna run je deze, vervolgens controleer je de resultaten, en daarna blijf je sleutelen totdat de query teruggeeft wat je wilt. Dat snelle actie-correctie programmeren is dus exploratief programmeren, en dat kan ook in F#, via de F# Interactive. In Visual [...]
>> Read the full article
.
0
comment
on 1/22/2015 2:28 PM
Following up from @isaac_abraham’s awesome F# Enigma machine emulator, I decided it would be 10x cooler if it was in a type provider, because let’s face it, everything is 10x cooler once it’s in a type provider. Here a some pictures of it in action! As you can see, it uses an extensive property system that presents a menu along with the various controls to setup your enigma machine, and then finally to translate some text.  This TP is written with my InteractiveProvider as per usual.  On my first attempt[...]
>> Read the full article
.
0
comment
on 1/17/2015 7:17 AM
Somewhere in 2011 I started a game with the working title “Three is a Crowd” (TIC for short). The game is a version of Reversi, but now for three players. The main goal of creating this game was: learning and using new technologies, keeping my tech-knowledge up-to-date. In that respect, it reflects my personal interests. TIC was originally written in C#. At some moment I was interested in a better way to write the AI, and that started me on learning F#. Quickly I came to the conclusion, th [...]
>> 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