Skip to content

Instantly share code, notes, and snippets.

@phptek
Last active October 22, 2015 20:14
Show Gist options
  • Save phptek/25402c377134a272c5b1 to your computer and use it in GitHub Desktop.
Save phptek/25402c377134a272c5b1 to your computer and use it in GitHub Desktop.
Random notes from PHP Conf NZ 2015
* What core PHP functionality relies on SPL? (Core PHP5 interfaces for everyday use: http://php.net/manual/en/intro.spl.php)
* Take another look at Generators (Reduced memory footprint vs std iteration: http://php.net/manual/en/language.generators.overview.php)
* Look at File();
* Look at Pthreads proper multithreading
* What are co-routines again?
* ZTS Zend Thread Safety
* Performance:
- Measure TTFB
- Re-look at XHGui & XHProf
- MySQL's Sloq Query log
- Google pagespeed: http://developer.google.com/pagespeed
- What's different in HTTP2 that renders some traditional performance tweaks irrelevant or worse - hacks?
* Front end Engineering
- Bower is to JS as Composer is to PHP
- Yeoman wraps / template the following (It's a project "creator")
# jquery, bootstrap, SASS etc
# Gulp or Grunt
# HTML5 Boilerplate
# Bower
# etc
- JS Testing: Jasmine, Mocha etc
- See: TODO MVC - framework selection tool (!!)
- Foundation vs Bootstrap (The former with better browser support, if that's what you need)
- Each frontend framework seems to have its own "UI" equivalent framework viz jQuery + jQueryUI (etc)
* Accessibility
- See the "Curb vut effect" https://thingofthings.wordpress.com/2014/11/15/the-curb-cut-effect-or-why-it-is-basically-impossible-to-appropriate-from-disabled-people/
- Check out NVDA OSS Screen Reader - can it be scripted for use in CI?
- HTML is not enough hence use of Aria
- Browsers map Aria markup to their internal accessibility API
# IAccessible2 API (Firefox)
# ATK (Unix)
* PHP7 (http://gophp7.org/gophp7-ext)
- Look at MySQLi OO + PDO
- Uses Zend Engine 3
- Increased performance
- Variable-variable changes
- Anonymous classes
- Look at variadic functions (PHP 5.6)
- Dereferenced scalars
- New exception hierarchy
- Null coalesce operator: $foo = $_GET['foo'] ?? 'Foo var not set' // Foo var not set (https://wiki.php.net/rfc/isset_ternary)
- Finally keyword
- Scalar type and return hinting (http://www.phpclasses.org/blog/post/269-PHP-7-Scalar-Type-Hinting-Finally-Approved.html)
- Improvement of use() construct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment