It seems likely to me that there is good, well-designed code that is hard to understand by the very nature of what it is or what problem it is solving. What percentage of all hard-to-understand-by-smart-and-competent-people code is that kind and what percentage is the kind you describe is probably the key thing you’d want to know.
Once you know that then you can know what to do when investigating code you do not understand.
The best thing I can come up with is “ehh, probably most hard to understand code is badly designed code?”.
(As an unrelated aside, prompted by me just now closing this tab: Without consciously thinking about it I always try using my code editor hotkeys while editing text in non-coding contexts, and one of those hotkeys closes my browser tab!)
That’s a good point. I may have came across too strong with my point. What I intended is to say that you should (strongly) consider that the code isn’t simple enough, not that you should assume it by default.
It seems likely to me that there is good, well-designed code that is hard to understand by the very nature of what it is or what problem it is solving. What percentage of all hard-to-understand-by-smart-and-competent-people code is that kind and what percentage is the kind you describe is probably the key thing you’d want to know.
Once you know that then you can know what to do when investigating code you do not understand.
The best thing I can come up with is “ehh, probably most hard to understand code is badly designed code?”.
(As an unrelated aside, prompted by me just now closing this tab: Without consciously thinking about it I always try using my code editor hotkeys while editing text in non-coding contexts, and one of those hotkeys closes my browser tab!)
That’s a good point. I may have came across too strong with my point. What I intended is to say that you should (strongly) consider that the code isn’t simple enough, not that you should assume it by default.
AutoHotKey or other remapping/scripting utility perhaps?
Even if you can’t remap usefully within context at least you can stop it from doing something annoying.