2015-04-20
| 00:21 | TimMc | sobel, nuwanda_: Yes, it provides escape-html, but that is literally the least it can do -- and it's not sufficient. It only takes one mistake for an entire site to be client-side compromised. |
| 00:22 | TimMc | I strongly recommend avoiding any HTML templating system that allows user data to become HTML by accident -- it has to be an opt-in thing on the part of the developer. |
| 00:23 | TimMc | unless you only have ninja vulcan robots who never make mistakes coding and maintaining your website, in which case go for it. |
| 00:33 | saik0 | there a reason why iterate does not have a 1 arity like [f] (iterate f (f)) ? |
| 00:49 | nuwanda_ | ,(doc iterate) |
| 00:49 | clojurebot | "([f x]); Returns a lazy sequence of x, (f x), (f (f x)) etc. f must be free of side-effects" |
| 00:50 | nuwanda_ | f needs to take an argument so that you can do (f (f (f ...) |
| 01:28 | TEttinger | saik0, if you want a lazyseq of calls to a 0-arg fn, |
| 01:28 | TEttinger | (doc repeatedly) |
| 01:28 | clojurebot | "([f] [n f]); Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequence of calls to it" |
| 01:28 | TEttinger | (repeatedly #(rand-int 100)) |
| 01:28 | TEttinger | ,(repeatedly #(rand-int 100)) |
| 01:28 | clojurebot | (4 87 5 8 10 ...) |
| 02:46 | danielcompton | lein help gpg |
| 02:46 | danielcompton | <wall of text> |
| 02:53 | danielcompton | full credit to whoever wrote the documentation though, its very readable and understandable |