Page 1 of 1 [ 3 posts ] 

Abstract_Logic
Veteran
Veteran

User avatar

Joined: 3 Dec 2008
Gender: Male
Posts: 580
Location: Here

22 Jan 2021, 12:18 am

I wrote a blog post where I attempt to explain interfaces in GoLang using Pokemon as examples. https://hyperreal64.netlify.app/posts/pokemon-interfaces-go/


_________________
Autistic (self-identified)
Open source, free software, and open knowledge geek
GoLang, Python, & SysAdmin aspirant
RPG enthusiast
Has OCD, social anxiety, CPTSD


Fenn
Veteran
Veteran

User avatar

Joined: 1 Sep 2014
Gender: Male
Posts: 3,020
Location: Pennsylvania

26 Feb 2021, 5:39 pm

I looked at your Golang article.
Nice variation of the Pet Shop type idea.
If you are interested take a look at rosettacode for more example (and undocumented examples) of Golang and other languages.


_________________
ADHD-I(diagnosed) ASD-HF(diagnosed)
RDOS scores - Aspie score 131/200 - neurotypical score 69/200 - very likely Aspie


Abstract_Logic
Veteran
Veteran

User avatar

Joined: 3 Dec 2008
Gender: Male
Posts: 580
Location: Here

26 Feb 2021, 8:00 pm

Fenn wrote:
I looked at your Golang article.
Nice variation of the Pet Shop type idea.
If you are interested take a look at rosettacode for more example (and undocumented examples) of Golang and other languages.


I've never heard of the Pet Shop type, but it's not hard to think of concrete examples for any kind of object-oriented concept. I just thought Pokemon would be convenient because they are well-known among millennials and Gen Z and they lend themselves well to data types, polymorphism, and inheritance.

Something else I noticed was that you can make a play on the name "Pokemon Go". This was not intentional, but the connection may have occurred non-consciously in my mind because "Pokemon" and "Go" happened to be nearby clusters of neurons.

Rosetta Code is useful for seeing how certain algorithms and tasks can be implemented in a programming language, but for real world software development you use something like Stack Overflow.


_________________
Autistic (self-identified)
Open source, free software, and open knowledge geek
GoLang, Python, & SysAdmin aspirant
RPG enthusiast
Has OCD, social anxiety, CPTSD