The lander continues its powered descent, as Jakub and John complete the refactoring of all the game logic into a self-contained package. Along the way, we discuss getting the computer to write your test expectations, why the standard library has no special privileges, and the confidence-enhancing effect of being able to watch experienced programmers screw up.
Topics covered: panic, pointers, stack trace, interfaces, refactoring, Jon Bodner's "Learning Go", JSON marshal/unmarshal, unexported fields, go.mod, "Just For Func",
This is the GitHub repo for the lunar lander project:
https://github.com/bitfield/lander
Тэги:
#golang #testing #panic #pointer #interface #refactoring #learning_go #JSON #go.mod