Our Trip to Jordan, the West Bank, and Israel
Here are some photos from our trip to Jordan, the West Bank, and Israel.
Here are some photos from our trip to Jordan, the West Bank, and Israel.
Service discovery and
remote procedure calls (RPC) are big subjects. There are many
existing solutions that require varying degrees of infrastructure (e.g. message queues,
Consul) or architectural decisions (e.g. Erlang, Akka, etc.). In this post, I’ll
introduce a minimalistic Go library called sleuth
that creates an ad hoc
peer-to-peer network requiring almost no configuration and only a couple lines of code to existing services and clients.
sleuth
is a library that lets web services announce
themselves to each other and to other clients on a LAN. It allows peers to send requests to each other without
having to coordinate where each one lives and what port it uses. It works without an external process because
under the hood, it is powered by magic, *a.k.a.* ØMQ
using the Gyre port of
Zyre.
This is my response to part of Sam Harris' recent podcast, which is about another subject altogether (cultured, cruelty-free meat – a very interesting podcast worth checking out), but begins with his thoughts on the FBI ordering Apple to write custom software to compromise the iPhone 5C of one of the San Bernadino terrorists.
For the past few months, I have been working at Continuum Analytics and we use TypeScript to build the libraries and widgets of PhosphorJS along with the applications built on top of them. As a long-time JavaScript programmer, here are some of my thoughts about switching to TypeScript.
Here’s how I’m using sed
to inline the version
field from an npm
package.json
into my code in an ES6 package. It’s not very exciting, which is probably clear from the exhilarating
title.
There are a lot of resources about getting started in Go and places where a beginner can play around and become comfortable with the language. This tutorial is about taking the next steps: building robust projects that are fully documented, tested, and usable by the Go community.
Here are two examples that demonstrate how to use the new ES6 Symbol primitive to create quasi-private methods and properties.
Sometimes, when writing web services, I have the temptation to reveal too much information. Let’s consider two scenarios.