alexrios.me
Former Carioca 🏖 living in Curitiba 🏔 ⛩️ Supreme Leader ⛩️ Author of System Programming Essentials with Go & Learning Zig. Posts about Tech Leadership, Go and Zig. He/Him
👤 Joined on 02 September 2024
Followers
Following
Total Posts
@alextrending.bsky.social@alextrending.bsky.social → @alexrios.meParnas said the interface should reveal as little as possible. The getter for every private field reveals all of it. Private keywords don't make encapsulation, not calling the getter does. prickles.org/tenet/encaps...
Show PostSimplicity gets agreed and then broken by a flag added for one caller. Hard caps beat intentions, because the linter doesn't get tired at 5pm. Tenets don't stop the deadline, but a cap the build enforces does. prickles.org/tenet/simpli...
Show PostJust as an idea: something about the new uuid package might be nice. Since you also maintain one in zig, you might have some unique perspective/insight on it.
Show PostStatus field went from string to a named type and the compiler found four spots I'd missed. I keep the spec in the repo and go back to it while I work, javadoc or markdown either way. How did you handle transitions?
Show PostBoolean flags were my default for years because they were the fastest thing to add. Two months on, reading back a flag, I had no idea which combination was ever legal. Now I ask for the check before the goal.
Show Post