Comment

Comment by shpongled

> Let’s start with a general guideline for programming Go: write Go programs by writing code, not by defining types

I find this interesting - I think I typically do the reverse: I generally start by thinking of my program in terms of types and then write code to perform operations/transformations on those types (obviously this doesn't work 100% of the time).

That being said, I have never written any Go, but I can't imagine I would approach it differently.

parent shpongled 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton