Re:Why static languages suffer from complexity
by sandofsky on Wednesday January 19, 2022 @01:40PM
(#29998047)
When that JSON payload changes (intentionally or not), you will run into a mysterious problem in some unrelated area of your code. It will be significantly more expensive to fix than failing fast at the point of parsing.
[ Parent
| on HN ]
Re:Why static languages suffer from complexity
by suzzer99 on Wednesday January 19, 2022 @01:51PM
(#29998240)
But depending on the situation, that problem may never happen. I'm not a big fan of introducing complexity to guard against code screwups in the same codebase.
Re:Why static languages suffer from complexity
by cdaringe on Wednesday January 19, 2022 @01:59PM
(#29998316)
The hardest bugs are the rare bugs. Common and frequent problems are easy bugs to fix. These subtle or rare changes are those which should be feared. If you model only that which you support, finding the source of the problem becomes much easier.