[Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Günther Schmidt
Hello, I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always with lots of boilerplate. Oh I have gotten better

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Jesper Louis Andersen
2010/2/14 Günther Schmidt gue.schm...@web.de: So fellows, what is the next stop on my road to enlightenment? I really think I need best to start from scratch. I think I'm sufficiently familiar now with most of Haskell's technicalities but how do I climb the ladder of abstraction? A couple of

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Jonathan Rockway
* On Sun, Feb 14 2010, Günther Schmidt wrote: So fellows, what is the next stop on my road to enlightenment? I really think I need best to start from scratch. I think I'm sufficiently familiar now with most of Haskell's technicalities but how do I climb the ladder of abstraction? Read more

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Stephen Tetley
Hi Günther Promoting a slightly contrary view, I'm not sure that abstraction should be a goal in itself. Richard Gabriel makes a point of valuing 'habitable' code over abstract code in his 'Patterns of Software' book (free from his website now that it's out of print). Habitable code being code

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Alexander Solla
On Feb 14, 2010, at 4:38 AM, Günther Schmidt wrote: I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always with lots

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Günther Schmidt
Well I just noticed that the boilerplate part consists of this: Import data by selecting fields from a table, feed them into some sort of internal data structure for later querying, times 12. All this involves quite a bit of boilerplate. Yeah, I guess I could abstract here a little. Günther

Re: [Haskell-cafe] on finding abstractions ...

2010-02-14 Thread Artyom Shalkhakov
Hello, 2010/2/14, Günther Schmidt gue.schm...@web.de: Hello, I've got a problem, in short my haskell code sucks. While it does work and I do manage to use higher-orderish aspects quite extensively to make my code more concise it still is nowhere abstract, always concrete and thus always