PHPNews

Making setInterval Declarative with React Hooks

Dan Abramov’s blog Overreacted is pure gold and contains a ton of information. Take today’s post “Making setInterval Declarative with React Hooks” for example, in which he explains why setInterval and Hooks (which should be released in today’s planned React 16.8 release ) don’t play that nice together out …

Continue reading »

Written by Bram.us - - Aggregated on Monday February 4, 2019


How to publish your PWA onto the Google Play Store

Thanks to the Trusted Web Activity feature in Chrome 72 on Android, the Google Play Store is now open for Progressive Web Apps . Chrome 72 for Android is now shipping from the Play Store to all users and this version included Trusted Web Activity (TWA), that in a nutshell is a way to open Chrome in standalone …

Continue reading »

Written by Bram.us - - Aggregated on Monday February 4, 2019


The Modem Dialup Sound, Visualised

Remember the dialup sound of your modem from back in the day ? Those beeps and glitches aren’t just random garbage, but they’re the handshake between two modems trying to agree on which language they’ll be speaking to one another. Oona Räisänen has created this nice poster of a spectogram of said handshake, …

Continue reading »

Written by Bram.us - - Aggregated on Saturday January 26, 2019


useHooks(

Hooks are an upcoming feature that lets you use state and other React features without writing a class. This websites provides easy to understand code examples to help you understand how hooks work and hopefully inspire you to take advantage of them in your next project. useHooks(

Continue reading »

Written by Bram.us - - Aggregated on Saturday January 26, 2019


The React Handbook

If you’re looking to get started with React, then the (massive) React Handbook will come in handy. The React Handbook follows the 80/20 rule: learn in 20% of the time the 80% of a topic. Best part of it all is that it starts with a big section on Modern JavaScript (e.g. ES2015 and newer) as people seem to …

Continue reading »

Written by Bram.us - - Aggregated on Friday January 25, 2019


Creating vs. Shipping

Creating is easy. Shipping is the hard part, and countless companies never quite figure it out. Sure, they might release their software, but that’s not the same as shipping. No company is perfect, but it makes a big difference when they genuinely care. Shipping is about consistency. It’s regularly updated help …

Continue reading »

Written by Bram.us - - Aggregated on Friday January 25, 2019


Multilingual Sites: Styling translated text

Ire Aderinokun on why you should use the :lang pseudo-class over the lang attribute selector (e.g. [lang] ) for language-specific styles: The problem with having language-specific styles based on the [lang] attribute selector is that the selector isn’t actually aware of the language of the element. It’s …

Continue reading »

Written by Bram.us - - Aggregated on Tuesday January 22, 2019


Multilingual Sites: Linking to Translations

Good piece by Hidde on the markup one needs to use when linking to a translation of a page. The other day I worked on some front-end code that takes users to a version of the website in a different language. Two attributes can make such links more accessible: lang and hreflang . What’s the difference? …

Continue reading »

Written by Bram.us - - Aggregated on Tuesday January 22, 2019


React Native Gesture Handler

React Native Gesture Handler is a declarative API exposing platform native touch and gesture system to React Native. React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React Native. With this library gestures are no longer controlled by …

Continue reading »

Written by Bram.us - - Aggregated on Thursday January 17, 2019


Laravel Valet Environment Variables

To set/override Environment Variables in Laravel Valet, one had to manually edit the Nginx config files and restart Nginx after doing so. With the release of Laravel Valet 2.1.6 this is no longer needed: Valet 2.1.6 contains a merged PR that provides built-in support for an specific file named .valet-env.php in …

Continue reading »

Written by Bram.us - - Aggregated on Thursday January 17, 2019


The nightmare videos of childrens’ YouTube

James Bridle – whom you might know from his autonomous trap for self-driving cars – on the dangers of leaving your children on YouTube unattended: Writer and artist James Bridle uncovers a dark, strange corner of the internet, where unknown people or groups on YouTube hack the brains of young children in …

Continue reading »

Written by Bram.us - - Aggregated on Wednesday January 16, 2019