4 ms·
I needed to wrap the code that handled thread management that I use in Swift. I called the component Threader, and in the comments I mention I named it after t
by cwbrandsma 7y ago
I needed to wrap the code that handled thread management that I use in Swift. I called the component Threader, and in the comments I mention I named it after the TMNT character Shredder.
Two things came from that: I have gotten a chuckle from all the developers I introduced to that code, and no one has forgotten about it.
Some humor is useful.
- xmprt 7y agoThat's nice when the team is small and everyone knows what the code does, but when new members start joining and you have all these inside jokes/references all over the code, it becomes more cumbersome than anything to explain what it is. I enjoy humor but keep it to a minimum and hopefully don't impact the actual readability.
- mattkrause 7y agoThe trick here (and in someone else’s “Thrilla in Mozilla”) is that you don’t need to understand the humor or reference to understand the code. It’s just a nice little bonus, since threader is already a perfectly reasonable[0] name. This is different from insisting that helper functions in brains.c be of type pinkyfunc_t. [0] I was tempted to undercut my own point and write cromulent there instead.