bmuon | 4 years ago | on: My First CSS
bmuon's comments
bmuon | 4 years ago | on: Virtual DOM is pure overhead (2018)
Facebook has been working for a while on Ahead-Of-Time compilation for React. Interestingly, it looks like they thought the problem was too complicated and they gave up:
> To address this challenge we initially experimented with one approach to ahead-of-time (AOT) optimization — Prepack — but ultimately that direction did not pan out. Specifically, we realized that many AOT optimizations don’t work because they either don’t have enough global knowledge or they have too little. For example, a component might be static in practice because it always receive a constant string from its parent, but the compiler can’t see that far and thinks the component is dynamic. Even when we could make optimizations work, we found that they were unpredictable to the developer. Without predictability it was hard for developers to rely on them.
Instead they're now experimenting with moving the virtual DOM resolution to the server and avoiding sending all the "templating" code to the client, which achieves a similar result. See https://reactjs.org/blog/2020/12/21/data-fetching-with-react....
bmuon | 4 years ago | on: Virtual DOM is pure overhead (2018)
Browser differences are mostly disappearing, they have gained some very good APIs are CSS has gained significant layout capabilities with grids and flex. So the need for libraries like jQuery for dealing with DOM differences is disappearing. New standard libraries like Intl and now Temporal make libraries like Moment obsolete.
The web is also gaining a component model with Web Components that will help you get some level of sanity when building some mildly complex reusable stuff. This is probably very good for content heavy sites, which make the majority of the web.
The other part of the web is applications running on top of the Web platform. Those still heavily benefit from frameworks. Having some amount of sanity when managing state is very much welcome. And functional programming models have proven that a declarative way of approaching UIs is much better than dealing with browser APIs imperatively.
So for some years frameworks will still be useful for certain use cases. For the others, we should be embracing Web technologies. Maybe with some light libraries like Stencil and Catalyst.
bmuon | 4 years ago | on: Temporal: Getting started with JavaScript's new date time API
Temporal is very well designed thanks to building on years of prior art. Give it a try and you'll realize that it leads you to ask those questions the right way.
bmuon | 4 years ago | on: Challenges in the diagnosis of magnesium status
bmuon | 4 years ago | on: It's time for a data-first front end revolution
bmuon | 4 years ago | on: Parsix: Parse Don't Validate
I'm gravitating towards GraphQL now because strict parsing is built into it, so there is no need for all this boilerplate.
https://www.npmjs.com/package/@mojotech/json-type-validation
bmuon | 4 years ago | on: Request for comments regarding topics to be discussed at Dark Patterns workshop
What the push notification pattern is, is annoying. And it is specially annoying because of a prevalence of confirmation dialogs all over the Web with GDPR/CCPA, paid subscriptions, etc. But does it cause harm or monetary loss as the sneak into basket pattern? Or the opt-out unnecessary "insurance" that airlines continue to put in the checkout flow?
We do a disservice to ourselves littering the web with these constant asks. But it's not what needs regulation and enforcement.
bmuon | 4 years ago | on: Request for comments regarding topics to be discussed at Dark Patterns workshop
bmuon | 5 years ago | on: Ask HN: Why Isn't Open Source Voting Software Mandated?
bmuon | 5 years ago | on: Full-Bleed Layout Using CSS Grid
(I agree with you on this simple layout)
bmuon | 5 years ago | on: New York Times phasing out all 3rd-party advertising data
bmuon | 6 years ago | on: Playdate – A New Handheld Gaming System
bmuon | 7 years ago | on: Math and front-end
bmuon | 7 years ago | on: Microsoft acquires Github
bmuon | 7 years ago | on: I put all my personal data on eBay
bmuon | 7 years ago | on: Make front end shit again
bmuon | 7 years ago | on: Troubled Times for Alternatives to Einstein’s Theory of Gravity
bmuon | 8 years ago | on: Three Meanings of E=mc²
bmuon | 8 years ago | on: Long Island Iced Tea Soars 500% After Changing Its Name to Long Blockchain
As a frontend engineer who started 15 years ago, learning the box model required a lot of knowledge of the internals of the browser. The times of having to know things like quirks mode, abusing overflow hidden [1], how to break the behavior of float, etc are long gone. This is great both for us having to struggle less, and for the newer generations to be able to tackle harder problems than just layout and build cooler stuff.
[1]: https://css-tricks.com/clearfix-a-lesson-in-web-development-...