David Raab · Blogging about programming

null is Evil

comments
Tony Hoare once said: I call it my billion-dollar mistake. It was the invention of the null reference in 1965. So, why did he added "null" in the first place? Why was it such a big mistake. And if it is such a big mistake, what are the alternatives? The...

Continue reading ...

Understanding Immutability and Pure Functions (for OOP)

comments
One important concept in functional programming is immutability. But also in object-oriented programming immutability and so called immutable objects getting more attention. The problem that I see especially from object-oriented programmers are really bad explanations. A lot of explanation I had see described it like this: Just create a class...

Continue reading ...

Introduction to F#

comments
When I remember the first time I looked at functional(-first) languages like F#, ML, Haskell and others. The typical reaction that I had, and I always see from other people is: This is unreadable, it must be hard to read, it feels complicated and hard. After spending some time in...

Continue reading ...

Applying Structured Programming

comments
In my previous post about Structured Programming I talked about that basic looping constructs, fold and so on are basically just still to powerful. In the sense of readability we should try to eliminate them with more specific ones. In this post i go through a toy example to show...

Continue reading ...

Structured Programming

comments
Back in 1968 Edsger W. Dijkstra wrote an open letter named "Go To Statement Considered Harmful". As already suggested from the title, the very idea was to raise consciousness that the goto statement is more harmful then helpful. From today view we would expect that this idea catches fire really...

Continue reading ...