glossary:mental_inlining
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
glossary:mental_inlining [2021-09-02 12:59] – old revision restored (2021-05-11 23:16) 65.21.179.175 | glossary:mental_inlining [2021-10-20 20:31] (current) – +++ restored +++ christian | ||
---|---|---|---|
Line 11: | Line 11: | ||
==== Description ==== | ==== Description ==== | ||
- | If some code is only understandable in the context where it is invoked, the activity which is necessary in order to understand this code is to virtually take it and put it at the place of its invocation. It is essentially the same operation as inlining a variable or a method | + | If some code is only understandable in the context where it is invoked, the activity which is necessary in order to understand this code is to virtually take it and put it at the place of its invocation. It is essentially the same operation as inlining a variable or a method |
Having to do mental inlining is a sign that there is a problem with the code. Either the variable or method carries a wrong, misleading or otherwise not understandable name. Or the whole concept the variable or method represents is wrong and should be revised. | Having to do mental inlining is a sign that there is a problem with the code. Either the variable or method carries a wrong, misleading or otherwise not understandable name. Or the whole concept the variable or method represents is wrong and should be revised. | ||
Line 38: | Line 38: | ||
Discuss this wiki article and the term on the corresponding [[talk: | Discuss this wiki article and the term on the corresponding [[talk: | ||
+ |
glossary/mental_inlining.txt · Last modified: 2021-10-20 20:31 by christian