I’ve avoided namespacing for years, thinking it was this big complicated beast. While working on my new WordPress starter template, I decided to use it in an attempt to better organise my code. Turns out it’s simpler than it looks.
Namespacing is just a way to organise your code. You’re essentailly saying this code is in this directory. That’s it! Here’s a great video from Jeff of Laracasts that explains it very nicely.