2 ms·
I always interpreted the hard part was not looking at something and naming it accurately, but the impossible ask of predicting future use & context (much of it
by dowager_dan99 2y ago
I always interpreted the hard part was not looking at something and naming it accurately, but the impossible ask of predicting future use & context (much of it not in your control) and somehow getting that right.
- karmakaze 2y agoTrue. We make a best guess and if it turns out to be ineffective, refactor which means to choose a new factor. The other common cause of difficult naming is 'refactoring' without knowing what the new factor is, ie. blind deduplication or along arbitrary seams. My strategy is to delay abstraction if possible until we have an opinion one way or another. Some others like to have clean/abstracted code beyond current understanding. Not being able to make a good guess is a lack of understanding of problem domain, nicely rolled up into this catch all term.