this post was submitted on 28 Dec 2023
349 points (97.5% liked)

Programmer Humor

19589 readers
1533 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] frezik@midwest.social 2 points 10 months ago

Those are rookie numbers. Professionals came up with the nested logic monstrosity that is the JSON-LD specification:

https://www.w3.org/TR/json-ld11-api/#context-processing-algorithm

Looks through the algorithm bits in the various sections. How would you implement that? The answer is invariably by copying the highly nested statements of the spec directly into your language. Maybe there's a better way, but you'd have to understand all that nested logic first, and you'd be exhausted at that point and just want to move on.