esa@discuss.tchncs.de to Programming@programming.devEnglish · 4 months agoParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comexternal-linkmessage-square14fedilinkarrow-up143arrow-down11cross-posted to: hackernews
arrow-up142arrow-down1external-linkParse, Don’t Validate AKA Some C Safety Tipswww.lelanthran.comesa@discuss.tchncs.de to Programming@programming.devEnglish · 4 months agomessage-square14fedilinkcross-posted to: hackernews
minus-squareMagiilaro@feddit.orglinkfedilinkarrow-up3·4 months agoI prefer to do both, a validation check to see if it has the general form of data I expect then parse what got successfully validated.
I prefer to do both, a validation check to see if it has the general form of data I expect then parse what got successfully validated.