Coding Conventions

Coding Conventions

A set of guidelines, helpful practices, programming styles, and conventions for developers


Coding conventions are a set of guidelines for a specific programming language that recommend programming style, practices, and methods for each aspect of a program written in that language.

C Programming Language

SEI CERT C Coding Standard

The goal of these rules and recommendations is to develop safe, reliable, and secure systems, for example by eliminating undefined behaviors that can lead to undefined program behaviors and exploitable vulnerabilities.

Read more at:?https://www.securecoding.cert.org/confluence/display/c/SEI+CERT+C+Coding+Standard

Embedded C Coding Standard

Barr Group’s?Embedded C Coding Standard?was developed to minimize bugs in firmware by focusing on practical rules that keep bugs out, while also improving the maintainability and portability of embedded software.

Read more at:?https://barrgroup.com/coding-standard

Firmware Development Standard

The reason for the Standard is to ensure all Company-developed firmware meets minimum levels of readability and maintainability.

Read more at:?https://www.ganssle.com/fsm.pdf

C++ Programming Language

Quantum Leaps C/C++ Coding Standard

The following coding guidelines are intended to improve code portability, readability, uniformity, and maintainability for software. The primary objective of this Coding Standard is to boost software productivity and lower maintenance costs by promoting commonality and avoiding misinterpretations and guessing.

Read more at:?https://www.state-machine.com/doc/AN_QL_Coding_Standard.pdf

C++ Programming/Programming Languages/C++/Code/Style Conventions

The use of a guide or set of conventions gives programmers a set of rules for code normalization or coding style that establishes how to format code, name variables, place comments, or any other non-language dependent structural decision that is used on the code. This is very important, as you share a project with others. Agreeing to a common set of coding standards and recommendations saves time and effort, by enabling a greater understanding and transparency of the code base, providing a common ground for undocumented structures, making for easy debugging, and increasing code maintainability.

Read more at:?https://en.wikibooks.org/wiki/C%2B%2B_Programming/Programming_Languages/C%2B%2B/Code/Style_Conventions

GeoSoft’s C++ Programming Style Guidelines

The present document does not contain any C++ technical recommendations at all but focuses mainly on programming style

Read more at:?https://geosoft.no/development/cppstyle.html

Google’s C++ Style Guide

The goal of this guide is to manage this complexity by describing in detail the dos and don’ts of writing C++ code . These rules exist to keep the code base manageable while still allowing coders to use C++ language features productively.

Read more at:?https://google.github.io/styleguide/cppguide.html

High Integrity C++

It contains 155 rules that restrict the use of ISO C++ language to improve software maintenance and reliability in high reliability or safety-critical applications.

Read more at:?https://en.wikipedia.org/wiki/High_Integrity_C%2B%2B

C# Programming Language

C# Coding Conventions (C# Programming Guide)

Coding conventions serve the following purposes:


  • They create a consistent look to the code, so that readers can focus on content, not layout.
  • They enable readers to understand the code more quickly by making assumptions based on previous experience.
  • They facilitate copying, changing, and maintaining the code.
  • They demonstrate C# best practices.

Read more at:?https://msdn.microsoft.com/en-us/library/ff926074.aspx

Design Guidelines for Developing Class Libraries

Read more at:?https://msdn.microsoft.com/en-us/library/ms229042(VS.80).aspx

Brad Abrams

Read more at:?https://blogs.msdn.com/brada/articles/361363.aspx

Philips Healthcare

Read more at:?https://www.tiobe.com/standards/gemrcsharpcs.pdf


Java Programming Language

Ambysoft’s Coding Standards for Java

Read more at:?https://www.ambysoft.com/essays/javaCodingStandards.html

GeoSoft’s Java Programming Style Guidelines

Read more at:?https://geosoft.no/development/javastyle.html

Java Coding Standards at Curlie

Read more at:?https://curlie.org/Computers/Programming/Languages/Java/Coding_Standards/

SoftwareMonkey’s coding conventions for Java and other brace-syntax languages

Read more at:?https://tech.dolhub.com/article/computer/Coding-Conventions

JavaScript Programming Language

Code Conventions for the JavaScript Programming Language

Read more at:?https://javascript.crockford.com/code.html


Perl Programming Language

Perl Style Guide

Read more at:?https://perldoc.perl.org/perlstyle.html


Python Programming Language

Style Guide for Python Code

Read more at:?https://www.python.org/peps/pep-0008.html


Ruby Programming Language

The Unofficial Ruby Usage Guide

This document will suggest some guidelines for writing Ruby code in such a way that a common stylistic vocabulary may emerge, thereby increasing the ease with which source code may be read and shared.

Read more at:?https://www.caliban.org/ruby/rubyguide.shtml

GitHub Ruby style guide

This is the coding style guide we use at FreeAgent for our Ruby apps.


Read more at:?https://github.com/styleguide/ruby

It’s all about coding conventions all over the world. Useful, right?

References

https://github.com/housecricket/Coding-Conventions



要查看或添加评论,请登录

社区洞察

其他会员也浏览了