Quantcast
Channel: Erlang, Testing and TDD » gianfrancoalongi
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 1

History – Perl, Ericsson and late evenings This series of posts will go through the design, testing and implementation of a distributed Worker-Net (something that I saw/implemented @Ericsson AB in 2009...

View Article



Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 2

This part will focus on the file layer, the layer responsible for file storage and file retrieval.  I will once again express the desired functionality as so called stories, each story should capture...

View Article

Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 3

The third part will unveil the job layer, the part of the Worker Net “stack” that handles the jobs of the network.  Just as before, it is easy to express the functionality through stories. “I want to...

View Article

Image may be NSFW.
Clik here to view.

Erlang peculiarities

While working on my WorkerNet post, I stumbled across a weird behaviour with start_links, trap_exit and slave nodes. Long Story (sorry, there is no short one) As I was setting up a distributed test...

View Article

Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 4

Continuing the job layer which had a whole lot of stories – we will now device and flesh out the test & implementation sets. A word of warning first, the following test looks simple by design, but...

View Article


Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 5

Last time we left of, there was no real proof that the jobs are being processed one and one in the order they are queued. In order to prove that and satisfy the story “Several jobs should be queued on...

View Article

Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – WorkerNet part 6

In the previous post, two tests where introduced – one of them to design and test the API for job cancelation – for this, proper per-type queueing was needed. So a queueing test was introduced. new...

View Article

Image may be NSFW.
Clik here to view.

Erlang TDD hands on project – part 7

This evenings entertainment is “Once a job is done, the result should be stored in the file layer,  together with the logs.“ A new test needs to be devised to prove the result is stored in the file...

View Article


Image may be NSFW.
Clik here to view.

Erlang TDD hand on project – WorkerNet part 8

Last story to play  on the workernet job layer, “I want to be able to delete a job once it’s done, through any node.” To design this – the test is written first (as usual) done_job_deleted() ->...

View Article


Image may be NSFW.
Clik here to view.

“Weekly” exercise problems on GitHub

So, it was a while ago that I posted anything here, mostly because my eye or sauron has been fixed upon other stuff (me and my wife bought a flat, Bash and APL), but also because I am trying to build...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images