girvo 17 hours ago

Ah I see you're one of those who would enable `UserManager.DISALLOW_FUN`!

I personally quite enjoy a bit of whimsy in code. What we do (mostly) isn't that serious (modulo those, including me once upon a time, who work on literal life and death software)

  • izacus 12 hours ago

    I think that's a big line between people who work as software engineers becuase they enjoy the work and want to build something and folks who go there to punch the ticket and run back home as soon as possible.

    The second group doesn't want to deal with "all the fun crap" and "distractions" that stand in the way of them marking a bug fixed (or, god forbid, actually getting extra bugs/work assigned because some "fun" code might break or cause confusion).

    As teams and companies grow, the second group usually outgrows the first and the first group moves on to reform into smaller teams working on something else again.

    • sumtechguy 9 hours ago

      I have had my share of fun things I added to code/environment. Yet then we add 'the new guy'. They spend a long time arguing why that humor should not be there. One project it was a single line comment about new beginnings on the main procedure. That created a 2 hour rant about how unprofessional it was and months of unwarranted verbal abuse. It was literally the only piece of humor in the entire codebase. Super petty. Turned a fun functioning team into a slog of even wanting to go into work and all the rest of team reassigning themselves to other work. I use it as a litmus test these days of what I want to work with. Kind of tempted to add it to interview questions but have not found a proper way to do it.

      • AnimalMuppet 8 hours ago

        Better to reassign 'the new guy', rather than let him destroy the team.

        • sumtechguy 8 hours ago

          Exactly. However, that would mean the boss thought the same, as he was hired specifically for that team. By the time it had happened the boss had not even noticed. Despite the team basically telling him every day in 50 different nice ways. In this case I did not realize it was controlling and manipulative behavior. But I learned and can spot it off pretty quickly now and will make sure it does not happen again.

    • sdeframond 12 hours ago

      Things that seem fun when they are written are often not much so a few years later, without the initial context, when trying to actually "build something".

      Fun is good when it is fresh. Fossilized fun is not that fun. It is more like that uncle who heavily tries to be fun at family parties.

      • owebmaster 12 hours ago

        Google is not fun and people that try to be funny from Google are cringe

  • jrockway 16 hours ago

    I agree with you. The dinosaur game in Chrome is the classic example; turned off because schools threatened to not buy Chromebooks if kids could play a game in the browser. At least it seems to be a setting now, so your individual locality can decide if fun is allowed.

    • joshstrange 13 hours ago

      That’s quite different from what we’re talking about though. That’s adding games or fun into your product whereas in this specific sub-thread we’re talking about naming code concepts (functions, classes, variables, enums, etc) funny things.

      • notpushkin 11 hours ago

        When you’re building an API, it is your product.

  • nlnn 15 hours ago

    I don't mind either personally, but I've had a few occasions where such things have caused issues with engineers that didn't have English as a 1st language.

    A fair bit of time was wasted on trying to understand some joke/pun code and variable names, and on another occasion, spending the best part of a day working on something because they took some sarcasm in code/comments literally.

    • nick__m 12 hours ago

      English is not my native language yet I love pun and joke in doc. If those hypothetical developers are wasting time on this, maybe they should just get better at English because there are important nuances that will fly over theirs head.

joshstrange 13 hours ago

I couldn’t agree more. I work in a codebase that has a handful of these “fun”-named functions/concepts and I hate it. It wasn’t funny the first time I came across it (just very confusing) and it’s not fun having to explain to new hires why a few things are named the way they are.

It needlessly complicates reading/following the code. Even if you explain the naming back at where you define the function/variable it add an extra click-through/hover to read that and an extra translation you have to do in your head when you read the “fun” variable name in the future.

One example is we have a flag called “dinnerbell”. What does that do? It tells the server receiving that flag to “come and get it”, “it” being the full data object instead of just getting a delta. It could have been called a whole slew of other things that would make more sense.

ramon156 16 hours ago

Live a little. When you've passed away, was all the seriousness paid off?

That said, funny code should still work

  • magospietato 16 hours ago

    There's a middle ground for sure. I've left a few witty comments and loglines in my time.

    But I've also had to debug a Delphi unit which returned error codes inspired by the magical supercomputer Hex from the Discworld novels.

    "Divide by cucumber error" is not a decent enough representation of a module's internal state, no matter how funny you think you are.

    • tikhonj 15 hours ago

      But a wholly non-funny "Invariant Violated" message would be no better. The problem isn't that the message is funny, but that it does not contain the information you need to understand what's going on. The whimsy is just a distraction.

      • eptcyka 14 hours ago

        Do you find that distracting things help you debug shoddy code?

    • dotancohen 12 hours ago

      "Divide by cucumber error" sounds like a great string to grep for - so actually helpful for developers to find the place in the code that threw it.

  • aaronbrethorst 4 hours ago

    Not having to understand someone's goofy inside joke gives me more time to spend on the things that matter the most to me. So: less funny code == living a little more.

  • wiseowise 13 hours ago

    Who cares what happens after you’ve passed away. You’re dead.

    • Scarblac 13 hours ago

      Only the things that remain of you after death really matter, everything else will have gone completely then anyway.

      • wiseowise 12 hours ago

        No, even those don’t matter. You’re dead.

    • reaperducer 12 hours ago

      Who cares what happens after you’ve passed away.

      Every single person who isn't you.

      You are aware there are other people besides you, right?

dkersten 13 hours ago

Me too. Professional code isn’t the right place to insert your personality or sense of humour.

bmitc 12 hours ago

I am in this camp as well. Even worse are cute error messages.

If software actually worked, then I'd be fine with more whimsy. But it doesn't, so I'm not.

  • doright 4 hours ago

    I remember when the Steam "login from a new computer" auth flow shoved a big "Hi there!" in user's faces the moment it blocked access to their entire online functionality until they left to get a code from their email and came back. Sometime later they removed it and now it's just "please look for the confirmation code sent to <address>".

    I think in the push to make computing "friendlier" by dressing up error messages, past a certain point they began to come off as condescending. I wish modern UX could focus on working for me instead of trying to be my friend all the time.

outime 12 hours ago

It's even worse when you stumble upon a repo with already poor documentation, only to find it filled with silly jokes e.g. "You thought this would be easy, right? Well, that's what X thought too, but..." yeah, leave the storytelling aside please.