Em Sexta 06 Abril 2007 15:08, Felipe Augusto van de Wiel (faw) escreveu: > On 04/05/2007 03:59 PM, Adriano wrote: > > Olá pessoal, tudo bem???? > > > > Estou fazendo uma pesquisa para um trabalho da faculdade em que aborda o > > tema de padronização de códigos fontes. Já tenho algum material mas > > preciso de algo mais especifico, algum teria algum material sobre a > > padronização do código do kernel do linux?? > > Em qualquer tarball do kernel, no subdiretório Documentation > tem um arquivo chamado CodingStyle.
Indo mais no OT... "(...) Chapter 3: Placing Braces The other issue that always comes up in C styling is the placement of braces. Unlike the indent size, there are few technical reasons to choose one placement strategy over the other, but the preferred way, as shown to us by the prophets Kernighan and Ritchie, is to put the opening brace last on the line, and put the closing brace first, thusly: (...) Heretic people all over the world have claimed that this inconsistency is ... well ... inconsistent, but all right-thinking people know that (a) K&R are _right_ and (b) K&R are right. Besides, functions are special anyway (you can't nest them in C)." Alguém poderia me explicar duas coisas? 1 - Por que as pessoas consideram mais claro um if (cond) { acao } else { acao } ao inves de um if (cond) { acao } else { acao } ?? 2 - Se eu fizer um projeto Open Source vou ter que me sujeitar a essa regra? Obrigado e desculpem pelo off. []s -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- Agora com fortune: "The Fremen were supreme in that quality the ancients called "spannungsbogen"--which is the self-imposed delay between desire for a thing and the act of reaching out to grasp that thing. -- from "The Wisdom of Muad'Dib" by the Princess Irulan"
pgpLtvHva1mbi.pgp
Description: PGP signature