[arch-projects] AurJSON code.
I finally got around to buttoning up my AurJSON code, and pused it to my master repo. I updated the 'example' clients that I had slapped together a little bit too. http://archlinux.org/~eliott/zomgstuff/rpc_examples.tar.gz Check it out. http://projects.archlinux.org/git/?p=aur-eliott.git;a=commit;h=7042f10a7b231... Let me know what you think.
On 10/13/07, eliott <eliott@cactuswax.net> wrote:
I finally got around to buttoning up my AurJSON code, and pused it to my master repo. I updated the 'example' clients that I had slapped together a little bit too.
http://archlinux.org/~eliott/zomgstuff/rpc_examples.tar.gz
Check it out. http://projects.archlinux.org/git/?p=aur-eliott.git;a=commit;h=7042f10a7b231...
Let me know what you think.
_______________________________________________ arch-projects mailing list arch-projects@archlinux.org http://archlinux.org/mailman/listinfo/arch-projects
I suggest you remove all the HTML stuff from there and instead return the relative data so that some external code can write the HTML. There's no point making the current mixture of business logic and presentation worse.
I suggest you remove all the HTML stuff from there and instead return the relative data so that some external code can write the HTML.
Good patches welcome.
There's no point making the current mixture of business logic and presentation worse.
lol. Yeah, because 5 lines of html are going to really 'make it worse'. ;) More seriously, it is api documentation. It is generally best to keep api documentation as close to the code it documents as possible. Because there is a chance this page could be 'hit often', I didn't want to have the calling code to excessive parsing of return data for display (like generating phpdoc output on the fly). An initial version returned plain text for the usage output. Maybe that was a better choice after all. In actuality, I could remove the usage() code altogether, and run phpdoc on the api file, then store that api doc separately in the web dir (maybe under /api/) or something.
On 10/13/07, eliott <eliott@cactuswax.net> wrote:
Yeah, because 5 lines of html are going to really 'make it worse'. ;) 5 lines here, 5 lines there you never know how far it could go. Plain text all the way!
In actuality, I could remove the usage() code altogether, and run phpdoc on the api file, then store that api doc separately in the web dir (maybe under /api/) or something.
That seems like a nicer option. When the class is actually used you don't really need the API on the AUR site though
participants (3)
-
eliott
-
Loui
-
Xilon