4 ms·
Scala can be summed up in one issue. http://play.lighthouseapp.com/projects/82401/tickets/98 http://play.lighthouseapp.com/projects/82401/tickets/98 I loved P
by dham 13y ago
Scala can be summed up in one issue.
http://play.lighthouseapp.com/projects/82401/tickets/98 http://play.lighthouseapp.com/projects/82401/tickets/98
I loved Play 1.x(early adopter also) but I have since moved on. I gave Play 2 a solid chance. Scala programmers seem to turn everything into some kind of academic paper.
- eropple 13y agoI've been a critic of Play 2 on a number of occasions on HN but I don't understand the complaint. What is causing you to create URLs with trailing slashes?
- dham 13y agoWhat is causing you to create URLs without trailing slashes? 99% of all web frameworks allow for optional trailing slash. Go to any website. A url with or without a trailing slash typically works, it either redirects to no trailing slash or just renders the same page.
- eropple 13y agoWhat is causing me to create URLs without trailing slashes is the proper use of Play's route-to-URL mapping system. I don't emit trailing slashes because Play doesn't.
- luos 13y agoIt is not just about the trailing slashes. I wanted to create pretty urls but I couldn't do it in a simple way because the developers thought that in a path can not be optional parts, like: /article/1/article-slug and /article/1 So they removed a useful feature. And it was in a 2.x -> 2.x+1 release... Yesterday it worked, today not. I was not happy. :) http://stackoverflow.com/questions/14980952/routes-with-optional-parameter-play-2-1-scala http://stackoverflow.com/questions/14980952/routes-with-opti... My othern concern with scala, what is mentioned in the article, is the operator usage. How am I supposed to "invent" this <:< notation for adding headers? (dispatch lib) `val svc = url(object_url) <:< Map("User-Agent" -> "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)")` or in squeryl, converting a boolean into a "query boolean": ``` val fls = false fls.~.? ``` Other than these, I like it. When I am coding in JS or PHP I always praise the scala types/ compile time checks. I am almost afraid of dynamic typing since I tried scala. :)
- spion 13y agoConsider giving TypeScript a try then. It offers optional, structural static typing, that while not nearly as powerful (or sound) as Scala's, is still better than not having it. And the fact that its completely optional means that its easy to get it out of the way when its not possible to express some constructs with it.