Live data from Hacker News

Ask HN: Does anyone use sound effects in their dev environment?

news.ycombinator.com

131–140 of 336 posts

Re: Ask HN: Does anyone use sound effects in their dev environment?

#132
From [1] The story of PING:

  ping goodhost | sed -e 's/.*/ping/' | vocoder
He wired the vocoder's output into his office stereo and turned up the volume as loud as he could stand. The computer sat there shouting "Ping, ping, ping..." once a second, and he wandered through the building wiggling Ethernet connectors until the sound stopped. And that's how he found the intermittent failure.

[1] https://ftp.arl.army.mil/~mike/ping.html>

Re: Ask HN: Does anyone use sound effects in their dev environment?

#133

Something I have often thought about for years but never implemented was "sound logging" where you get specific points of your code to play audio clips or tones instead of/as well as logging to console etc. The idea being that you can test the app.and hear the sound logs going off as you go. In a tight loop that executes quickly I would hope that you could hear something "being off" in the same way that a mechanic ca…

I definitely chain things like "make; say all done", then crank the volume and go make a snack. But that's probably not what you were referring to.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#134

Something I have often thought about for years but never implemented was "sound logging" where you get specific points of your code to play audio clips or tones instead of/as well as logging to console etc. The idea being that you can test the app.and hear the sound logs going off as you go. In a tight loop that executes quickly I would hope that you could hear something "being off" in the same way that a mechanic ca…

Xcode has this functionality. You can attach a system sound to a breakpoint. I used it exactly once when I was trying to determine if two events always happened in the same order and were always equally spaced in time. It worked well but drives you sort of mad after a while.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#135

Something I have often thought about for years but never implemented was "sound logging" where you get specific points of your code to play audio clips or tones instead of/as well as logging to console etc. The idea being that you can test the app.and hear the sound logs going off as you go. In a tight loop that executes quickly I would hope that you could hear something "being off" in the same way that a mechanic ca…

It could be useful but it would probably be very annoying and disharmonious unless it's very well designed. Would be cool and potentially very useful if somebody incorporated it in a good way.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#136
Yes! I wish there were better tools for getting sound out of the terminal.

I got bored waiting for long running scripts to finish one day and wrote this bash one liner.

Now I can run a command and put a pipe and the zzz alias on the end and it will tell me when it’s finished.

> alias zzz='echo "zuhg zuhg\n" "work work\n" "lowk taar\n" "jobs done\n" "sawobu\n" "dabu\n" "i can do that\n" "be happy to\n" "OK\n" "no time for play\n" "my life for the horde\n" "what you want?\n" "master?\n" "dabu\n" "for the horde\n" "okie dokie\n" "hragh\n" "something need doing?\n" "ready to work" | shuf -n 1 | say -vRocko'

Re: Ask HN: Does anyone use sound effects in their dev environment?

#137
post #56

This sounds like an idea borrowed from games or other media where doing certain actions results in an audible feedback. This is often done for the benefit of the audience, or to enhance the gaming experience, but I had an idea to implement this in my workspace to somehow influence my brain and make it more enticing to write code and somehow beat procrastination. I wrote a Python daemon which on startup loads small .w…

Yes I’m very interested. I had exactly the same idea, but solved it using the “say” command and a random grab from a set of strings.

I’m a Python dev and I’m happy to contribute to a project is you get it started.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#139

Something I have often thought about for years but never implemented was "sound logging" where you get specific points of your code to play audio clips or tones instead of/as well as logging to console etc. The idea being that you can test the app.and hear the sound logs going off as you go. In a tight loop that executes quickly I would hope that you could hear something "being off" in the same way that a mechanic ca…

Xcode has this functionality. You can attach a system sound to a breakpoint. I used it exactly once when I was trying to determine if two events always happened in the same order and were always equally spaced in time. It worked well but drives you sort of mad after a while.

One interesting way of using this I've heard of; is attaching it to a `-[UIViewController dealloc]`, and being able to "hear" (or rather notice the lack of sound) retain cycles this way.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#140
I forget if this is a setting or on by default, but VScode will play a sound when a task is finished running, and it's different based on whether the task succeeded or failed. I use this so that I can leave long running jobs (usually testcases) running and not have to keep checking on the status.
Post reply on HN