tyiu on Nostr: I freaking love the Builder software design pattern. When paired with protocols and ...
I freaking love the Builder software design pattern. When paired with protocols and inheritance, it’s the perfect combo to provide a flexible, easy-to-use framework for building Nostr events, especially when it’s an event kind that shares common tags with other event kinds. Custom emoji tags is a good example that is used across at least three event kinds. This approach has solved a long-standing gripe I’ve had with how rigidly Nostr SDK for Apple Platforms handled event creation.
https://github.com/nostr-sdk/nostr-sdk-ios/pull/175Published at
2024-08-11 14:39:19Event JSON
{
"id": "0304722a8ab3a49ee428f7b5ca134b5610bcaa9127b750d72b4c7bed0ee65528",
"pubkey": "2779f3d9f42c7dee17f0e6bcdcf89a8f9d592d19e3b1bbd27ef1cffd1a7f98d1",
"created_at": 1723387159,
"kind": 1,
"tags": [
[
"r",
"https://github.com/nostr-sdk/nostr-sdk-ios/pull/175"
]
],
"content": "I freaking love the Builder software design pattern. When paired with protocols and inheritance, it’s the perfect combo to provide a flexible, easy-to-use framework for building Nostr events, especially when it’s an event kind that shares common tags with other event kinds. Custom emoji tags is a good example that is used across at least three event kinds. This approach has solved a long-standing gripe I’ve had with how rigidly Nostr SDK for Apple Platforms handled event creation.\n\nhttps://github.com/nostr-sdk/nostr-sdk-ios/pull/175",
"sig": "9faca0463f8bd1aed493ebec1389c7aebc4029367b96e2ea2bf875559ec85d368f26a8dac328b452afb29d445fcbef89cb3bc03f60b468e988f5cec44ee6ace3"
}