Hacker News new | ask | show | jobs
by fermentation 2672 days ago
I can think of a lot of simple scripts that I could easily plug this into. When I’m writing a little script to do something for me, the last thing I want to do is write any sort of UI
1 comments

Oh god the amount of scripts I have that do something like:

  while True:
    for i, item in enumerate(list):
      print(i, item, sep=" - ")

    choice = input()

    if valid(choice):
      break
This would make those so much easier to write and give a much nicer UI at the same time.
Can’t tell if you’re being sarcastic or not. Your above sample code is perfectly simple and straightforward. I would choose it over an over engineered ui library/dependency in a heartbeat.