Event JSON
{
"id": "00000104b23b0e13050449bfcc74ccdd5c38dea78cbbed9df771a6315018f764",
"pubkey": "66675158e6338fe89fda418e42a0bf2a7a2b132504dd347f015a18971b644430",
"created_at": 1747987202,
"kind": 1,
"tags": [
[
"p",
"4a38463c2a75e68c24416e7720a3b3befbb0ea6872d5a04692c39e18e8f2dcac",
"",
"SPA (Super Phat Arrow)"
],
[
"p",
"1bc70a0148b3f316da33fe3c89f23e3e71ac4ff998027ec712b905cd24f6a411",
"",
"Karnage"
],
[
"p",
"ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe",
"wss://relay.nostr.bg/",
"Egge"
],
[
"e",
"3ca0e9008ddfcddaa9c00b58a2f11b9c0bc60bc243b690ad2850e7364298d44d",
"wss://purplepag.es/",
"root"
],
[
"e",
"f3a0f711085cc7031780b616f95452f4124a936bebb8e7fba4ebfa8fc697a9f1",
"",
"mention"
],
[
"e",
"a3c1d8278406a536f01815881ab3c7f8f8f0d2175d149339cb9802c595221b02",
"",
"reply",
"4a38463c2a75e68c24416e7720a3b3befbb0ea6872d5a04692c39e18e8f2dcac"
],
[
"client",
"Coracle",
"31990:97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322:1685968093690"
],
[
"nonce",
"937160",
"21"
]
],
"content": "besides the obvious ai smell of having comments that describe what's obvious by just reading the code, and no checking of anything whatsoever, it's not implementing a queue in any way, that's just an array with extra steps, it loses all the benefits of a real queue. \n\nIt probably stole that code from someone who doesn't understand data types either. \n\nA queue has a pointer to a start and end; it has a limited size, and depending on the implementation and what you're trying to achieve it should either circularly wrap if it achieves the size limit, or it should throw an error. \n\nEnqueuing and dequeueing should be constant time (O(1)), that means that adding and removing elements should always take around the same time. \n\nArrays wrappers like what chatgpt there created get progressively slower over time, as they work in linear time (O(n)).",
"sig": "50bd73dc172aff5ecdda17903ab9ca7574a15d2cecc132e7cf8486819bc49f90505e8cc06092242a07fbd8a7394f2a9575c0826fe23e6b756f9cd11ad495b035"
}