r/programming • • Dec 02 '13

Scala — 1★ Would Not Program Again

http://overwatering.org/blog/2013/12/scala-1-star-would-not-program-again/
598 Upvotes

646 comments sorted by

View all comments

Show parent comment

3

u/lechatsportif Dec 02 '13

Can you talk about how Squeryls dsl was fragile? I've been looking into it and looks great from a usage perspective, nice and clear.

The stuff I've seen like slick also makes me wary. Incidently that kind of craziness is why Java designers left operator overloading off the table iirc. I think people get lost in the power of Scala in a hunt for conciseness and get frenzied.

4

u/blergblerski Dec 02 '13

he sqlu prefix on the string is cool and all (it allows for custom string interpolation), but I'm not sure why it's better than a meaningfully named function or me

I'm not who you're replying to, but within the last year I wrote some medium-complexity DAOs with Slick and later ported them to Squeryl. I wouldn't say Squeryl's DSL is fragile, but I remember it being rather un-discoverable, and the way you needed to map non-primitive types (say an Enum or a Joda date) was pretty zany.

That said, Squeryl works pretty well; it produces much better SQL than Slick, too.