4 ms·
I was just working on a small exploratory project in Python. I used sys.argv because it's so quick to prototype with. When I started refining the project for l
by japhyr 4y ago
I was just working on a small exploratory project in Python. I used sys.argv because it's so quick to prototype with.
When I started refining the project for longer term development, I wanted to convert the CLI to use argparse, so I could build a more nuanced CLI. I gave GPT a couple example commands I wanted to use, and in less than a minute I had a fully converted CLI that did exactly what I wanted, with more consistent help settings.
I can do that work, but it would have been 30-45 minutes because there was one setting in argparse I hadn't used before. That alone was worth this month's $20.
For more complex and mature projects I could see having to give GPT a minimum working example of what I need instead of the whole project, but I can already see how it will enhance my current workflows, not replace them.
- cultureswitch 4y agoSee, a better LLM or an experienced human would have told you to use docopt instead of argparse and saved you more time in the long run.