Re: [Haskell-cafe] Optimal line length for haskell

2012-10-30 Thread Richard O'Keefe
On 30/10/2012, at 5:56 PM, Alexander Solla wrote: For example, I generally prefer using the combinators directly when dealing with functors, applicatives, and monads. This can be written wide, but it can also be written in the style of: f' = f $ (a = g) * (b = h) * (c

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-30 Thread Evan Laforge
I wonder if people who like one giant window maybe don't use the REPL? I keep 3 windows open: one with the editor, one with ghci, and one with a shell. The shell I use for compiles, darcs records, diffs, grepping, moving files around, etc. I don't understand how people are able work with

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-30 Thread Mike Meyer
Evan Laforge qdun...@gmail.com wrote: I wonder if people who like one giant window maybe don't use the REPL? I keep 3 windows open: one with the editor, one with ghci, and one with a shell. [...] I've tried with 3 terminals but I can never figure out what to do with the extra ones. Besides

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-30 Thread Jason Dusek
2012/10/29 MightyByte mightyb...@gmail.com: The ideal line length for text layout is based on the physiology of the human eye… At normal reading distance the arc of the visual field is only a few inches – about the width of a well-designed column of text, or about 12 words per line. Research

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Iustin Pop
On Mon, Oct 29, 2012 at 05:20:20PM +0530, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured to me that beautiful haskell programs tend to be plump (ie have long lines) compared to other languages whose programs are 'skinnier'. My

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Rustom Mody
On Mon, Oct 29, 2012 at 5:29 PM, Iustin Pop ius...@google.com wrote: On Mon, Oct 29, 2012 at 05:20:20PM +0530, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured to me that beautiful haskell programs tend to be plump (ie have

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Malcolm Wallace
It is kind of ironic that the wide code examples in the blog post are wrapped at 65 chars by the blog formatting. Regards, Malcolm On 29 Oct 2012, at 11:50, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured to me that

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Roman Cheplyaka
* Rustom Mody rustompm...@gmail.com [2012-10-29 17:20:20+0530] There was a recent discussion on the python list regarding maximum line length. It occured to me that beautiful haskell programs tend to be plump (ie have long lines) compared to other languages whose programs are 'skinnier'. My

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Rustom Mody
On Mon, Oct 29, 2012 at 5:40 PM, Malcolm Wallace malcolm.wall...@me.comwrote: It is kind of ironic that the wide code examples in the blog post are wrapped at 65 chars by the blog formatting. Regards, Malcolm Well that goes to underscore a couple of points: 1. The fixed 80 char width

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Colin Adams
I'm not viewing on a narrow device, and I see the wrapped (and the whole post confined to the centre of the screen). I certainly don't use an 80-column limit any more. I use the rule: A function must be completely visible in my editor on my screen. (but this is only a good rule if most people

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Mike Meyer
Colin Adams colinpaulad...@gmail.com wrote: I'm not viewing on a narrow device, and I see the wrapped (and the whole post confined to the centre of the screen). I certainly don't use an 80-column limit any more. I use the rule: A function must be completely visible in my editor on my screen.

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Rustom Mody
On Mon, Oct 29, 2012 at 5:55 PM, Colin Adams colinpaulad...@gmail.comwrote: I'm not viewing on a narrow device, and I see the wrapped (and the whole post confined to the centre of the screen). I certainly don't use an 80-column limit any more. I use the rule: A function must be completely

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Michael Orlitzky
On 10/29/2012 07:50 AM, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured to me that beautiful haskell programs tend to be plump (ie have long lines) compared to other languages whose programs are 'skinnier'. My thoughts on this are

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Lyndon Maydwell
If I find my line is longer than 80 characters, I just shorten my function and variable names! It's perfectly idio(ma)tic! On Mon, Oct 29, 2012 at 9:52 PM, Michael Orlitzky mich...@orlitzky.com wrote: On 10/29/2012 07:50 AM, Rustom Mody wrote: There was a recent discussion on the python list

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Alexander Solla
On Mon, Oct 29, 2012 at 6:52 AM, Michael Orlitzky mich...@orlitzky.comwrote: On 10/29/2012 07:50 AM, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured to me that beautiful haskell programs tend to be plump (ie have long lines)

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Jake McArthur
I stick to 80 columns fairly rigidly. This is not only so that it fits into narrow windows, but also so that any two subexpressions in the same expression tend to be close together on my screen, which makes it easier for me to reason about it. If only it was easy for me to read and write code on a

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Michael Orlitzky
On 10/29/2012 10:28 AM, Alexander Solla wrote: In any language, a line longer than 80 characters usually (but not always) suggests that you might want to stop and rethink your design. In many cases a refactoring or two will greatly simplify the code and reduce your line

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread MightyByte
I also stick to a pretty rigid 78 characters. Doing so actually helps me fit more code onto my screen at a time because I usually have two or three columns of open files side by side. I find that I need this more often than I need to see a single function on a page (thanks to Haskell's

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Niklas Hambüchen
I would prefer to completely ignore line lengths when writing Haskell. In general, giving good names to things in where-clauses automatically keeps my code short enough. My opinion is that different people like different code layouts, and when formatting code in certain ways, we will always have

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Iustin Pop
On Mon, Oct 29, 2012 at 03:50:57PM +, Niklas Hambüchen wrote: I would prefer to completely ignore line lengths when writing Haskell. In general, giving good names to things in where-clauses automatically keeps my code short enough. My opinion is that different people like different

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Rustom Mody
On Mon, Oct 29, 2012 at 7:58 PM, Alexander Solla alex.so...@gmail.comwrote: On Mon, Oct 29, 2012 at 6:52 AM, Michael Orlitzky mich...@orlitzky.comwrote: On 10/29/2012 07:50 AM, Rustom Mody wrote: There was a recent discussion on the python list regarding maximum line length. It occured

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Marc Ziegert
: MightyByte mightyb...@gmail.com An: Jake McArthur jake.mcart...@gmail.com CC: Haskell Cafe haskell-cafe@haskell.org Betreff: Re: [Haskell-cafe] Optimal line length for haskell I also stick to a pretty rigid 78 characters. Doing so actually helps me fit more code onto my screen at a time because I

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread MightyByte
-cafe@haskell.org Betreff: Re: [Haskell-cafe] Optimal line length for haskell I also stick to a pretty rigid 78 characters. Doing so actually helps me fit more code onto my screen at a time because I usually have two or three columns of open files side by side. I find that I need this more

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Richard O'Keefe
On 30/10/2012, at 3:28 AM, Alexander Solla wrote: On Mon, Oct 29, 2012 at 6:52 AM, Michael Orlitzky mich...@orlitzky.com wrote: In any language, a line longer than 80 characters usually (but not always) suggests that you might want to stop and rethink your design. In many cases a

Re: [Haskell-cafe] Optimal line length for haskell

2012-10-29 Thread Alexander Solla
On Mon, Oct 29, 2012 at 4:09 PM, Richard O'Keefe o...@cs.otago.ac.nz wrote: On 30/10/2012, at 3:28 AM, Alexander Solla wrote: On Mon, Oct 29, 2012 at 6:52 AM, Michael Orlitzky mich...@orlitzky.com wrote: In any language, a line longer than 80 characters usually (but not always) suggests