Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Future

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

The Future

A well-polished rant on the horribly inadequate state of programming in general in PHP in particular. Given at PHP Undiscovered in SF.

Avatar for Nate Abele

Nate Abele

August 29, 2013
Tweet

More Decks by Nate Abele

Other Decks in Programming

Transcript

  1. Hi.

  2. namespace my_app\controllers; class Files extends Base { // ... public

    function add($request, $file) { if (!$data = $request->data) { return $file; } $success = $file->save($data + [ 'mime' => $request->env('CONTENT_TYPE'), 'name' => $request->env('HTTP_X_FILE_NAME') ]); return $success && $file->attachTo($request->query, [ 'project' => ['Projects', 'logo'], 'studio' => ['Studios', 'logo'], ]); } }