Capital on Nostr: I can't help but feel like I write Crystal wrongly. For the most part I ignore ...
I can't help but feel like I write Crystal wrongly. For the most part I ignore inheritance and just use mixins and unions types.
My brain has never understood inheritance as a means of code re-usage. And, building class hierarchies has always felt tedious and error prone (e.i, having to re-structure cause of some early decision that no longer holds up).
Like, when I'm working on Godot, I only extend a base-type to use its API.
Published at
2023-07-04 03:58:51Event JSON
{
"id": "9946c4ff3e63f8086c155eab66a5057295bf8cd17707c5d8222ef45ff8cad12b",
"pubkey": "19132ebf4163a2399191bc90c23f33d1fe4945cbe9c807b0d196b172a2701961",
"created_at": 1688443131,
"kind": 1,
"tags": [
[
"mostr",
"https://furry.engineer/users/CapitalEx/statuses/110653809056712093"
]
],
"content": "I can't help but feel like I write Crystal wrongly. For the most part I ignore inheritance and just use mixins and unions types.\n\nMy brain has never understood inheritance as a means of code re-usage. And, building class hierarchies has always felt tedious and error prone (e.i, having to re-structure cause of some early decision that no longer holds up).\n\nLike, when I'm working on Godot, I only extend a base-type to use its API.",
"sig": "a642e8ecdd059ef6e3fc1c99be6dd8d9c9fb4baf83651c293371d8f7a4fe555ec45fd4b111a7e4eb41c49e75e06a93f7b211e23eef4181a9bf4ac40f2802bec2"
}