All my “social” life just moved to direct communication in WhatsApp (meta owned as well)
960 karma · joined October 9, 2020
All my “social” life just moved to direct communication in WhatsApp (meta owned as well)
Use proper mocks with ts mockito and it will force you to write better code.
Since react doesn’t have a true reactive model, you need to subscribe to changes manually (use effect) to create computations, while in signals it’s a primitive (computed).
I actually created a lib that operates signals over reacts state management (https://roypeled.github.io/react-logic/), so I removed the boilerplate to create a true reactive system.
If you want, you can create reactive system just from JS primitives, using callbacks. But that doesn’t make JS reactive by nature.
Regarding angular I agree, rxjs was a bad choice for data management, and before signals arrived I abandoned rxjs in favor of mobx in my angular projects. However you could roll your own http client, we used axios, and using DI it’s a drop in replacement.
Promised - async
Observables - streams
Signals - reactivity
“It looks like the user wants to run curl on windows machine, I need to bootstrap Linux under docker, and channel bash commands into shell inside docker, so the user would be able to run curl natively.”
And it really doesn’t matter why some countries got poorer, this is the fact right now so my point still stands.
Having all countries open the borders to anyone (ignoring security risks for the sake of the argument) would mean all poor people would emigrate to rich countries and strain the economy, while their home country would collapse from lack of workforce.
You used to have a couple of days to close a breach, now it 2 hours.
And then there’s this: https://kidpix.app/
When everyone around writes shit code, you don’t care. In hooks, it becomes much more critical.
In class based components, you didn’t care how react works under the hood, except for the render method which is called by react. So the surface of code controlled by react was only what you included inside that method. In function components, the entire function is owned by the renderer, so you need to deeply understand how it works.