waffles@yttrx :t_blink: on Nostr: catch(…) 😎 But in all seriousness, at work we use a lot of folly, and we don’t ...
catch(…) 😎
But in all seriousness, at work we use a lot of folly, and we don’t throw exceptions. Rather we use folly optional to wrap exceptions in return codes. This is helpful in our micrososervises as we often have thrift definitions to pass option exception handling over the wire to signal failure states across services.
But at the end of the day, all of our code is little more than retry logic wrapped around a while(1) ;)
Published at
2024-04-09 17:20:06Event JSON
{
"id": "d9abf59ef568bd03d416e15401c978c1a7f7cbc6b27a509a6fdf95e08f73e64a",
"pubkey": "71b0f0930ca8b42266d5d9a26ce7fd2ca17261d152474be73961b4168e13cc78",
"created_at": 1712683206,
"kind": 1,
"tags": [
[
"p",
"e842356089efcf2ac0f8fd3763cb09664545e8c4ba88a60a1295cece5ec32595"
],
[
"e",
"c487cbb792b849b92a5e9aee51bba72500aee42834640f8fc1ad24b5345653b2",
"",
"root"
],
[
"proxy",
"https://masto.yttrx.com/users/waffles/statuses/112242406606223780",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://masto.yttrx.com/users/waffles/statuses/112242406606223780",
"pink.momostr"
]
],
"content": "catch(…) 😎\n\nBut in all seriousness, at work we use a lot of folly, and we don’t throw exceptions. Rather we use folly optional to wrap exceptions in return codes. This is helpful in our micrososervises as we often have thrift definitions to pass option exception handling over the wire to signal failure states across services.\n\nBut at the end of the day, all of our code is little more than retry logic wrapped around a while(1) ;)",
"sig": "e97308709f88dbf624edfa4f708f254f4ff1e1010b0b3d46a7eff30ca14e523d8352141d991d648adeb4efd7df31e224e0dc8c7cbdfa66947718d13ef3588c8b"
}