Chris Blakley

Results 185 comments of Chris Blakley

Some more regex patterns for fun... This one will match long form if conditionals checking for empty variables ```regex if \( empty\((\S+)\) \){\n\s+\1\s ``` ```php if ( empty($whatever) ){ $whatever...

...I find it hard to believe that none of those patterns exist in Nebula either. But I found 0 results for either of the above too.

Found one that uses this: ```php if ( !$url ){ $url = $this->requested_url(); } ``` Here is the pattern for that: ```regex if \( !(\S+) \){\n\s?\1 = ```

Ok, I added a bunch of comments to update some lines to null coalescing operators in the future. ``` //@todo "Nebula" 0: Use null coalescing operator here ```

Crosslinking #1992 as it has similar emerging features noted.

I believe Signed Exchanges are related to this: ![Screen Shot 2019-05-02 at 10 33 50 PM](https://user-images.githubusercontent.com/6349678/57117508-7d509d80-6d2a-11e9-8a94-2cd900abdf4f.png) https://developers.google.com/web/updates/2018/11/signed-exchanges

Seems like the `` element is also related/similar to this topic. ![Screen Shot 2019-05-02 at 10 43 10 PM](https://user-images.githubusercontent.com/6349678/57117660-cce39900-6d2b-11e9-9693-7d94595b0978.png) https://github.com/WICG/portals

This was discussed at Google I/O 2019 as well in the "What's New in Chrome" session:

More info on portals from the same Google I/O session as well. Going to have to re-watch that again for more details... https://web.dev/hands-on-portals

Portal browser support: https://caniuse.com/#feat=portals