Get the code at https://github.com/nllptr/conway
I'm Simon, a Java developer currently aspiring to learn Go. It's different. Nice, but different.
torsdag 3 november 2016
Watch me learn Go, part 9: Implementing Next
In this video I implement the Next function that I wrote tests for. I have a hunch that I've introduced some non-idiomatic Go code. For example, I added some error handling, but I'm afraid I don't know what to do with the error. Where I come from (Java land) we just throw the errors up the call stack.
Get the code at https://github.com/nllptr/conway
Get the code at https://github.com/nllptr/conway
Watch me learn Go, part 8: Testing Next
Next will be the function that takes the current state of the world and generates the next version of it. In this video I write some tests. If you take a look at the code, you'll see that I added some more test cases. Just because it's so darn fun.
The code is available at https://github.com/nllptr/conway
The code is available at https://github.com/nllptr/conway
Watch me learn Go, part 7: Even prettier tests
Some more refactoring ahead! Lesson learned; It's hard to know everything ahead of time. It's OK to refactor if it makes things prettier (easier to maintain).
The code is available at https://github.com/nllptr/conway
The code is available at https://github.com/nllptr/conway
onsdag 2 november 2016
Watch me learn Go, part 6: Implementing neighbors
Now it's finally time to implement the actual function that counts neighbors.
The code is available at https://github.com/nllptr/conway
The code is available at https://github.com/nllptr/conway
Watch me learn Go, part 5: Prettier test cases
Watch me learn Go, part 4: Testing neighbors
Time to write another test! I told you there would be more of that. In the game of life we need some way to count a cell's neighbors, that that is the test we're putting in place today.
The code is available at https://github.com/nllptr/conway
The code is available at https://github.com/nllptr/conway
tisdag 1 november 2016
Watch me learn Go, part 3: Writing the first test
This is the first episode with some real code. However, I just write a simple test, and since the video turned out WAY too long, it's totally ok to skip this one and move on to the next. Trust me, there will be more tests written.
So what am I going to code? Turns out it's Conway's "Game of Life".
You can find the code at https://github.com/nllptr/conway
So what am I going to code? Turns out it's Conway's "Game of Life".
You can find the code at https://github.com/nllptr/conway
söndag 30 oktober 2016
Watch me learn Go, part 2: The editor
I'm getting older, and that means my time is getting more and more precious. I want something that just works, not something that takes forever to configure. That something appeared to be Visual Studio Code. A lot of interesting stuff is coming out of Microsoft these days. If you had told me a few years ago I'd be using a Microsoft product voluntarily, I would have laughed at you.
Watch the video below to learn how to get VS Code up and running with Go.
Watch the video below to learn how to get VS Code up and running with Go.
Watch me learn Go, part 1: Installing Go (on Linux)
Ok, time to install Go. Watch the video below to learn how. If you're on Windows or Mac, there are good explanations on Go's home page.
Watch me learn Go, part 0: Introductions
I want to learn Go. It has been a long time coming, but I think making YouTube-videos on the subject might be the accountability I need to get beyond the Tour of Go. Here is the first video.
Prenumerera på:
Inlägg (Atom)