Thank you very much, Jeremy. During the three episodes, I had several "aha moments!"
@lifehackspro644
2 жыл бұрын
This channel was underrated! This guy deserve more 👏
@caiofernandes3170
2 жыл бұрын
I loved the way you didn't just explore the basics, please keep posting more content (some advanced might be awesome as well)
@zawriter4783
2 жыл бұрын
Please make videos more frequently. This just amazing!!
@etopowertwon
2 жыл бұрын
Holy duck. This video is so high quality compared to other todo implementations(is it rust hello world or something? I've seen at least 3 todo apps, including this) watching it I feel like I'm kindtergartener who just learned to write and I've been coding for 10+ years.
@LongestYardstick
Жыл бұрын
Just fantastic, love your stuff -- thank you for including all reasonable tests along the way!
@clmontenegro
Жыл бұрын
Thank you Jeremy, amazing job!! I'm learning a lot from this series of videos.
@rensraks2007
Жыл бұрын
Amazing stuff Jeremy. Subscribed to this “gold mine” channel
@JeremyChone
Жыл бұрын
Thanks for the nice word! More coming soon. Btw, I am moving to the Axum Web Framework. Very well designed, completed, and maintained.
@isme364
Жыл бұрын
OMFG THIS CHANNEL IS A TREASURE TROVE FOR RUST DEVS
@NikolaiPenkov
2 жыл бұрын
Thanks, Jeremy! Very well structured demo/lesson!
@kodee2
2 жыл бұрын
Subbed! I'm learning so much about rust, coming from a node typescript background it seems great with the docs and compiler
@JasonJurotich
2 жыл бұрын
Very well explained.
@herrxerex8484
2 жыл бұрын
awesome , excited for part 2
@finzaikofin
2 жыл бұрын
Thanks, waiting next part, JWT authentication also
@JeremyChone
2 жыл бұрын
Yes, we will tackle the token authentication scheme (does not have to be JWT, but will be similar)
@ZnMgkbvprb
2 жыл бұрын
This is gold. Thanks!
@adicide9070
2 жыл бұрын
dude this is awesome. you're totally drawing me away from what I think I should be learning for work ;)
@phyohtetpaing44
Жыл бұрын
This is really awesome ,would like to request more web dev courses.
@JeremyChone
Жыл бұрын
Yes, some more are coming. Next one will be with the Axum web framework. Axum will be my Web Framework of choice.
@kuqmua755
2 жыл бұрын
Interesting. Thanks
@JonathanSundqvist
5 ай бұрын
The import functionality is pretty nice, but it seems like that is not completely out of the box. Would be nice to know where it comes from. EDIT: it can be done with quick fix, the default shortcut seems to be cmd + ., which will pull that up. On another note, would be nice to see if you're using shortcuts for future tutorials as a screen overlay.
@jp2kdev
2 жыл бұрын
Thanks.
@massimo79mmm
Жыл бұрын
awesome video! new sub!
@ino3809
2 жыл бұрын
thanks.
@hohojimmy4443
2 жыл бұрын
Awesome 👏
@sercanyildirimtugcann
Жыл бұрын
Hi Jeremy, What I want to learn is that you are writing tons of code just for that simple todo list. What about e-commerce projects? Is RUST good choice for those kind of projects? Or any tutorial for e-commerce ?
@JeremyChone
Жыл бұрын
I think Rust is great for any web backend if the dev team is familiar with Rust or willing to invest in Rust. As with Go or Java, you will have to build your e-commerce connectors and such. I am not sure if Go or Java has some open-source e-commerce library you can use, but I would assume they are more rare in the Rust ecosystem, at least for now.
@GlobalYoung7
2 жыл бұрын
thank you 👍
@jonzuka9746
Жыл бұрын
hello, thank you for this tutorial. slqb seems not ready for the latest version of slqx. Besides sqlb seems to have not much code examples in its documentation.
@JeremyChone
Жыл бұрын
Yes, I had some issues with sqlx 0.7 and timeout, so sqlb 0.3.x is “locked” to sqlx 0.6.x. I will be working on sqlb 0.4.x for sqlx 0.7.x, and nice they solve their timeout issues.
@jonzuka9746
Жыл бұрын
@@JeremyChone omg just noticed your are the author. Good job man! Thank you for helping the community!
@JeremyChone
Жыл бұрын
Thanks for the kind words. Sqlb is in early dev, but since it is a thin layer on top of sqlx, it already add some nice value. Next will be to enable join, and try to enable multiple DB as supported by sqlx.
@mohamadbt4055
Жыл бұрын
nice
@workflowinmind
2 жыл бұрын
Video en french tantôt? Merci subscribed!
@HobbySoldatDE
2 жыл бұрын
Amazing good tutorials! Thank you very much for your hard work. Can you answer which shortcut / plugin you use for adding region comments? i can't find anything about it.
@JeremyChone
2 жыл бұрын
I did a VSCode snippet for those, and then map it to a shortcut. "comment-section": { "prefix": "cc", "body": [ "// region: --- ${1:Section}", "$TM_SELECTED_TEXT", "// endregion: --- ${1:Section}" ], "description": "Section Comment" },
@vktop2
Жыл бұрын
Nice video! can I use Dapper with Rust? Thanks
@JeremyChone
Жыл бұрын
I am not familiar with Dapper. Is that a .net tech? If, yes, probably not, except if they have done a Rust version.
@jonzuka9746
Жыл бұрын
sqlb feels a little bit like an ORM
@JeremyChone
Жыл бұрын
It’s more a SQL Builder. It does some un/marshaling but much more Freeform and SQL oriented than a ORM. In the nodejs world, this would map to knex.js.
@sharkpyro93
2 жыл бұрын
still no examples with JOIN, no one does example with joins and nested structs, not even the official documentation...
@JeremyChone
2 жыл бұрын
This is definitely a fair point. It's something I need to do in the sqlb. I am not sure that SQLX cares if the sql is a join or not though.
@sharkpyro93
2 жыл бұрын
@@JeremyChone the point Is that il im used to work with more advanced orms which handle the fetch of the data with relations easily, i dont really Want to get to the point where i Need to specify Evert single field for all queries, it might sound stupid but It is what it is...and i quit using diesel because its a real pita when something does not work, you really have to Guess What is the problem with it
@JeremyChone
2 жыл бұрын
Yes, the problem with those "high-abstraction" layers is that it gets hard to understand when things go wrong and do things that do not fall in their core feature set. This is why, back in our Java days, we moved from Hibernate to SQL Builders, which has proven to be very productive over the years and in our subsequent nodes journey. Here is a big comment I wrote many years ago on the subject (on the response of an "anti-sqlbuilder" blog post in the nodejs ecosystem): medium.com/@jeremychone/first-good-article-even-if-i-differ-more-than-i-concur-58f480b1e150 The most important is to design an sound and robust approach that works for you and your team. It is not about listening to KZitemrs, or following big framework popular practices, LinkedIn-appealing tech stacks, or even company "tech evangelist" advice, but about owning your code design from the start. Inputs are great, as long as they are not hardwired to the output.
@riendlyf
2 жыл бұрын
Did you find solution? (Nested data)
@yukuchan
Жыл бұрын
I'm stuck at 2:51 when "docker run..." -> unable to find image 'postgres:14' locally
@JeremyChone
Жыл бұрын
This seems to be more of a docker issue. Typically when docker does not find it locally, it goes and fetch it.
@donghuapian
10 ай бұрын
Thanks for the tutorial. What IDE do you use in the video?
@JeremyChone
10 ай бұрын
VSCode with Google Materials theme and some custom icons.
@donghuapian
10 ай бұрын
Thank you!
@JeremyChone
10 ай бұрын
@@donghuapian btw. Make sure to checkout the Rust Axum course. I moved to Axum.
@donghuapian
10 ай бұрын
Thank you. I actually found your Axum video first. However, I'm trying to build a todo app for myself, using Axum and SQLX. I couldn't find an Axum course that covers this. Maybe I overlooked. Do you have some suggestions?
@JeremyChone
9 ай бұрын
Btw, I finally took some time to create the Rust10x VSCode Extension and a webpage with information about my VSCode setup. Everything can be found here: rust10x.com/vscode
@thebrpob
2 жыл бұрын
Hi. I just found your video and I wanted to know how you created the folding regions in 20:47 ? Thank you!
@JeremyChone
2 жыл бұрын
It’s a custom snippet with shortcut.
@gregoryking2664
2 жыл бұрын
Not sure why I was not able to reply to the current thread. Did some additional checking. It seems there is a problem with some minor version of one of the dependencies. Including the Cargo.lock file from your Github repo fixes the problem. Not sure which dependency and which version might have the problem though.
@JeremyChone
2 жыл бұрын
Hey, I just gave it a try from the repo, and actually, now I am getting this issue as well (app db already exists). Let me investigate and update the GitHub. I will ping you back here.
@JeremyChone
2 жыл бұрын
Ok, I updated GitHub, do a git pull, and run it again (updated the readme as well). It should be fixed. Something might have changed in the SQLX/DbPool side, that the connection does not get released immediately or something, which probably make sense. So, the current fix, which a little bit brute force, but ok for unit test / live dev, is to terminate all connections at the .sql before doing the drop database select pg_terminate_backend(pid) from pg_stat_activity where usename = 'app_user'; This is completely OK for unit test / live dev, since we want to force a clean slate anyway. Hope this is fixing the issue. Let me know otherwise. Thanks for reporting!
@gregoryking2664
2 жыл бұрын
@@JeremyChone Works fine now. Thanks for the fix.
@孙凌峰-w7b
2 жыл бұрын
what is your vscode extension you used , it can add use library by right mouse click. Thanks!
@JeremyChone
2 жыл бұрын
RustAnalyzer
@YouhanaSheriff
2 жыл бұрын
how to publish CLI apps/ tools that is written in Rust. so others can use it??
@JeremyChone
2 жыл бұрын
I did this video which shows how to do it ->> kzitem.info/news/bejne/p7CY3nWejaN8bKg
@dragonmax2000
Жыл бұрын
how do you create regions?
@JeremyChone
Жыл бұрын
I have a little vscode snippet
@JeremyChone
9 ай бұрын
btw, I finally took some time to create the Rust10x VSCode Extension and a webpage with information about my VSCode setup. Everything can be found here: rust10x.com/vscode
@gregoryking2664
2 жыл бұрын
Anyone have any idea, why when I ran more than 2 tests, it seems like I am getting an error because both tests are trying to access the database at the same time? For each test I am getting duplicates of todo 100 and todo 101.
@JeremyChone
2 жыл бұрын
Yes, the tests need to be executed in a single-threaded. Otherwise, because they access the same resource (i.e. Database) they "walk" on each other. cargo test -- --test-threads=1 --nocapture (no capture is to see the println! if you want to. can be omitted with tests are finalized) Now, with a little more effort in the test infrastructure/patterns, we should be able to make them multithreaded. For early dev, this is a good compromise.
@gregoryking2664
2 жыл бұрын
@@JeremyChone Thanks for the reply. I tried running cargo test with test-threads set to 1. But it appears I am still getting the same error. WARNING - pexec - Sql file 'sql/00-recreate-db.sql' FAILED cause: error returned from database: database "app_db" is being accessed by other users Still seems like the tests are trying to access the same resource at the same time. Any other idea as to what might be wrong? Thanks
@JeremyChone
2 жыл бұрын
@@gregoryking2664 Hum, that's weird, that's was the whole point of cargo test -- --test-threads=1 Make sure you do not have the application running though. Otherwise, Postgres won't allow to drop the app_db if there are another connection to it.
@gregoryking2664
2 жыл бұрын
@@JeremyChone Thanks. Currently I only have the docker terminal running and another terminal for cargo test. It seems weird that app_db isn't closed after each test.
@JeremyChone
2 жыл бұрын
@@gregoryking2664 That's weird. If the test complete or fail, connections are done. I got those type of issues when I try to do a drop database and another PSQL or sql connection is alive.
Пікірлер: 77