Haskell walkthrough – II

Pattern matching in functions One of the big ideas in Haskell is to do pattern matching. Basically you match fn arguments against known patterns. Then you do something for each match. This is useful in breaking out the cases which need to be handled and avoiding big if/else. Example, here is a simple function: match … Continue reading Haskell walkthrough – II


Haskell Walkthrough – I

Started checking out Haskell recently. I chose the Learn you a Haskell for great good book as my guide. Language philosophy Purely functional, which basically means the following: No side effects: Function does one thing only. If you give it the same input it will give you the same output. Function always returns a value … Continue reading Haskell Walkthrough – I

Apache Kafka

Apache Kafka - a distributed messaging system. You can read all about in the design docs, so I am not going to repeat here. Looks very promising. Points worth noting: Simplicity of the approach. Leveraging HDD write semantics. An alternate approach to spending tons on $$$ on SSD. Highlights the importance of understanding the hardware we work with as Software … Continue reading Apache Kafka