Agree, this is awful, code hardly ever gets simpler.

Same for legislation.

A rewrite is an awful amount of work/pain, hence rare. And cleanly simplifying something complicated is much more work than just throwing an ugly patch on top, so technical debt accumulation is almost inevitable without a strong quality culture

Reply to this note

Please Login to reply.

Discussion

willing rewriter at your service: 🫡

almost finished a full rewrite of nostr event and filter codecs and associated functions... i scored a full 5-10x boost and my JSON codec is now officially almost as fast as a binary codec

Yeah, refactoring and rewriting is amazing.

Now go and look at your architecture, again. Bet you could streamline it.

yeah, i do this process regularly, just nearly finished a rewrite involving a better interface that handles the quirks of Go's "reference types" and probably soon will streamline a lot of json object unmarshaling