jlouis
30. december 2011 - 20:00

Programs of a certain size are complex. As long as the program is written by a single programmer and is fairly small, say under 1000 lines of code, then everything is easy. The programmer can keep the whole program in the head and it is easy to do stuff with that program. If on the other hand the program grows in size or we add more programmers, then we can't rely on the singular knowledge of a programmer.

jlouis
18. december 2011 - 21:39

Introduction

 

The unit test is the lowest common denominator. We can use them, but they are cumbersome and they only peek once into the fabric of our work. A better solution for many tasks, namely Property Based Testing exists for Erlang. This post is an example of how to use the statem type of test, mainly because there are so few of these out there. The outset is this: We will randomly generate operations on a priority queue and then validate that these operations are correct according to a simpler model.

 

svrist
14. december 2011 - 16:01


Me and my bike

I bike – alot. Training for triathlon and now also a 2x16km commute every day. Most of that time I listen to podcasts. For the toughest workouts I might switch to music, but most often I really enjoy the podcasts.

loldrup
29. november 2011 - 19:58

Det skal være nemt for folk at slukke for strømmen efter sig, når de går. I dag har den adfærd tre udfordringer:

1. Man skal gå rundt til de enkelte enheder og slukke for dem.

2. Man skal overveje hvilke enheder der må slukkes og hvilke der skal stå tændt hele tiden.

3. Hvis man slukker en enhed ved at bruge enhedens egen funktionalitet til dette, sker det tit at enhedens strømforsyning forbliver tændt. Meget tit.

Disse tre problemer kan løses således:

Simon Shine
17. november 2011 - 17:18

Når du studerer datalogi, som er en fem-årig akademisk uddannelse, er du måske indstillet på at det at lære en computer at kende tager mere end den tid de billigste dummy-bøger foreslår, og studerende som lige har afsluttet kurset IP vil måske tilmed nikke til at 7 uger også er lige kort nok.

Sebbe
26. oktober 2011 - 11:50

A Hasse diagram generated in Mathematica.

A Hasse diagram generated in Mathematica.

jlouis
23. oktober 2011 - 18:00

A common problem in concurrent systems is the following: events fire from all places all the time and you have no direct control over when and why events fire. Thus, to figure out problems one can often make use of a sequence diagram like this one (thanks Wikipedia):

brainfuck
16. oktober 2011 - 0:11

Having realised Mr Simon Shine's attempt to ruin my good name by turning it into a drinking game, I have decided to return the favour and give him some of his own medicine. Although, I must admit, I did not realise vegetarians were allowed to have fun. Aren't they supposed to walk around constantly feeling bad for the animals that died? And what about the yeast in beer? Isn't that A LIVE?!

Any way, the drinking rules with Simon Shine is very simple and straight forward, even if it is played over numerous days.

Simon Shine
14. oktober 2011 - 19:11
Introduction

Brainfuck is an esoteric programming language originally invented as a Turing-complete language suitable for making really small compilers. There are only eight instructions in the language, and two of these are not strictly necessary. The rest map nicely onto a die.

Let me give a quick overview of the Brainfuck virtual machine: There are 30,000 memory cells of unsigned bytes (values 0 to 255) initialized to 0.

Dantedja
11. oktober 2011 - 11:29

Billedet siger alt.