Exercises in Programming Style–Aspects

Exercises in Programming Style–Aspects

Tweet NOTE : read the rest of the series, or check out the source code. If you enjoy read­ing these exer­cises then please buy Crista’s book to sup­port her work. Fol­low­ing on from the last post, we will look at the Aspects style today.   Style 18 – Aspects You may also know this style as Aspect-Oriented

Exercises in Programming Style–Reflective

Exercises in Programming Style–Reflective

Tweet NOTE : read the rest of the series, or check out the source code. If you enjoy read­ing these exer­cises then please buy Crista’s book to sup­port her work. Fol­low­ing on from the last post, we will look at the Reflective style today.   Style 17 – Reflective We’re now officially at the halfway mark in

Exercises in Programming Style–Introspective

Exercises in Programming Style–Introspective

Tweet NOTE : read the rest of the series, or check out the source code. If you enjoy read­ing these exer­cises then please buy Crista’s book to sup­port her work. Fol­low­ing on from the last post, we will look at the Introspective style today.   Style 16 – Introspective This marks the start of a couple meta-programming related

Upcoming user group talks in UK

Upcoming user group talks in UK

Tweet Just a quick note to say that I’ll be doing a couple of F# talks at user groups around the UK, so if you happen to be in the area at the time do come by and say hello.   Feb 3rd, 6:30pm, London BCS (near the Strand) 7 ineffective coding habits many F#

Project Euler — Problem 83 Solution

Project Euler — Problem 83 Solution

Tweet The problem description is here, and click here to see all my other Euler solutions in F#.   This is a more difficult version of problem 82, and now you can move in all four directions! As before, we start by loading the input data into a 2D array: and initialize another matrix of the

Project Euler — Problem 82 Solution

Project Euler — Problem 82 Solution

Tweet The problem description is here, and click here to see all my other Euler solutions in F#.   This is a more difficult version of problem 81, but still, as you can’t move left so we can still optimize one column at a time. First, let’s read the input file into a 2D array: