Friday, December 1, 2017

Go - day 1

Day 1 of learning the Go language - or 'golang' to you. First step after a quick browse of the website is to buy 'The Go Programming Languge' book. Normally I'd try to get some decent learning material from the internet before buying a book, but this book has Ken Thompson on the credits, and he's one of the guys who invented Unix, so it's going to be good book.

Second step is to install Go on my laptop - took about 2 mins - details on the golang website.

All working now so time to start going through the book...

So, after a little reading, typing, tutorialing and learning here's what I like about Go:

1) Layout matters. Like Python, Go specifies layout as part of the language. I like this. It stops the eternal 'style' wars and it forces consistency in how code looks.

2) It's syntax is quite expressive - I think that's the correct word. Things like for loops can be quite terse and yet still easy to parse.

3) It seems to have centralised package management, which is quite popular these days (see Rust for details). Along with this it enforces directory layout of files so that things like build paths and finding output is consistent across the entire language. I'm interested to see how this plays out with big projects which may require some funky layout.

So far, so good. If C and Python had a baby it would look like Go. More next time...

Ode to Brexit

A collection of my ongoing thoughts and opinions regarding Brexit... I wish Liam Fox would just fuck off. Fuck Brexit. Dyson will not be...