On Thursday, August 16, 2012 at 9:57 AM, Matthias Wessendorf wrote:
On Thu, Aug 16, 2012 at 2:43 PM, Kris Borchers <kris@redhat.com> wrote:Thanks for the feedback! See responses inline.On Aug 16, 2012, at 4:33 AM, Matthias Wessendorf <matzew@apache.org> wrote:Hi,looking at [1] and also reading the client JS code from the TODO app(->app.js), I am wondering if there is a newer version of the draft?This is more up to date but also needs some updating.Ah... good to have some well hidden documents :-PAlso, inside of the rest adapter of aerogear.js the 'delete' functionis called 'del' ([2]), not sure if that's a good idea..I was using delete but that is a reserved word in JavaScript so linters hateit. I decided to change to del but we can change it to remove or somethingelse. I am open to suggestions.I know :-) but 'del' is a bit _awful_, IMO. why not remove, for now?While reading the app.js file, I also noticed that some of the 'setup'syntax needs to be documented (e.g. the draft is missing details onsettings,url etc of the cfg object):var todo = aerogear.pipeline([{name: "tasks",settings: {url: "/todo-server/task"}},...Also - perhaps for now it is OK, but I think it (still) reads a bittoo much jQuery/ajax like?!projectGet = Projects.read({ajax: {success: function( data, textStatus, jqXHR ) {$( "#project-loader" ).hide();updateProjectList( data );}}});(I think we had this topic already in the past, not too strongfeelings about this... but just wanted to mention this)The reason there isn't documentation and that it looks like jQuery.ajax isbecause it is. :) The ajax settings are basically a straight passthrough tojQuery ajax so that any of those settings can be overridden. We can discusschanging this but I figured why hide the fact that we're using jQuery.ajaxor add another layer of complexity over the already large list of settingsthat can be changed on jQuery.ajaxfair enough, but I think with different _transport_ (read websocket orOData), we will see room for improvement.But not that of a big deal, right now;Oh, one last question, is there a decent/easy way to generate API docsout of the JavaScript API?I have not found one that I like. Most solutions require adding a bunch ofgarbage to the source which I am not a fan of because it makes the sourceitself harder to read. That being said, I am also not a fan of maintainingthat documentation by hand so hoping I can find some middle ground. Again,open to suggestions.Yeah, but we need for all the clients (e.g. Android, iOS and JS) someway to generate api docs.In previous jobs I've used this:we can evaluate a certain tool at a later point, just wanted to ensurewe actually do something there :-)Thanks![2]--Matthias Wessendorfsessions: http://www.slideshare.net/mwessendorftwitter: http://twitter.com/mwessendorf_______________________________________________aerogear-dev mailing list--Matthias Wessendorfsessions: http://www.slideshare.net/mwessendorftwitter: http://twitter.com/mwessendorf_______________________________________________aerogear-dev mailing list