Dek 👨🚀🐧🚀 ( on Nostr: npub1vgs5r…suja8 I use inheritance (in other languages) only to do lists of mixed ...
npub1vgs5rx9km8njvq8e5fs7a2c2yzzmvuwfjpqwgxxlyqf6kmfeds0q7suja8 (npub1vgs…uja8)I use inheritance (in other languages) only to do lists of mixed types or I'm creating an API for someone else to extend.
Code deduplication, not so much. I guess is more about struct deduplication than code. Like if you have a struct with a variable, with a special deconstructor for it. But the same can be achieved with encapsulation.
Published at
2023-07-04 08:02:17Event JSON
{
"id": "39915e2a1bf334974599ecc288093cd7358531f99bd88c793567c8495f165151",
"pubkey": "9d8b23b129e465c3e4972be34eea0174a934b18d6917e0a59395be538ffabafe",
"created_at": 1688457737,
"kind": 1,
"tags": [
[
"p",
"62214198b6d9e72600f9a261eeab0a2085b671c99040e418df2013ab6d396c1e",
"wss://relay.mostr.pub"
],
[
"p",
"19132ebf4163a2399191bc90c23f33d1fe4945cbe9c807b0d196b172a2701961",
"wss://relay.mostr.pub"
],
[
"e",
"9946c4ff3e63f8086c155eab66a5057295bf8cd17707c5d8222ef45ff8cad12b",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://social.linux.pizza/users/portaloffreedom/statuses/110654766264438972"
]
],
"content": "nostr:npub1vgs5rx9km8njvq8e5fs7a2c2yzzmvuwfjpqwgxxlyqf6kmfeds0q7suja8\nI use inheritance (in other languages) only to do lists of mixed types or I'm creating an API for someone else to extend.\nCode deduplication, not so much. I guess is more about struct deduplication than code. Like if you have a struct with a variable, with a special deconstructor for it. But the same can be achieved with encapsulation.",
"sig": "068e84a343ff2f48f1dfc7f2e588eaaf1bb2328910ccc012df3ec4a4f67bca6361931a44f17eddebe054b38f914a76a31d488fa41b7ebc3f42b7173bd6a12874"
}