News for hackers. Stuff that matters.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by IgorPartola on Friday October 04, 2024 @12:43AM (#41737881)
Sorry time: years ago I worked on a telemedicine web app before telemedicine was nearly as popular as it is today. Part of the application had patients filling out questionnaires online to show answers to the doctors. We were onboarding different parts of a large healthcare system throughout all this (cardio, GI, etc.) and each had questionnaires that required different logic for when and how to display the questions, so the application had a fairly powerful system for driving the conditional logic of when questions do and do not show up.

Well one day I am working on a new set of features to help support the new clinic that’s coming online and for whatever reason the question that should by all rights show up, does not. As I am getting deeper into debugging why, I pepper the code with nonsensical and slightly angry debug statements that show up alongside the questions. After solving the problem I happily clean up and commit the fixed code and move onto the next thing.

Well, it turns out I didn’t clean up all the debug statements. The statement I left in said I SEE YOU!!! in big red letters if you answered a particular set of questions in a particular way. This was discovered by a patient. Of the psychiatric clinic that just came online. On the questionnaire meant to evaluate paranoia.

Since then I have started using things like aaa and 111 as my debug markers.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @03:41AM (#41738834)
The strings used for debugging at Google were supposed to include “DO NOT SUBMIT” which, a bot to check for this was added after a debug strings made it to production (It was before my time but I believe it was after the legendary WD incident- “western digital” was remapped to “woodly doodly” in test code that accidentally shipped for those curious)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by riffraff on Friday October 04, 2024 @04:22AM (#41739091)
Was the debug string that made it to production embarrassing?

I remember a swearword appearing in a very big national company login form once, and I'd have felt sorry for the dev if it wasn't so hilarious.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by PetahNZ on Friday October 04, 2024 @04:56AM (#41739302)
Yea, I have seen a very inappropriate debug statement being left in the led to the dev being promptly fired.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by arethuza on Friday October 04, 2024 @08:06AM (#41740543)
I was leading a startup development team in the late 90's and one of our developers told me that some very inappropriate test data had been sent to IBM to be included in a product demo and burned onto tens of thousands of discs that they would distribute.

Eventually it turned out that it was the single word "sheep" - which taken out of the relevant alt.* context was pretty harmless.

Talk about a moment when I thought my career had crashed and burned...

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by MonkeyClub on Friday October 04, 2024 @11:05AM (#41742176)
> Eventually it turned out that it was the single word "sheep" - which taken out of the relevant alt.* context was pretty harmless.

Please, do contextualize it?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by HaZeust on Friday October 04, 2024 @10:46AM (#41741982)
Likewise; they tried to pin it on me, and I had to go to the Git commit history to show it was another employee. My administrative leave was promptly revoked.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @06:22PM (#41746073)
“Western Digital” was replaced with “Woodly Doodly” on the srp. Not really thag embarassing but I am sure WD didn’t appreciate it
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by raverbashing on Friday October 04, 2024 @06:12AM (#41739851)
Pro tip: never add a "funny comment" especially an error message that's "never supposed to happen" unless you're happy with that message showing up in a board meeting, in front of your boss or worse (and it being traced back to you)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mackman on Friday October 04, 2024 @06:45AM (#41740043)
Listen. If it’s never supposed to happen then you definitely want a customer to tell you if it happens. Best way to make sure that happens is to insult their mum. It’s just good engineering discipline.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by bartread on Friday October 04, 2024 @08:02AM (#41740520)
In my younger and more foolish years I worked for a company called Redgate and, whilst there, I had to do some licensing jiggery pokery that stopped people using our tools if the licensing code had been tampered with or removed.

I didn't want to make it too easy for people trying to crack our tools so, if such a problem were detected, the error message spat out to the console bore no relation to what had gone wrong.

By "bore no relation" I mean the error message would be one of a number of lines of dialogue from a scene in a House episode where House is trying to figure out who Wilson's girlfriend is... which led to this:

https://gist.github.com/gregoryyoung/871736

Yes, Greg Young (the event sourcing guy) ran into an error that said "Because I wanna ask you about your girlfriend. I must know who she is, or you would've told me her name," because he'd moved Smartassembly minus the licensing DLLs. Of course, he didn't realise what he'd done "wrong" so he tweeted it to his considerable following and it went viral.

Because I'm exactly the sort of walking cliche you'd expect I was blissfully unaware of the unfolding drama, being away on sabbatical snowboarding at the time. I hadn't taken my laptop with me, I'd disabled data roaming on my phone to avoid a whopper of a bill after a couple of months away, and had only a gen 1 iPad to access email and internet. So of course I came back in the evening to discover that it had all kicked off, with this ludicrous chain of emails where people were trying to figure out what was going on, until somebody had the sense to go and look in our source control system (which at the time was still svn for most things), and figure out that it was my fault.

People saw the funny side and it wasn't that big a deal but the reason I bring this up is that the last line of dialogue in that scene is, "Your mama," delivered by Wilson to House, and it was also the error message for the final failure scenario I was looking for. I'm glad that one didn't get printed.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by tverbeure on Friday October 04, 2024 @01:23PM (#41743525)
Back in the nineties, 3D Studio used to be pirated by every kid in their dorm and more. The software had license checks all over the place apparently, but crackers tried to remove all of them.

However, if they missed one, it would move a random vertex by some random amount which is obviously very visible when rendering a 3D scene.

When people complained about this on forums (usenet mostly), they outed themselves for using pirated software.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by grujicd on Saturday October 05, 2024 @07:58AM (#41749284)
You should be 100% sure that such code never ever gets executed by legitimate user. As seen above, it doesn't have to be a bug in licensing code, it could be something external.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:07AM (#41754671)
Yup. Long ago, join an online Command and Conquer game. Boom, everything blows up. Piracy watchdog that reacted to my repairing Windows and not realizing I needed to reinstall the game after that.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by eastbound on Friday October 04, 2024 @02:13PM (#41744053)
System.exit(0); in Java is probably the most evil thing invented, when the license check fails (preferably launch a thread and do it without stacktrace, after a random time).

To this day I still think Google’s motto only referred to “Do no System.exit(0)”.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by m3047 on Friday October 04, 2024 @01:29PM (#41743575)
Sadly I mostly agree with this. File it with "the first time people get the password right tell them they failed, making them enter it a second time" and other janky but highly effective stuff.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by eastbound on Friday October 04, 2024 @02:15PM (#41744069)
I believe you can get someone’s entire list of passwords this way.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by nicce on Friday October 04, 2024 @07:59AM (#41740491)
I write alot of #![no_std] code in Rust and forgetting debug messages is luckily impossible because compiler won’t compile in the end if you forget something.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @10:43AM (#41741949)
The nice thing about DO NOT SUBMIT is that it worked in comments, text protos and other configuration files, and every language.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Suzuran on Friday October 04, 2024 @08:57AM (#41740919)
I did this once with the deliberate intention that be traceable. Holding down a few keys while clicking on a specific small set of pixels in an application we were developing for a customer would produce a specific message that was attributable to me personally. I did this sort of thing in most things I worked on back then, partially as a "calling card" and partially as a means of being able to prove my involvement in a given product if the need ever arose. This saved our bacon when a sales rep sent an "evaluation" copy of the nearly completed product to the customer, without authorization, that consisted of our entire source tree. (This was the 1990s and we were running MS-DOS, no file security)

Suddenly the customer tells us they have "repurposed" an "internally developed program" and they cancel our contract. The sales rep was upset that he would not be getting a commission on the sale and mentioned that he had "even sent them a demo", which led to the discovery of what had happened. My boss and I went to the customer's site to "finalize the paperwork", and when we were shown the application (which had extremely minor UI changes) I checked if the hidden click spot still worked, and it did! The customer was horrified. My boss was outraged.

We ended up getting paid the full contract amount plus a large bonus in exchange for agreeing not to sue. The sales rep decided to leave voluntarily rather than be fired.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by MonkeyClub on Friday October 04, 2024 @11:09AM (#41742225)
> Holding down a few keys while clicking on a specific small set of pixels

Did you draw inspiration for it from Bullock's The Net (1995) by any chance?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Suzuran on Friday October 04, 2024 @01:55PM (#41743860)
I don't think so; I don't remember ever seeing it
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jpm_sd on Friday October 04, 2024 @04:07PM (#41745098)
I like the way you phrased this. Maybe someday academics will refer to Bullock's net the same way we talk about Occam's razor, or Maxwell's demon, today.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dannyobrien on Friday October 04, 2024 @07:05PM (#41746338)
There's a fine tradition of this, especially at early Microsoft. It's documented here: https://www.pagetable.com/?p=43 , and includes hidden messages that Gates allegedly added himself to prove that code the company licensed could still be traced back to him. (I hit the Ric Weiland one mentioned on my first computer, the Ohio Superboard II - https://www.pagetable.com/?p=43#:~:text=the%201977/1978-,Ohi... ).

This was all in the era of Gates' Open Letter to Hobbyists[1], when "Micro-Soft" was licensing their code to companies, perhaps because direct sales to hobbyists didn't work out.

[1] https://en.wikipedia.org/wiki/An_Open_Letter_to_Hobbyists

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:05AM (#41754662)
Yeah, back in the DOS days I would normally embed something that would respond to specific nonsense.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by smitelli on Friday October 04, 2024 @08:07AM (#41740550)
> "DO NOT SUBMIT"

Kinda verbose, ain't it? Just speaking from my own personal experience, usually when I resort to print-debugging I'm already pretty punchy and more likely to use a quick "ASDFASD" or similar.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by bipson on Friday October 04, 2024 @09:09AM (#41741007)
Yes, but you can check for "DO NOT SUBMIT" with automation.

You can't automate checking for random strings, right?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by neutronicus on Friday October 04, 2024 @09:28AM (#41741172)
Perhaps an abbreviation would be the best of both worlds, and debug strings should be prefixed with "DNS"

You won't need to submit that particular string working at Google, right?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by tetha on Friday October 04, 2024 @11:55AM (#41742693)
We could also have an acronym for the more severe "DO NOT SUBMIT - SECURITY EXPECTATIONS COMPROMISE".
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by pixl97 on Friday October 04, 2024 @01:48PM (#41743767)
DNS-SEC...

Confused sysadmins wondering if this is SOX code...

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Tyr42 on Friday October 04, 2024 @09:38AM (#41741258)
The automation which can check for do not submit itself is hard to submit. Or at least updates to it are hard to submit.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Dylan16807 on Friday October 04, 2024 @01:28PM (#41743569)
forbidden_string = "DO NOT " + "SUBMIT"

Seems easy enough?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by organsnyder on Friday October 04, 2024 @02:05PM (#41743970)
Just disable that particular linting rule (or however it's implemented) in that repo.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by pjerem on Friday October 04, 2024 @12:55PM (#41743277)
Well in the LLM era, you could. I’m not sure you should :)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by trelane on Friday October 04, 2024 @01:36PM (#41743657)
> You can't automate checking for random strings, right?

No, but you can make the string configurable.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by anyonecancode on Friday October 04, 2024 @01:56PM (#41743877)
Related in terms of being easy to search for, I use the abbreviation "TK" as a placeholder for text or incomplete code. Took this from the publishing industry (my partner worked in magazines) -- it's a combination that does not appear in regular English and so is easy to both see and to use search tools for.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ASUfool on Friday October 04, 2024 @04:50PM (#41745454)
I hope you never built a rooTKit.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by anthk on Friday October 04, 2024 @06:44PM (#41746201)
TK is a semi-well known widget toolkit/GUI toolkit which came from TCL and today it's the default toolkit for Python. Nothing fancy, just basic menues/buttons and widgets, but they get the job done in a hurry.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by EvanAnderson on Friday October 04, 2024 @09:48AM (#41741360)
> > "DO NOT SUBMIT"

> Kinda verbose, ain't it?

I always used the word "doberman" for this purpose. I've never written code for a project that legitimately included the name of a dog variety. A simple grep for "doberman" in the production release CI pipeline catches it. If one ever did slip thru I figured it wouldn't be too offensive to anybody.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by durumu on Friday October 04, 2024 @10:00AM (#41741494)
I've used NOCOMMIT. Less verbose, equally clear.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by domoritz on Friday October 04, 2024 @10:44AM (#41741960)
I'd be scared to spell it with one M or two Ts.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by HaZeust on Friday October 04, 2024 @10:45AM (#41741965)
Not if a layperson comes across it and you miss an omission.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by hotspot_one on Friday October 04, 2024 @10:40AM (#41741921)
depends. If you are paranoid and afraid of dogs, ...
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by corobo on Friday October 04, 2024 @10:13AM (#41741645)
I use xyzzy

- Nothing happens

- Easy to find string in code, output, wherever

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by medstrom on Friday October 04, 2024 @12:06PM (#41742786)
And in GNU info manuals. https://www.gnu.org/software/emacs/manual/html_node/elisp/Se... Just so happened to be reading that in the next tab.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by rlpb on Friday October 04, 2024 @10:54AM (#41742063)
XXX is already highlighted by most editors by default (or at least mine) and seems suitable. Any comment to be committed to a shared branch should probably contain more specifics and not contain that, if you wanted to institute a policy.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by twic on Friday October 04, 2024 @11:07AM (#41742198)
I use the strings "XXX" and "999" for this (the latter because you sometimes need a dummy value in a numeric context), and have a global git hook which stops me committing a changeset which includes them.

I occasionally need to override the hook, for example when using mktemp -t, or when some floating-point data actually contains a run of 9s. But mostly, it is quite specific at catching stuff that shouldn't be checked in.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by metrognome on Friday October 04, 2024 @11:32AM (#41742475)
It's about writing code that your peers can read. "DO NOT SUBMIT" is clear as day. "ASDFASD" probably does not mean "this is a debugging string" to most people.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @11:44AM (#41742590)
Not really? it’s close to the minimum string you’d be okay with never actually wanting to commit. Never had a problem with it in logs, but it could be in a comment next to the log if you did. Easy enough to add a shortcut for if you really have a problem typing it out, but at my typing speed my brain has always been the bottleneck, not the number of characters.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by names_are_hard on Friday October 04, 2024 @12:10PM (#41742837)
I worked on a codebase that had a special logging function with a name like NoPushLog that was just a direct wrapper of the base log function. A githook checked that this string was not in pushed code.

This solves many of the concerns raised in this thread about readability, automation, avoiding typos in the magic string.

The tricky thing you have to solve is how to push the code that defines the custom logging function, but there are solutions.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @12:41PM (#41743147)
It doesn’t allow you to put that in comments, config files or other languages though like a plain text string.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by sneak on Friday October 04, 2024 @02:22PM (#41744131)
Why wouldn’t it? Sounds like the git hook is probably just grep…
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @06:20PM (#41746062)
Then why have a function?
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by saagarjha on Friday October 04, 2024 @10:19PM (#41747246)
Because it distinguishes the normal logging function from the ones that are for local debugging.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ajb on Saturday October 05, 2024 @04:15AM (#41748434)
Because of you made a typo, you're more likely to notice than in a comment or string, because it will fail, even at build time if you're using a compiled language
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Saturday October 05, 2024 @10:54AM (#41750306)
Right, but the whole point of DO NOT SUBMIT is that it doesn’t need to be in the compilation step. It can be in data files, comments, etc. You can change your syntax highlighting theme to spot the typos x (I added them with a keyboard shortcut anyways)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by sneak on Saturday October 05, 2024 @10:35PM (#41754315)
You need to compile the code with all the debugging logging in it so it can run and print out all the “got here 3”s and so forth.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by default-kramer on Friday October 04, 2024 @12:14PM (#41742870)
I use "NOMERGE" plus the habit of grepping for it before I merge a branch.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by secondcoming on Friday October 04, 2024 @02:04PM (#41743958)
"GOT_HERE_1"
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by refulgentis on Friday October 04, 2024 @06:57PM (#41746279)
They pay you enough that you'll respect the need to be professional and write "DO NOT SUBMIT" over "ASDFASD" or similar.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by veunes on Friday October 04, 2024 @08:40AM (#41740788)
It's amazing how many processes evolve because of incidents like these.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by indrora on Friday October 04, 2024 @01:57PM (#41743883)
When I worked as a technical writer earlier in my career, we had a debug/prod check: If you used a series of words it would fail you in prod (refused to build). These were usually codenames of projects and such.

One afternoon, I added the phrase "[Ww]ombo\s[Cc]ombo" (it supported regular expressions) and an expansion set (&prodbomb; evaluated to &wca; &wcb; to create "womb combo") but only in prod. In debug builds, it would produce "Wombat Combat"in bright red text.

This was a useful way to mark pages as "Don't build this in prod yet" - a habit some teams had of just yolo'ing their development branches right into production instead of doing a rebase to main. More than one build was saved by it within a few months.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by thephyber on Friday October 04, 2024 @06:11PM (#41745999)
All of the comments seem to talk about automation for detecting sloppy logging.

Is nobody reviewing code before merging it upstream?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mattnewton on Friday October 04, 2024 @06:19PM (#41746052)
Belt and suspenders.

Every line was reviewed but that doesn’t mean it would be caught every time. And if it’s automatable to catch things like this it should be.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by thephyber on Thursday October 10, 2024 @05:17PM (#41803679)
Right, but I’m pointing out that everybody is using a belt and nobody suspenders.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by CPLX on Friday October 04, 2024 @09:25PM (#41747021)
> "DO NOT SUBMIT"

That's pretty good advice if you find yourself dealing with a large tech company.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Terr_ on Friday October 04, 2024 @01:26AM (#41738118)
> Since then I have started using things like aaa and 111 as my debug markers.

I often use my initials and "DEBUG", so that the string (A) is distinctly grep-able before committing code and (B) if it somehow ends up in production it's not totally mysterious.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by adastra22 on Friday October 04, 2024 @02:04AM (#41738305)
I like this, but use the initials of annoying Steve down the hall.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by daurnimator on Friday October 04, 2024 @02:24AM (#41738390)
And if he isn't "annoying Steve" now he will be known as that soon enough :)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dctoedt on Friday October 04, 2024 @11:13AM (#41742258)
> And if he isn't "annoying Steve" now he will be known as that soon enough :)

I once heard a guy — named Ed — who responded to a query about something with, "Well, I'm special." You can guess how he was referred to from then on ....

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jxramos on Friday October 04, 2024 @03:38AM (#41738813)
same, "DEBUG 1", "DEBUG 2", "DEBUG 3 with description xyz", etc.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Terr_ on Friday October 04, 2024 @04:14AM (#41739040)
> DEBUG 1, DEBUG 2

If the language has them, it's often valuable to use techniques that automatically insert file/line number data, so that you don't need to spend time creating unique labels.

It goes without saying that a real debugger is even better, but it isn't always convenient or possible.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by TremendousJudge on Friday October 04, 2024 @01:13PM (#41743435)
Sometimes an interactive debugger session will make the issue you are researching not happen -- I don't know of a way of tracking down race conditions that isn't logging everything that happens until I find out which thing happened before which other thing that wasn't supposed to
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Terr_ on Friday October 04, 2024 @03:38PM (#41744876)
> Sometimes an interactive debugger session will make the issue you are researching not happen

I still remember the first time that happened to me, I think it had to do with some (not yet diagnosed) race condition on a PHP server between the HTTP requests it served, and the debugger had a side-effect of blocking the next request while I was inspecting the first one.

That reminds me of another thing: Some debuggers allow you to set breakpoints and set them to not suspend or pause execution, but to emits a log-message to the debugger or terminal instead.

Those are an upgrade over print-statements in that:

1. You can't accidentally commit it and it doesn't show up to make your diffs weird

2. You may be able to dynamically change what things it prints out without restarting the program

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by eastbound on Friday October 04, 2024 @02:21PM (#41744127)
And the reverse: I change values using breakpoints. So the code runs (because the breakpoint condition is false) but the value is different. Example of breakpoint condition:

(licenseActive = true) != true

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jxramos on Monday October 07, 2024 @05:39PM (#41771344)
yah that may be worth turning on that feature or altering the debug trace during a debug session to see what line comes up, not a bad suggestion. We turn off line traces in general so that the debug logs can be diffed after stripping off variant fields in the log records like object addresses and timestamps. While a project is in development the log line numbers would add a lot of diff noise.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ajross on Friday October 04, 2024 @10:20AM (#41741721)
FIXME is also popular.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by sn9 on Friday October 04, 2024 @02:00PM (#41743912)
Am I the only one who just uses my name?

As in "MYNAME: " prefixed to whatever useful information I might need.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by greenchair on Saturday October 05, 2024 @08:02AM (#41749306)
you are not the only one buddy!
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mstade on Friday October 04, 2024 @03:50AM (#41738883)
I did something similar years ago when working on a gambling site where people could upload bets in bulk using specially crafted files.

During development this would sometimes break but only in very specific circumstances, and because they were so absurd and seemingly specific to our local development environment I just added an error message saying "watch and amaze while the application eats itself!" Or something to that effect. It was inspired by an error I saw with the Discworld game for the original PlayStation.

Of course, once this hit production it turns out the det of circumstances necessary to trigger this error wasn't quite as specific as I'd thought, and support was overloaded by hundreds of people calling in to report the error, worried that their money was gone. Of course, people using these feature were high rollers placing very large bets, so management was not happy...

Fortunately I wasn't fired and we fixed the issue very quickly, but man I felt the edge of that sword really close to my neck. It was at one of my first jobs as well nearby 20 years ago. I definitely learned some valuable lessons that week. :o)

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by doublerabbit on Friday October 04, 2024 @04:50AM (#41739271)
> I wasn't fired and we fixed the issue very quickly, but man I felt the edge of that sword really close to my neck.

The same experience. I was working for a pornography company and where I was configuring load balancers. I had a test page of semi-naked red deviless with the words "Hello Minion" above her head which I had forgotten to remove.

So during peak times, when the misconfigured LB went active it threw that page to the public, advertisers and the other white labelled websites.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by eru on Friday October 04, 2024 @08:10AM (#41740576)
I feel like given the industry, they should have a higher tolerance for slightly spicy placeholder images?
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mooktakim on Friday October 04, 2024 @02:48AM (#41738503)
It doesn't matter how advanced debugging gets. At the end we always use print. Only reliable thing to do.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by IshKebab on Friday October 04, 2024 @03:23AM (#41738736)
Sometimes you can't even print and have to resort to toggling a GPIO pin...
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by bloak on Friday October 04, 2024 @07:52AM (#41740440)
I've worked with systems that were so utterly and entirely broken that the only way I could confirm that a particular code path was followed was by inserting an infinite loop and observing that the system then hung instead of crashing.

Combine that with a build system that is so utterly and entirely broken that the only way to be sure is to do a fresh checkout each time, and with a hardware set-up that involves writing the binary onto flash memory and plugging it into a device that is located under somebody else's desk in another room and then perhaps you have the Debugging Cycle From Hell.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Moru on Friday October 04, 2024 @09:14AM (#41741051)
When I was programming at home om my Atari ST I thought debuggers was the greatest invention ever. It was wonderful to be able to step through assembler code line by line, instead of looking at BASIC print statement output and guessing what was going on and where. Made life so much easier.

Don't people believe in debuggers any more?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by IshKebab on Friday October 04, 2024 @11:03AM (#41742148)
Some people just don't believe in tooling full stop. Kind of mind-blowing. They're essentially coding with a fancy notepad.exe.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by db48x on Friday October 04, 2024 @01:31PM (#41743603)
What’s weird is that debuggers are so advanced now. rr and Pernosco are to regular debuggers like regular debuggers are to inserting an infinite loop into your code.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by polotics on Friday October 04, 2024 @02:54PM (#41744445)
I guess that once you reach a certain level of coding, static verification, strong typing, solid unit tests, you only got timing multi-threaded Heisenbugs left to find...
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:27AM (#41754745)
And even without that when you're faced with a bug caused by a large input of some kind it's often easier to dump a bunch of data and look for what doesn't fit.

I've had two Heisenbugs, although no threading involved:

1) Long ago, interface library for going from protected mode to real mode in I believe it was Borland Pascal (I can't recall for sure where this was relative to the name change.) Step through at the assembly level, it worked. Anything else it might work but that was unlikely. The only outcomes were correct or segment error, it never returned a wrong answer. Culprit: Apparently nobody used the code. The whole file was riddled with real mode pointers declared as pointers. Oops, when asked to copy a pointer the compiler emitted code that loaded it into a segment:offset pair and then stored it. If the segment part happened to be valid, fine. If it wasn't a valid segment, boom. The debugger apparently did not actually execute a single step, it emulated it--except for not failing on an invalid segment register value. In any other case the attempt to dereference it would have blown anyway, but this wasn't being dereferenced.

2) Pretty recently, C#. I had a bunch of lazy-initialize data structures--and one code path that checked for the presence of data without triggering the initialization. But the debugger evaluated everything for display purposes, triggering the initializer. There is a way to tell the debugger to keep it's hands off but I hadn't heard of it until I hit it.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by neongreen on Friday October 04, 2024 @08:01PM (#41746644)
I used the debugger all the time when I was writing in Pascal (and later Delphi). It was great.

Then I switched to Haskell. No (useful) debugger there.

Now I write TypeScript, and.. somehow I never figured out how to do debugging in JS properly. Always something broken. Breakpoints don’t break, VSCode can’t connect to Node, idk. Maybe I should try again.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:31AM (#41754764)
The Borland Pascal had a problem with too much debug data. By the time that program got retired I could turn on the symbols for a few percent of the code, set a breakpoint and examine the situation when it triggered but not continue at that point.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by cpgxiii on Friday October 04, 2024 @08:54PM (#41746880)
Once you get to a complex enough system, sometimes a debugger just isn't enough.

E.g. I have a multi-threaded and multi-process robot control system - I can't put breakpoints in the controller to debug why the robot misbehaves, because then the control loop timing is broken and the robot faults. Instead, you have to put the time into effective logging tools, so that you can capture the behavior of the running system and translate that into a simpler and smaller example that can be examined offline. Maybe those you run under a debugger, but you probably can express what values you want to examine and when more cleanly in code than in the debugger, with the significant advantage that it's easier to communicate "run this code and look at the output at step n" than "run this code with these breakpoints and these debugger scripts".

My view at this point is that the conditions I would normally examine in a debugger with breakpoint and stepping are usually so rare (e.g. a few in potentially thousands/millions of iterations) that I need to write logic to express what checks and where I want to make them, and I would rather write that logic in the context of the program itself than do so in the debugger.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Moru on Saturday October 05, 2024 @02:25AM (#41748078)
Ofcourse there are edge cases that don't work with a debugger. I have been there too. Timing sensitive applications like controlling the fat-TV live on scanline/pixel level can't be debugged. Physical objects that move over a certain speed can't be live debugged because of physics. This is still edge cases.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by cpgxiii on Saturday October 05, 2024 @04:13AM (#41748424)
> This is still edge cases.

Arguably, once you are working on a sufficiently complex and mature system with good-enough tooling and tests and development practices, these edge cases can come to dominate. I don't spend time debugging simple things on their own, because the simple things on their own are generally well tested, so the failures that do happen emerge from their combination and integration into complex systems.

That said, I do spend a fair bit of time using a debugger as my first-line response to an issue - but overwhelmingly it's to examine a crashdump of the failure rather than investigate a live process.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by qingcharles on Friday October 04, 2024 @11:25AM (#41742382)
This is a hacking technique too -- I've seen it used for extracting entire databases via SQL injection by putting delays in SQL statements and then measuring how long the web page hangs, when you can't force any output on the page. You put different delays in for different string matches and eventually you can get all the table and column names this way.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by brunoarueira on Friday October 04, 2024 @04:53AM (#41739284)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by serf on Friday October 04, 2024 @08:59AM (#41740929)
I sort of laugh when using chatgpt/claude to code anything, if you ever mention to it that something isn't quite working right it'll pepper the entire code with printed debug statements rather than assisting you with any more advanced debugging methods.

even the bots do it (joke)

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mwkaufma on Friday October 04, 2024 @03:23AM (#41738734)
CVS at my first job was configured to reject commits containing f-bombs after a spicy debug message sneaked into production and showed up in a children's game.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by PhilipRoman on Friday October 04, 2024 @04:00AM (#41738940)
Lol, at $work there is a big list of forbidden words, I was not aware of it until I created a pull request containing the phrase "bad packet". Turns out "bad" is in the list, along with stuff like "workaround", "hard-coded", and also a huge list of every slur and vaguely sexual term known to man, some of them oddly specific like "son of a motherless goat". Learned a few new words myself that day...
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by johnisgood on Friday October 04, 2024 @04:34AM (#41739171)
Why is "bad", "workaround" and "hard-coded" are on the list of blacklisted words? Sounds kind of dystopian; just because you forbid a word from the dictionary or remove it, it does not solve the underlying issue.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by nuancebydefault on Friday October 04, 2024 @07:08AM (#41740170)
I don't like the 'bad gateway' Http response. I'd rather it'd find the good way and show me the freakin' website /i
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Anthony-G on Friday October 04, 2024 @05:39AM (#41739596)
Dystopian for sure: I’d wager that if the code-base lives long enough and the pool of developers is large enough, they will start using Newspeak words such as “ungood” or “doubleplusungood” – or other synonyms for “bad” – to work around the blacklist.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dotnet00 on Friday October 04, 2024 @06:04AM (#41739802)
You mean to work around the ungoodlist :)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by geoduck14 on Friday October 04, 2024 @08:06AM (#41740544)
You joke, but the phrase "black list" isn't allowed where I work. It contains "black," which has racial connotations. We use "block list" instead. I didn't realize the connection to Newspeak until now
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dotnet00 on Friday October 04, 2024 @09:53AM (#41741417)
Yes, a lot of dumb little "American political brainrot" like that has been getting pushed in places.

Another example is GitHub changing the default branch name from master to main due to their perception that the existence of a master implies the existence of slaves.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by kevin_thibedeau on Friday October 04, 2024 @11:51AM (#41742664)
Electronics protocols are getting a newspeak renaming with sometimes humurous results when you see documentation where mass search-and-replace mangled a substring or they forgot to replace the bad words in all caps.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by PhilipRoman on Friday October 04, 2024 @12:17PM (#41742890)
This gem comes to mind: https://github.com/rust-lang/rust/pull/95508/files/76cf1e1e4...

Reads almost like a haiku

     struct Simba {
    -    mother: u32,
    -    father: u32,
    +    parent: u32,
    +    parent: u32,
     }
     "I don't think this will compile"
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by FabHK on Friday October 04, 2024 @11:44PM (#41747567)
Brilliant. The bot also replaced

    // trust that the user knows what s/he's doing. 
with

    // trust that the user knows what s/they's doing.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by erik_seaberg on Saturday October 05, 2024 @12:03AM (#41747639)
I'm still peeved about the bot that scolded us for the word "Mastercard," which was not only a household name but also an enum value on the wire that payment processing absolutely had to support.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jacoblambda on Friday October 04, 2024 @11:35AM (#41742510)
okay so as much as people like to meme on the whole banning blacklist/whitelist thing, it actually makes things clearer to just say blocklist/allowlist, especially for non-native speakers.

People got grumpy about master/slave being replaced with server/client, superior/subordinate, leader/follower, and similar terms but that actually largely benefits as well in that it makes things clearer. Anyone who has dealt with bus protocols that support the more complex "multi-leader" setups or peer-to-peer setups knows how the master/slave terminology can be confusing and potentially limiting in accurately describing the parts of the system.

And the git master/main thing also is more a matter of just making things easier to pick up. Master can be confusing there for the same reasons it's confusing in bus topologies. Main instead is obvious. It's the main/mainline branch of the project. And that also helps set the divide for main vs feature vs maintenance branches (and release tags).

So yeah some of it was done under the guise of politics but that's generally been more about getting an excuse to make the change without people dismissing it rather than the underlying reason for the change to happen.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dotnet00 on Friday October 04, 2024 @03:50PM (#41744979)
I tend to not really notice whtever slight cleanliness/communication improvement any of these changes add (this is probably just a me thing).

So, putting politics aside, I don't really care as long as it isn't breaking existing stuff. My only point of contention has been the politics behind some of the pushes.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jrockway on Friday October 04, 2024 @12:59PM (#41743307)
2 fewer characters to type every time you switch branches. I can’t complain.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by snapcaster on Friday October 04, 2024 @11:47AM (#41742619)
Aren't blocklist and allowlist strictly better as terms? Black and white (even ignoring the connotations) require at least one level of indirection compared to explicit terms that describe what they are
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Anthony-G on Monday October 07, 2024 @01:49PM (#41768790)
Mea Culpa :)

I actually agree with some of the other commentators that "blocklist" is probably a better term but it’s not easy to start using a new term instead of one I’ve been used to for decades.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by HanClinto on Friday October 04, 2024 @08:32AM (#41740720)
My guess is it's about client perception (and perhaps even admission of guilt).

My first encounter with this was as a young developer at an electronics manufacturing company. When discussing a request from a customer to change a particular undesirable behavior of the device, I referred to this as a "bug" in an e-mail to them.

I was quickly reprimanded / corrected, with the explanation that -- while "bug" is a somewhat innocuous term to engineers, to non-engineer types it brings to mind a whole host of bad images, fears, and can lead to canceled contracts under the premise that we've delivered bad-faith product. I was initially very resistant to this idea, but I've seen the wisdom in this as I've matured as an engineer over the past 20 years since this run-in.

For a related example, it reminds me of this issue that was opened on llama.cpp by a user who was concerned that the software had been "hacked":

https://github.com/ggerganov/llama.cpp/issues/33#issuecommen...

> Hey, I was reading your Readme.md and I saw that your repo was hacked. I want to ask what this means and wanted to check if the users like me also get the impact of hacking. Or, this is not the thing I should worry about?

Of course, the repo was not hacked -- but the founder of the project mentioned that it had been "hacked together" (as a term of humility / self-deprecation) and some users got the wrong idea of what he meant by that.

So I don't think this is about censorship, so much as good public relations. "Don't spook the horses" -- not all words mean the same things to engineers as people whose perceptions of technology are shaped more by movies and headlines.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by secondcoming on Friday October 04, 2024 @02:05PM (#41743968)
"blacklist" is also blacklisted
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by arethuza on Friday October 04, 2024 @08:18AM (#41740626)
I remember reading a great story about someone doing embedded development who was doing something like download firmware onto a device and being told "Checksum is bad"...

After much checking it was realised that this was because the checksum literally was 0xBAD....

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by int_19h on Friday October 04, 2024 @11:12AM (#41742256)
In some places, those lists are even more extensive as they include transliterations of profanities in all the various languages the product is ever localized in.

Sometimes this leads to embarrassing issues. I remember one case where a Chinese guy named Hui was unable to make a blog post on his team's official public blog. Turned out that his name was on the list of banned words because of https://en.wiktionary.org/wiki/%D1%85%D1%83%D0%B9#Russian

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:37AM (#41754793)
Somebody needs to study the Scunthorpe problem.

I was trying to explain to my wife where something was. In the [profane word for vagina] section. The B section.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Daviey on Friday October 04, 2024 @04:42AM (#41739222)
Back in 2009, I saw something similar was when a user reported a bug to Ubuntu regarding Pulseaudio[0]. Basically the error messages was:

  $ pulseaudio
  W: main.c: D-Bus name org.pulseaudio.Server already taken. Weird shit!
I thought a user facing error message like this is inappropriate, so politely took the issue upstream [1].

Lennart, who I had spent some time with in real life a few months previous, didn't yet have the reputation for being the person he is today. I thought he'd be pretty reasonable about it. Instead he closed the bug as "won't fix" and left the comment, "Sorry, but please don't waste my time, will you?".

I was pretty shocked by his response, I lost a lot of respect for him at this moment and then wrote a long ass blog post about professionalism of developers and appropriate language for user facing error messages.. but still, Lennart tainted himself and showed the person we now know him as. (Also, if you are reading this Lennart, fuck you).

Ubuntu ended up carrying a patch simply to remove this inappropriate language, I never checked if it was eventually cleaned upstream or if other distros also removed it.

EDIT: I just checked, and it was eventually removed in 2011 [2]

[0] https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/44...

[1] https://lists.freedesktop.org/archives/pulseaudio-bugs/2009-...

[2] https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commi...

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by homebrewer on Friday October 04, 2024 @06:13AM (#41739856)
What "reputation"? He's disliked by a very loud minority, the rest of us don't care. I will take someone like Poettering who's actively solving decades-long problems over a useless "professional" any day of the week. He's effective because of his bullish personality.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Daviey on Friday October 04, 2024 @06:19AM (#41739892)
Either you know about his "reputation" or you don't.

Those that have never interacted with him don't care, I agree (I mean, why would they?). But those that have, i'd suggest is a minority that can tolerate him.. but ho-hum, neither of have statistics on this so we'll never know.

When I met and had discussions with him in 2007 he was mild and seemed to be constructive, i'd suggest his "bullish personality" became more prevalent with time.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by majewsky on Friday October 04, 2024 @10:54AM (#41742067)
I met him once in 2012 and ate dinner with him and Kay Sievers. I agree to your observation about "mild" and "constructive", and will extend by saying that he appeared to me as someone fiercely focused on technical challenges. Therefore the "please don't waste my time" bit further up the thread appears to me totally in character for him. Lennart is really similar to Linus pre-2018 in that regard.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by speed_spread on Friday October 04, 2024 @07:50AM (#41740425)
There's no correlation between effectiveness and rudeness. Some people are effective _despite_ being assholes.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by consteval on Friday October 04, 2024 @10:01AM (#41741507)
No, there's a strong correlation between leadership and being bullish. Because in order to get what YOU want done YOU have to advocate for yourself - other people won't advocate for you. Being stubborn is a type of advocacy.

People will claim it's unprofessional, and it is. The problem is that when other's are also unprofessional you can't convince them by being professional.

If you look at who moves up the social ladder fastest and retains their power the longest, they are typically hard-headed people. The have an almost unreasonable amount of confidence in themselves, and in many ways they are delusional.

However, I would argue such a personality is better than being timid. Ultimately, past the computers and the programs we are humans, and human effects come into play. Success is not just measured by correctness; it's measured by perception.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mistrial9 on Friday October 04, 2024 @11:08AM (#41742214)
there is no simple way to dissect these inter-related statements, but from my point of view, no. Plenty of people here have dealt with serial abusers, which is being defended as "ends justify the means" above
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by consteval on Friday October 04, 2024 @11:18AM (#41742302)
To be clear there's a far, far gap between being abusive and being bullish. It's quite immature of you to make that leap and use that to paint me as pro-abuse to discredit my argument.

You could instead provide a real argument, not "well what you say is used to defend abusers!"

Yes, and famously Hitler wanted economic strength for his country. I guess wanting economic strength makes you Hitler? ... wait no, definitely not.

I don't have patience for these weak types of arguments. Saying nothing at all is free and easy, I would look into that more if I were you. Seems more your pace.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by tacitusarc on Friday October 04, 2024 @11:49AM (#41742641)
I find the content of your statements reasonable, but the ad hominem really undercuts the message.

Many years ago, someone replied to me saying, “you’re right, but your comment is so abrasive,” and that really stuck with me.

Humility and grace can go a long way, even in internet conversations.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by consteval on Friday October 04, 2024 @12:06PM (#41742796)
To be fair, my argument was taken in such a ridiculous and offensive direction I felt it necessary.

It's one thing to think I'm wrong, it's another all together to warp my argument to make me appear crazy. Or pro-abuse. Or whatever. That, to me, isn't in good faith and I quickly lose the motivation to be kind. I work under the assumption the people I talk to aren't stupid, they're aware of what they're doing. I won't extend pity or give people the innocence of a child. In my eyes, that is even more offensive.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by tbrownaw on Friday October 04, 2024 @02:32PM (#41744230)
> There's no correlation between effectiveness and rudeness.

Ineffective assholes are nonentities. Therefore all assholes worth noticing are effective, and all ineffective people worth noticing are nice.

I believe there's a name for this effect, but what it is escapes me at the moment.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by FabHK on Friday October 04, 2024 @11:39PM (#41747545)
It's Berkson's paradox:

> Berkson's paradox is a false observation of a negative correlation between two desirable traits, i.e., that members of a population which have some desirable trait tend to lack a second. Berkson's paradox occurs when this observation appears true when in reality the two properties are unrelated—or even positively correlated—because members of the population where both are absent are not equally observed.

https://en.wikipedia.org/wiki/Berkson%27s_paradox

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by toyg on Friday October 04, 2024 @10:28AM (#41741802)
> Poettering who's actively solving decades-long problems

He's doing that only because it's his job: his employer has an agenda (i.e. steering Linux fast enough and disruptively enough at a low level, so that serious competitors cannot arise), and he's implementing that agenda without a care in the world.

Would I personally take such a ruthless mercenary over more community-minded folks? No.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by pbhjpbhj on Friday October 04, 2024 @07:21AM (#41740245)
Based only on your post I'm confused. You better a person for including "weird shit" in an error message. But the on a pubic forum tell them "fuck you".

On the basis of profanity alone, your action seems far worse than their's?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Daviey on Friday October 04, 2024 @07:50AM (#41740422)
This is a community, not an end user facing error message for a product for the public used by millions of people.

I can use profanity in my communication, but I would never put foul language in an error.. same as I wouldn't in documentation or a formal letter.

Just imagine a pop-up dialogue box on Windows or OSX showing an error with "Weird Shit!" in it. Could you?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by beeboobaa3 on Friday October 04, 2024 @08:37AM (#41740753)
I can, and it'd be pretty funny. Better than "Something went wrong!".

Why does it upset you so?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Daviey on Friday October 04, 2024 @08:51AM (#41740869)
It wasn't me that raised the original bug, but a user. I didn't say it upsets me, but I do consider it unprofessional for a product.

So tell me, why would it be "funny"? Are you, or have you ever been responsible for content end users might see?

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by serf on Friday October 04, 2024 @09:03AM (#41740967)
I don't think it's funny , but I do feel it's entirely more palatable than "WOOPS SOMETHING WENT WRONG <cute_dog_picture.jpg>" scheme that Amazon and other dotcoms use.

Regardless, the Lennart tirade added into the anecdote really just convinces me that the anecdote is there purely for axe-grinding.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by beeboobaa3 on Friday October 04, 2024 @12:44PM (#41743173)
Because it's practically identical to "Something went wrong!" but different and unexpected, which makes it funny. I don't know. Can you really explain what exactly makes something funny?

> Are you, or have you ever been responsible for content end users might see?

Yes. I don't do such things because of curmudgeons like yourself. But as a user I wouldn't mind at all, and think it's funny.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Izkata on Friday October 04, 2024 @02:17PM (#41744090)
It would be less scary than "...has performed an illegal operation" was to non-technical users.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by sgarland on Friday October 04, 2024 @08:56AM (#41740914)
The larger WTF here is a developer thinking that Linux having audio problems is weird.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by snapcaster on Friday October 04, 2024 @10:32AM (#41741844)
This seems so fragile and prudish. I can't imagine having any other reaction beyond chuckling and moving on
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by tomphoolery on Friday October 04, 2024 @03:00AM (#41738581)
I had a comment in this file for a very long time but the project lead was something of a Professional so he removed it. The comment was "# MULTIPASS!"

https://github.com/workarea-commerce/workarea/blob/master/co...

Some context:

- The 5th Element is a cool movie

- My sister's dog was named Leeloo Dallas Multipass and she was like my favorite dog of all time

- I was the original developer of the `ProductMultipass` search query feature

- Turns out, funny comments make other developers like your product more

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by roydivision on Friday October 04, 2024 @03:07AM (#41738624)
I handed a project over to a new developer once before leaving the company. I returned about 18 months later, and he'd stripped out the one Easter egg I'd put in. No sense of humor that chap. Good coder though.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by PetahNZ on Friday October 04, 2024 @05:01AM (#41739332)
I made a website for a goat breading society. It played screaming goat sounds if you typed the Konami code. I was sad the day that site was replaced.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by yellowapple on Friday October 04, 2024 @11:09AM (#41742219)
If I was a goat I, too, would scream if I was breaded :)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by worstspotgain on Friday October 04, 2024 @03:15AM (#41738676)
She's not my bride. She's my fare.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by qingcharles on Friday October 04, 2024 @11:22AM (#41742349)
Username checks out.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by 0xfeba on Friday October 04, 2024 @03:43PM (#41744920)
I just made one last week that cracks me up still:

// We are liiiiiving in a material world, and I am a ma-ma-material org.

const materialOrgs = await db_read<Org>(organizations, { type: 'materials' });

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by pcl on Friday October 04, 2024 @02:16AM (#41738352)
I use ##### along with a git commit hook that rejects commits adding such text.

I like the 5 pounds because they are visually easy to find on the screen, too.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by throwawayk7h on Friday October 04, 2024 @03:24AM (#41738747)
I use DONOTCOMMIT the same way.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by projektfu on Friday October 04, 2024 @06:43AM (#41740031)
Also prevents getting too deep in your markdown outline structure.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by xnorswap on Friday October 04, 2024 @03:21AM (#41738719)
This is why I enjoy writing C#/.Net, I don't need to deal with nonsense like print debugging.

I don't think I'd be anywhere near as productive without:

   - Conditional breakpoints
   - Debugger.Launch 
   - Debugger.Break
   - Debugger.Write 

Conditional breakpoints are essential, just run as normal and it'll only break when your bizarre edge case is hit.

Debugger.Break and Debugger.Launch are like a breakpoint that gets hit even when you're not debugging, and prompts you to attach a debugger. ( Launch won't pause if you already have one attached, but especially useful when you want to attach to a start-up routine in an IIS hosted web-app. )

Debugger.Write writes to a different output stream, and like all Diagnostic.Debug statements, isn't even compiled into release builds, so there's zero chance of it ending up in prod.

These are essential tools for rapid debugging. Printing nonsense and hoping to spot it feels 20+ years out of date.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by rglullis on Friday October 04, 2024 @03:30AM (#41738773)
Get off your .NET high horse. Every reasonably mature language has powerful debuggers.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by xnorswap on Friday October 04, 2024 @03:53AM (#41738903)
Well indeed, I could have said, "this is why I enjoy working in a mature environment". .NET just happens to be my experience.

The point I was trying to make is that you shouldn't be print debugging in 2024.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by rezonant on Friday October 04, 2024 @04:17AM (#41739063)
Unfortunately it is not always possible to debug for a myriad of reasons
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by appendix-rock on Friday October 04, 2024 @04:22AM (#41739096)
Yawn. I’m all but certain that all the environments in these “print debugging fail” stories have debuggers. The fact that generation after generation of programmers fall into print debugging, despite there being “no reason” to do it in many contexts for…decades at this point, should tell you that you’re missing something, not that everyone is dumb except for you.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by xnorswap on Friday October 04, 2024 @04:26AM (#41739119)
I'm not saying people are dumb, I'm saying we've failed to provide good dev UX for debugging, so that people find it easier to reach for print debugging than leverage their debugger.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by xnorswap on Friday October 04, 2024 @05:25AM (#41739494)
It's also clear I got the tone of my original post wrong, I was always trying to make this point, not some point scoring "I'm better because I use X".
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ziml77 on Friday October 04, 2024 @09:31AM (#41741192)
FWIW I didn't get the feeling at all that you were trying to come off as superior because you use .NET and its debugger.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by high_na_euv on Friday October 04, 2024 @05:08AM (#41739383)
I wish it was true

My experience in cpp is 5 times worse than in .net

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by alfiedotwtf on Friday October 04, 2024 @05:34AM (#41739563)
I still haven’t found a good way of debugging async code that also has timing restrictions…

.., the world runs off print statements sprinkled throughout by a very frustrated and angry developer

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by neonsunset on Friday October 04, 2024 @08:51AM (#41740867)
Does the GP comment claim that other languages cannot have similar quality of tooling? Why reply with a swipe?
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ploynog on Friday October 04, 2024 @03:44AM (#41738847)
Cool story bro. Let me tell the guys at work that we should just run .NET on our multi-core digital signal processors.

And we should also teach them not to get their delicate timing out of whack because they'll immediately stop dropping incoming samples if any of them gets interrupted by a debugger.

I'm sure everyone will be delighted.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dotnet00 on Friday October 04, 2024 @06:07AM (#41739817)
There are endless numbers of cases where you can still end up having to just resort to print debugging, even in C#. Race conditions are a great example.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by chris_pie on Friday October 04, 2024 @07:08AM (#41740168)
you can configure the breakpoint to log stuff to the console, instead of breaking
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by throwaway2037 on Friday October 04, 2024 @07:50AM (#41740426)
Real question: Does Java have equivalent methods? I have never seen them.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by evilc00kie on Friday October 04, 2024 @02:06AM (#41738312)
Well, maybe I shouldn't use "Hello" by Adele either for the same reason ^^*
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by laurent_du on Friday October 04, 2024 @01:38AM (#41738178)
This reminds me of the classical episode of the Onion "Is The Government Spying On Schizophrenics Enough?".
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by blast on Friday October 04, 2024 @03:09AM (#41738637)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by guenthert on Friday October 04, 2024 @07:04AM (#41740152)
Came for me with an ad for supposedly an in-ear hearing aid. Of course it's such a whispering device. You can't fool me!
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by varjag on Friday October 04, 2024 @04:41AM (#41739217)
I remember a colleague leaving a debug popup "fuck is wrong with the data" in a product outsourced to us. Naturally it popped during the customer demo, in presence of someone like Germany's minister of something.

We had a good laugh; the dude was fired on the spot tho.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by veunes on Friday October 04, 2024 @08:46AM (#41740833)
It’s one of those mistakes that’s hilarious in hindsight for everyone except the person responsible
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by lexicality on Friday October 04, 2024 @05:15AM (#41739432)
Personally I use the word "MEOW" because a) it's easy to search for and spot in logs b) it will (hopefully) never be a legitimate string in the kind of things I work on c) fairly unlikely to cause offence (unless the customer is a dog)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ndsipa_pomu on Friday October 04, 2024 @06:46AM (#41740055)
Not a good choice if you refer to "homeowners" in the app though.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by stuartjohnson12 on Friday October 04, 2024 @08:46AM (#41740828)
Wanted to make this comment, scrolled in anxious anticipation hoping no one else had made it yet, sadness washes over me.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Damogran6 on Friday October 04, 2024 @11:10AM (#41742236)
Have an upvote, just the same. (From someone else who's thoughts aren't as original as he'd once thought.)
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by herodoturtle on Friday October 04, 2024 @09:06AM (#41740989)
Hacker news poetry right here.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Tijdreiziger on Friday October 04, 2024 @06:01AM (#41739771)
https://upload.wikimedia.org/wikipedia/en/f/f8/Internet_dog....

(alt text: vintage meme depicting two dogs using a computer, captioned ‘On the Internet, nobody knows you’re a dog.’)

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by ithinkso on Friday October 04, 2024 @06:12AM (#41739853)
Our testers (China and India) know that when they see KURWA or DUPA in logs that to send it straight to the polish site, we are considering adding a hook to check for those
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by coldpie on Friday October 04, 2024 @07:25AM (#41740263)
I use "QWERT", for the same reasons.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by SpaceNoodled on Friday October 04, 2024 @05:25AM (#41739496)
BRB grepping our codebase for MEOW
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by bendigedig on Friday October 04, 2024 @05:26AM (#41739502)
I use "meow", "woof", and "cheeseburger".
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by mananaysiempre on Friday October 04, 2024 @08:30AM (#41740709)
Hope you aren’t inspecting COM or DCOM data then. Those MEOW all over the place.

> The header of the marshaled object reference begins with a distinguished signature (‘MEOW’)⁶ [...].

> ⁶ A Microsoft Program Manager who shall remain anonymous claims that MEOW stands for Microsoft Extended Object Wire representation. The author, while somewhat gullible, is skeptical of this story but is willing to give the aforementioned source the benefit of the doubt.

— Don Box, Essential COM

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dh2022 on Friday October 04, 2024 @02:22PM (#41744142)
MEOW fits in 4 bytes and the string is probably aligned on 4-bytes boundary (being at the start of the reference) So probably not a bad choice for a binary protocol.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Biganon on Friday October 04, 2024 @07:00PM (#41746305)
I usually go with "coucou" or "prout", French for "hello" and "<fart sound>", respectively. When I'm fed up I use "merde".
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by IIsi50MHz on Sunday October 06, 2024 @12:08AM (#41754674)
Some time ago, when working on glue code between Excel and our product, I was very fed up with being unable to do exceptions or other sane error-handling on the VBA side. So, I wrote up some code with ```On Error GoTo hell```, which got me a public lecture.

Now, when I'm not required to use some other name, I tend to name my error handlers "hope".

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by veunes on Friday October 04, 2024 @08:43AM (#41740810)
It has a kind of charm to it. Like leaving your own harmless, personal mark on the code without risking another "I SEE YOU!" moment.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by systems_glitch on Friday October 04, 2024 @07:48AM (#41740401)
Ugh, we had a FNG that did debug things like that at a previous job. His "humor" got exposed to the client several times.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by veunes on Friday October 04, 2024 @08:37AM (#41740752)
This sounds like one of those lessons you never forget - the hard way!
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by sensanaty on Friday October 04, 2024 @08:54AM (#41740890)
Lol I remember early in my career using "fuck" and "cock" a lot for debugging. Very quickly learned to not do that, I instead replaced it with "banana" for the most part
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by wraptile on Friday October 04, 2024 @10:25AM (#41741769)
banana has been there with me from the beginning! There's something weirdly satisfying about this particular word - the spelling, the sound and just sheer siliness just has a calming effect.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by twic on Friday October 04, 2024 @11:13AM (#41742259)
And for fine and trace logging, you've got bananana, banananana, etc.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by hermitdev on Friday October 04, 2024 @12:51PM (#41743245)
"ba" + "na" * severity
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by TRiG_Ireland on Friday October 04, 2024 @08:02PM (#41746646)
To quote Sir Terry,

Nanny Ogg knew how to start spelling 'banana', but didn't know how you stopped.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by johnisgood on Saturday October 05, 2024 @02:54PM (#41752051)
Going through one file:

    IMPORTAAAAAAAAAAAAAAAAAANT

    _F for functions.
    _H for headers.
    _V for fuck knows.
There are funnier ones but I am lazy. :P
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by VBprogrammer on Friday October 04, 2024 @10:31AM (#41741835)
Yeah, someone did that at a place I once worked with the C-word in some JavaScript debug logs. Never put anything in the code, no matter how temporary, that you would be embarrassed to have appear to a customer.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by goblox9999 on Friday October 04, 2024 @12:05PM (#41742780)
I once did the same except my debug message, created in a punchy mood late at night, was "YOU ARE BEING ATTACKED BY MOTHS." Left that in there and forgot about it until I received a very puzzled debug request months later...
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by wonnage on Friday October 04, 2024 @12:19PM (#41742913)
Twitter was working on streaming with chunked encoding, which resulted in this: https://x.com/ryankuder/status/474658110737371136
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by jdwithit on Friday October 04, 2024 @12:42PM (#41743154)
I've definitely committed debug messages before. Probably everyone who writes code has at some point. Thankfully it's never been anything TOO embarrassing. These days I try to always do a git diff and search for "print" (or whatever the language equivalent is) before I commit and push as a final sanity check.

In high school, my friend had a habit of titling draft papers something inappropriate. Which was funny when we were peer editing each other. But inevitably, one time he forgot to change it back. We sat down in English class and as the teacher was walking around collecting papers, he glanced down at his and suddenly UH I GOTTA GO TO THE BATHROOM. He sprinted out the door straight to the computer lab and printed off a copy that didn't have a bunch of profanity in 24 point font at the top. I about died laughing.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by bornfreddy on Friday October 04, 2024 @05:43PM (#41745836)
Instead of git diff, you can also use git add -p, which asks you for each change.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by dbmikus on Friday October 04, 2024 @02:30PM (#41744217)
I used to debug with curse words until I accidentally pushed one of those into the company's open source repo and then we went and did some `git push --force` to scrub it from history.

Now I just use my initials at the start of a debug line.

Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by matheusmoreira on Friday October 04, 2024 @03:36PM (#41744862)
I gotta ask... Is the patient alright?
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by FuckButtons on Friday October 04, 2024 @03:45PM (#41744936)
I just have a snippet that prints “DEBUG”, easy to grep for.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by Philadelphia on Friday October 04, 2024 @03:47PM (#41744960)
I always use “elephant” as my debugging statement, since it’s unlikely to come up in the code and easy to search for when you need to remove it, and also pretty innocuous. If you’re writing software for zoos, you might want to try something else, though.
Re:Why does man print "gimme gimme gimme" at 00:30? (2017) by LorenPechtel on Sunday October 06, 2024 @12:02AM (#41754654)
I always start them with "Woof".