Software Programming Style: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
(Created page with "A Software Programming Style is a set of conventions that governs the writing and formatting of source code in a programming language. * <B>Context:</B> ** It can (typically) include File Organization Guidelines, Code Formating Guidelines, Code Comment Guidelines, Code Declaration Guidelines, Naming Convention Guidelines, and Programming Practice Guidelines. ** It can (often) be specific to a Programming Language-Specific Codeing...")
 
m (Text replacement - "ions]] " to "ion]]s ")
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
A [[Software Programming Style]] is a [[set of conventions]] that governs the writing and formatting of [[source code]] in a [[programming language]].
A [[Software Programming Style]] is a [[set of convention]]s that governs the writing and formatting of [[source code]] in a [[programming language]].
* <B>Context:</B>
* <B>Context:</B>
** It can (typically) include [[File Organization Guideline]]s, [[Code Formating Guideline]]s, [[Code Comment Guideline]]s, [[Code Declaration Guideline]]s, [[Naming Convention Guideline]]s, and [[Programming Practice Guideline]]s.
** It can (typically) include [[File Organization Guideline]]s, [[Code Formating Guideline]]s, [[Code Comment Guideline]]s, [[Code Declaration Guideline]]s, [[Naming Convention Guideline]]s, and [[Programming Practice Guideline]]s.
** It can (often) be specific to a [[Programming Language-Specific Codeing Style]].
** It can (often) be specific to a [[Programming Language-Specific Coding Style]].
** It can (often) be enforced manually by [[Code Review]]s or automatically using [[Code Analysis Tool]]s.
** It can (often) be enforced manually by [[Code Review]]s or automatically using [[Code Analysis Tool]]s.
** It can range from being an [[Organization-Specific Condting Style]] to being a [[Personal Coding Style]].
** It can range from being an [[Organization-Specific Condting Style]] to being a [[Personal Coding Style]].
Line 14: Line 14:
*** ...
*** ...
** a [[Personal Coding Style]], such as:
** a [[Personal Coding Style]], such as:
*** [[Donald Knuth]]'s, known for his precise and rigorous approach to coding and documentation.
*** [[Linus Torvalds]]'s, known for emphasizing efficiency and performance in code.
*** [[Guido van Rossum]], known for advocating for readability and simplicity in coding.
*** [[Brian Kernighan]]'s and [[Dennis Ritchie]]'s, who emphasized clarity and economy of expression in their code.
*** [[Martin Fowler]]'s, known for emphasizing [[design pattern]]s, [[enterprise pattern]]s, and [[agile software development practice]]s.
*** ...
*** ...
* <B>Counter-Example(s):</B>
* <B>Counter-Example(s):</B>
** A [[Programming Paradigm]], such as [[Object-Oriented Programming]] or [[Functional Programming]].
** A [[Programming Paradigm]], such as [[Object-Oriented Programming]] or [[Functional Programming]].
** A [[Software Design Pattern]], such as the [[Singleton pattern]] or [[Observer pattern]].
** A [[Software Design Pattern]], such as the [[Singleton pattern]] or [[Observer pattern]].
* <B>See:</B> [[Code Quality]], [[Programming Language]], [[Software Documentation]], [[Software Maintenance]], [[Legacy System]], [[Software Innovation]]
* <B>See:</B> [[Code Quality]], [[Programming Language]], [[Software Documentation]], [[Software Maintenance]], [[Legacy System]], [[Software Innovation]].


----
----
----
----
== References ==
== References ==


=== 2024 ===
=== 2024 ===
* (Wikipedia, 2024) ⇒ https://en.wikipedia.org/wiki/Programming_style Retrieved:2024-2-9.
* (Wikipedia, 2024) ⇒ https://en.wikipedia.org/wiki/Programming_style Retrieved:2024-2-9.
** '''Programming style''', also known as '''code style''', is a set of rules or guidelines used when writing the [[source code]] for a [[computer program]]. It is often claimed that following a particular programming style will help [[programmer]]s read and understand source code conforming to the style, and help to avoid introducing errors. <P> A classic work on the subject was ''[[The Elements of Programming Style]]'', written in the 1970s, and illustrated with examples from the [[Fortran]] and [[PL/I]] languages prevalent at the time. <P> The programming style used in a particular program may be derived from the [[coding conventions]] of a company or other computing organization, as well as the preferences of the author of the code. Programming styles are often designed for a specific [[programming language]] (or language family): style considered good in [[C (programming language)|C]] source code may not be appropriate for [[BASIC programming language|BASIC]] source code, etc. However, some rules are commonly applied to many languages.
** '''Programming style''', also known as '''code style''', is a set of rules or guidelines used when writing the [[source code]] for a [[computer program]]. It is often claimed that following a particular programming style will help [[programmer]]s read and understand source code conforming to the style, and help to avoid introducing errors. <P> A classic work on the subject was ''[[The Elements of Programming Style]]'', written in the 1970s, and illustrated with examples from the [[Fortran]] and [[PL/I]] languages prevalent at the time. <P> The programming style used in a particular program may be derived from the [[coding convention]]s of a company or other computing organization, as well as the preferences of the author of the code. Programming styles are often designed for a specific [[programming language]] (or language family): style considered good in [[C (programming language)|C]] source code may not be appropriate for [[BASIC programming language|BASIC]] source code, etc. However, some rules are commonly applied to many languages.


----
----
__NOTOC__
__NOTOC__
[[Category:Concept]]

Latest revision as of 07:31, 22 August 2024

A Software Programming Style is a set of conventions that governs the writing and formatting of source code in a programming language.



References

2024

  • (Wikipedia, 2024) ⇒ https://en.wikipedia.org/wiki/Programming_style Retrieved:2024-2-9.
    • Programming style, also known as code style, is a set of rules or guidelines used when writing the source code for a computer program. It is often claimed that following a particular programming style will help programmers read and understand source code conforming to the style, and help to avoid introducing errors.

      A classic work on the subject was The Elements of Programming Style, written in the 1970s, and illustrated with examples from the Fortran and PL/I languages prevalent at the time.

      The programming style used in a particular program may be derived from the coding conventions of a company or other computing organization, as well as the preferences of the author of the code. Programming styles are often designed for a specific programming language (or language family): style considered good in C source code may not be appropriate for BASIC source code, etc. However, some rules are commonly applied to many languages.