This is famous talk from Gary Bernhardt in 2012, but it is still amazing and relevant to see how weird sometimes writing software can be.

https://www.destroyallsoftware.com/talks/wat