News for hackers. Stuff that matters.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by peeters on Tuesday August 29, 2023 @09:12AM (#37307343)
I try to think about whether two concepts are innately similar or incidentally similar. Computing compounding interest for a home equity loan and a mortgage might be innately similar. A desired change to one will probably make a desired change to the other. Computing growth of a fruit fly population and computing compounding interesting for a loan might be incidentally similar. Until you change your "computeExponentialGrowth" function to now handle occasional decimations from environmental sources, and anyone looking at the code wonders what the heck that looks like for a loan.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by HWR_14 on Tuesday August 29, 2023 @09:36AM (#37307718)
As interest rates go back up, paying off (part of) a mortgage early might come back.
Re:I don’t buy “duplication is cheaper than the wrong abstra... by AnimalMuppet on Tuesday August 29, 2023 @09:15AM (#37307388)
For a loan, maybe it looks like payments on the principal?

But your overall point is very correct. Don't make an abstraction because of coincidence.

Re:I don’t buy “duplication is cheaper than the wrong abstra... by adammarples on Tuesday August 29, 2023 @12:16PM (#37310097)
If you've got your abstractions correct, then the exponential growth term and the decimation term will be partial differentials which will compose together nicely