SedlarDavid on Nostr: I've seen good and bad code, but never someone serialize a list by converting each ...
I've seen good and bad code, but never someone serialize a list by converting each element to a string, concatenating them, and wondering why the final string isn't valid JSON. Serializing a list should be a 30-second Google search. Sometimes, I wonder why some developers make things so difficult.
Published at
2024-06-25 12:18:13Event JSON
{
"id": "fce7638af40cfb0a6346616683363d1f1a976afd8fb46ca6aea18beb46602fa6",
"pubkey": "638e618c1a36a34c9ccd8c1b9bbff87c9f98f9bfa27533022679b63a9d4ff825",
"created_at": 1719317893,
"kind": 1,
"tags": [],
"content": "I've seen good and bad code, but never someone serialize a list by converting each element to a string, concatenating them, and wondering why the final string isn't valid JSON. Serializing a list should be a 30-second Google search. Sometimes, I wonder why some developers make things so difficult.",
"sig": "1ba9fa815a186779f601dd8a6dc7a694017feb5050c45f6f5d83758b3de249b048c42fc23dbc5cc3617e24f4cae95129d878efdbdd19ecdc19d45005b0855aaa"
}