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?

New in Databox: Build and Automate Custom Reports in Minutes

Here at Databox, we believe that data is about more than just numbers. We want to bring our users even more ways to share meaningful insights. Most of all, we want to help growing teams and agencies take reporting to a new level through the power of automation. Say hello to Databox Reports. This brand new feature allows teams and agencies alike to build and automate Reports right inside Databox.

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.