Posts Tagged ‘coding’

Indent style – Wikipedia, the free encyclopedia

2007/09/14/1035

RTFA: http://en.wikipedia.org/wiki/Indent_style#K.26R_st…

The Allman style is common, and is named after Eric Allman. It puts the brace associated with a control statement on the next line, indented to the same level as the control statement. Statements within the braces are indented to the next level.

while (x == y)
{
something();
somethingelse();
}
finalthing();

This style is similar to the standard indentation used by the Pascal programming language and Transact-SQL, where the braces are equivalent to the “begin” and “end” keywords.

Meh – not to get overzealous about the topic, but I think this is the easiest to read and write.

The “Plankalkül” of Konrad Zuse: A Forerunner of Today’s Programming Languages

2007/09/14/1006

RTFA: http://www.catb.org/retro/plankalkuel/

Plankalkül was an attempt by Konrad Zuse in the
1940’s to devise a notational and conceptual system for
writing what today is termed a program. Although this
early approach to a programming language did not
lead to practical use, the plan is described here because
it contains features that are standard in today’s programming
languages. The investigation is of historical
interest; also, it may provide insights that would lead
to advancements in the state of the art. Using modern
programming terminology, the Plankalkül is presented
to the extent it has been possible to reconstruct it from
the published literature.

Standing on the shoulders of giants. Turing this and Turing that…