I guess it's an interesting way to make a level but it also seems quite wonky/impractical. Many games in general are held together with duct tape tho, so it's a matter of "it works and doesn't cause any issues so who cares". I'm thinking of the infamous train-hat npcs in fallout 3, or the squirrel timers in titan quest. In these cases they were certainly legitimate as they were done as workarounds for engine limitations. Not so sure about the examples.
I do agree on examples not actually explaining the code properly. I remember looking up an example not too long ago and I just couldn't figure out what exactly the code did because it was a long bunch of sin/cos math stuff with the comment above being "here we make thing work lol"
I can say tho I 100% have written code before that would make more knowledgeable programmers die from cringe. But I'm trying :V