How to use feature-based folders structure instead type-based?

Posting this oldie-but-goodie here just because it poped up for me today again

And here’s the GH discussion on another project where I saw it

That discussion also has some more input on the topic