Go Interfaces

Go interfaces If you come from a C# background, you will find Go Interfaces like entities from another planet. My recommendation is to think about the interface in the literal sense, regardless of the programming language constructs. I came up with this list to better describe Go interfaces: Go has no classes. Let that sink in a little bit; in C#/Java an interface is almost always attached to an implementor class.
Continue reading

Redis, STunnel, and C#

In this blog post, I will try to demonstrate how to setup a working environment with StackExchange.Redis package is communicating to a Redis box using SSL through STunel.

By the end of this post, you will have a working environment on Vagrant like this:


Continue reading

In this post you’re going to learn how to setup a simple console application in .Net core that talks to Postgresql. This application will run on Ubuntu 14.04 using Vagrant. I’m using iTerminal on macOS Index Setting up Vagrant box. Setting up Postgresql. Creating .Net core console application. Adding Dapper and Npgsql Connecting to Database and persisting data. Setting up Vagrant box Create a new directory for our project:
Continue reading

If you tried to install httpoison and when you run mix deps.compile or mix you get: ** (Mix) Could not compile dependency idna, /home/vagrant/.mix/rebar command failed. If you want to recompile this dependency, please run: mix deps.compile idna You can fix this issue by increasing the available memory on your Vagrant file to 1GB: config.vm.provider "virtualbox" do |vb| vb.memory = "1024" end Run vagrant reload in your command line after making this change.
Continue reading

Elixir in Vagrant

I don’t like polluting my environment with new languages. In this post I will describe all the steps I had to take to setup my Elixir environment using Vagrant. For this post I will assume you already have Vagrant installed in you dev environment. Let’s start creating a new directoy which will have: Vagrant file src/ directory synced with Vagrant Bootstrap file which will install Erlang and Elixir. > mkdir jumpstart > cd jumpstart Then we create an empty Vagrant file:
Continue reading

ES6 Arrow functions

Last night I was reading this post: ES6 arrow functions, syntax and lexical scoping and going through the comments I saw this question: so arrow functions always inherit scope? The answer was by Barney: always. I went to the console and typed: nvm use 4 node var doSome = () => { console.log(this.x) } doSome.call({x: ‘hello’}); global.x = ‘hello’; doSome.call({x: ‘good bye’}); Could you guess what is going to be printed?
Continue reading

Author's picture

Hector Yeomans

Senior Software Engineer

Principal Engineer @ Roblox

California