Partitioning Code

What Does Partitioning Code Mean?

Partitioning code is a method used for making a large code base or project manageable by breaking up different segments of it into smaller chunks that can be handled easily, as opposed to a large code that can have many areas of failure and take up large portions of a disk as well as take a very long time to compile.


Techopedia Explains Partitioning Code

Partitioning code is used to make code development more manageable, especially in the area of code management, project management and code tracking. It breaks down a large endeavor such as an enterprise level system development that might span multiple features and teams. This effectively breaks up a large task into smaller pieces that can be tackled by different teams in parallel, making development faster. In Microsoft’s .Net environment and Visual Studio, this is done via assemblies and namespaces.

One good example of the application of partitioning code is the model-view-controller (MVC) architecture. In MVC, code is divided into the model or database, the view or user interface, and the controller, which can be considered as the business logic in the application. Although the three components are part of the same project, they are separate from each other; hence they can be developed separately and in parallel without truly affecting the others. The only thing to worry about is the interface between the three modules, which must be synchronized across the development teams to ensure proper communication. Other than that, the components are independent, so changing something in the controller logic, for example, will not affect the code of the view and model but may affect how the entire application works.


Related Terms

Latest General Computing Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…