[Haskell-cafe] Re: Interesting new user perspective

2008-10-14 Thread apfelmus
Ryan Ingram wrote: Normally I agree with you, apfelmus, but here at least I have to differ! /me considers map crushToPurée . filter disagrees ;) On Mon, Oct 13, 2008 at 11:50 AM, apfelmus [EMAIL PROTECTED] wrote: *HTML toString $ tag b [] [tag i [] [text ], text test] bilt;gt;/itest/b

[Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread apfelmus
Andrew Coppin wrote: apfelmus wrote: ... and a solution to a problem that you souldn't have in the first place. I mean, if you want to construct XML or SQL statements, you ought to use an abstract data type that ensures proper nesting etc. and not a simple string. Right. And if you

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Devin Mullins
On Mon, Oct 13, 2008 at 08:43:48AM +0200, apfelmus wrote: Yes. Just an injection problem is an understatement. And its the implementation of the abstract data type that determines how fast things are. Who said that it may not simply be a newtyped String ? I think the attraction to the

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Ryan Ingram
Normally I agree with you, apfelmus, but here at least I have to differ! On Mon, Oct 13, 2008 at 11:50 AM, apfelmus [EMAIL PROTECTED] wrote: *HTML toString $ tag b [] [tag i [] [text ], text test] bilt;gt;/itest/b I'd say the big problem is that your embedded language for describing HTML is

[Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread apfelmus
Devin Mullins wrote: apfelmus wrote: Yes. Just an injection problem is an understatement. And its the implementation of the abstract data type that determines how fast things are. Who said that it may not simply be a newtyped String ? I think the attraction to the SafeString example is that

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Niklas Broberg
*HTML toString $ tag b [] [tag i [] [text ], text test] bilt;gt;/itest/b I'd say the big problem is that your embedded language for describing HTML is way more complex for a domain expert than doc = renderHTML $(q bi#{v1}/i#{v2}/b) where v1 = v2 = test How

[Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Mauricio
_Some_ newcommers flounder because they expect Haskell to be just another VB / C++ / Java / whatever. (Do we really want to encourage these people to be learning Haskell in the first place?) (...) I hope so. One of my most important motivations to try Haskell was that I thought it was

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Ryan Ingram
On Mon, Oct 13, 2008 at 6:02 PM, Mauricio [EMAIL PROTECTED] wrote: On Fri, Oct 10, 2008 at 10:49 PM, Andrew Coppin [EMAIL PROTECTED] wrote: _Some_ newcommers flounder because they expect Haskell to be just another VB / C++ / Java / whatever. (Do we really want to encourage these people to be

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Andrew Coppin
Ryan Ingram wrote: I would go further than that. To Andrew's question, I say: Yes, we want to encourage these people to learn Haskell. We want to smash all their expectations into tiny little pieces. We want their brains to explode. And after that, we want to take what is left, pick it up

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Jonathan Cast
On Mon, 2008-10-13 at 18:38 +0100, Andrew Coppin wrote: Ryan Ingram wrote: I would go further than that. To Andrew's question, I say: Yes, we want to encourage these people to learn Haskell. We want to smash all their expectations into tiny little pieces. We want their brains to

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Claus Reinke
If you want to make Haskell more widely used, do pick a name for Haskell Prime that starts with an A. I first heard of Haskell when exploring the list of computer languages that Gedit could highlight. Just imagine going through all those A,B,C,D,E,F,G before I came to Haskell. That is a simple

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-13 Thread Anton Tayanovskyy
If you want to make Haskell more widely used, do pick a name for Haskell Prime that starts with an A. I first heard of Haskell when exploring the list of computer languages that Gedit could highlight. Just imagine going through all those A,B,C,D,E,F,G before I came to Haskell. Those programmers

[Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread apfelmus
Andrew Coppin wrote: Martin DeMello wrote: http://blog.moertel.com/articles/2006/10/18/a-type-based-solution-to-the-strings-problem is a brilliant example of a common workaday problem found in other languages, and solved elegantly in Haskell Oh, hey, that's pretty nice... ... and a

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Iain Barnett
On 11 Oct 2008, at 6:34 pm, apfelmus wrote: Andrew Coppin wrote: Martin DeMello wrote: http://blog.moertel.com/articles/2006/10/18/a-type-based-solution- to-the-strings-problem is a brilliant example of a common workaday problem found in other languages, and solved elegantly in Haskell

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Iain Barnett
On 11 Oct 2008, at 9:02 pm, Svein Ove Aas wrote: On Sat, Oct 11, 2008 at 9:30 PM, Iain Barnett [EMAIL PROTECTED] wrote: Personally, I use stored procedures with a database as they protect from sql injection attacks (unless you write some really stupid procedures). Isn't this what

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Svein Ove Aas
On Sat, Oct 11, 2008 at 9:30 PM, Iain Barnett [EMAIL PROTECTED] wrote: Personally, I use stored procedures with a database as they protect from sql injection attacks (unless you write some really stupid procedures). Isn't this what parametrized queries are for?

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Andrew Coppin
Svein Ove Aas wrote: On Sat, Oct 11, 2008 at 9:30 PM, Iain Barnett [EMAIL PROTECTED] wrote: Personally, I use stored procedures with a database as they protect from sql injection attacks (unless you write some really stupid procedures). Isn't this what parametrized queries are for?

Re: [Haskell-cafe] Re: Interesting new user perspective

2008-10-11 Thread Andrew Coppin
apfelmus wrote: ... and a solution to a problem that you souldn't have in the first place. I mean, if you want to construct XML or SQL statements, you ought to use an abstract data type that ensures proper nesting etc. and not a simple string. Right. And if you have 25 KB of HTML data,

[Haskell-cafe] Re: Interesting new user perspective

2008-10-10 Thread Simon Michael
[4] http://www.crsr.net/Programming_Languages/SoftwareTools/ch6.html Hi Tommy, I had never seen this before. It nicely fills a gap, and I really like the format and the writing. Bookmarked. Thanks! -Simon ___ Haskell-Cafe mailing list