Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-26 Thread Richard O'Keefe
On 25 Apr 2009, at 8:59 pm, Miguel Mitrofanov wrote: Something like newtype MyCoolMonad = MyCoolMonad (FirstTransformer (SecondTransformer (ThirdTransformer Whatever))) deriving (Functor, Monad, FirstClass, SecondClass, ThirdClass, SomeOtherClass) Nobody would be really interested in "de

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-26 Thread Jason Dusek
2009/04/26 Miguel : > 2009/04/26 Jason Dusek : >> If we do not preserve the old ways, it'll be anarchy all the >> way down. > > How exactly are you going to preserve old ways? Whenever are we are presented with the a question of correct conduct, we must re-affirm our commitment to the practice

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-26 Thread Daniel Fischer
Am Sonntag 26 April 2009 23:08:41 schrieb Jason Dusek: > 2009/04/26 Daniel Fischer : > > While I can easily imagine the need for 100-character lines to > > improve readability, 200 is way beyond my imagination :) > > It's not beyond someone's imagination, though. Would you like > that line to l

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-26 Thread Jason Dusek
2009/04/26 Daniel Fischer : > While I can easily imagine the need for 100-character lines to > improve readability, 200 is way beyond my imagination :) It's not beyond someone's imagination, though. Would you like that line to land on your screen? If we do not preserve the old ways, it'll b

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-26 Thread Daniel Fischer
Am Sonntag 26 April 2009 04:38:42 schrieb Jason Dusek: > > As always, opinions on aesthetics differ slightly, but > > overall, everyone seems to mostly agree... > >   Eh? Since when did they mostly agree? The 200 column example >   we've seen brought out a lot of disagreement. Well, to be picky, B

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Jason Dusek
2009/04/25 Thomas Davie : > 2009/04/25 Jason Dusek: >> There will always be some people who prefer longer lines. The >> real issue is, how do we deal with the fundamental >> disagreement here? It's not like we can have both. Also those >> people who like long lines -- will they all agree to a long

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread namekuseijin
On Tue, Apr 21, 2009 at 9:52 AM, Neil Mitchell wrote: >> P.S. We really need such a well written style guide for >> haskell. Python has this nice PEP (Python Enhancement >> Proposals). Should we start making our own HEP? > > We have one: urchin.earth.li/~ian/style/haskell.html It sho

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread namekuseijin
2009/4/21 Edward Kmett : > I find a hard 80 character line length limit to be somewhat ridiculous in > this day and age. I've long since revised my personal rule of thumb upwards > towards 132, if only because I can still show two windows of that side by > side with no worries, along with all the I

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread namekuseijin
It's surely more than enough to Haskell, Python, Perl, C++ and other very concise and expressive languages. But for Java and the likes it may well be just barely enough for a single *identifier* alone!! :P 2009/4/21 Dusan Kolar : > Dear all, > >  reading that > >> according the several style gui

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Thomas Davie
On 25 Apr 2009, at 21:09, Jason Dusek wrote: There will always be some people who prefer longer lines. The real issue is, how do we deal with the fundamental disagreement here? It's not like we can have both. Also those people who like long lines -- will they all agree to a long line lengt

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Jason Dusek
There will always be some people who prefer longer lines. The real issue is, how do we deal with the fundamental disagreement here? It's not like we can have both. Also those people who like long lines -- will they all agree to a long line length? -- Jason Dusek _

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Miguel Mitrofanov
On 25 Apr 2009, at 19:59, Felipe Lessa wrote: On Sat, Apr 25, 2009 at 07:38:59PM +0400, Miguel Mitrofanov wrote: Also, I don't mistake the transformers as different parameters because of the parenthesis You should really try Lisp. In my opinion, parenthesis are a kind of noise - too small, t

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Felipe Lessa
On Sat, Apr 25, 2009 at 07:38:59PM +0400, Miguel Mitrofanov wrote: >> Also, I don't mistake the transformers as different >> parameters because of the parenthesis > > You should really try Lisp. In my opinion, parenthesis are a kind of > noise - too small, too many. I don't try lisp because I don'

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Miguel Mitrofanov
On 25 Apr 2009, at 19:08, Felipe Lessa wrote: On Sat, Apr 25, 2009 at 10:34:05AM -0400, Xiao-Yong Jin wrote: You don't write lisp, do you? Or probably it is just me. But I would prefer to write the line as newtype MyCoolMonad = MyCoolMonad (FirstTransformer

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Felipe Lessa
On Sat, Apr 25, 2009 at 10:34:05AM -0400, Xiao-Yong Jin wrote: > You don't write lisp, do you? Or probably it is just me. > But I would prefer to write the line as > > newtype MyCoolMonad = MyCoolMonad (FirstTransformer >(SecondTransformer >

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Daniel Fischer
Am Samstag 25 April 2009 16:44:45 schrieb Miguel Mitrofanov: > On 25 Apr 2009, at 18:34, Xiao-Yong Jin wrote: > > Miguel Mitrofanov writes: > >> On 24 Apr 2009, at 16:37, Loup Vaillant wrote: > >>> 2009/4/23 Miguel Mitrofanov : > On 23 Apr 2009, at 12:17, Thomas Davie wrote: > > Haskell i

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Miguel Mitrofanov
On 25 Apr 2009, at 18:34, Xiao-Yong Jin wrote: Miguel Mitrofanov writes: On 24 Apr 2009, at 16:37, Loup Vaillant wrote: 2009/4/23 Miguel Mitrofanov : On 23 Apr 2009, at 12:17, Thomas Davie wrote: Haskell is a very horizontal language, and to limit our horizontal space seems pretty weird

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Xiao-Yong Jin
Miguel Mitrofanov writes: > On 24 Apr 2009, at 16:37, Loup Vaillant wrote: > >> 2009/4/23 Miguel Mitrofanov : >>> On 23 Apr 2009, at 12:17, Thomas Davie wrote: >>> Haskell is a very horizontal language, and to limit our horizontal space seems pretty weird. >>> >>> +1. I sometimes u

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Thomas Davie
On 25 Apr 2009, at 10:51, Daniel Fischer wrote: Am Samstag 25 April 2009 08:48:16 schrieb Thomas Davie: On 24 Apr 2009, at 14:37, Loup Vaillant wrote: 2009/4/23 Miguel Mitrofanov : On 23 Apr 2009, at 12:17, Thomas Davie wrote: Haskell is a very horizontal language, and to limit our horizont

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Miguel Mitrofanov
Something like newtype MyCoolMonad = MyCoolMonad (FirstTransformer (SecondTransformer (ThirdTransformer Whatever))) deriving (Functor, Monad, FirstClass, SecondClass, ThirdClass, SomeOtherClass) Nobody would be really interested in "deriving" clause, because it basically says "derive ever

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-25 Thread Daniel Fischer
Am Samstag 25 April 2009 08:48:16 schrieb Thomas Davie: > On 24 Apr 2009, at 14:37, Loup Vaillant wrote: > > 2009/4/23 Miguel Mitrofanov : > >> On 23 Apr 2009, at 12:17, Thomas Davie wrote: > >>> Haskell is a very horizontal language, and to limit our horizontal > >>> space > >>> seems pretty weird

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-24 Thread Thomas Davie
On 24 Apr 2009, at 14:37, Loup Vaillant wrote: 2009/4/23 Miguel Mitrofanov : On 23 Apr 2009, at 12:17, Thomas Davie wrote: Haskell is a very horizontal language, and to limit our horizontal space seems pretty weird. +1. I sometimes use lines up to 200 characters long, when I feel they

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-24 Thread Loup Vaillant
2009/4/23 Miguel Mitrofanov : > On 23 Apr 2009, at 12:17, Thomas Davie wrote: > >> Haskell is a very horizontal language, and to limit our horizontal space >> seems pretty weird. > > +1. I sometimes use lines up to 200 characters long, when I feel they would > be more readable. 200 sounds awfully

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-23 Thread Miguel Mitrofanov
On 23 Apr 2009, at 12:17, Thomas Davie wrote: On 23 Apr 2009, at 10:02, Matthijs Kooijman wrote: Some material I've read on typography -- can't find the reference now -- suggests ~65 is the best number of characters per line. The advice was, if your page is larger than that, you should make

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-23 Thread Thomas Davie
On 23 Apr 2009, at 10:02, Matthijs Kooijman wrote: Some material I've read on typography -- can't find the reference now -- suggests ~65 is the best number of characters per line. The advice was, if your page is larger than that, you should make columns. That fits my observations. In partic

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-23 Thread Matthijs Kooijman
> Some material I've read on typography -- can't find the > reference now -- suggests ~65 is the best number of characters > per line. The advice was, if your page is larger than that, > you should make columns. That fits my observations. In particular, I noticed that your emails were parti

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-22 Thread Jason Dusek
Some material I've read on typography -- can't find the reference now -- suggests ~65 is the best number of characters per line. The advice was, if your page is larger than that, you should make columns. If someone has done some studies with specifically program text, I'd of course be

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-22 Thread Richard O'Keefe
On 22 Apr 2009, at 8:09 pm, Jason Dusek wrote: Really, the whole thing makes me wish we had blasphemy laws. If any person, in speaking or in writing, shall indicate a preference for column widths other than 80 or indent characters other than spaces (`0x20`) they shall be compelled

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-22 Thread Jason Dusek
Really, the whole thing makes me wish we had blasphemy laws. If any person, in speaking or in writing, shall indicate a preference for column widths other than 80 or indent characters other than spaces (`0x20`) they shall be compelled to present some science or be subject to

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-22 Thread Jason Dusek
The question of which column width is "right" is not a revealing one -- there is little technical or scientific basis to prefer 117 to 80. The line length that we prefer is similarly unenlightening. The number of people who, when pushing for column widths greater than 80, choose 132 in

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Richard O'Keefe
On 22 Apr 2009, at 2:53 am, Richard Kelsall wrote: Dusan Kolar wrote: ... Or is the reason much deeper? Or, is the bound set to 78 characters just because it is as good number as any other? ... As a little historical detour I think the 80 character limit goes back to 1928 when IBM designed t

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Robert Greayer
wren ng thornton wrote: > There is a deeper reason. Much work in typography has shown > that humans read text best when it's around 76 > characters wide; if things get narrower than that then > cohesion is lost, if things get wider then it takes a long > time to acquire the beginning of the next

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread wren ng thornton
Dusan Kolar wrote: Dear all, reading that > according the several style guides, lines shouldn't be too long > (longer than 78 characters). > > http://www.cs.caltech.edu/courses/cs11/material/haskell/misc/haskell_style_guide.html > > http://www.haskell.org/haskellwiki/Programming_guidelines

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Haroldo Stenger
Hi, i hate those html forms that show you [haskell,python] code in a narrow box that is suposed to make the code clear, but it darkens the code by cutting it. Maybe having all lines shorter helps, but the "narrow window" effect is chasing us nonsensely.- haroldo 2009/4/21 Richard Kelsall > Dusa

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Duncan Coutts
On Tue, 2009-04-21 at 13:52 +0100, Neil Mitchell wrote: > > P.S. We really need such a well written style guide for > > haskell. Python has this nice PEP (Python Enhancement > > Proposals). Should we start making our own HEP? > > We have one: urchin.earth.li/~ian/style/haskell.html

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Henning Thielemann
Xiao-Yong Jin schrieb: > P.S. We really need such a well written style guide for > haskell. Python has this nice PEP (Python Enhancement > Proposals). Should we start making our own HEP? http://www.haskell.org/haskellwiki/Category:Proposals _

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Michael Mossey
Robert Greayer wrote: But the discussion is about a coding standard -- surely if I claimed to like to have 4 windows side by side, that wouldn't be a good reason to reduce the standard to 40 columns? Being able to read one line 'at a glance' seems to me to be improved if that line contains t

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Xiao-Yong Jin
Robert Greayer writes: > Xiao-Yong Jin wrote: >> Edward Kmett writes: >> >> > I find a hard 80 character line length limit to be >> > somewhat ridiculous in this >> > day and age. I've long since revised my personal >> > rule of thumb upwards towards >> > 132, if only because I can still show

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Robert Greayer
Xiao-Yong Jin wrote: > Edward Kmett writes: > > > I find a hard 80 character line length limit to be > > somewhat ridiculous in this > > day and age. I've long since revised my personal > > rule of thumb upwards towards > > 132, if only because I can still show two windows of > > that side by s

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Xiao-Yong Jin
Edward Kmett writes: > I find a hard 80 character line length limit to be somewhat ridiculous in this > day and age. I've long since revised my personal rule of thumb upwards towards > 132, if only because I can still show two windows of that side by side with no > worries, along with all the IDE

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Edward Kmett
I find a hard 80 character line length limit to be somewhat ridiculous in this day and age. I've long since revised my personal rule of thumb upwards towards 132, if only because I can still show two windows of that side by side with no worries, along with all the IDE browsing baggage, even on a fa

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Richard Kelsall
Dusan Kolar wrote: ... Or is the reason much deeper? Or, is the bound set to 78 characters just because it is as good number as any other? ... As a little historical detour I think the 80 character limit goes back to 1928 when IBM designed their punched card format http://en.wikipedia.org/wiki/

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Neil Mitchell
Hi > I believe it is a good practice too keep each line short and > easy to read.  The following is taken from python style > guide. > >  Maximum Line Length > >    Limit all lines to a maximum of 79 characters. > >    There are still many devices around that are limited to 80 character >    lines

Re: Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Xiao-Yong Jin
Dusan Kolar writes: > Dear all, > > reading that > >> according the several style guides, lines shouldn't be too long >> (longer than 78 characters). >> >> http://www.cs.caltech.edu/courses/cs11/material/haskell/misc/haskell_style_guide.html >> http://www.haskell.org/haskellwiki/Programming_guid

Is 78 characters still a good option? Was: [Haskell-cafe] breaking too long lines

2009-04-21 Thread Dusan Kolar
Dear all, reading that according the several style guides, lines shouldn't be too long (longer than 78 characters). http://www.cs.caltech.edu/courses/cs11/material/haskell/misc/haskell_style_guide.html http://www.haskell.org/haskellwiki/Programming_guidelines I would like to know, whether