Until now I always assumed it was something vaguely sexual. It is often used on the darker side of the internet, hence the misunderstanding. I never bothered to actually find out until now.
Turns out it’s the perfectly innocent badum-ching sound…
If you’ll just show me the way to the exit I’ll be going.
“Rim shot” and “rim job” are not the same thing. It is good that you learned this now, instead of when you are in bed with a beautiful woman and breathily ask her if she would give you a rim shot, only to hear her say in a confused voice, “Ba-dum-ching?”
You all know, of course, that it’s only a matter of time before body shots, rim jobs, and rim shots all coalesce into something that’s probably a lot closer to what the OP had in mind.
I also read the term in Dave Barry books for years before figuring out what it meant. I did get, from context, that it was associated with a one-liner joke, but I figured it was related to the basketball term. Like, it was a joke that didn’t quite hit the mark.
I also thought for years that it was a basketball term. (I know almost nothing about basketball, so there must be plenty of basketball terms I’ve never heard in their original context.) Since “rimshot” was always used after corny/obvious jokes, I too figured it was meant as an acknowledgment that the humorist had gone for a joke but not quite managed a truly funny one.