Disposable code

I have often been in situations where we decided to reuse existing code. Business people seem to think that reusing existing code is free. After all, this is the promise that paradigms like OO promised us. But in reality, retrofitting code for a new usage often proved nearly as costly, or even more...

Continue reading...

Debat tussen Richard Dawkins en Lawrence Krauss

Lawrence Krauss en Richard Dawkins

Op zaterdag 21 oktober was er een debat met Richard Dawkins en Lawrence Krauss, georganiseerd door Brainwash. Hieronder volgt een beknopte samenvatting.

Niet het begin van de vorige eeuw, maar de periode 1955-1975 was een baanbrekende periode voor de wetenschap. Is dat niet jammer voor Nederland...

Continue reading...

Decentralized Social Web

Sharing between offline computers

We create content all day. We take pictures, write comments on articles, or even the articles themselves. We save bookmarks, or press some like or heart buttons. Even if this content is of no value to anyone else, at least it is to ourselves. Still, we trust other parties, commercial ones, with servers often in other countries, to give us back our content any time of the day with the click of a button. Even if they want to, they may not always be able to do so. In my previous post I wrote that we put too much trust in the internet.

Would it not be nice if all this content was on our own computer hardware, that we could easily categorize and search it, and share copies with our friends? I would like to share some ideas that I have to make this technically possible, so this is going to be a technical article for that reason.

Continue reading...

What would we do without internet?

Internet broken

What would we do if an attempt by hackers or an enemy state to take down the internet would succeed? Even though the internet is essentially a huge decentralized network of cables, the DNS structure is not so decentralized and has already been target of attacks. Even this week, a distributed attack on Dyn's DNS caused many US visitors unable to reach popular sites like Twitter and Github.

There are also governments that censor sites like Twitter and Google for political reasons. People have a natural wish to share information, and this question is really about how this can be facilitated when common social network sites are down.

Continue reading...

Surrounding code with common logic in Scala

A common programming need is to surround repeating logic around varying use cases. For example, all database actions need to be in a transaction, which should also roll back the modifications in case of an error.

I tried to see if I could write a generic function that could be used as easily as this:

transactional {
Continue reading...