Archive for the ‘Functional programming’ Category:

Spell checking with F#

{ Posted on Jan 25 2010 by claudio }
Some months ago I have written an introductory article on F# for the "IoProgrammo" magazine (sorry, Italian only!) and now I have published a second article on the latest issue of the same magazine. This new article covers more advanced topics ...Read More »

Functional programming interview question

{ Posted on Aug 26 2009 by claudio }
I think that examining the hiring process of a company you can understand a lot of what would be working there. As Joel Spolsky wrote, you should only hire people who are Smart and Get Things Done and a good way ...Read More »

F# introductory article on IoProgrammo magazine

{ Posted on Jul 21 2009 by claudio }
If you understand Italian, you may be interested in reading an introductory article on F# I wrote for the most important Italian programming magazine called "IoProgrammo" and that was published a few days ago in the August issue. The article covers ...Read More »

Merging arrays

{ Posted on Jun 13 2009 by claudio }
Thanks to interviewpattern.com I discovered that one of the classical Amazon interview questions is writing a snippet of code to merge two sorted arrays: "Suppose we have two sorted arrays A[] of m elements and B[] of n elements. Write a ...Read More »

Luhn algorithm in F#

{ Posted on Apr 15 2009 by claudio }
The Luhn algorithm is a simple error detection formula based on the modulus operator which is widely used to validate credit card numbers or Canadian Social Insurance Numbers. This checksum function can detect any single-digit error and operates verifying the number ...Read More »

Brainfuck interpreter in F#

{ Posted on Feb 12 2009 by claudio }
Brainfuck is an esoteric programming language whose grammar consists of only eight commands, written as a single character each. Besides this minimalistic structure, the language is Turing-complete but writing (and reading) Brainfuck code is very hard. The Brainfuck machine uses a finite-length ...Read More »

Facebook FizzBuzz

{ Posted on Jan 23 2009 by claudio }
Have you ever tried looking for "FizzBuzz" on a search engine? If you do, you'll surely land on this page on Coding Horror, the blog written by Jeff Atwood. To make a long story short, Jeff states that the vast majority of ...Read More »

Random testing in F# with FsCheck

{ Posted on Dec 28 2008 by claudio }
One of the emerging trends in software development is TDD or Test-Driven Development, a methodology based on writing tests first and then coding in order to pass the tests. Besides unit testing libraries inherited by the .Net Framework, F# can now ...Read More »

Implementation of RSA in F#

{ Posted on Dec 01 2008 by claudio }
During my university course I had to learn and use two functional programming languages: Haskell and Scheme. I fell in love with the former but I never managed to do the same with the syntax of Scheme and the incredibly ...Read More »

F# September CTP released!

{ Posted on Aug 31 2008 by claudio }
F# development has finally reached CTP (Community Technology Preview) release and this actually makes F# a first-class citizen in the .Net ecosystem. Don Syme himself made this important announcement on his blog, where he describes some of the major improvements, that ...Read More »