Dave Copeland :ruby: on Nostr: How much would life improve if a) this code was in Ruby stdlib and b) `nil?` was a ...
Published at
2025-02-10 19:24:41Event JSON
{
"id": "5cf1834babd2b8b7e465f8f8b4e647f63e16859e7379849dfe0332e83ee6e787",
"pubkey": "0a98fcc74400896d68beecfb32da230c656db6fc7ab43c4228b7755377d294f2",
"created_at": 1739215481,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.masto.host/rubysocial/media_attachments/files/113/981/225/677/197/033/original/1d2b4b14acb57451.png",
"m image/png",
"dim 688x818",
"blurhash UUDJq^oe_4j]xuj[aeaz?vj[RPj[t7fQaxj["
],
[
"proxy",
"https://ruby.social/users/davetron5000/statuses/113981225807827184",
"activitypub"
]
],
"content": "How much would life improve if a) this code was in Ruby stdlib and b) `nil?` was a protocol to control falseyness in an if statement? I can't imagine a single problem this would cause nor any way to abuse these features 😈\n\nhttps://gist.github.com/davetron5000/e3fd4b90eadf22ca2bd192607769e918\n\nhttps://cdn.masto.host/rubysocial/media_attachments/files/113/981/225/677/197/033/original/1d2b4b14acb57451.png",
"sig": "20baa59e6955e499f8a906513615238e631d5de1541d8cdd7f794b5e38c6edd0f48740d77458e79386312b22b79fc19d62fdf0f50516bdf32f4b57805fce23bf"
}