Monthly Archives: February 2018

FP – Designing multi threaded and concurrent enabled software with functional programming

Modern CPU architecture has been enforcing me to create multi-threaded and concurrent enabled software. I have been creating multi-thread software with Gang of four design principal but this design principal didn’t show me the best way on creating high scalable … Continue reading

Posted in Functional Programming, Programming | Leave a comment

FP – Relationship between Applicative Functor and Monad

Applicative Functor has the following two properties. Pure: create a functor from value. Apply: a function taking arguments which are a Functor having a function and a Pure. This function will return the Functor after applying the function inside the … Continue reading

Posted in Functional Programming, Programming | Leave a comment

Java – Open addressing hash implementation in Java

IdentityHashMap class

Posted in Java, Programming | Leave a comment

Java – headMap, tailMap and subMap in NavigableMap

NavigableMap collection on Java provide methods to return the view of Map on sorted order of key. The most common methods are headMap, tailMap and subMap. headMap example. output If inclusive is true on calling headMap(“3”, true), it will be … Continue reading

Posted in Java, Programming | Leave a comment