In Hans’ Hackin the internet videos he mentioned he had been using a lot of Rust because it compiles to web assembly and I’ve always just been in the standard js framework world of vue with html, css, js, and aws backend service. I’m trying to connect the dots of all the different languages.
After some research my understanding is that js frameworks are great for most cases and the simplest to use. They provide js to the browser and the browsers can read and run that js. Maybe they compile it to something else and learn to improve speed. Cons are its slow and maybe some kind of less security issue??
Other languages like Go, C++, and Rust all get compiled to “machine code” which is web assembly i believe and browsers can run that which is faster and more secure but it is harder to write. Now I’m a bit grey on the part where it all gets connected to html and css. It seams as though in the code you specify the functions that can be called publicly from the html. And the “dom” is like
<input @keyup="myFunc" /> and myFunc could be a public function from the backend code or even js.
So is my understanding sort of on the right track? Sounds like c++ is very hard, Rust is better and Go idk but is Motoko essentially like these? So what was Hans referring to when he said he was writing a lot of Rust. Would I use Rust and Motoko together or is Motoko a “better” rust? Perhaps just written to be able to run on the IC and access Canisters easier. And canisters are like serverless functions that run in the IC and get sent quickly to client. Which is possibly different because doesnt run in browser??
I’m best at vue and I’m not sure I’ve quite yet put together what is supplementary for what because vue is frontend but if I were to do things to the best practice that you guys and everybody recommend for a pwa or app downloaded straight onto computer and run maybe (which im not sure if is better and may allow for less limitations that the browser may have and is more secure) I’d like it to be as best practice as I can with nice frontend but not necessarily need 8 rocket scientists to figure it out although I’m not in a rush and willing to learn and spend time on this.