Liste des Groupes | Revenir à cl c |
On 2/25/25 9:23 PM, David LaRue wrote:Yes - within reason. It is not good to be obsessive about coding style - even within existing projects with lots of contributors, there can sometimes be good reasons for wavering from a common style.I used a style similar to this in school. Before that I used much the same.Agreed. For existing projects, the code style should be preserved.
As for existing code bases I prefer to keep their style and add comments
accordingly. That generally goes for any language.
There is no one style that has anything like a majority position, especially not when you consider all the possible variations. And even if there was, picking a style due to popularity is as sane as picking a religion based on popularity.Popularity of a style shouldn't be a goal. It should be consistantlyThis is true. I just wanted to know which style most people seem to prefer.
readable and documented. We must write for ourselves as well as our future
self and others.
Les messages affichés proviennent d'usenet.