Phillip Trelford's blog articles

0
comment
on 4/28/2013 3:53 PM
At the beginning of the month I gave a 30 minute talk at Cukeup!, an imaginatively named conference for the Cucumber community. The talk was titled Example.Examples,Examples: Talk about BDD and people often think about Given, When and Then. Mention Specification by Example and the focus shifts to tables. This talk will focus on the latter, showing the benefits of giving examples in tabular form for both collaboration and automation. Expect to see real-world scenarios from a trading system, and hear[...]
>> Read the full article
.
0
comment
on 4/28/2013 5:58 AM
A few years back I put together a simple Fractal Zoom in Silverlight using gray scales. Time for a little makeover with color: Hold down the mouse button over the Mandelbrot and move the mouse to highlight a rectangle, then release the mouse button to zoom in on that area. Implementation To get a nice colour progression I used the HSB color circle: let H,S,L = 0.95 + (10.0 * n), 0.6, 0.5 Then created a colour lookup table using a list c[...]
>> Read the full article
.
0
comment
on 4/24/2013 8:10 AM
Foq is a .Net mocking library with first class support for F# and a cool sounding name. After 9 public releases, Foq is now mature and stable at version 0.9. What started as a 6 to 8 week project ended up more like a half-year project. At this point, I’d like to say a big thank you for the great feedback from the community, and specifically acknowledge the help and support of Mathias Brandewinder, Vasily Kirichenko, Niklas Bergius and Neil Danson. Yesterday the first Foq question appeared on Stack Overflow[...]
>> Read the full article
.
0
comment
on 3/31/2013 2:25 PM
JavaScript is good, so JavaScript the good parts must be really good, so it follows that as part of JavaScript the Good Parts, prototypal inheritance must be really, really good. Some time ago while I was working on a supply chain management system for a large UK based department store I came across some interesting C# code, here’s an example:public class Customer : Address { } Unfortunately Clarence above has no address, but thanks to Homeless Hotspots he is a Mac address. A stark warning of the impli[...]
>> Read the full article
.
0
comment
on 3/28/2013 1:05 AM
F# 3 brings first-class support for LINQ Expressions, which makes working with libraries like Moq and FluentValidation easy. A while back I wrote about using Moq with F# 3 and introduced some extension methods to improve the experience for F#. I’ve created a small project called the Moq.FSharp.Extensions currently hosted on BitBucket (the library is about 50 lines of code in a single file), it is also available to download as a Nuget package. End extension One thing that was bugging me about using Moq i[...]
>> 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