@tomekw That's a very funny book, I love it too
@neothefox It's disgusting. __ is "internal" and you can still use them.
@neothefox This is my favorite book!
@neothefox python
@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 as with #dart.
@neothefox that works in Go
@neothefox me, my 4yo son, and 2yo daughter, we all love Frog and Toad!