In Go, the recommended convention for variable name length is to be proportional to their scope. It is common to use one or few letters long variables if they are local to a few lines loop or a short function.
- 0 Posts
- 4 Comments
Joined 2 years ago
Cake day: July 13th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
In Go you can compare structure instances with == (by value). You can also compare pointers (in which case they can be different even if values are equal). You get what you ask for.
Also, I’ve never needed “Equals” method in Go.
Antiyoy is a clone of the 2000s game “Slay”, which is on Steam with updated graphics, to my surprise.



This is a very important point, that most of my colleagues with OOP background seem to miss. They build a bunch of abstractions and then say it’s easy, because we have one liner in calling code, pretending that the rest of the code doesn’t exist. Oh yes, it certainly exists! And needs to be maintained, too.