mleku on Nostr: there is an idiotic mentality amongst programmers that log printing is a "weak" ...
there is an idiotic mentality amongst programmers that log printing is a "weak" method of debugging problems and so you see in most codebases, logging is an afterthought if it appears at all, and trace logging is nonexistent
my code often has bugs that happen on such short time scales that i MUST use log printing to get post mortems when my code fails, and i just use it most of the time, and then sometimes i remove some of the logs once i'm confident the code is working, because often the logging for the debugging process can be very noisy and crowd out the next thing i work on
Published at
2025-01-08 08:16:39Event JSON
{
"id": "85468c4681bd72dc1cdc487d2edf721b65496d9b67d0244c81465b906b30aac9",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1736324199,
"kind": 1,
"tags": [
[
"e",
"09f945515818dcf84c3eacba1457d1a9c12b7a707322bb728b76741db6abb79b",
"",
"root"
],
[
"e",
"963667db9ca2ec5728e90149bf417ffb8af05142bad6b15a37ce6539a064c5c3",
"nostr-idb://cache-relay",
"reply",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"p",
"7cc328a08ddb2afdf9f9be77beff4c83489ff979721827d628a542f32a247c0e"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "there is an idiotic mentality amongst programmers that log printing is a \"weak\" method of debugging problems and so you see in most codebases, logging is an afterthought if it appears at all, and trace logging is nonexistent\n\nmy code often has bugs that happen on such short time scales that i MUST use log printing to get post mortems when my code fails, and i just use it most of the time, and then sometimes i remove some of the logs once i'm confident the code is working, because often the logging for the debugging process can be very noisy and crowd out the next thing i work on",
"sig": "ec1c102e5a8b136e13ed2d3efed8ff7b54fb0e47e8870f8241752b89fb370f953b8a9b60c9882e38a903f817cb15a47460646865f2580acc9d0680bd6c2c342e"
}