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 [...]
In: Delphi, Development · Tagged with: Euler
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.
In: Delphi, Development · Tagged with: Fit4Delphi, FitNesse
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 [...]
In: Delphi, Development · Tagged with: Fit4Delphi, FitNesse
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.
In: Delphi, Development · Tagged with: Delphi, DUnit, TDD
TDD, Unittesting and Delphi
Lately, I’ve been trying to learn TDD. In this post, I will collect the resources that I find.
In: Delphi, Development · Tagged with: Delphi, TDD, UnitTesting
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 [...]
In: Delphi, Development · Tagged with: Challenge, OpenGL, Particle
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 [...]
In: Delphi, Development · Tagged with: Challenge, OpenGL, Particle
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 [...]
