World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0002111762
Reproduction Date:

Title: Codebase  
Author: World Heritage Encyclopedia
Language: English
Subject: Rolling release, AVATAR (MUD), Software remastering, Source code, Linux Mint
Collection: Source Code, Version Control
Publisher: World Heritage Encyclopedia


In software development, a codebase (or code base) refers to a whole collection of source code that is used to build a particular software system, application, or software component. Typically, a codebase includes only human-written source code files; thus, a codebase usually does not include source code files generated by tools (generated files) or binary library files (object files), as they can be built from the human-written source code. However, it generally does include configuration and property files, as they are the data necessary for the build.

A codebase is typically stored in a source control repository that belongs to a revision control system, though for smaller projects it may be instead kept simply as a set of files; however, even the Linux kernel used to be maintained as a set of files for many years.[1] A source code repository is a place where large amounts of source code are kept, either publicly or privately. Source code repositories are used most basically for backups and versioning, and on multi-developer projects to handle various source code versions and to provide aid in resolving conflicts that arise from developers submitting conflicting modifications. Subversion, Git and Mercurial are examples of popular tools used to handle this workflow, which are common in open source projects.


  • Distinct and monolithic codebases 1
  • Examples 2
  • References 3
  • See also 4

Distinct and monolithic codebases

Multiple projects can have separate, distinct codebases, or can have a single, shared or monolithic codebase. This is particularly the case for related projects, such as those developed within the same company. In more detail, a monolithic codebase typically entails a single repository (all the code in one place), and often a common build system or common libraries. Whether the codebase is shared or split does not depend on the system architecture and actual build results; thus, a monolithic codebase, which is related to the actual development, does not entail a monolithic system, which is related to software architecture or a single monolithic binary. As a result, a monolithic codebase may and (for large codebases) often will consist of separate components, instead of carrying only a single system or single binary; a distributed codebase (with multiple components) can be used to build a single monolithic system or even a single binary. For example, the Linux kernel is architecturally a single monolithic kernel, but it consists of separate binaries (loadable components), and is developed in multiple distributed repositories.

There are both advantages and disadvantages to a monolithic codebase, when it is compared to a distributed codebase.[2][3] Most simply, a monolithic codebase simplifies integration—​changes to different components or refactoring of code between components can be done easily and atomically—​and allows operations across the entire codebase, but requires a larger repository and makes it easier to introduce wide-ranging technical debt. A separate codebase or a distributed codebase keeps individual repositories smaller and more manageable, enforcing at the same time separation between components, but it also requires integration between codebases (or with the main repository), and complicates changes that span multiple codebases.[4]

In terms of standards, referring to multiple codebases as "distinct" declares that there are independent implementations without shared source code and that, historically, these implementations did not evolve from a common project. This may be a way of demonstrating interoperability by showing two independent pieces of software that implement a given standard.


Some notably large codebases include:

  • Google: monolithic, hundreds of millions of lines of code/over a hundred million lines of code (2011)[2][5]
  • Facebook: monolithic, 8 GB (repo 54 GB including history, 2014),[6] hundreds of thousands of files (2014)[3]
  • Linux kernel: distributed, over 15 million lines of code (3.10, 2013)


  1. ^ "A Short History of Git". Retrieved October 21, 2014. 
  2. ^ a b J. David Morgenthaler and Misha Gridnev and Raluca Sauciuc and Sanjay Bhansali (2012). "Proceedings of the Third International Workshop on Managing Technical Debt". IEEE. pp. 1–6, (PDF). 
  3. ^ a b Scaling Mercurial at Facebook
  4. ^ 5.1 Distributed Git - Distributed Workflows
  5. ^ Build in the Cloud: Accessing Source Code
  6. ^ Facebook's git repo is 54 GB.

See also

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.