Systems | Development | Analytics | API | Testing

How to Write a Functor in Elixir

There’s a function called Enum.map in Elixir that works on multiple collection types, but it's not without its issues. In this post, I will introduce you to a concept from functional programming called a functor. We’ll make a Functor protocol with a function called fmap that will aspire to be a better version of Enum.map. Note: The article is inspired by the Witchcraft library, which we covered in one of our previous posts. But first: what's the problem with Enum.map exactly?

How to Fix the EOFException in Java.io

The java.io.EOFException is a checked exception in Java that occurs when an end of file or end of stream is reached unexpectedly during input. This exception is mainly used by data input streams to signal end of stream. Since EOFException is a checked exception, it must be explicitly handled in methods that can throw this exception - either by using a try-catch block or by throwing it using the throws clause.

10 best practices for building a modern data stack

Companies are tightening the belts with one exception: data. The modern data stack shows no signs of a recession with Frank Slootman the CEO of Snowflake saying at their annual user conference they will not slow hiring plans. CNBC Tech Council executives noted how technology investments are business drivers, not cost centers. And Foundry’s annual cloud computing survey cites cloud analytics as a top growth driver. A digital economy is fueling this growth in the data sector.