Thursday, December 29, 2011

AndEngine games

Nice collection of Android puzzle games built on top of AndEngine: http://www.andengine.org/blog/

Sunday, December 18, 2011

Sunday, December 11, 2011

Friday, October 21, 2011

Sunday, August 28, 2011

AutoFixture

AutoFixture makes it easier for developers to do Test-Driven Development by automating non-relevant Test Fixture Setup, allowing the Test Developer to focus on the essentials of each test case.


http://autofixture.codeplex.com/

Mark Seemann's demo from NDC2011: http://ndc2011.macsimum.no/mp4/Day3%20Friday/Track7%201500-1600.mp4

Wednesday, August 24, 2011

Tuesday, August 16, 2011

Jon Skeet and Tony the Pony

Wonderful talk about the complexities of software:


Jon Skeet and Tony the Pony from Carsonified on Vimeo.

Friday, July 22, 2011

4 nice ways to automate Test Runs in .NET

So far I've found the following convenient ways to run tests:

Using the Resharper plugin

This allows right clicking next to a Test method and selecting Run or Debug.

These two actions and a lot more can also be bound to keyboard combinations. My favourite are CTRL+' for Debug Test and CTRL+SHIFT+' for Run Test


Using the Testdriven.NET plugin

Testdriven.Net has a very nice twist: it not only allows running Test methods. It also allows running any method that is currently selected (the pointer is somewhere inside the body of the method). The only condition  for this to work is that the method must be either static or be defined inside a class that has a default (parameterless) constructor.
Note that if that method to run takes any parameters, TestDriven.Net will pass default values for them (null for reference types, default for value types).

I typically bind the CTRL+Q keystroke to running the current method with TestDriven.Net

Using the NUnit Test Runner

This one is especially useful when doing TDD: after loading an assembly in the NUnit test runner, go to the Tools -> Settings -> Assembly Reload and check all three boxes: 'Reload after each test run', 'Reload when test assembly changes' and 'Re-run last tests run'.

Now whenever you do a build, the assembly is automatically re-loaded in the runner tests are run for you.

Using the NUnit Test Command-line utility

The NUnit command-line test runnning utility can be plugged-in as a Post-Build event (set this up in the .NET Project configuration).

This way, each (successful) build will trigger a test run for the whole assembly.

Obviously, even if the code compiles, failing tests will fail the build (the NUnit test runner will return an error code).

Sunday, July 17, 2011

The God Complex

Very inspiring talk about trial-and-error.
One concept described by Tim resembles the way Genetic Algorithms work.


Wednesday, July 6, 2011

Wednesday, June 22, 2011

The Transformation Priority Premise

  • ({}–>nil) no code at all->code that employs nil
  • (nil->constant)
  • (constant->constant+) a simple constant to a more complex constant
  • (constant->scalar) replacing a constant with a variable or an argument
  • (statement->statements) adding more unconditional statements.
  • (unconditional->if) splitting the execution path
  • (scalar->array)
  • (array->container)
  • (statement->tail-recursion)
  • (if->while)
  • (statement->recursion)
  • (expression->function) replacing an expression with a function or algorithm
  • (variable->assignment) replacing the value of a variable.
  • (case) adding a case (or else) to an existing switch or if

ShowMyCodeDecompiler

Online decompiler for SWF, Java, .Net: http://www.showmycode.com/

Flash Cards: T-P Premise

TPP Movie from NDC 2011: http://ndc2011.macsimum.no/mp4/Day1%20Wednesday/Track5%201740-1840.mp4

http://cleancoder.posterous.com/the-transformation-priority-premise

http://madcoderspeak.blogspot.com/2011/02/flash-cards-kata-and-transformation.html

http://cleancoder.posterous.com/flash-tpp