Become a member
Sign in
jooohn
jooohn

jooohn

37 Following
46 Followers
·
  • Profile

  • Claps

Latest

jooohn
jooohn
Jan 6 · 7 min read

2018 Retrospective

As my workday will start tomorrow, I want to look back what the last year was like for me, and think about this year a bit.

6

jooohn
jooohn
Jun 17, 2018 · 3 min read

Flexible polymorphism with type classes in Scala

Do you know what are type classes? Type classes are powerful tools to enable ad-hoc polymorphism. To achieve polymorphism, subtyping seems to be more popular in OOP, but it’s more common to use type classes in FP. I’ll explain how type classes…

4

jooohn
jooohn
Jun 11, 2018 · 3 min read

Why pure functions are so good

A pure function is a function which values are determined only by its input values without causing any side effects. Functional Programming is a programming paradigm which requires us not to cause any side effects in our program, thus pure functions are core build blocks of…

3

jooohn
jooohn
Jun 2, 2018 · 4 min read

What is Scala’s Nothing type for?

What is “Nothing”?

Nothing is a subtype of all types, also…

13

jooohn
jooohn
May 26, 2018 · 4 min read

Why foldRight is beautiful

In Scala, we can use foldLeft and foldRight methods for collection types like List. Both methods recursively combine items into another item. foldLeft combines items from left one to right one, on the other hand foldRight does this from right one to left one.

25

2 responses