MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y1rd5z/commentsinjson/19sym4iruhwf6/
r/ProgrammerHumor • u/Recent-Analysis-6880 • 12d ago • 1
202 comments sorted by
View all comments
81
Comments do exist: { "$comment": "Hello World" }
56 u/proverbialbunny 12d ago { "$developers_note": "I was drunk when I wrote this. Good luck!" } 8 u/buckinin 12d ago Pull Request denied. 11 u/LatvianCake 11d ago git checkout mastergit merge mybranchgit push -f 9 u/LuisBoyokan 12d ago LGTM, approved 14 u/metaglot 12d ago Hello, validation hell. 3 u/Striky_ 11d ago If you want to validate your data, don't transmit it as a string in the first place. 10 u/metaglot 11d ago Nothing wrong with strings. Data is data. Strings can be validated jus as everything else. 2 u/necrophcodr 11d ago Plenty wrong with having to decode a full JSON object just to fail validation after. 2 u/RevoOps 11d ago You can technically build a dwelling out of blocks of ice. Doesn't mean you should do it if you are building a house in Florida 5 u/another_random_bit 11d ago Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.What does houses in Florida have anything to do with it? 1 u/buckinin 12d ago Oh, just because they exist doesn't mean people should use them. 0 u/metaglot 12d ago Schemas can go fuck themselves? 3 u/MrHyperion_ 11d ago You can attach comments only to blocks then, not simple variables unless you do something really perverted like "variable": "value"; "variable__comment": "the comment";
56
{ "$developers_note": "I was drunk when I wrote this. Good luck!" }
8 u/buckinin 12d ago Pull Request denied. 11 u/LatvianCake 11d ago git checkout mastergit merge mybranchgit push -f 9 u/LuisBoyokan 12d ago LGTM, approved
8
Pull Request denied.
11 u/LatvianCake 11d ago git checkout mastergit merge mybranchgit push -f 9 u/LuisBoyokan 12d ago LGTM, approved
11
git checkout master
git merge mybranch
git push -f
9
LGTM, approved
14
Hello, validation hell.
3 u/Striky_ 11d ago If you want to validate your data, don't transmit it as a string in the first place. 10 u/metaglot 11d ago Nothing wrong with strings. Data is data. Strings can be validated jus as everything else. 2 u/necrophcodr 11d ago Plenty wrong with having to decode a full JSON object just to fail validation after. 2 u/RevoOps 11d ago You can technically build a dwelling out of blocks of ice. Doesn't mean you should do it if you are building a house in Florida 5 u/another_random_bit 11d ago Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.What does houses in Florida have anything to do with it? 1 u/buckinin 12d ago Oh, just because they exist doesn't mean people should use them. 0 u/metaglot 12d ago Schemas can go fuck themselves?
3
If you want to validate your data, don't transmit it as a string in the first place.
10 u/metaglot 11d ago Nothing wrong with strings. Data is data. Strings can be validated jus as everything else. 2 u/necrophcodr 11d ago Plenty wrong with having to decode a full JSON object just to fail validation after. 2 u/RevoOps 11d ago You can technically build a dwelling out of blocks of ice. Doesn't mean you should do it if you are building a house in Florida 5 u/another_random_bit 11d ago Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.What does houses in Florida have anything to do with it?
10
Nothing wrong with strings. Data is data. Strings can be validated jus as everything else.
2 u/necrophcodr 11d ago Plenty wrong with having to decode a full JSON object just to fail validation after. 2 u/RevoOps 11d ago You can technically build a dwelling out of blocks of ice. Doesn't mean you should do it if you are building a house in Florida 5 u/another_random_bit 11d ago Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.What does houses in Florida have anything to do with it?
2
Plenty wrong with having to decode a full JSON object just to fail validation after.
You can technically build a dwelling out of blocks of ice. Doesn't mean you should do it if you are building a house in Florida
5 u/another_random_bit 11d ago Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.What does houses in Florida have anything to do with it?
5
Ok but that's irrelevant? Strings CAN be validated, and sometimes the data is in string format.
What does houses in Florida have anything to do with it?
1
Oh, just because they exist doesn't mean people should use them.
0 u/metaglot 12d ago Schemas can go fuck themselves?
0
Schemas can go fuck themselves?
You can attach comments only to blocks then, not simple variables unless you do something really perverted like
"variable": "value"; "variable__comment": "the comment";
View all comments
81
u/buckinin 12d ago
Comments do exist: { "$comment": "Hello World" }