I would advice using a healthy dose of skepticism towards the example projects and the soundness of their implementations.
Think of it as more like “this is what code written in the industry might look like” instead of “this is how we would ideally implement these things”.