Graduate from Single-Session Coding: My Full Agentic Coding Workflow
medium.com3 pointsby btraut0 comments
// PHP error_log() wrapper
function el($var, $die = true) {
error_log(var_export($var, true));
if ($die) {
die();
}
}
Also, Paul Irish's Javascript log() function is amazing. It can be found in boiler plate, but here's the gist: // Javascript console.log() wrapper
window.log = function() {
log.history = log.history || [];
log.history.push(arguments);
if (this.console) {
console.log(Array.prototype.slice.call(arguments));
}
};