5 ms·
I've used this before and it works well, but I can only kind-of recommend it. If you are doing a presentation at some large conference where people will not be
by masukomi 9y ago
I've used this before and it works well, but I can only kind-of recommend it.
If you are doing a presentation at some large conference where people will not be interrupting you with questions as you do your presentation, then I would recommend it. HOWEVER most of us do presentations to smaller more informal groups: coworkers, local coding meetups, etc. In those situations people are more likely to interrupt you and ask you something that would normally be doable IF you weren't running a script
So, IF you're going to use this in an interruptable situation I would strongly recommend mentioning BEFORE you start, that you are executing the commands live, but that you're using an interactive script to do it so that you don't screw anything up. Otherwise you look like a fraud when someones like "what about X" and you're all ... "well yes, but i can't do that right now because while it looks like I've been typing these commands, in reality I've been deceiving you and can't break out of this script or everything goes awry... but yes i could do that.... if i wasn't pretending i was actually typing this stuff." And yes, I'm speaking from experience, although i used different words. It's really awkward. Don't do it.
- remram 9y agoIt seems to me that this could be improved with a few handy shortcuts. Because it is actually running your commands in an actual interpreter, executing unplanned commands is only a problem because you can't input it. Having a few keystrokes to go back, edit/enter a command, go to line N, would make this problem disappear. Or do it the other way, and have a keystroke insert the next line from your script. Like Ctrl-R, but at the speed of my typing.
- jordigh 9y agoYeah, I made the original hack for a lightning talk after seeing playerpiano for Python (I wanted something similar but for bash). I wanted to show a terminal session, wanted to talk as I did it, and didn't wanted to get distracted by typos. For a lightning talk, there is no time for questions and you need to go "quickly" through the material. My use case for doitlive really is lightning talks.