Strong disagree. The only way to get to the simplest, truest, most elegant, and most performant solution to a problem is to try a lot of things iteratively, write a ton of code in the process, (and throwing almost all of it away in the process). Then once you’ve understood the domain fully and realized what the simple, true, elegant solution is, THEN you can settle on a couple hundred lines of the right code. But in the process you wrote ten thousand lines.
Probably a reference to Larry Wall's (inventor of Perl language) three virtues of a programmer: laziness, impatience, hubris (https://thethreevirtues.com/)