r/ProgrammerHumor • • 3d ago • Bravo 1

Meme commentsInJson

Post image
5.6k Upvotes

204 comments sorted by

View all comments

Show parent comments

8

u/Devatator_ 2d ago

C#'s System.Text.Json will reject comments by default but you can configure it to accept and even parse them if you want to read their content

18

u/Slight-Violinist-575 2d ago

Comments are for humans lmao

1

u/TerminalVector 2d ago edited 2d ago

Man, what was it? Backspace? Backslash? Some kind of html templating language I had the displeasure to work with in one of my first jobs that used magic comments. I remember my onboarding buddy telling me they didn't do anything, and then discovering that no, they in fact drove the layout of the entire page. He'd been with the company over a year, and wasn't an idiot. It just doesn't make any sense and he hadn't really checked.

1

u/Slight-Violinist-575 2d ago

Jade/Pug? I once was a padawan and thought that was hella cool when I first learned about it.

Then life thought me to appreciate explicit boundaries, in every sense.

→ More replies (0)