▲ 109 ▼ Stop writing CLI validation. Parse it right the first time. (hackers.pub) submitted 11 months ago by hongminhee@lemmy.ml to c/programming@programming.dev 18 comments fedilink hide all child comments
[+] Glitchvid@lemmy.world 1 point 11 months ago* (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] Asetru@feddit.org 1 point 11 months ago Absolutely not. Mutually exclusive options Another classic. Pick one output format: JSON, YAML, or XML. But definitely not two. Emphasis mine. It takes the input and fails if there is more than one valid one, which decidedly isn't what's an "or" in comp sci. permalink fedilink source parent
[–] Asetru@feddit.org 1 point 11 months ago Absolutely not. Mutually exclusive options Another classic. Pick one output format: JSON, YAML, or XML. But definitely not two. Emphasis mine. It takes the input and fails if there is more than one valid one, which decidedly isn't what's an "or" in comp sci. permalink fedilink source parent