3 ms·
> Think of it more like two lines of bearing. You are far more likely to get an accurate position from two lines of bearing. I mean in theory yes, but in pract
by Arch-TK 4y ago
> Think of it more like two lines of bearing. You are far more likely to get an accurate position from two lines of bearing.
I mean in theory yes, but in practice I've usually found comments in such situations to either be missing, outdated or misleading.
>If you need to understand what past self was thinking, a comment is written in a different mindset than the code.
I don't think I agree with this at all, why would the mindset be different when they were both written at the same time?
Like I said, writing good comments requires just as much if not maybe more self awareness of what you're likely to forget in the future as writing clear code. I think if you're at that level where you can successfully muster that, you should spend your time just making your code clearer.
In reality I think it's even difficult to muster that requisite introspection skill in the moment and it's usually best left until after you solve the problem (let's say, the next day) to go over the code and check how clear it really is.