Archive for the ‘Delphi’ Category

Project Euler, Problem 6

Inspired by my brother over at geekality.net, I thought I should do an attempt on the various problems presented at projecteuler.net/.  Since he already solved the first five, I jumped right in at problem 6:

The sum of the squares of the first ten natural numbers is,
12 + 22 + … + 102 = 385
The square [...]

Posted on September 22, 2009 at 22:40 by Vegar · Permalink · 4 Comments
In: Delphi, Development · Tagged with: 

Running FitNesse tests from the command line

Using FitNesse to write and run test is nice, but sometimes you want to run the tests as part of an automatic build cycle. FitNesse has this possibility, and fit4delphi comes with a testrunner that makes it possible with delphi code as well.

Posted on September 12, 2009 at 00:52 by Vegar · Permalink · Leave a comment
In: Delphi, Development · Tagged with: ,

FitNesse + Delphi –> Fit4Delphi

I have been thinking about FitNesse for a couple of weeks now. It seems to be near to perfect for testing the type of code that I’m currently writing. A lot of calculations with a lot of rules, odd cases and exceptions. So I finally started to check it out, to see if it is [...]

Posted on August 24, 2009 at 15:59 by Vegar · Permalink · Leave a comment
In: Delphi, Development · Tagged with: ,

DUnit: Loading tests from dll’s

I wanted to split all my unittests for a project into separate packages to keep tings nice and clean. DUnit comes with a unit called TestModules.pas which helps you do that.

Posted on August 21, 2009 at 16:21 by Vegar · Permalink · One Comment
In: Delphi, Development · Tagged with: , ,

TDD, Unittesting and Delphi

Lately, I’ve been trying to learn TDD. In this post, I will collect the resources that I find.

Posted on August 14, 2009 at 13:04 by Vegar · Permalink · Leave a comment
In: Delphi, Development · Tagged with: , ,

1st particle-challenge: Getting something unto the screen

A couple of days ago, I took a challenge to show that making a particle engine is not that hard. I also stated that the first part of the challenge would be to get something unto the screen, and that is as far as I have come. I have enough code to emit particles unto [...]

Posted on July 10, 2009 at 15:15 by Vegar · Permalink · One Comment
In: Delphi, Development · Tagged with: , ,

The “Particle-engines-ain’t-that-hard’-challenge

The other day, a colleague and I where looking at a cool application, Machine Flow. It’s a visual development environment and interpreter for the programming language Machine Flow. The language it self is defined by small lua-scripts, which you visually connect together. The running of the program is illustrated by small marbles carrying data [...]

Posted on July 8, 2009 at 17:35 by Vegar · Permalink · Leave a comment
In: Delphi, Development · Tagged with: , ,

Ownerdrawn menus in Delphi

Just when I was thinking that what this blog really needed was some content, an old article that I wrote for delphi.about.com was pulled out unto the frontpage again. It was written back when Office 2007 was still in beta, but the principles of owner drawn components should still be the same.
You can take [...]

Posted on June 5, 2009 at 13:52 by Vegar · Permalink · Leave a comment
In: Delphi