Yes! Please do some projects! Some series with 10-15 min per video on where you describe how it works. API with DB and Frontend, desktop app(gtk, qt bindings), simple game(godot bindings) or embedded :)
I think it's because rust environment is pretty young. A lot of libraries has not 1.0, and despite the most love language since 2016, but i think a lot of them are professional who has a lot of experience and not really relying on tutorial. They just read the docs
@@whoopassmemes7256 yea, but this channel it's about learning Rust, I prefer learning with projects, on my university we have programming class with two kind of teachers, the "book" type where you write few simple cli program every class, and "project" type(those guys are owners of small dev company) - they only said: "i want you split in groups and write me app that does this, this and this, i don't care what technology you use, im your customer, sell me the app that i want. If you have problem with project im here to help you", so basically our groups have written and deployed multiple projects: desktop app(both linux and windows), web app and android app - that learned me much more than creating simple cli programs
@@Karpfly yes, i agree with you. But that's not my point. My point is, the language is young and has pretty little community who are also content creators compared to other languages like javascript, golang, etc. But i love watching rust related videos, even though I'm not really learning the language, because here in Indonesia rust is not popular at all, and I'm currently in uni, still beginer, and currently learning golang. So maybe someday i will learn it
@@whoopassmemes7256 yea, you are right, same is for me i like rust but i only saw one job post in Poland where rust was only mentioned as nice to know, maybe some day...
Some medium or beginner level project based tutorials would be better. Most tutorials and videos on newer techs are just how to make counter. Moreover, a project with backend and frontend would be much appreciated. Thank you!
Cześć. Tworzenie apek na androida już dodali? Czy w rust da się coś pisać funkcjonalnie są do tego biblioteki jak lodash i Ramda w js? Ten kanał tu chyba jest solidny na start. Sorki jestem zielony, dopiero ogarnialem reacta.
Perseus and Sycamore are my current choice. Server Side Rendering (SSR) and client side rendering Single Page App (SPA) in 1 package, like Next.js, or Sveltekit.
I am a web dev, and I started learning rust for fun, and I love it. Do you think companies in the not too far future will start building apps with rust for backend and/or frontend? I will be so down to get a job for a company like this
For me the wasm file this produced was over a 1 MB! I guess I need to consider the size of my project before using Yew. I would love to see what Yew is really capable of. It just seems really heavy for such a small app, one that would be very easy and light to implement in Javascript with just notepad.
Cargo extension worth mention: `cargo install cargo-edit` will install `cargo add` feature. With this you can simply write `cargo add yew` in the project root and it will automatically pick the latest version available.
Hello, I'm new to rust and webassembly. Can you specify what are the gains of yew over existing frameworks? I thought webassembly gets an api level access to dom so actually modifying dom elements is slower than a js way of dom manipulation, so wouldn't it take a huge toll when using web assembly for that?? Also does yew use multithreading? Also I can't find newer content on webassembly and yew, most of the things I get over internet is 2 to 4 years old, please suggest some newer content of you know any. Thank you :)
Web assembly won't take off because its still too slow, not close to native performance. So apps that are too heavy for the Web are still too heavy, and javascript is already fine for everything else.
@@SumoCumLoudly Web assembly is not slow. Its literally the fastest you can get on the web. Once the major browsers start enabling wasm to have access to the browser APIs and the DOM, the javascript FFI will not be a bottleneck and wasm become able to really take off.
Hey man thanks for these amazing videos. Could you do more tutorials on yew wasm, like after testing it locally, how could we host it online for the internet to access? Currently im trying to host a static web page done using yew, and I tried to host it on github page, but it did not seem to work. github pages only able to load my index.html which is an empty page.
Great programming and nice application... but still there is a long way before it can be compared or replace the Django library... looking forward to Rust.... I would like some example of replacing my React frontend with Rust. Currently I use React in some frontend applications and Django-Python RestFramework API backend...
Hey, what kind of UI software can we build with Rust ? This type of application can be easier un JavaScript with Électron and NodeJS. ( I have discover the Rust yesterday and i love it 😂 cli applications would be fun to build )
I would love to see more wasm(_bindgen) tutorials as well as macro tutorials in the future! How did you actually achieve that the terminal is showing your history commands?
Noticed your later videos were on a Macbook, and earlier Ubuntu. Also, we all know Microsoft is a big Rust advocate. I want to create a VM for Rust dev with *all* the goodies to standardize the development environment. Can you recommend an OS? DO I give up any goodies with Linux (clippy, analyzer, etc.)? If not, is there a distro with a small footprint and required dev libraries that someone could recommend to build up such a VM? Thanks in advance. :-)
You people need to understand this guy dont want to do more stuff like that. And people in a lot of these type of channels too. This guy takes code from yew repository, simplify this and record the video. If you google "yew counter" you'll find the example project from official yew repo. Thank you for your attention.
Sorry to be a noob here, but for the love of god can someone please explain to me what the hell "rustup" is. Everywhere I go seems to just assume I have it, and when I go to install it it says I need to uninstall rust??????? Like I assume it has its own version of rustc or whatever but idk. Someone please explain.
@@13ciaran13000 it's not alternative version of rust, this is more like rust installer, it can update your rust, add packages like yew or rust-analyzer etc
Nice although it's counterintuitive to build a website with Rust. Way too complicated for something as simple as a counter. Svelte does this in like 5 lines
But why would you build a web app in Rust, when the ecosystem is undeveloped and JS/TS is mature? I really don't see an incentive to compile to WASM for the world's fastest cookie clicker app.
This vid would be much better if you had the code prepared so you could concentrate on explaining it. Your explanation isn't very good because you're thinking only at the code level, with no wider view. Watching people type is like watching paint dry...
Oh man please don't make the channel shity. Don't do the mistake other youtubers do. I come from a multiple years of web dev background and I know the library/framework/what so ever shiet. Actix, tokio etc yeah i think they offer something but in general my opinion is to keep your channel as vanilla as you can. Teach rust. Not rust frameworks. Just a suggestion. Keep up the nice work.
📝Get your *FREE Rust cheat sheet* :
www.letsgetrusty.com/cheatsheet
Awesome, I give thanks !!
Please do more project based videos. I couldn't for the life of me understand why there aren't a lot of rust projects on RUclips.
Yes! Please do some projects! Some series with 10-15 min per video on where you describe how it works. API with DB and Frontend, desktop app(gtk, qt bindings), simple game(godot bindings) or embedded :)
I think it's because rust environment is pretty young. A lot of libraries has not 1.0, and despite the most love language since 2016, but i think a lot of them are professional who has a lot of experience and not really relying on tutorial. They just read the docs
@@whoopassmemes7256 yea, but this channel it's about learning Rust, I prefer learning with projects, on my university we have programming class with two kind of teachers, the "book" type where you write few simple cli program every class, and "project" type(those guys are owners of small dev company) - they only said: "i want you split in groups and write me app that does this, this and this, i don't care what technology you use, im your customer, sell me the app that i want. If you have problem with project im here to help you", so basically our groups have written and deployed multiple projects: desktop app(both linux and windows), web app and android app - that learned me much more than creating simple cli programs
@@Karpfly yes, i agree with you. But that's not my point. My point is, the language is young and has pretty little community who are also content creators compared to other languages like javascript, golang, etc. But i love watching rust related videos, even though I'm not really learning the language, because here in Indonesia rust is not popular at all, and I'm currently in uni, still beginer, and currently learning golang. So maybe someday i will learn it
@@whoopassmemes7256 yea, you are right, same is for me i like rust but i only saw one job post in Poland where rust was only mentioned as nice to know, maybe some day...
For desktop applications, Tauri + Yew it's a pretty cool setup 100% Rust!
do you know any (rust) beginner friendly GUI crates
Tauri is amazing desktop and mobile applications!!
@@lbertondev9149 Is mobile already available? I saw "in progress" and "coming soon".
A cool setup to try for mobile is Flutter in FFI with Rust :)
@@fus3n You should take a look to Dioxus
@@thomascastelly5440 Yes, that's right, but soon mobile development will be available!
The framework looks really nice to be honest. I might even consider building my projects without javascript. Rust is the future.
Some medium or beginner level project based tutorials would be better.
Most tutorials and videos on newer techs are just how to make counter.
Moreover, a project with backend and frontend would be much appreciated.
Thank you!
Using Yew since version 0.13. It's a lovely framework :) Nice you mentioned it
Cześć. Tworzenie apek na androida już dodali? Czy w rust da się coś pisać funkcjonalnie są do tego biblioteki jak lodash i Ramda w js? Ten kanał tu chyba jest solidny na start. Sorki jestem zielony, dopiero ogarnialem reacta.
This is awesome I love practical and repeatable applications your an awesome teacher and made all of this feel so easy to learn!
Phenomenal, lots of excellent material!!! Will look into building UIs with Rust and Yew!
Perseus and Sycamore are my current choice. Server Side Rendering (SSR) and client side rendering Single Page App (SPA) in 1 package, like Next.js, or Sveltekit.
can you share something simple like this on github to look? or a link to such
As always, a great tutorial, so easy to follow. Keep up the good work.
Although I'm a Ziglang guy, it's super cool to see what is possible with Rust and WebAssembly!
X2
I really love that. I have a question how do Yew apps perform in the matter of search engines
sauron is also worth checking out and also supports SSR.
I am a web dev, and I started learning rust for fun, and I love it. Do you think companies in the not too far future will start building apps with rust for backend and/or frontend? I will be so down to get a job for a company like this
I was considering Yew for a new project, but the ecosystem is still lacking. For example, there is no map library yet.
For me the wasm file this produced was over a 1 MB! I guess I need to consider the size of my project before using Yew. I would love to see what Yew is really capable of. It just seems really heavy for such a small app, one that would be very easy and light to implement in Javascript with just notepad.
use trunk build --release
I think you should take a look at Dioxus, which seems to be a more evolved framework than Yew for styling.
Fantastic video! I am a bit of a Yew fan :)
Wow - this is really neat!
Rust looks a bit tricky to learn, but could well be worth the effort.
Cargo extension worth mention: `cargo install cargo-edit` will install `cargo add` feature. With this you can simply write `cargo add yew` in the project root and it will automatically pick the latest version available.
In Rust 1.62 this comes built in.
This is built in now
Let’s rust, new intro loving you and your channel…
Nice job. Can we use tailwind or bootstrap with yew?
Awesome content. Love it. If Rust was be a girl I would marry her.
Hello, I'm new to rust and webassembly. Can you specify what are the gains of yew over existing frameworks? I thought webassembly gets an api level access to dom so actually modifying dom elements is slower than a js way of dom manipulation, so wouldn't it take a huge toll when using web assembly for that?? Also does yew use multithreading? Also I can't find newer content on webassembly and yew, most of the things I get over internet is 2 to 4 years old, please suggest some newer content of you know any. Thank you :)
Commenting here so I get alerted if anyone replies
Brilliant - thanks!
They now support functional components and hooks!
Awesome video! This helped so much!!!!!
More video with yew!
Even Using Tokio or Tauri please
The struct based components may be deprecated in the future in favor of function components tho
Afaik the general consensus afaik that wasm will not be an ideal solution fot building frontends until it can do direct dom manipulation.
Web assembly won't take off because its still too slow, not close to native performance. So apps that are too heavy for the Web are still too heavy, and javascript is already fine for everything else.
@@SumoCumLoudly Web assembly is not slow. Its literally the fastest you can get on the web. Once the major browsers start enabling wasm to have access to the browser APIs and the DOM, the javascript FFI will not be a bottleneck and wasm become able to really take off.
I think long term everything will be wasm, including js
As said back in the early 2000s JavaScript needs to die
Hey man thanks for these amazing videos. Could you do more tutorials on yew wasm, like after testing it locally, how could we host it online for the internet to access? Currently im trying to host a static web page done using yew, and I tried to host it on github page, but it did not seem to work. github pages only able to load my index.html which is an empty page.
Thanks a lot. Sure more video about yewww.
I INVENTED "impl vars" !!! It's one for the books ! (and I'm not even the smart one, not by a long shot - but I invented impl vars). Jeff was here 🤪
The Best! Thanks
please, more rust videos!!!
Thank you!
I would like to see some videos taking Yew farther. Otherwise, I always enjoy your content.
Great programming and nice application... but still there is a long way before it can be compared or replace the Django library... looking forward to Rust.... I would like some example of replacing my React frontend with Rust. Currently I use React in some frontend applications and Django-Python RestFramework API backend...
I followed the amazing tutorial but how would I go about deploying the website?
Thanks so much. Keep up the good work.
Wtf man, you just read my mind. I was looking for something with Yew and Wasm
awesome man.
I wish you did this with function components instead.
Hey, what kind of UI software can we build with Rust ?
This type of application can be easier un JavaScript with Électron and NodeJS.
( I have discover the Rust yesterday and i love it 😂 cli applications would be fun to build )
ruclips.net/user/creativcodervideos
Don't be scared, this is actually easier that what you may think at the beginning. Just... fake it 'til you make it !
I would love to see more wasm(_bindgen) tutorials as well as macro tutorials in the future!
How did you actually achieve that the terminal is showing your history commands?
It's probably not zsh (the shell) (which is standard on MacOS), but "fish". You can look up tutorial on how to get a nice fish shell :)
@@aduentix9491 thank you!
suggest increasing video bitrate for better quality
nice, but I prefer dioxus because you can build for web, mobile and desktop
Wow, thanks for this comment. I did not know Dioxus existed. Now I do.
What’s the size of resulting wasm and JS?
thank you
Please, a video about desktop GUI frameworks in Rust.
Please create more videos. Global state and other important stuff
Can you make a video with ICED?
Great class !
Yes, I want more!
SIX HOURS OF PAIN
Gone a couple minutes
Thanks a bunch
the basic videos is so much as docs show. But we can't find a complete projects rust production like other language (python, js, react,..)
Thank you 🙏 😊
could you please make a video on actix web with yew
Noticed your later videos were on a Macbook, and earlier Ubuntu. Also, we all know Microsoft is a big Rust advocate.
I want to create a VM for Rust dev with *all* the goodies to standardize the development environment. Can you recommend an OS? DO I give up any goodies with Linux (clippy, analyzer, etc.)? If not, is there a distro with a small footprint and required dev libraries that someone could recommend to build up such a VM? Thanks in advance. :-)
Your code does not work anymore. "error from HTML pipeline" when running trunk serve
How can I change default 8080 port?
Thks
Awesome
I like Rust, but in this case I really would prefer Elm
Could you look into Tauri? Setup is quite easy but calling rust from the frontend is something I will never understand
Tauri*
its for making desktop applications out of web applications, just like electron
@@ikazuchi-san5772 Ducking auto correct.
@@xodix1416 oh i see, ye autocorrect is horrible sometimes
More project videos!
Nice!
how do I center a div
perfect ..
i liked the video
I think I have a crush on this man.
The font size is so large it hurts my eyes.
Reason why use Yew instead of wasm-pack ?
Lmao just figured out how dumb this comment was
You people need to understand this guy dont want to do more stuff like that. And people in a lot of these type of channels too. This guy takes code from yew repository, simplify this and record the video. If you google "yew counter" you'll find the example project from official yew repo.
Thank you for your attention.
wow, at last you started to put github repo of what you are doing in the video
Sorry to be a noob here, but for the love of god can someone please explain to me what the hell "rustup" is. Everywhere I go seems to just assume I have it, and when I go to install it it says I need to uninstall rust??????? Like I assume it has its own version of rustc or whatever but idk. Someone please explain.
Like is there no way to target WASM with like normal Rust???? Like I have to install this weird alternative version of Rust?
@@13ciaran13000 it's not alternative version of rust, this is more like rust installer, it can update your rust, add packages like yew or rust-analyzer etc
If it weren't for you, I don't know what to do, I don't want to spend money on it
More project based videos would be awesome!
Seriously, the creators of Yew didn't find any better name than this? -_-
A bit of boilerplate ngl but pretty good nonetheless
I can't follow this as I don't know react
this is my first time crying over coding
A COUNTER?? Really?? A counter?!
That sound of a mechanical keyboard… hmmmm….
Nice although it's counterintuitive to build a website with Rust. Way too complicated for something as simple as a counter. Svelte does this in like 5 lines
Yeah, but Rust, though..
Obviously, a true production app in Yew wouldn't be a simple counter...
do what now to the like button?
rember life is short, so spend it wisely
I AM BROKE SO I CANT AFFORD IT MY PARENTS WILL NEVER ALLOW (TT)
Rust is clearly not meant to ever be used for web apps but this is cool nonetheless
But why would you build a web app in Rust, when the ecosystem is undeveloped and JS/TS is mature? I really don't see an incentive to compile to WASM for the world's fastest cookie clicker app.
Performance, Backend compatibility, fun
This vid would be much better if you had the code prepared so you could concentrate on explaining it.
Your explanation isn't very good because you're thinking only at the code level, with no wider view.
Watching people type is like watching paint dry...
Always the same st*pid counter app 🤦😪
How's the situation in Ukraine?
it s fine
Oh man please don't make the channel shity. Don't do the mistake other youtubers do. I come from a multiple years of web dev background and I know the library/framework/what so ever shiet. Actix, tokio etc yeah i think they offer something but in general my opinion is to keep your channel as vanilla as you can. Teach rust. Not rust frameworks. Just a suggestion. Keep up the nice work.
no
can you do a video on your vs code setup
Nix users: Use this command to serve:
nix-shell -p trunk --run "trunk serve"
websockets :) we want websockets
message broker :) we want message broker
postgres :) we want postgres
:)
Exellent! That all works! Just one point that _ctx should be private for me. But it still works.