Hacker News new | ask | show | jobs
by ianstormtaylor 4667 days ago
If you're looking for a nice validation API that doesn't require jQuery, I've been working on one recently for forms: https://github.com/segmentio/validate

I personally really dislike working with jQuery plugins, because their APIs tend to be very poorly thought out. And using strings as a way to call methods is generally unfortunate, especially when they are snake-cased like these ones.

1 comments

I'm watching your repo to see how it evolves, I like the structure of your api. Best of luck.

Regarding Formance, it uses jQuery to setup the necessary event listeners to provide the field formatting.

On the other note snake-cased is a preference, I would happily provide camelCased if there is demand.