Web Development Reading List #152: On Not Shipping, Pure JS Functions, And SameSite Cookies
This week’s reading list consists of a lot of little, smart details that you can use on websites. From tweaking the user’s reading experience during page load to pure JavaScript functions and verifying the integrity of external assets. And finally, we see some articles on thinking differently about established working habits — be it working on AI without data or the virtue of not shipping a feature.
Please note that I’ll be on vacation for the next four weeks, so please don’t expect any new Web Development Reading List before October, 7th. Enjoy September, your work, your life!
General
- Jason Zimdars explains why not shipping a feature can be a virtue. An article about hidden costs and why shipping does not equal success.
- While many think Apple isn’t in the Artificial Intelligence game, this exclusive look gives some insights into why Apple handles things differently. An interesting read that reveals how Apple tries to do Artificial Intelligence with less user data and without tracking you — contrary to the industry’s big players.
Concept & Design
- The Web Methodology Project is a fresh guide to building web projects, and even though it’s still a work in progress, it already looks very useful. So keep an eye on it.
Tools & Workflows
- Google’s Closure Compiler is one of the best tools out there to compile JavaScript, but so far has only been available as a Java platform tool. Now, the team released a JavaScript version of Closure Compiler designed to run in Node.js environments. Available on GitHub or npm.
Security
- It’s now possible to mitigate MIME confusion attacks in Firefox by sending the header
X-Content-Type-Options: nosniff
to the browsers. - I’ve already shared some thoughts on using SRI, but now Troy Hunt explains why it’s important to use it right now if you reference external third-party scripts, for example jQuery, from its CDN.
- When using cookies on a website, you should set the
SameSite
option to stop cross-site timing attacks.
Accessibility
- Mischa Andrews on why making websites and web apps accessible is not super-hard yet neglected so often and how we can get out of this mess.
JavaScript
- André Staltz explains the importance of pure functions in JavaScript.
- React.js comes with its own component model already built-in. However, it can still make sense to use Web Components in React.js applications as they offer some more advantages of the web platform and are a native web standard.
CSS/Sass
- Michael Scharnagl shares some neat techniques to reduce content shifting during page load to ensure a smooth reading experience for users. By setting intrinsic ratios for media,
font-size-adjust
, or new techniques such as scroll anchoring, you can improve the situation enormously.
Work & Life
- Mercedes De Luca explains how false urgency harms productivity.
And with that, I’ll close for this week. If you like what I write each week, please support me with a donation or share this resource with other people. You can learn more about the costs of the project here. It’s available via email, RSS and online.
— Anselm
Further Reading
- Local Storage And How To Use It On Websites
- Meet “Inclusive Front-End Design Patterns”, A New Smashing Book
- Thinking Inside The Box With Vanilla JavaScript
- Ways To Reduce Content Shifting On Page Load