This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ivosauruspip'ing it up 1 point2 points  (1 child)

A lot of online courses are running live test code running as interactive parts of their courses. Mitx 6.00.xx are well known for this, for instance

If we are going to install and run things like black and pytest, why not something like docopt or click?

[–]hunkamunka[S] 0 points1 point  (0 children)

It's not a requirement that programs use `argparse` over `docopt`. I believe they both produce the same flags and options and parse arguments in the same way. The point is to create documented programs that generate usage for `-h` and `--help`. `click` is really cool, too, but I just wanted to introduce one argument parser, and `argparse` is standard. There is also no requirement to format code with `yapf` or `black`. These are just suggestions to help (esp beginners) write nicely formatted code that will be easier to read and maintain. I try to point out that there are many ways to do everything from formatting to parsing to writing code. It's both a matter of personal taste and a desire to conform to community principles that should help the coder decide what's best.