Friend, Wake Up: You’re Not Inheriting the Company This happened to a neighbor’s daughter, all because she didn’t check the contract’s fine print in time, although it would have been of little use to her. I ran into her on the bus one day, on my way home. She had a face like thunder, so […]
READ MORE
You’ve got types and variables from the previous article. Today: Go control structures. The news: Go has fewer pieces than any language you’ve used. The surprise: you won’t miss a single one. if: no parentheses, one trick Go’s if drops the parentheses and demands braces always, whether it’s one line or twenty (A Tour of […]
READ MORE
Three different ways to learn: with correct answers, without them, or by trial and error. Three ways to learn In 1959, IBM engineer Arthur Samuel published a paper with a title that sounds obvious today and was a complete novelty back then: “Some Studies in Machine Learning Using the Game of Checkers.” That’s where the […]
READ MORE
Go functions look like any language’s functions until they return two things at once and nothing weird happens. Today: syntax, multiple returns, variadics, closures and defer, your open resources’ best friend. Syntax: the type goes after The type after the name feels odd for ten minutes, then reads better, especially in complex signatures. The official […]
READ MORE