mos_8502 :verified: on Nostr: All the motif example code I see is awful. And not because the motif function naming ...
All the motif example code I see is awful. And not because the motif function naming scheme is fugly (it is!), either.
They store all their widgets in globals. Why would you do that? Why not make a custom structure type to manage your Motif window, so it's more modular?
Published at
2024-08-30 14:11:02Event JSON
{
"id": "5cf9c4cf9f729a433ef6e24ffb3b6ef106508913baadbafec950b9987b363730",
"pubkey": "04f8915424c713657ad6ce59443d28dbdcf5832687c9af560ae388f59276a137",
"created_at": 1725027062,
"kind": 1,
"tags": [
[
"proxy",
"https://studio8502.ca/@mos_8502/113051373557485813",
"web"
],
[
"proxy",
"https://studio8502.ca/users/mos_8502/statuses/113051373557485813",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://studio8502.ca/users/mos_8502/statuses/113051373557485813",
"pink.momostr"
],
[
"-"
]
],
"content": "All the motif example code I see is awful. And not because the motif function naming scheme is fugly (it is!), either. \n\nThey store all their widgets in globals. Why would you do that? Why not make a custom structure type to manage your Motif window, so it's more modular?",
"sig": "12dce2709849d5d85ebf1587feabf0978b0344647c76112454d2353b22512169b2d13032777d2adb55b3866415a20bf1075decc36d49ae30ae55399d9e58bd99"
}