Re:DRY Is a Trade-Off
by throwaway201103 on Friday December 18, 2020 @10:08PM
(#25474621)
Fixing the 30 file paths was not just a quick global search/replace?
[ Parent
| on HN ]
Reminds me of the time I wrote 100 similiar sites separately with slight changes. A quick global search/replace will introduce so many unnecessary replaces unless you are careful and miss so many unless you take linebreaks into account.
A global search/replace is a hotfix hammer that should only get pulled out rarely and carefully by manually reviewing all changes.
Re:DRY Is a Trade-Off
by throw1234651234 on Saturday December 19, 2020 @12:12PM
(#25478945)
Bad example, it was more complicated than that. Azure functions have a different file system than App Services, and the method tried to determine where it was hosted 30 times, or something like that. Genuinely don't remember.