Another would be, you may want to interop with Rust at source level.
293 karma · joined August 30, 2020
Another would be, you may want to interop with Rust at source level.
Basically the demo is F# -> Rust -> Wasm
But also remote options made highly paid devs more accessible.
I am currently in Norway and when I turn on "I am open" in LinkedIn, my phone just doesn't stop ringing.
In order to write that you have to pin a reference to the state. But state is something that has to flow. Sure you can pin it to a ref, make it mutable and change the state but then nothing prevents you to change the state arbitrarily e.g. from a command. I believe yes the answer is because we want to stay on the FP realm. FP imposes some restrictions to keep our sanity. So not having a reference to the state and making it immutable is one of those restrictions.
So you see these two goals are contradictory. How FP tackles this state problem? One solution is to use actors and agents. And that's precisely what elmish is. Unlike the conventional apps where you mutate the state directly, an agent in F# is a recursive call which can await for further messages.
So just like Flip Flop holds the state in memory, an agent hold the state in a recursive function. And how is this connected to elmish? Let's see how elmish v2 is implemented: https://github.com/elmish/elmish/blob/5330f52153d5181923bb3c... You can see an agent there and that's the core of elmish.
So basically elm and elmish is a way to handle state changes in a functional manner along with side effect support via commands.
I cannot emphasis importance of elmish, because not only it helps for isolating the state functionally but it helps you to keep your business logic separate from UI. So you don't end up messing your code like you use React hooks or context.
Don't be deceived by low rating. It's low because people expected a course on syntax.
Also other continuations are as below:
https://www.udemy.com/course/functional-application-designin...
https://www.udemy.com/course/end-to-end-real-world-applicati...
And if you have any questions find me from @OnurGumusDev on twitter and I will gladly help