Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why would you need to update code that isn't matching on the value? It just knows it has an X and passes it to a function that needs an X.


if you don't update the code in intermediate layers, some automated validation based on enum values will fail, which also drops the request


You only need to update the parser and the places that are using it. Depending on language, the parser might update itself (Scala generally works this way). Everyone else has an already parsed value that they're just passing around. That's the point: only run your validation at the outer layer of your application.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: