<div dir="ltr">On Mon, Jan 21, 2013 at 5:59 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Matt,<br>
<br>
Eventually I hope to get to a stage where the format in the repository is fixed but we have a tool (uncrustify is pretty good, but not perfect) that puts it in that form when committing/pushing? into the repository. This way you can have your uncrustify style that you use in your copy and only when it is committed/pushed? does it go into the standard format. This will make the tab-lovers, the else \n { lovers, the random weird spaces in some place lovers, etc all happy. We could even consider just living with the limitations of uncrustify today, which would mean me dropping a few of my objections, …<br>
<br>
Take a look at the uncrustify rule in conf/rules and its uncrustify configuration (that I constructed to match as much as possible what I think is best). There are uncrustify options for no space between for() etc that could perhaps be appropriately set to satisfy your coding style. I agree that trying to enforce a single 100% coding style on everyone is unnecessary but I do think that having a single style in the repository that can be automatically shifted around based on user is the right solution, we just are not there yet. Maybe with some group effort on uncrustify we can get there.<br>
</blockquote><div><br></div><div style>Okay, I will try and fix my clone to do this. When it works, I will post it.</div><div style><br></div><div style> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Barry<br>
<br>
I say committing/pushing? because I don't know what the exact mechanism would be to have consistent format in the master repository but each person free to edit in their own format. But there should be a way, it only makes sense.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Jan 21, 2013, at 9:56 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
<br>
><br>
> On Mon, Jan 21, 2013 at 9:51 AM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
><br>
> On Mon, Jan 21, 2013 at 9:42 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
> Again, the data does not support you. An incredible number of instances, and almost all files were changed. Thus,<br>
> this was far from "unconventional".<br>
><br>
> With a version from last week (before the formatting changes):<br>
><br>
> $ git grep '^ \+for (' src | wc -l<br>
> 11387<br>
> $ git grep '^ \+for(' src | wc -l<br>
> 1210<br>
> $ git grep '^ \+while (' src | wc -l<br>
> 926<br>
> $ git grep '^ \+while(' src | wc -l<br>
> 156<br>
> $ git grep '^ \+if (' src | wc -l<br>
> 22760<br>
> $ git grep '^ \+if(' src | wc -l<br>
> 129<br>
><br>
> Is 10% small enough to be called "unconventional"?<br>
><br>
> No.<br>
><br>
><br>
> _You_ are not even entertaining the possibility that small variability in source can be tolerated. That is incredibly close minded.<br>
><br>
> You've said that the only reason you care about this is because it affects readability, which is exactly the reason to have consistent formatting guidelines in the first place.<br>
><br>
> Absolute consistency is not axiomatic for readability. It is entirely possible that some portions of the code<br>
> are more readable with a different standard. Furthermore, readability is self-evidently dependent on the reader.<br>
> Enforcing _everything_ to be a single standard ignores this on its face. I assume you are also a fan of Ricardo<br>
> and don't have much time for Kahneman.<br>
><br>
> Matt<br>
><br>
> --<br>
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
> -- Norbert Wiener<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>