Arkiv for kategori: ‘Politik’

« Forrige indlæg |

BDD: Implementation og tilbageblik

Thursday, July 24th, 2008

Nedenfor er vist min første implementation af kode i EconomyDeluxe:
using System;
using Domain.Interfaces;
using System.Collections.Generic;
using System.Collections;
public class GeneralLedger:IGeneralLedger
{
private Dictionary _accounts;
public GeneralLedger()
{
_accounts = new Dictionary();
}
public void AddAccount(ILedgerAccount account)
{
if (account == null)
{
throw new ArgumentNullException(”Null account supplied”);
}
if (!account.IsValid)
{
throw new ArgumentException(”Invalid account”);
}
if (_accounts.ContainsKey(account.AccountId))
{
throw new ArgumentOutOfRangeException(”AccountId is already present”);
}
_accounts.Add(account.AccountId,account);
}
public void DeleteAccount(ILedgerAccount account)
{
if (account == null)
{
throw new ArgumentNullException(”Null account supplied”);
}
if (!_accounts.ContainsKey(account.AccountId))
{
throw new ArgumentOutOfRangeException(”AccountId [...]

Political change? Jelved vs. Vestager

Friday, June 15th, 2007

Today, Marianne Jelved announced that she will no longer be the political leader of my political party. I’ve always liked her as her debating skills are far above many of her political competitors and I like her laid-back style. She tends to be dry and keep a level-headed attitude towards the debate at hand.
Luckily, this [...]

Free source code - too little time…

Saturday, June 2nd, 2007

As I recently joined StumbleUpon, some of my search-phrases is that I’d like to see software-related sites… Now, after having used the service for a few weeks, I’m tempted to turn those off. There is no doubt about it - there are literally tons of code available out there. Getting what you want or need [...]

« Forrige indlæg |