PHPNews

Gone Diving

Right now I’m packing my bag, as I’m leaving for vacation tomorrow. I’ll be going on a 10 day diving-trip to Tulum (Mexico) with my diving club Bubbledivers . It’s the first time I’m going to Mexico, and the first time I’ll be diving the Cenotes . Cenote diving in Tulum ( All Mexico 365 ) It’s a welcome …

Continue reading »

Written by Bram.us - - Aggregated on Thursday October 31, 2019


How We Built the World Wide Web in Five Days

At the most recent edition of Fronteers Conference – a conference which I’ve been attending for over 10 yeras by now – Jeremy Keith & Remy Sharp did a two-person talk on their rebuild of the original WorldWideWeb application back in February . Join (Je)Remy on a journey through time and space and code as …

Continue reading »

Written by Bram.us - - Aggregated on Monday October 28, 2019


My favourite Git commit

David Thompson on his favorite Git commit: a single character fix, but with one hell of an explanation: In a different organisation, from a different developer, this entire commit message might have been change whitespace , or fix bug , or (depending on the team’s culture) some less than flattering opinions about …

Continue reading »

Written by Bram.us - - Aggregated on Monday October 28, 2019


One simple trick to optimize React re-renders

Kent C. Dodds: If you’re experiencing React performance issues, try this: “Lift” the expensive component to a parent where it will be rendered less often. Then pass the expensive component down as a prop. You may find doing so solves your performance problem without needing to spread React.memo all …

Continue reading »

Written by Bram.us - - Aggregated on Monday October 28, 2019


Making sense of API response times

Mathias Hansen, co-founder of Geocodio, on how they analyze their API response times: For the longest time, we focused on average response times. It is a quick and simple metric that you can quickly break down by API endpoint and time window. […] While measuring average response time have their place they can also …

Continue reading »

Written by Bram.us - - Aggregated on Monday October 28, 2019


Display the macOS Dock in Touch Bar using Pock

Display macOS Dock in Touch Bar. It’s free and open source! Not that I’d use it (I always use the “Expanded Control Strip” to make the Touch Bar show the “regular” keys) , but I found this one quite interesting and it looks really cute. Installation possible per brew cask: brew cask install pock You can …

Continue reading »

Written by Bram.us - - Aggregated on Thursday October 24, 2019


Pure CSS Scroll Shadows (Vertical + Horizontal)

A long time ago (2012!) , Lea Verou shared a way on how to add scrolling shadows to containers that needs scrolling . Using those shadows in a scroll container is a great UX thing, as they visually tell the user that the content is scrollable. Her code however, only worked with containers that scroll vertically. …

Continue reading »

Written by Bram.us - - Aggregated on Thursday October 24, 2019


JSONbox – Free HTTP based JSON Storage

jsonbox.io lets you store, read & modify JSON data over HTTP APIs for free. Copy the URL below and start sending HTTP requests to play around with your data store. Oh, this will come in handy for Workshops and quick Proof Of Concepts: curl -X POST 'https://jsonbox.io/demobox_6d9e326c183fde7b' \ -H …

Continue reading »

Written by Bram.us - - Aggregated on Thursday October 24, 2019


Using AWS’ “Server­less Image Han­dler” to roll your own Image Transform …

Ama­zon AWS has offered a Server­less Image Han­dler for a while that allows you to spin up an AWS Lamb­da func­tion to cre­ate your own pri­vate lit­tle image trans­form ser­vice that is inex­pen­sive, fast, and is front­ed by the Cloud­Front con­tent deliv­ery net­work (CDN). Whenever an image is uploaded to the …

Continue reading »

Written by Bram.us - - Aggregated on Thursday October 24, 2019


Implementing Dark Mode on adactio.com

Jeremy recently implemented “Dark Mode” on his site. Tanks to CSS Custom Properties the implementation is pretty straightforward (also see my writeup here ) . But of course, Jeremy added some extra details that make the difference: In Dark Mode images are toned down to make ‘m blend in better, as detailed …

Continue reading »

Written by Bram.us - - Aggregated on Wednesday October 9, 2019


GitHub CI Workflow for PHP applications

Mattias Geniar has shared his GitHub Workflow to make GitHub do the CI work for PHP applications: on: push name: Run phpunit testsuite jobs: phpunit: runs-on: ubuntu-latest container: image: mattiasgeniar/php73 steps: - uses: actions/checkout@v1 with: fetch-depth: 1 - …

Continue reading »

Written by Bram.us - - Aggregated on Wednesday October 9, 2019


Working with symlinked packages in PHP

When developing a PHP library/package, you most likely also have a project on disk that consumes said library. Take a WordPress plugin for example: to test it, you need a WordPress installation — both are linked but separate projects. To speed up development you can tell Composer to use the local version of the …

Continue reading »

Written by Bram.us - - Aggregated on Friday October 4, 2019


Idiosyncrasies of the HTML parser

Highly interesting book (in the making) by Simon Pieters , on how HTML parsers work: The HTML parser is a piece of software that processes HTML markup and produces an in-memory tree representation (known as the DOM). The HTML parser has many strange behaviors. This book will highlight the ins and outs of the …

Continue reading »

Written by Bram.us - - Aggregated on Friday October 4, 2019