fgerschau
My 9 favorite topics of “The Pragmatic Programmer”
How to Create Web Push Notifications – Full Tutorial
Unit testing React – What you need to know
Premature Optimization in JavaScript
How to Make Your React App a Progressive Web App – Full Tutorial with TypeScript
Periodic Background Sync – Explaining the JavaScript API and How to Use It
Service Workers Explained – Introduction to the JavaScript API
Stop Sabotaging Your Career with Short Stints
Show HN: Open-source pomodoro timer for studying and working – PRs are welcome
High Performance Mobile Web by Maximiliano Firtman – Review and Personal Notes
Service Worker Lifecycle and Updates Explained
Make Your React App a Progressive Web App-Comprehensive Intro to PWAs+Tutorial
React will try to reduce the number of renders to the real DOM as much as possible, so calling a component's render functions doesn't always imply a re-paint of the UI.
Expanding a text box wouldn't usually trigger a re-render because this is being handled by the browser and doesn't affect the state of the application (just like any CSS rules). Reordering elements on the other hand will trigger a re-render because the actual HTML element's position has to change.
So yes, the argument is that the entire screen doesn't have to be repainted. In the ideal case it only repaints the parts of the UI that need to change.
I also wrote an article about this, if you can write efficient code without sacrificing readability I think it's worth the (small) effort.
When does React re-render? Explaining rerenders and how to optimize performance
Getting into Performance Budgets
Custom Metrics with WebPageTest and TravisCI
Measuring the Performance of JavaScript Functions – APIs and how to use them
How to communicate with Service Workers |MessageChannel Broadcast and Client API
Ask HN: Where do you store your photos?
I'm thinking about moving away from the cloud and building my own. I was wondering where you store the photos you take on vacation