3 ms·
I fully agree with this. A couple months ago I tried to do a quick hack project where I could get the computer to play a sound and render an image when there w
by gretch 3y ago
I fully agree with this.
A couple months ago I tried to do a quick hack project where I could get the computer to play a sound and render an image when there was a keystroke.
Turns out with python, without additional libraries, you had to read from stdin which requires the user to end the input with newline before python could read the char. (2 keystrokes, not 1)
But I switched to JS where it’s trivial to intercept single key strokes and finished my script in ~30 minutes