Cookie Notice

As far as I know, and as far as I remember, nothing in this page does anything with Cookies.

2012/08/07

I Confess, My APIs Suck

I do web development from SQL to CSS, and I confess that all too often, when I want to interact with the server with AJAX, I create another application.

I confess, I hadn't thought about this, but the more I think about it, the more I know this is the right thing.
Instead of this:

{ data:{abc:123} }

I should have

{ action:"upload_keys",data:{abc:123} }

or whatever I'm doing, and then have my ajax_handler.cgi look for action and handle depending on that value.

I will endeavor. to do better in the future.