4 ms·
On the bright-side, these things provide a nice barrier-for-entry that makes it easier to find jobs. But I agree it does feel quite 'broken' a lot of the time.
by Tycho 16y ago
On the bright-side, these things provide a nice barrier-for-entry that makes it easier to find jobs. But I agree it does feel quite 'broken' a lot of the time. I've been trying out jQuery-ahm, which lets you reduce ajax calls to one line, and send everything else back from the server - the data and the logic/functions/instructions. I'm not sure how well this scales (debugging could be a problem), but I'm using it for simple things like tooltips. I feel that writing all the normal ajax code for a simple tooltip (for instance the example given in the Rhino book) is preposterous.
- kaylarose 16y agoI would skip the jQuery-ahm, especially since you are already committed to jQuery as a dependency. //Overly simplified example $.get('tooltips.php?id=tooltip-id',function(data){$('#tt').text(data);});
- Tycho 16y agoYeah I see your point, but when I said 'one line' I meant more like 'one word.' jQuery-ahm just uses a 'ahm' class on the html link to the Ajax endpoint. like <a href='/tooltip3' class='ahm'> and that's it. The line of jQuery you wrote is still very dense.