Programming style
Guidelines when writing computer code / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Programming style?
Summarize this article for a 10 year old
Programming style, also known as coding style or code style, is a set of rules or guidelines that governs the layout of source code. Programming style may also refer an quality aspect of code that is interpreted subjectively.
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
|
Some claim that following a particular programming style helps programmers read and understand code and to avoid introducing errors.
The Elements of Programming Style, written in the 1970s provides examples in Fortran and PL/I.
The style used in a particular codebase is often based on the coding conventions of a company or organization, or the preferences of the programmer.
A style is often designed for a specific programming language or language family. For example, a style used for C may not be appropriate for BASIC. However, some rules are applied to many languages.