Writing out large arrays in Go: binary.Write is inefficient for large arrays
Programmers often need to write data structures to disk or to networks. The data structure then needs to be interpreted as a sequence of bytes. Regarding integer values, most computer systems adopt “little endian” encoding whereas an 8-byte integer is written out using the least significant bytes first. In the Go programming language, you can … Continue reading Writing out large arrays in Go: binary.Write is inefficient for large arrays
Configuring VSCode to use with Elixir and Phoenix Templates - Learning Resources / Guides/Tuts/Tips/Info - Elixir Programming Language Forum
Hey 👋🏼 Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and although I started somewhat seriously working with Elixir like a month ago, only today I finally was able to configure VSCode, so it will help me, rather than me fighting it. There are multiple extensions on VScode Marketplace, and it can be confusing to decide which ones to install. Initally, I went ahead, and installed almost all of them, which of course led to prob...
Thinking in processes is already difficult; writing automated tests for those processes shouldn't make it worse. Elixir provides the necessary tooling to ensure your processes are rock solid. This article explains how to use them.
Part three of a three part series exploring code review best practices. This post focuses on clarity and simplicity, with a focus on what exactly these concepts imply, general tools to increase simplicity and clarity in a codebase, and a review of a real piece of code for those same qualities.
Intro This is a part of the series of blog posts related to Artificial Intelligence Implementation. If you are interested in the background of the story or how it goes: #1) How to scrape Google Local Results with Artificial Intelligence? #2) Real World Example of Machine Learning on Rails #3)
How do you do dependency injection for Elixir GenServer?
I am building a GenServer in Elixir, let's say it's a simple Queue like this
defmodule Queue do
use GenServer
def start_link(name) do
GenServer.start_link(__MODULE__, :ok, name: name)
e...
Lightweight Dependency Injection In Elixir (Without the Tears)
In our last Elixir blog post, “Functional Mocks with Mox in Elixir”, we discussed how testing across module boundaries could be made easier by creating a Behaviour for a collaborating m…