Learning Go is going well.
Slice maxing, they have an interesting implementation. In D, for example, you cannot up-length a slice, only downsize it. To be honest that makes more sense. I understand the differences in the internal implementations too and how to use them, but thought it was interesting that Go did it differently.
#D #go
Golang's `defer` is lackin'.
Could have added scope guards, but added something that:
1. Only works with function calls?
2. Evaluates the arguments at defer line not deferral time
3. Yeah number 1 tbh
Either way enjoying learning another language for fun, took some getting used to (the type system isn't that straight forward; and that's coming from someone who understood OCaml very well/enough).
I think it may have been hyped a little but I want to learn it anyways; best way to see if the juice is as sweet as they say it is.
Decided to start learning Go, going to see how much I can learn just before the end of this month.
Will probably be the fastest I have learnt a language. Going for a speedrun.
#golang
But nigga, did you hear, there's peace in the middle east.
Bro, you won't believe it, Trump just snapped his fingers and now there's pEaCE IN the MiDdLe eAsT
View quoted note →
Trying my luck with this GPS HAT for the Raspberry Pi. The GPIO pins can provide a serial interface which you can then read from.
Too bad because the data is definately garbled despite me setting the baudrate.