Four Strategies for Organizing Code
Published on by Eric L. Barnes
Martin Sandin has an article outlining four strategies for organizing code. He goes through each of the four strategies, by component, by toolbox, by layer, and by kind.
Martin said, “I think these four form a kind of hierarchy with regards to which kind of cohesion they favor and in my experience they cover most of the real-world code I’ve worked with, pleasurable and not.”
Give it a read if you’ve ever wondered about the different strategies.
Eric is the creator of Laravel News and has been covering Laravel since 2012.