News for hackers. Stuff that matters.
Re:Most programmers don't know what Expect can do for them by rowanG077 on Sunday September 08, 2019 @09:11AM (#20910367)
Doing anything with expect is basically only coding for the happy path. It's fine for some throw away script but as soon as you need any kind of reliability it's useless.
Re:Most programmers don't know what Expect can do for them by GhettoMaestro on Sunday September 08, 2019 @12:03PM (#20911321)
Have you ever stopped and asked yourself: What is a conditional statement?
Re:Most programmers don't know what Expect can do for them by rowanG077 on Sunday September 08, 2019 @12:21PM (#20911446)
Have you ever asked yourself if an API can return an infinite amount of responses how many conditional you would need to handle that?

The output of a terminal is just simply too unstructured to work in any high reliability environment.

Re:Most programmers don't know what Expect can do for them by GhettoMaestro on Sunday September 08, 2019 @05:01PM (#20913389)
I would agree that using a pure CLI (Unix Shell) requires significant operator skill to not accidentally blow things up. But that is also why you write scripts, test them, etc.

Sitting at a root shell executing untested or uncertain things is pretty high on the list of don't do these things.