<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 3:13 AM, Richard A. O'Keefe <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz" target="_blank">ok@cs.otago.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 30/08/16 7:54 PM, Vlad Dumitrescu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My take on this is that the first step is to define what the right way<br>
to format code is, in form of a specification or a test suite to be<br>
passed by the formatter. A big part of this is to decide if formatting<br>
should be "indentation only" or "full rewrite" or both - there are<br>
arguments to be made for each variant. Another one is about how to<br>
indent (tabs, spaces, how many) and how wide the page is (80 characters<br>
may feel too narrow for today's monitors, but sometimes code has to be<br>
read/edited on narrow terminals).<br>
</blockquote>
<br></span>
There are four important factors.<br>[...]<br>
I do *not* find 80 characters too narrow on my 27-inch monitor.<br>
When I use an iPad (3) to read stuff, I do not find 80 columns<br>
too narrow there either.</blockquote><div> </div><div>I agree. My argument wasn't that 80 columns is bad or useless, but that some people might prefer other values. A formatter without any configuration options is bound to make some people unhappy. So I argue that the tools should be configurable.</div><div><br></div><div>As Bengt and Tuncer pointed at, one may use a standard format when committing the code, so that the repository has an uniform format, but when checking out would like to see the code differently. It would be a waste to use two different tools for that, instead of one with different configuration. The default format should be something that most people can agree upon, because my guess is that after a while only a few will keep converting the code back and forth when editing it.</div><div><br></div><div>best regards,</div><div>Vlad</div><div><br></div></div></div></div>