Lucian Ghinda on Nostr: Did you know #Ruby 3.0 introduced the endless method? That was more than three years ...
Did you know #Ruby 3.0 introduced the endless method? That was more than three years ago.
It could be helpful sometimes for writing concise code!
Let me show some use cases and see how it can improve code readability and structure.
Published at
2024-06-06 08:00:12Event JSON
{
"id": "735e991ae41da9fed9b226a45019d50f6b5a0e3ed72ab579f8978853d6e6391e",
"pubkey": "0ff06892dc3643417e066015d1ebb76e7af9d6179d0363b3863a975fc8e010f6",
"created_at": 1717660812,
"kind": 1,
"tags": [
[
"t",
"ruby"
],
[
"proxy",
"https://ruby.social/@lucian/112568619018082145",
"web"
],
[
"imeta",
"url https://cdn.masto.host/rubysocial/media_attachments/files/112/568/618/893/345/007/original/7ae2c613603f1927.png",
"m image/png"
],
[
"proxy",
"https://ruby.social/users/lucian/statuses/112568619018082145",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://ruby.social/users/lucian/statuses/112568619018082145",
"pink.momostr"
]
],
"content": "Did you know #Ruby 3.0 introduced the endless method? That was more than three years ago.\n\nIt could be helpful sometimes for writing concise code!\n\nLet me show some use cases and see how it can improve code readability and structure.\nhttps://cdn.masto.host/rubysocial/media_attachments/files/112/568/618/893/345/007/original/7ae2c613603f1927.png\n",
"sig": "01b6d4d64e6fcb16be1b05ab4358e31e310ccaf85bcb3b3e2b5a2a8d943b267cfb57dbec9f41d1894ad4179b59928f9ae69b887f56bf3c498d5d8269605d51f9"
}