Mark Pearl

July, 2010

ACM South Africa

Today I stumbled across the ACM international collegiate programming contest for South Africa website. It looked like it had some interesting programming problems so it may be a useful reference of anyone wishing to pit their luck against university level CS problems.

F# int |> bigint

I had a bit of a no brainer yesterday… I have been using the forward pipe to convert values, and came up against the problem where the following code would work

June, 2010

C# Lambda and Predicate Basics

Okay… don’t judge me… I have been coding in C# for a few years now and up till the point that I got into F# I never used lambda’s. This last week I realized just how much I am using the lambda expression in F# and thought it was about...

F# – Put that in your pipe and smoke it |>

So I must admit, the first time I saw it I scratched my head and thought to myself, why will I ever use that? Several months since then and now I love the Forward Pipe (FP) in F#.

F# Euler Problem 6

Today I had a quick bash at problem 6. To me this has been the easiest of the problems so far. It is the first time though that I got to use the Seq.Fold function which was good to get exposure to. I am not to happy with my code...

Tech Support Secret Handshake - Fizzbuzz

I hope I spelt “Fizzbuzz” correctly, but I had a real laugh listening to Hansel Minutes Show 218 when Scott suggested that we have a secret password to give to Tech Support so that they know we aren’t idiot’s. I think it is a great idea…

F# FizzBuzz

As per the post I decided to do a F# attempt at FizzBuzz. It took a few seconds…

F# Euler Problem 5

So today I tackled a Euler problem that I had originally looked into several months back when I initially started exploring F#

F# - Euler Problem 4

The last few days I began to play around with problem 4 of Euler. I really enjoyed this problem since it dealt with a few functions in F# that I haven’t dealt with in the past.

F# Seq.Unfold

So I have been playing around with more Euler problems and I have found it a great way to learn some of the basic functions of F# and Seq specifically. The more I play the more I am really loving F# and how succinct the language is.

Yippy – the F# MVVM Pattern

I was listening to Dot Net Rocks show #560 about F# and during the podcast Richard Campbell brought up a good point with regards to F# and a GUI. In essence what I understood his point to be was that until one could write an end to end application in...

F# Project Euler Problem 1

Every now and then I give project Euler a quick browse. Since I have been playing with F# I have found it a great way to learn the basics of the language. Today I thought I would give problem 1 an attempt…

5 ways to stop code thrashing…

A few days ago I was programming on a personal project and hit a roadblock. I was applying the MVVM pattern and for some reason my view model was not updating the view when the state changed??? I had applied this pattern many times before and had never had this...

F# WPF Form – the basics

I was listening to Dot Net Rocks show #560 about F# and during the podcast Richard Campbell brought up a good point with regards to F# and a GUI. In essence what I understood his point to be was that until one could write an end to end application in...

Simple Mouse Move Event in F# with Winforms

This evening I had the pleasure of reading one of ThomasP’s blog posts on first class events. It was an excellent read, and I thought I would make a brief derivative of his post to explore some of the basics.

My Optimized Adam and Eve

Today I had a few minutes in the evening to go over my original Adam and Eve code… what I wanted to see tonight was if I could optimize the code any further… which I was pretty sure could be done. Ultimately what I wanted to find from the experiment...

F# – Immutable List vs a Mutable Collection in Arrays

Another day gone by looking into F#. Today I thought I would ramble on about lists and arrays in F#. Coming from a C# background I barely ever use arrays now days in my C# code – why you may ask – because I find lists generally handle most of...

See all posts by category...

Want to get my personal insights on what I learn as I learn it? Subscribe now!


/