logoalt Hacker News

gentlewateryesterday at 2:39 PM3 repliesview on HN

Can I trust code I’ve written myself with no guarantees from the language? Maybe. Can I trust code written by dozens of other developers (and/or agents) working on the same project over multiple years? Definitely not.


Replies

mahboiyesterday at 7:11 PM

Can you explain what the issue is with nullability here? Is the concern that someone's code returns null in normal circumstances but doesn't document that well, so you don't check if null? Cause if it's an error situation, one way or another some exception has to be thrown.

marginalia_nuyesterday at 2:42 PM

Why don't you have any coding standards? If you're working with agents in particular, catching and enforcing this stuff should be easier than ever.

show 2 replies
gjadiyesterday at 3:16 PM

Null Analysis can be checked and enforced by the CI.