This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-19
Channels
- # beginners (50)
- # boot (82)
- # cider (42)
- # clojure (206)
- # clojure-india (1)
- # clojure-nl (2)
- # clojure-poland (2)
- # clojure-russia (1)
- # clojure-uk (6)
- # clojurescript (223)
- # code-reviews (17)
- # core-typed (3)
- # datomic (7)
- # dunaj (3)
- # editors (2)
- # instaparse (3)
- # jobs (1)
- # ldnclj (37)
- # overtone (3)
- # reactive (1)
- # reading-clojure (1)
- # reagent (24)
- # remote-jobs (1)
destructuring code review: https://gist.github.com/gdeer81/6848b0a8cd5505804063
@gary: For me this is more about having 3 regex vs one regex and readability of the regexes in question. Regarding that, I'd prefer te first one as I find it always hard to parse regex generally.
that's true, if I were to come back to this in a week I'd probably be squinting really hard to parse it in my head
@arrdem: I also like it but I am biased because I spent all that time writing the long regex string
@gary: my reasoning is that it's easier to write a single regexp that matches the entire interesting language and then select the interesting subterms than to write N regexps that match only the interesting substrings.
Any particular reason you don't parse the URI and query-string using dedicated objects/fns?
java.net.URI. and ring.util.codec/decode-form