So where will you be headed when G+ goes away (dumbest move tbh)

Post has attachment
The true reason, why Google closes!

That has to do with U.S. Cloud Act vs. GDPR conflict between EU and U.S. rights system. With 'Cloud Act', U.S.A. self authorises to spy on private data hosted on U.S. owned servers, even if located in the EU!!!

https://www.pearse-trust.ie/blog/the-us-cloud-act-v-the-eus-gdpr-data-privacy-security

Means: U.S. companies are simply out of business now! That's why Google, Facebook have to close their services for EU citizens now and why MeWe is no G+ alternative - it's also an U.S. owned company!

Means: If you offer services to EU citizens on U.S. owned servers, you can be sure to get heavily fined or you go to jail!

Have fun!

Post has attachment
How true! Go rules, especially in China!

Not a single Chinese, that is not in contact with a server run by Go and Linux.
Photo

Post has attachment

Post has attachment

Post has attachment
Sometimes less is more.By design, Go does not support optional parameters or method overloading. Instead, method overloading is emulated by writing several methods with different names.

There are three things that have saved my Go experience: vim-go, goimports and go stringer.

vim-go is excellent for my workflow, as I do most of my work in Vim. Switching from gofmt to goimports was really easy, and it is very simple to configure.

Speaking of goimports, mad respect to the creators of gofmt, and the creators of goimports. These unite the community to develop in a similar style of code, making readability much easier. goimports also does all of the required importing magic automatically, which means you don't have to worry about a thing.

go stringer in particular has saved me from hours of work. As I am implementing an interpreter for Lox (http://www.craftinginterpreters.com), I implemented the different token types as constants. However, in my unit tests, the tokens output the iota numbers of the tokens, instead of the names. This was a big problem when you've got a lot of tokens.

To fix it all I had to do was add //go:generate stringer -type=TokenType on top of the giant const block, and now fmt.Print prints the names of the Tokens.

In summary, the Go tool ecosystem is excellent, and I would love to see more people contributing to it.

Post has attachment
It's convenient to use iota to define an enum. For a complete enum implementation, introduce a new type and give it a String function.

Post has attachment

Post has attachment
Wait while more posts are being loaded