洪 民憙 (Hong Minhee)@lemmy.ml to Programming@programming.devEnglish · 10 days agoStop writing CLI validation. Parse it right the first time.hackers.pubexternal-linkmessage-square20fedilinkarrow-up1115arrow-down16
arrow-up1109arrow-down1external-linkStop writing CLI validation. Parse it right the first time.hackers.pub洪 民憙 (Hong Minhee)@lemmy.ml to Programming@programming.devEnglish · 10 days agomessage-square20fedilink
minus-squareAsetru@feddit.orglinkfedilinkarrow-up1·7 days agoAbsolutely 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.
Absolutely not.
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.