News for hackers. Stuff that matters.
Re:Ask HN: Have you ever inherited a code base you thought w... by mattlondon on Monday August 08, 2022 @10:59AM (#32386232)
Not someone else's code but I had the strange experience recently of revisiting an old project of mine (DNS server written in typescript + deno) and being intimidated by the quality of my own code.

I had those familiar feelings of "I could never write code like this" or "I'd never have thought to do it like that!" or "This person must really know their shit". Turns out it was me all along and I'd just forgotten I'd done it all.

Grokking it and modifying it after 2-something years was actually simple as I'd left good comments, abstractions, and even reasonable unit test coverage (even integrated with GitHub actions that run on push) so changes were a breeze.

There has to be a life lesson there somewhere.

Re:Ask HN: Have you ever inherited a code base you thought w... by lpapez on Monday August 08, 2022 @12:23PM (#32387560)
revisiting an old project of mine (DNS server written in typescript + deno)

Can it really be called old considering the very modern tech stack?

Re:Ask HN: Have you ever inherited a code base you thought w... by koenvdb on Tuesday August 09, 2022 @05:28AM (#32395791)
Deno initial release was 4 years ago, in tech that's ancient, right? :)
Re:Ask HN: Have you ever inherited a code base you thought w... by jrochkind1 on Monday August 08, 2022 @01:19PM (#32388342)
I've had that experience. I honestly sometimes worry I've peaked and am getting less good at figuring out how to compose good code as my brain ages.

I think I'm actually getting better at it, at least in some ways... but not totally sure there aren't others I'm not quite as brilliant.

Re:Ask HN: Have you ever inherited a code base you thought w... by barking_biscuit on Monday August 08, 2022 @04:14PM (#32390464)
if age is greater then mid-30s then yes, else no.
Re:Ask HN: Have you ever inherited a code base you thought w... by robofanatic on Monday August 08, 2022 @11:23AM (#32386572)
would love to look at it and possibly learn something. Is it open source?