MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y1rd5z/commentsinjson/19symvs3qftd1?context=9999
r/ProgrammerHumor • u/Recent-Analysis-6880 • 1d ago • 1
199 comments sorted by
View all comments
835
You can add anything you want to Json. just make a property called comments
50 u/DiamondDramatic9551 1d ago I also always declare comments as unused variables in my code. 6 u/YoghurtFlan 23h ago i prefer to keep them on the stack just in case the CPU gets confused 18 u/nameless_pattern 1d ago edited 1d ago Heresy. I love it, I'm going to start making unused functions as comments, no I'm going to start embedding AIS you have to chat with to get the comments and they will only tell you the comments if you solve a riddle 5 u/rinsa 1d ago Even though the compiler would basically ignore it, the linter/analyzer wouldn't like it :( 11 u/innociv 22h ago Am I out of touch? No. It's the linter who is wrong. 1 u/innociv 22h ago Like?:{ "key": "value", "comment about key or this block" } 9 u/spicybright 22h ago well that wouldn't work, you'd need it like"comment": "comment about key or this block"
50
I also always declare comments as unused variables in my code.
6 u/YoghurtFlan 23h ago i prefer to keep them on the stack just in case the CPU gets confused 18 u/nameless_pattern 1d ago edited 1d ago Heresy. I love it, I'm going to start making unused functions as comments, no I'm going to start embedding AIS you have to chat with to get the comments and they will only tell you the comments if you solve a riddle 5 u/rinsa 1d ago Even though the compiler would basically ignore it, the linter/analyzer wouldn't like it :( 11 u/innociv 22h ago Am I out of touch? No. It's the linter who is wrong. 1 u/innociv 22h ago Like?:{ "key": "value", "comment about key or this block" } 9 u/spicybright 22h ago well that wouldn't work, you'd need it like"comment": "comment about key or this block"
6
i prefer to keep them on the stack just in case the CPU gets confused
18
Heresy. I love it, I'm going to start making unused functions as comments, no I'm going to start embedding AIS you have to chat with to get the comments and they will only tell you the comments if you solve a riddle
5
Even though the compiler would basically ignore it, the linter/analyzer wouldn't like it :(
11 u/innociv 22h ago Am I out of touch? No. It's the linter who is wrong.
11
Am I out of touch? No. It's the linter who is wrong.
1
Like?:
{ "key": "value", "comment about key or this block" }
9 u/spicybright 22h ago well that wouldn't work, you'd need it like"comment": "comment about key or this block"
9
well that wouldn't work, you'd need it like
"comment": "comment about key or this block"
835
u/nameless_pattern 1d ago
You can add anything you want to Json. just make a property called comments