C# Fun with Pexforfun

image

pexforfun is fun. Especially if you like writing code. It gives you a mental workout, teaches you programming smarts and has a lovely test driven, puzzle powered approach based on “Code Duels”.

You are set the task of writing a program that behaves in the same way as some “mystery code”. You type your code into the browser (you get intellisense support and everything) and then hit the “Ask Pex!” button. Pex then compiles your program and runs it against the test cases for that mystery code. If your program works you get bragging rights and then move on to the next puzzle. If your program fails you get to see which tests failed, so that you can refine your code for next time.  You can log into the system so that you can track your progress through the puzzles or you can just turn up and have a go, like I did.

I’ve just done one puzzle and really enjoyed it. I think we will be using pex during our first year programming labs at Hull, it really is a nice way to sharpen your C# skills. Find out more here:

http://www.pexforfun.com/