3 ms·
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
by sophacles 12y 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.
- hcarvalhoalves 12y agoMaybe the IDE could highlight what you have not changed after duplicating a line, like an inline diff.
- Someone 12y agoIn case you don't know: the site in question is from a company that makes a static analyzer that spots such issues.