3 whole days in #Go I noticed my search history rolled back to:
- “Convert an int to bool in Go”
- “Swap two variables in Go”
- “How to write a dictionary in Go”
Like a baby again. 🤣
@prologic@twtxt.net I wrote them by memory and got them wrong, here what I searched and why:
- Using boolean as int to do math like false - true => -1` for selecting motion, managed differently
- Swapping struct fields in a 2d array: solved by decoupling the items and it’s array with pointers
- Found that quickly myself ✌️
Almost done with my first baby Go experiment, I’ll share soon™️`
And…
Here we are!
https://gitlab.com/sunetraalex/gogoban
I can say that Go is a good language overall, I’m not sure if I can call myself a fan right now but it’s quite good in general.
@prologic@twtxt.net Well, I shared the code for that reason. 😜
@prologic@twtxt.net Glad she liked it!
You can use it to give her some coding passion if she’s not interested yet. 😉