Remix.run Logo
nh23423fefe 2 hours ago

Isn't it the opposite? The complication is evidence of function. The simple code doesn't work.

kelnos an hour ago | parent [-]

That assertion feels suspiciously like a logical fallacy.

maxbond an hour ago | parent [-]

Not really. If the solution has less complexity than is inherent in the problem, it can't possibly work. If the solution has complexity equal to or greater than the complexity inherent in the problem, it may work. So if you see complex code handling many different edge cases, you can take that as an indicator the author understood the problem. That doesn't mean they do understand or that the solution does work; only that you have more confidence than you did initially.

It's a weak signal but the reasoning is sound.

pyrolistical 7 minutes ago | parent [-]

Everything should be made as simple as possible, but not simpler.

Code has a minimum complexity to solve the problem