News for hackers. Stuff that matters.
Re:Xtypejs: data validation for JavaScript Apps by keedot on Wednesday July 01, 2015 @10:11AM (#9811893)
Contrived and oddly specific for an example. Do we have any examples being used out in the wild?
Re:Xtypejs: data validation for JavaScript Apps by lucono on Wednesday July 01, 2015 @03:14PM (#9814420)
There is a non-open-source JavaScript decorator library using this. It has many (real) examples, but the one that first comes to mind is its use of the xtype.is API method (http://xtype.js.org/api/is) to perform runtime validations based on validation meta-data that's defined in configuration.

For an idea of what that looks like, see:

http://xtype.js.org/guide/checking_combinations_of_types

Re:Xtypejs: data validation for JavaScript Apps by keedot on Wednesday July 01, 2015 @04:40PM (#9814979)
Completely makes sense now, the example had me in the wrong headspace.