News for hackers. Stuff that matters.
Re:Jschema.js is a framework for modeling data in JavaScript by Lazare on Saturday November 04, 2017 @05:58AM (#15624389)
I feel like this was written because it solved someone's problem, but I can't quite figure out what, or if it would solve any of my problems.

What is this for? Talking to a REST API? Serializing and de-serializing data? Acting as an in-memory DB? What library does it compete with?

Re:Jschema.js is a framework for modeling data in JavaScript by ignoreintuition on Saturday November 04, 2017 @10:40PM (#15627918)
Reading through some of these comments I agree: It is probably a good idea to add in a 'why to use' section on the repo. The purpose behind this was that I found it cumbersome to work with dataets in JavaScript so this framework lets you pull them into a schema that has metadata to handle relationships between tables, aggregation methods, sorting and filtering. As for competing frameworks: I have seen some of this in other larger frameworks but I build this out so I can work with data in JS without pulling in monolithic data visualization libraries.
Re:Jschema.js is a framework for modeling data in JavaScript by cpayne624 on Saturday November 04, 2017 @09:00AM (#15624809)
They have a "How to Use" in the README. Needs a "Why to Use" too.
Re:Jschema.js is a framework for modeling data in JavaScript by ztratar on Friday November 03, 2017 @10:44PM (#15623529)
I don't understand why I need this -- think about selling it more clearly on the Github page.
Re:Jschema.js is a framework for modeling data in JavaScript by ignoreintuition on Saturday November 04, 2017 @10:41PM (#15627923)
I'll work on that. Sometimes it is tough to convey it since it is clear in my head that it may not be as clear to others.
Re:Jschema.js is a framework for modeling data in JavaScript by eoincathal on Tuesday November 07, 2017 @06:49AM (#15642580)
I can see a use case in my current work. We're building a dashboard visualisation for our product.

I'm writing the REST API backend for it - and trying to make that API as easy to easy to use for the front end (inhouse customer) as I can. However, I'm finding that I'm writing a lot of endpoints that are variations on the same data.

We will circle around, identify the common patterns/variations and consolidate a bunch of the code. But something like this, that facilitates sorting, grouping and filtering on the front end, could be useful.

Re:Jschema.js is a framework for modeling data in JavaScript by zumu on Sunday November 05, 2017 @01:56AM (#15628348)
I initially thought this had something to do with JSON schema -- I'd consider making the name more descriptive / less generic
Re:Jschema.js is a framework for modeling data in JavaScript by souenzzo on Friday November 03, 2017 @10:30PM (#15623509)
Re:Jschema.js is a framework for modeling data in JavaScript by ignoreintuition on Saturday November 04, 2017 @10:43PM (#15627926)
It shares some ideas.
Re:Jschema.js is a framework for modeling data in JavaScript by code-is-code on Saturday November 04, 2017 @04:53AM (#15624282)
Maybe an example schema on the readme would help
Re:Jschema.js is a framework for modeling data in JavaScript by ignoreintuition on Saturday November 04, 2017 @10:42PM (#15627924)
Working on some examples.
Re:Jschema.js is a framework for modeling data in JavaScript by systematical on Saturday November 04, 2017 @01:23AM (#15623920)
Is there a demo?
Re:Jschema.js is a framework for modeling data in JavaScript by ignoreintuition on Saturday November 04, 2017 @10:43PM (#15627927)
I'll be working on one. Probably after I get through building out the mocha scripts and getting in a few modifications to the functions.