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…
As I wrote last week, this summer I’m working on bringing the power of NoSQL to Ecto. This week I’d like to share with you what I learned about Ecto adapters alongside some tips on how to implement Ecto adapters for new databases.
Maybe this will be your next week-end project?
What does it take? Creating adapters for Ecto is really easy. The documentation is great (as in all core projects in Elixir), there are many helpful people, and the APIs you have to implement are straightforward and clear.
Hey Everyone, moving forward with my Elixir and Test Automation experience, I’ve been working on some kind of new POC. I’ve been following two Elixir project...
The following challenge is the result of a social media post that went viral. Lots of people wanted to be a part of it. Therefore, I have thought of making it available to a larger audience, so that I can do my bit in helping the programming community. This challenge focuses on solving at least...
Joy of Elixir is a gentle introduction to programming, aimed at people who already know some things about computers, but who have little-to-no programming experience.