This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Questions about modularity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "Questions about modularity" Watch "Questions about modularity" New topic
Author

Questions about modularity

Damian Cardozo
Greenhorn

Joined: Aug 04, 2011
Posts: 9
Hello, I would like to know if modularity is recommended even for small-sized applications. Can I see its benefits even there? I'm afraid to add complexity and don't get so much in return..
Also, does MVC fit anywhere in modularity? Can the model, view and controller be considered as modules? Or should modules be more fine-grained?

Thanks
Kirk Knoernschild
author
Ranch Hand

Joined: Apr 16, 2012
Posts: 41
I firmly believe modularity is a requirement for large software systems. For small software systems (say > 10k loc), modularity isn't absolutely necessary, at least from a design perspective since smaller systems are inherently easier to understand. Of course, there are other reasons to use modularity, such as deploying different versions of a module alongside each other in the same JVM, hot deployment, or plugin architecture. Even for small systems, modularity can be beneficial. Like all things, modularity is a valuable tool in your arsenal of tools. I tend to shy away from absolutes, because there is always an exception. But I'd have to believe a system must be very small with very simple requirements not to benefit from modularity.

Visit the book's website at modularity.kirkk.com where you can review all 18 patterns and download an excerpt of the book. There is also a mobile web application available that you can take with you wherever you go.

--kirk
Twitter: @pragkirk
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Questions about modularity
 
Similar Threads
Development-time modularity and how to achieve it
What is OSGi? Is it appliable to any Java application?
OSGi In Action - Questions
Java Application Architecture book question - applicability beyond Java?
OSGi ain't the only way to modularize your apps