Archive for the ‘macros’ Category  Announcement: clj-decline –
validation sucks.  Saturday, March 12th, 2011  I pushed a new
validation library for clojure to github yesterday. Check out
clj-decline.  Why another validation library?  Well, why does
validation suck so much?  Of course, dealing with user input is
annoying anyway. But validation libraries always seem to want to
do things in just the wrong way for the project you’re working
on.  Let me count the ways:    • They do too much. Session
management? XSS detection? Javascript validation? Form
definitions? Bollocks. It will never work with the code I’ve
already got running in production and I’m not going to drag in
all of it just to get the core validation functions, assuming I
can even use them in my app.   • Also, validation does not mean
“force this input into another type”. That’s not validation.
Stick it somewhere else.   • They assume too much. If you can
only validate a single value in a map, you’re useless. I need to
check if a frobniz has either