Articles

Tips on Scala, functional programming, Akka, Spache Spark and more

Java Tutorial for Beginners - Learn Java in 3 hours

Enroll into this mini-course and download it here, or watch this in real time below or on YouTube. This tutorial was designed so that you can code with me side by side without switching back and forth between the video and your own code. Enjoy!

READ MORE

Comparing Akka Streams, Kafka Streams and Spark Streaming

This article is for the Java/Scala programmer who wants to decide which framework to use for the streaming part of a massive application, or simply wants to know the fundamental differences between them, just in case. I'm going to write Scala, but all the frameworks I'm going to describe also...

READ MORE

Why are Type Classes Useful?

This article is for the Scala programmer who knows what implicits are and (for the most part) how they work. This article will also involve a somewhat high degree of abstraction.Type classes are these super-abstract concepts in functional programming, which FP purists and Haskellers eat for...

READ MORE

Akka HTTP to Heroku in 10 Minutes

This article is for newbies to Akka HTTP and for those who have written some Akka HTTP but have never deployed their own server. Here I'll teach you what you need to know and do so that you have your first server up and running on Heroku in just a few minutes.I'll be working in IntelliJ IDEA...

READ MORE

A Monads Approach for Beginners

There are so many tutorials on Monads it's not even funny. In fact, it's not funny at all - the more analogies people make, the more confused readers and listeners seem to be, because how could you bridge the gap between burritos, programmable semicolons, applicative functors? Perhaps you...

READ MORE

5 Nice Scala Tricks for Expressiveness

This article is for Scala programmers of all levels who are at least familiar with the absolute essentials (values, classes, functions etc.). In this post I'm going to show you a few syntax tricks and sugar elements that make Scala such a powerful, expressive language. Many of these techniques...

READ MORE

How to Create Your Own Custom String Interpolator

This article will show you a less-known customizable part of Scala that will allow you to build powerful tools that seem to be part of the language itself. The article is for intermediate to advanced Scala programmers who know how implicit classes work. The Background ...

READ MORE

How Akka Typed Incentivizes You to Write Good Code

Akka Typed is widely praised for bringing compile-time checks to actors and a whole new actor API. The problem is that even this new typed API has loopholes that almost never completely close the old Akka anti-patterns. However, the 2.6 API is a big step in the right direction, because although...

READ MORE

Sync, Async and (non) blocking

This article is for programmers of all levels, willing to deal with asynchronous and/or non-blocking computation. I'm going to write Scala (naturally), but the problem I'll address is general and across almost every language and tech: the difference between synchronous, asynchronous, blocking and...

READ MORE

4 Nice Ways to Read Files in Scala

One of the hurdles many learners of JVM languages face is: how do I read a goddamn file? And then you have your face blasted with DataInputStreams, FileReaders, buffered this, buffered that, channels or whatever. In this article I'd like the make things clean and simple, and...

READ MORE