Ross McKinlay's blog articles

0
comment
on 7/13/2012 7:10 AM
It’s been forever since I last posted, I worked quite a bit on PezHack and then stopped for a while.  I’m back to it now.  In this post I will describe a technique I used to greatly reduce the amount of code and abstract away some repetitive imperative code. The Problem PezHack is a turn based game. The screen does not re-render itself all the time like a real-time game, but only when something changes and at the end of a the player’s turn.  The agent-based approach I used to separate the various sub syste[...]
>> Read the full article
.
0
comment
on 4/24/2012 4:37 PM
Introduction In my quest to learn the functional paradigm, one thing I have struggled with is game development. Assuming I mostly stick to the functional style of having little to no mutable state, how do you go about writing games? Games are pretty much ALL mutable state. Obviously, in a multi-paradigm language like F# you can have mutable state - and if used judiciously this can be very effective (not to mention offer some significant performance improvements). The blend of imperative and functional styl[...]
>> Read the full article
.
0
comment
on 4/24/2012 10:18 AM
I’m sure every seasoned .NET developer has been in the situation at one stage or another, probably in testing code, where they need to access a non-public setter of a property (or maybe a private member), and it can’t be mocked.  We all know the (somewhat scary) reflection trick to get at the said setter method and invoke it.   I just hit this problem today trying to mock some response messages from a Microsoft Dynamics XRM 2011 OrganizationService.  Thankfully F# gives us cool things like Quotations and s[...]
>> Read the full article
.
0
comment
on 2/15/2012 7:13 AM
In this article we will discover how to emulate simple logic gates, and then build them up to form more complex circuits.  By the end of this 2-part article we will have created: - Half-bit adder - Full adder - n-bit ripple carry adder formed from full adders - 4:1 line decoder - 4:1 multiplexer - 1 bit ALU that supports addition, subtraction, AND and OR operations - n-bit ALU formed from 1 bit ALUs I have a great love of electronics, and everything covered in this article I have at some point built from[...]
>> Read the full article
.
0
comment
on 2/12/2012 5:14 AM
Intro I have been using F# for a year and a half or so now for all sorts of things - general tools, scripts and utilities for work,  XNA games / graphics / AI simulations, some async layers for rx-driven silverlight applications  and so forth.  I'm still pretty new to the functional paradigm, which I have been embracing (with a great deal of mind melting, and destruction of my OOP and procedural shackles). One thing I struggled with initially was the subject of function composition, and its relationship to[...]
>> 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