ancaprevolt on Nostr: So far the only thing I’ve used objects for was a Roman numeral converter. I stored ...
So far the only thing I’ve used objects for was a Roman numeral converter. I stored a bunch of objects in an array, with each object having two keys, the Arabic numeral, and its Roman counterpart. Then I built a recursive function and iterated through the array to convert a number to a Roman numeral.
I mean I’ve used objects in the courses but that was the first time I’ve used them in a project. The courses haven’t even gotten to OOP, so idk if that’s actually OOP
Published at
2025-02-01 15:10:53Event JSON
{
"id": "70762cc852e471cb80216297443a2fef47d31992d3715db8d7506a6a69a99139",
"pubkey": "c5e173798dad29dd2b8062b8310974aed0a72e3645f9e58d2129bc6abd15d8bf",
"created_at": 1738422653,
"kind": 1,
"tags": [
[
"e",
"0e4738d9391681f4dfb7ca104800c5e5e174ee1bcae2bf36c136b1445acb839e",
"",
"root"
],
[
"e",
"72e1c336469809467da512ed9207efaa2ee1eb8cb8d1e2c1105271b846298d1c",
"wss://nostr-pub.wellorder.net",
"reply"
],
[
"p",
"6e77f4f3c9995e0887d02dc95b39692f58641ed5b073972ef86cd6b61ecc6bae"
]
],
"content": "So far the only thing I’ve used objects for was a Roman numeral converter. I stored a bunch of objects in an array, with each object having two keys, the Arabic numeral, and its Roman counterpart. Then I built a recursive function and iterated through the array to convert a number to a Roman numeral. \n\nI mean I’ve used objects in the courses but that was the first time I’ve used them in a project. The courses haven’t even gotten to OOP, so idk if that’s actually OOP",
"sig": "82293ed0bf83a8dce09f99d611c13679e04389fa68fbc428fa91901a45ba53820bdf42af6db8bfdf2ac207f3f2320055fe0e64b3b3322c8f68ace1613d7296e4"
}