~/devreads

#design-patterns

4 posts

21 Jan 2019

Luciano Mammino 14 min read

This article explores different ways to create iterators and iterable values in Javascript for dynamic sequence generation, specifically using functions, iterators, iterables and generators. It provides code examples for implementing the Fibonacci sequence with each approach.

javascriptnode-jsdesign-patterns

11 Nov 2018

31 Jul 2016

4 Jul 2016

lukaseder 1 min read

A recent article about various ways to implement structural pattern matching in Java has triggered my interest: http://blog.higher-order.com/blog/2009/08/21/structural-pattern-matching-in-java The article mentions a Scala example where a tree data structure can be traversed very easily and neatly using Scala’s match keyword, along with using algebraic data types (more specifically, a sum type): Even if you’re not … Continue reading How Functional…

javajava 8design patternsfunctional programminggof