📜 ⬆️ ⬇️

Your programming style


I would like to know what writing style our habracoders use. Naturally, the taste and color, as well as the ways of implementing the comrades are not, but nonetheless. It is no secret that there are a sufficient number of options for the design of the program code, and it is not necessary to stick to one of them. Here are some examples that were found on the Internet:



1) Rational style
This is one of the most common styles, since it was used by Kernighan and Richie (Ritchie), the authors of C.
')
<? php
if ($ flag) {
echo "Hello world!";
}
?>


2) Almen style
Eric Allman wrote BSD utilities in this style, so this style is often called the “BSD style”:

<? php
if ($ flag)
{
echo "Hello world!";
}
?>


3) Whitesmith style

<? php
if ($ flag)
{
echo "Hello world!";
}
?>


4) GNU style
The GNU programmers at the Free Software Foundation use the following style of brace placement.

<? php
if ($ flag)
{
echo "Hello world!";
}
?>


style i use

<? php
if ($ flag)
{
echo "Hello, World!";
}
?>


These were some design examples, with regard only to the placement of control brackets .
Now actually the question: How do you use? Maybe you have your own corporate identity? Share with the community;)

Source: https://habr.com/ru/post/37831/


All Articles