News for hackers. Stuff that matters.
Re:V8n – Fluent validation library for JavaScript by devman2 on Sunday July 15, 2018 @04:28PM (#17536897)
hmm, did a naive quick speed test. Man, this lib is extremely expensive... 500 times slower than doing the same comparison in vanilla JS

  const num= 74;
  ( (typeof num === 'number') && (num > -1 && num < 101) && (num % 2 === 0) && (num !== 32) )
compared to their first example:

  v8n().number().between(0, 100).even().not.equal(32).test(74);
Re:V8n – Fluent validation library for JavaScript by anonytrary on Sunday July 15, 2018 @04:31PM (#17536916)
Welcome to your average Javascript package -- does something trivial in the most over-engineered and expensive way imaginable.