Remix.run Logo
gentlewater 38 minutes ago

It’s still missing null safety, right? Which means it’s still a hard no for me.

winrid 17 minutes ago | parent | next [-]

I have a couple 50k+ loc java projects written entirely by LLMs at this point that have never thrown an NPE.

what_hn 8 minutes ago | parent [-]

Same here with go, then Again go doesn't throw!

marginalia_nu 37 minutes ago | parent | prev | next [-]

Have you tried not returning null or constructing incomplete objects?

gentlewater 23 minutes ago | parent | next [-]

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.

marginalia_nu 20 minutes ago | parent [-]

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.

saghm 8 minutes ago | parent [-]

Most engineers do not have the ability to impose rules by fiat on all of their coworkers. It seems like you're misunderstanding the nature of working on a codebase as an IC when other developers contribute to it. If all of my coworkers don't want a lint rule I propose, I don't get to add it. If all of my other coworkers want to write code in a certain way and approve each other's MRs with code written in that way, I don't get to veto it.

saghm 16 minutes ago | parent | prev [-]

Do you never use external libraries?

what_hn 6 minutes ago | parent [-]

With agents, we're getting there.

LelouBil 35 minutes ago | parent | prev | next [-]

You can either use Kotlin then, or simply use java and nullability annotations, they have good support in both IDEs and analysis tools

gentlewater 21 minutes ago | parent [-]

I use Kotlin as my main language and I’m very satisfied with it.

well_ackshually 19 minutes ago | parent | prev [-]

Any serious project will be using NullAway and annotating everything (or, indeed, using Kotlin).

Otherwise, yeah, you're still in for a world of pain.