Post #2088168
2026-05-05 06:21 UTC
Functions that do different things depending on context. I call them Janus functions, after the Roman god. They can add hours of entertainment when learning an unfamiliar code base.
Replies (3)
-
@malwareminigun@infosec.exchange 2026-05-05 07:22
@rollbear@fosstodon.org control coupling is one of my biggest pet peeves. JUST WRITE TWO FUNCTIONS. CMake is the worst system in the world for doing this. Every command is actually like 20 commands and should have just been 20 commands. (I still on balance think CMake is a great system for most people most of the time. I just strongly disagree with this particular design decision)
-
@bnlandor@mastodon.social 2026-05-05 08:53
@rollbear@fosstodon.org context, as in global variables? 🫣 Sounds like fun and games.
-
@fbulow@mastodon.social 2026-05-05 12:37
@rollbear@fosstodon.org That name is perfect in every way. I'll be using from now on. Nothing like a bit of mythology to spice up a PR comment.