Mitchell McKenna - tagged with webdev http://mitchmckenna.com/feed en-us http://blogs.law.harvard.edu/tech/rss LifePress mitchellmckenna@gmail.com What’s New with Chrome and the Web (Google I/O'19) http://mitchmckenna.com/post/18768/whats-new-with-chrome-and-the-web-google-io19

Some very cool features from Google I/O'19 for the future of the web:

  • Lazy loading images for a faster web / mobile web
  • "Paint Holding" to stop the flash between pages if they're fast enough.
  • Portals for seamless transition/animation between different domains or just the same domain.
  • "Web Packaging" so you don't necessarily have to go back to the server.
  • "performance budgets" for assets as part of CI
  • Installing PWA apps on desktop
]]>
Wed, 08 May 2019 00:23:00 -0400 http://mitchmckenna.com/post/18768/whats-new-with-chrome-and-the-web-google-io19/whats-new-with-chrome-and-the-web-google-io19
It’s alright @NHL, webdev is hard, hit me up if you need some help http://mitchmckenna.com/post/18104/mitchellmckenna-its-alright-nhl-webdev-is-hard-hit-me-up-if-you-need-some-help-httpstcomvrchnwrt7

It’s alright @NHL, #webdev is hard, hit me up if you need some help https://t.co/MvrchnwrT7

]]>
Sat, 03 Feb 2018 15:35:00 -0500 http://mitchmckenna.com/post/18104/mitchellmckenna-its-alright-nhl-webdev-is-hard-hit-me-up-if-you-need-some-help-httpstcomvrchnwrt7/mitchellmckenna-its-alright-nhl-webdev-is-hard-hit-me-up-if-you-need-some-help-httpstcomvrchnwrt7
Adonis - Nodejs MVC Framework Inspired by Laravel http://mitchmckenna.com/post/16139/adonis-nodejs-mvc-framework-inspired-by-laravel

This new NodeJS framework was inspired by Laravel, with similar folder structure and includes IOC container, very similar router, service providers, middlewares, even Views similar to blade. Utilizes ES6 classes for controllers. Even has an ORM called Lucid.

]]>
Wed, 20 Jan 2016 19:08:00 -0500 http://mitchmckenna.com/post/16139/adonis-nodejs-mvc-framework-inspired-by-laravel/adonis-nodejs-mvc-framework-inspired-by-laravel
LetsEncrypt.org, the project working to make SSL cert’s free, is now trusted by all major browsers http://mitchmckenna.com/post/15879/mitchellmckenna-httpstcogcz3enmz9q-the-project-working-to-make-ssl-certs-free-is-now-trusted-by-all-major-browsers-httpstco22n1dsesyo-webdev

LetsEncrypt.org, the project working to make SSL cert’s free, is now trusted by all major browsers https://t.co/22n1DseSyo #webdev

]]>
Tue, 20 Oct 2015 14:58:00 -0400 http://mitchmckenna.com/post/15879/mitchellmckenna-httpstcogcz3enmz9q-the-project-working-to-make-ssl-certs-free-is-now-trusted-by-all-major-browsers-httpstco22n1dsesyo-webdev/mitchellmckenna-httpstcogcz3enmz9q-the-project-working-to-make-ssl-certs-free-is-now-trusted-by-all-major-browsers-httpstco22n1dsesyo-webdev
Marco Pivetta (Ocramius) - Doctrine ORM Good Practices and Tricks http://mitchmckenna.com/post/15802/phpday-2015-marco-pivetta-doctrine-orm-good-practices-and-tricks

Interesting presentation from one of the Doctrine core team members.

In this Talk, we are going to dive into Doctrine 2 ORM’s feature set. We’re going to see the advantages and disadvantages of each functionality, with a particular focus on use-cases that each functionality attempts to solve, which features should be used with care (or avoided completely) and which ones should be used even more.

]]>
Tue, 29 Sep 2015 17:39:00 -0400 http://mitchmckenna.com/post/15802/phpday-2015-marco-pivetta-doctrine-orm-good-practices-and-tricks/phpday-2015-marco-pivetta-doctrine-orm-good-practices-and-tricks
JSON API — A specification for building APIs in JSON http://mitchmckenna.com/post/15792/json-api-a-specification-for-building-apis-in-json

Building a JSON API, you should be trying to follow the JSON API spec. Save your team the effort of arguing the best response format. It reached version 1.0 earlier this year, so it's safe to say there won't be too many big changes now.

It defines a standard for what the offsets in the json response should include: a resource is returned in "data", pagination in "links", errors in "errors", additional data in "meta", and a standard for including other objects aka "compound documents" in "relationships"/"included", so that instead of embedding other resource objects inside the main resource it flattens the graph of objects to eliminate duplicate data in the response (eg. the same user can be both the post author and a comment author).

If you're curious about some of the design decisions or how it compares to HAL, check out the FAQ.

]]>
Sun, 27 Sep 2015 16:34:00 -0400 http://mitchmckenna.com/post/15792/json-api-a-specification-for-building-apis-in-json/json-api-a-specification-for-building-apis-in-json
JMS Serializer - Convert objects to and from JSON, XML, YAML, etc http://mitchmckenna.com/post/15793/jms-serializer-convert-objects-to-and-from-json-xml-yaml-etc

Say you're building an API, you need to convert the objects you send in the response to JSON representation (removing certain properties like passwords, and modifying others like dates) you can use JSMSerializer to define how that happens automatically. But where JSMSerializer really shines is how it can deserialize data into PHP objects. Maybe you you are consuming a JSON feed, you can use this to convert each object in the JSON feed to an object. You do this by registering "handlers" for each object type. You can do all this configuration via annotations, XML or YAML (which you'll be familiar with if you've used Doctrine). It also includes an event system, which you can use to hook into modifying the data before serialization or right afterward it happens.

]]>
Sun, 27 Sep 2015 15:53:00 -0400 http://mitchmckenna.com/post/15793/jms-serializer-convert-objects-to-and-from-json-xml-yaml-etc/jms-serializer-convert-objects-to-and-from-json-xml-yaml-etc
Dredd - API Testing Framework http://mitchmckenna.com/post/15790/dredd-api-testing-framework

Dredd is a command-line tool for validating API documentation written in API Blueprint format against its actual code. With Dredd you can easily plug your API documentation into a Continous Integration system like Travis CI or Jenkins and have API documentation up-to-date, all the time. Works to test API's written in PHP, Node.js, Ruby and Python. I've been using Swagger for API docs, but I'm looking forward to trying out Dredd + Blueprint in a future project.

]]>
Sat, 26 Sep 2015 20:59:00 -0400 http://mitchmckenna.com/post/15790/dredd-api-testing-framework/dredd-api-testing-framework
Database Backup Manager for PHP http://mitchmckenna.com/post/15702/database-backup-manager-for-php

Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud. Supports MySQL and PostgreSQL. A laravel specific package is also available for easy integration.

]]>
Fri, 04 Sep 2015 18:24:00 -0400 http://mitchmckenna.com/post/15702/database-backup-manager-for-php/database-backup-manager-for-php
Flarum – Forums Made Simple http://mitchmckenna.com/post/15696/flarum-forums-made-simple

Flarum is a new open source Forum software written in PHP. It's from the creators of IsoTalk forum software (Toby Zerner) and FluxBB developer (Franz Liedke). It's got a great UI, built using Laravel's Illuminate components, support for extensions, and plans for a theme/extension marketplace. Currently in beta.

]]>
Fri, 28 Aug 2015 13:08:00 -0400 http://mitchmckenna.com/post/15696/flarum-forums-made-simple/flarum-forums-made-simple
Laravel-ResponseCache http://mitchmckenna.com/post/15636/laravel-responsecache

Speed up your website by caching entire responses. By default it will cache all successful GET requests for a week. Can store cache in any Laravel supported cache (file, redis, memcache). You can have separate caches per user. If you want more granular caching like ESI includes or reverse proxy caching check out laravel-httpcache.

]]>
Tue, 21 Jul 2015 16:24:00 -0400 http://mitchmckenna.com/post/15636/laravel-responsecache/laravel-responsecache
Toolbar.js - jQuery plugin to create tooltip style toobars http://mitchmckenna.com/post/15525/toolbarjs-jquery-plugin-to-create-tooltip-style-toobars

Toolbar allows you to quickly create tooltip style toolbars for use in web applications and websites. The toolbar is easily customisable using Font Awesome icons and provides flexibility around the toolbars display and number of icons.

]]>
Wed, 27 May 2015 13:21:00 -0400 http://mitchmckenna.com/post/15525/toolbarjs-jquery-plugin-to-create-tooltip-style-toobars/toolbarjs-jquery-plugin-to-create-tooltip-style-toobars
Alerts - PHP Package by Cartalyst http://mitchmckenna.com/post/15278/alerts-php-package-by-cartalyst

PHP package that allows you to manage different types of alerts throughout your application. Includes a Laravel Service Provider.

]]>
Mon, 23 Mar 2015 03:45:00 -0400 http://mitchmckenna.com/post/15278/alerts-php-package-by-cartalyst/alerts-php-package-by-cartalyst
csstyle - CSS Components System http://mitchmckenna.com/post/15247/csstyle-css-components-system

Organize your CSS as reusable components. Components are built up of parts (child elements), parts are included using __part-name. Components are flexible with options (like arguments; class="component-name --option). Tweaks are small changes applied using a + sign. You can watch a related Laracast here.

]]>
Wed, 11 Mar 2015 11:36:00 -0400 http://mitchmckenna.com/post/15247/csstyle-css-components-system/csstyle-css-components-system
Sage - WordPress Starter Theme http://mitchmckenna.com/post/15241/sage-wordpress-starter-theme

WordPress starter theme based on HTML5 Boilerplate, gulp, Bower, and Bootstrap. Other good starter themes available are Cutlass and Bones.

]]>
Thu, 05 Mar 2015 13:51:00 -0500 http://mitchmckenna.com/post/15241/sage-wordpress-starter-theme/sage-wordpress-starter-theme
Plyr - A simple HTML5 media player http://mitchmckenna.com/post/15235/plyr-a-simple-html5-media-player

A simple HTML5 media player with custom controls and WebVTT captions.

]]>
Tue, 03 Mar 2015 15:35:00 -0500 http://mitchmckenna.com/post/15235/plyr-a-simple-html5-media-player/plyr-a-simple-html5-media-player
Doctrine cli-config.php for Laravel 5 http://mitchmckenna.com/post/15205/doctrine-cli-configphp-for-laravel-5

Doctine requires a custom made cli-config.php file for Setting up the Commandline Tool with a Laravel 5 application. The CLI tool is necessary when you need to for example clear Doctrine Cache using php vendor/bin/doctrine orm:clear-cache:metadata.

The following is what you can put in your cli-config.php:

<?php

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;

// replace with file to your own project bootstrap
/** @var Illuminate\Foundation\Application $app */
$app = require_once __DIR__ . '/bootstrap/app.php';

/** @var Illuminate\Contracts\Console\Kernel $kernel */
$kernel = $app->make('Illuminate\Contracts\Console\Kernel');
$kernel->bootstrap();

$app->boot();

// replace with mechanism to retrieve EntityManager in your app
$entityManager = $app[EntityManager::class];

return ConsoleRunner::createHelperSet($entityManager);


Note you will need to have already registered the EntityManager with your app through a service provider. You can use a package like mitchellvanw/laravel-doctrine or opensolutions/doctrine2bridge-l5 to setup Doctrine in Laravel 5.

]]>
Tue, 24 Feb 2015 02:53:35 -0500 http://mitchmckenna.com/post/15205/doctrine-cli-configphp-for-laravel-5/doctrine-cli-configphp-for-laravel-5
Multiple Database Slaves in Laravel http://mitchmckenna.com/post/15201/multiple-database-slaves-in-laravel

Little hack to support multiple read-only slaves in Laravel. There really should be native support for multiple slaves.

]]>
Fri, 20 Feb 2015 16:35:00 -0500 http://mitchmckenna.com/post/15201/multiple-database-slaves-in-laravel/multiple-database-slaves-in-laravel
Awesomplete: Autocomplete that's Simple, Lightweight, Customizable http://mitchmckenna.com/post/15199/awesomplete-autocomplete-thats-simple-lightweight-customizable

I like how simple this autocomplete is, and small.

]]>
Fri, 20 Feb 2015 16:11:00 -0500 http://mitchmckenna.com/post/15199/awesomplete-autocomplete-thats-simple-lightweight-customizable/awesomplete-autocomplete-thats-simple-lightweight-customizable
Materialize - Responsive Front-end Framework for Material Design http://mitchmckenna.com/post/15200/materialize-responsive-front-end-framework-for-material-design

Bootstrap-like framework with focus on Google's Material Design look and interactions. Forms section is a great example of how nice it can look. Sass available, and several Javascript components.

]]>
Fri, 20 Feb 2015 16:07:00 -0500 http://mitchmckenna.com/post/15200/materialize-responsive-front-end-framework-for-material-design/materialize-responsive-front-end-framework-for-material-design