Open in app

Sign In

Write

Sign In

Alex Kalyvitis
Alex Kalyvitis

25 Followers

Home

About

Mar 15, 2020

JSON polymorphism in Go

Serializing and deserializing polymorphic JSON into Go structs — Introduction It is quite common in object-oriented languages to rely on polymorphism to restrict the range of types that can be used in a particular case. This can be achieved either by using an interface or by subtyping. In Go we can use an interface to achieve polymorphism, but subtyping however…

Golang

4 min read

Golang

4 min read


Jan 3, 2015

Trie

Recently I’ve been working on a Trie implementation and I was a surprised and delighted from the simplicity of the data structure. The first time I came across the Trie data structure, I was looking to solve a problem where a typeahead field had a really large dictionary to query…

Go

2 min read

Trie
Trie
Go

2 min read


Apr 16, 2014

Fun with binary expression trees and Go

Recently, I found myself trying to implement a mechanism, able to evaluate expressions. Essentially what I needed was a binary expression tree. I used Go for this project, and quickly came to a delightful surprise that using Go’s extremely powerful interface mechanisms, it became extremely easy to implement and extend. Before we dive in …

Go

5 min read

Fun with binary expression trees and Go
Fun with binary expression trees and Go
Go

5 min read

Alex Kalyvitis

Alex Kalyvitis

25 Followers
Following
  • Jason Fried

    Jason Fried

  • Kambr

    Kambr

  • uxBrad

    uxBrad

  • Addy Osmani

    Addy Osmani

  • Ioannis Papapanagiotou

    Ioannis Papapanagiotou

See all (84)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech