3 ms·
>>I look at everything I've written 5 or more years ago, and it's all garbage. From Walter Bright? Sorry I don't buy this. I can accept that you might feel i
by andrewstuart 7y ago
>>I look at everything I've written 5 or more years ago, and it's all garbage.
From Walter Bright? Sorry I don't buy this. I can accept that you might feel it could be better, but garbage? No.
- hinkley 7y agoNo, I know exactly what he means. I sometimes get irritated with code I wrote a year or so ago, and that feeling is compounded the farther back you go. And that’s not counting the spots where I catch myself doing things I’ve told others to avoid doing.
- WalterBright 7y ago> I catch myself doing things I’ve told others to avoid doing. Now and then I'll publish some guidelines for writing better code, and someone always points out that I violate them myself and contradict earlier dicta :-)
- WalterBright 7y agoHere's a piece I was proud of 20 years ago. Can you count all the ways it's a steaming pile? https://github.com/dlang/dmd/blob/master/src/dmd/root/outbuffer.d https://github.com/dlang/dmd/blob/master/src/dmd/root/outbuf... I've recently fixed a number of its problems, but it's got a ways to go. Am working on it this evening. It needs to be better because earlier today I found a bug enabled by its poor design: https://github.com/dlang/dmd/pull/10462 https://github.com/dlang/dmd/pull/10462
- UweSchmidt 7y agoProgramming is finding abstractions, and those change as a program, and the understanding of the problem grows. Abstractions then have to change again as the program interacts with other systems, and to accomodate typical patterns of changes in the requirements which can't be predicted beforehand. Abstractions then have to change again to facilitate understanding the entire thing, and to accomodate technical changes, or allow easier bug finding. I'd say, a real-world program that's beautiful 5 years later is ...something special :)