As the projects I'm working on are growing more and more, I'm starting to be unsure of class separation into packages. Suppose that a project has many layers, and in these layers there are interfaces and implementation, and even more sublayers (components). I always get a lot of packages that start to get a little confused.
Therefore, I want to know that other people are suitable for working with packages. Do you prefer to have many packages with multiple classes or multiple packages with many classes? Do you prefer to separate implementations from interfaces? And so on ... In general, your daily habits of using packages and the pros / cons of your approach.
Thanks for your posts.
, .
, , - . , , .
, :
, , .
, . , , , .
, . , , , , . , , , .
, -, , , . , . ( , .)
, , . com.foo.Bar, , , com.foo.bars.CrowBar, com.foo.bars.TaskBar. , , com.foo.moduleX.bars.CrowBar com.foo.bars.moduleX.CrowBar, , .
com.foo.Bar
com.foo.bars.CrowBar
com.foo.bars.TaskBar
com.foo.moduleX.bars.CrowBar
com.foo.bars.moduleX.CrowBar
, , , , : , , .
, ( Eclipse:), , .
- (DAO) / , -.
, . , OSGi .
: ( , ) , .
Source: https://habr.com/ru/post/1796128/More articles:kohana 3 routing fails under certain circumstances - phpScan URL All the time - Chrome extension - google-chromeHow to make Firefox extension compatible? - firefox-addoncreating a nice custom UITableViewCell - objective-cUsing Request.QueryString, slash (/) is added to the last query line when it exists in the first query line - c #How a website should handle a database crash - databaseNeed a sound engine or audio engine for iOS - iosHAML syntax error "Waiting for $ end" - ruby-on-railsFailed to load Main-Class manifest attribute from - javaRecommended approaches for getting my code included? - c ++All Articles