Partitioning Code

Why Trust Techopedia

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.

Advertisements

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.

Advertisements

Related Terms

Margaret Rouse
Technology Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.