Hacker News new | ask | show | jobs
by sophacles 4400 days ago
This is really interesting. I just looked over some code I wrote this morning. There were 2 LLE errors. I'm sure I would have caught them in testing after lunch but, woah. For the life of me, I can't reconstruct my mental state when I edited those code bits though, so I don't know what the root of the error is. I think now though, I'll be on the lookout and perhaps gain some insight.

In retrospect, I've had quite a few of these - once pointed out as a pattern, it's fairly easy to see it's a "thing".

I wonder what sort of IDE or other tooling could be put in place to hint those errors out of existence.

2 comments

Maybe the IDE could highlight what you have not changed after duplicating a line, like an inline diff.
In case you don't know: the site in question is from a company that makes a static analyzer that spots such issues.