Simon Tatham on Nostr: Everyone's tired of the standard test values you make up by writing English words in ...
Everyone's tired of the standard test values you make up by writing English words in hex, like 0xDEADBEEF, or 0xDEFACED, or 0xC0FFEE.
But if you're writing in C or C++, you can get a few slightly less familiar ones by making use of the U, L, UL, LL or ULL suffixes on integer literals. 0xBA5EBALL, 0xDAFF0D1L, 0xDECE17FUL.
Or maybe you think those are still boring? Then just stick with 0xDULL.
Published at
2024-06-17 15:06:57Event JSON
{
"id": "1b25d8f34021b5a9db2b58e3d6b12f5b1666aff4b30fd7f8c1b3c573b4b84f25",
"pubkey": "19de6bb53e4860106b7a92e57fbec1cef642164c3ebe0c76eb8ab38c2727672f",
"created_at": 1718636817,
"kind": 1,
"tags": [
[
"proxy",
"https://hachyderm.io/@simontatham/112632582500922615",
"web"
],
[
"proxy",
"https://hachyderm.io/users/simontatham/statuses/112632582500922615",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://hachyderm.io/users/simontatham/statuses/112632582500922615",
"pink.momostr"
]
],
"content": "Everyone's tired of the standard test values you make up by writing English words in hex, like 0xDEADBEEF, or 0xDEFACED, or 0xC0FFEE.\n\nBut if you're writing in C or C++, you can get a few slightly less familiar ones by making use of the U, L, UL, LL or ULL suffixes on integer literals. 0xBA5EBALL, 0xDAFF0D1L, 0xDECE17FUL.\n\nOr maybe you think those are still boring? Then just stick with 0xDULL.",
"sig": "a71a7c32c0e81860bd5eccdcfc00976924974193ab6c72ff767da389cf5d87c4db207f0e0f8c0d30d0059dfdd554a727ed71d39fdd65d62b7c1b10877600bfa0"
}