Tag Archives: functional programming

Object Functional Paradigm – Subsume the Strategy Pattern


inspired by quote from Venkat Subramanium in his book “Functional Programming in Java 8”.
“The common, familiar design patterns are more approachable when we design with lambda expressions; we need fewer lines of code, classes, and interfaces, and far less ceremony to implement our designs.”
Other inspirations are Dhaval Dalal who lately got us introduced to Functional Programming. And lastly Naresh Jain whose Object Boot Camp provoked a thought of building a good habit of writing Blogs for our own good.

https://innovativegirish.wordpress.com/2015/04/29/java-8-functional-programming/

Elegant Factory using Functions as first class citizens


The main intent behind a Factory pattern described generically is to  “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclass.” Factory pattern is one of the commonly applicable pattern […]

https://innovativegirish.wordpress.com/2015/05/05/elegant-factory-using-functions-as-first-class-citizens/

Elegant Factory using Functions as first class citizens


The main intent behind a Factory pattern described generically is to  “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclass.” Factory pattern is one of the commonly applicable pattern […]

https://innovativegirish.wordpress.com/2015/05/05/elegant-factory-using-functions-as-first-class-citizens/

Functional Programming in Java 8 with Javaslang


We’re very happy to announce a guest post on the jOOQ Blog written by Daniel Dietrich, Senior Software Engineer at HSH Nordbank, husband and father of three. He currently creates a pricing framework for financial products as project lead and lead developer. Besides his work, he is interested in programming languages, efficient algorithms and data […]

http://blog.jooq.org/2015/05/13/functional-programming-in-java-8-with-javaslang/

OS-X and F# [Clone It, Build It, Install It, Hack It]


Ok.
Mission: Get F# running on OS-X and executing via repl.

http://compositecode.com/2015/05/07/os-x-and-f-clone-it-build-it-install-it-hack-it/

Sorting part 1


I think that sorting algorithms are good starting point in learning programming. So let’s look how to implement sorting in F#. On fsharpforfunandprofit page we have a great example of how to implementing quicksort. The code is so compact! Just look at it: In this example we are partition list by by the first element. But […]

http://mikemodzelewski.com/2015/07/03/sorting-part-1/

Sorting part 2


Now let’s try to implement some other sorting algorithms. Let’s start with selectsort. We have a list of elements that we want to sort. We can divide it into two parts, sorted and unsorted.  In selectsort in each step we have to select smallest element from the unsorted part of the list and put it […]

http://mikemodzelewski.com/2015/07/05/sorting-part-2/