-
Data on the Wire. Don't send HTML over the network. Send data and let the client decide how to render it.
-
One Language. Write both the client and the server parts of your interface in JavaScript.
-
Database Everywhere. Use the same transparent API to access your database from the client or the server.
-
Latency Compensation. On the client, use prefetching and model simulation to make it look like you have a zero-latency connection to the database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLine(offset) { | |
var stack = new Error().stack.split('\n'), | |
line = stack[(offset || 1) + 1].split(':'); | |
return parseInt(line[line.length - 2], 10); | |
} | |
global.__defineGetter__('__LINE__', function () { | |
return getLine(2); | |
}); |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.