What is Nostr?
Andrew Kelley /
npub1v5n…yt9x
2024-11-03 20:55:25

Andrew Kelley on Nostr: Common intermediate programmer mistake: trying to use the same abstraction for ...

Common intermediate programmer mistake: trying to use the same abstraction for inputting a given thing, vs outputting it.

Advanced programmers know these are fundamentally different tasks deserving independent abstractions.

Example: JSON

For outputting, there's no value in constructing a bunch of pointless hash maps in memory. Just stream the data out with some basic API to ensure correct syntax and nesting.
Author Public Key
npub1v5nnp42pq83r34k7ja08ss92la9vagjy8qkwye9wnv9s4jy3vwtsehyt9x