@neothefox me, my 4yo son, and 2yo daughter, we all love Frog and Toad!
@tomekw That's a very funny book, I love it too
@neothefox It's disgusting. __ is "internal" and you can still use them.
I love this. I even know exactly which Frog and Toad story the original is from (Cookies).
@neothefox This is my favorite book!
@revenant I do this in C and asm 😋
@revenant that's pretty clever! unfortunately, I do use `static` for functions that don't need to be visible outside the compilation unit (and I usually only do one function per file if I can help it)
@neothefox As I've gotten deeper and deeper into IOC, DI, and unit testing, I've found that private methods are a code smell. Why? Because to effectively test the private method, you have to write bigger and more complicated tests around whatever code is calling the private method.
Dangerous programmers know how to invoke private methods using tricks, so rather protect others from themselves, I'd rather protect myself by writing good tests on my code.
In my code almost everything is public now.
@neothefox that works in Go
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!