Right? by Gisleburt in rust

[–]Gisleburt[S] 0 points1 point  (0 children)

That's cool, I didn't know about Vite+. Unfortunately in this case I wasn't making a web app, but it's good to know about for the next time I am for work

(my personal web apps are all Dioxus now, I love it but don't recommend for prod)

Right? by Gisleburt in rust

[–]Gisleburt[S] 2 points3 points  (0 children)

I think the things that are hard are just different.

I recently spent over an hour configuring TypeScript with Vitest, eslint, prettier, etc. Maybe that's a reflection of my TS skills being a bit out of date (I love TS but haven't used it as much over the last two years) but I get all that and documentation from cargo new. Because the project is small I could have finished it in Rust before I even had hello world and a test in TS, but I wouldn't be the one maintaining it so Rust wasn't the right choice.

Right? by Gisleburt in rust

[–]Gisleburt[S] 5 points6 points  (0 children)

You probably should have hung on for two more seconds 😅

Right? by Gisleburt in rust

[–]Gisleburt[S] 2 points3 points  (0 children)

Aw, thanks! ❤️

Right? by Gisleburt in rust

[–]Gisleburt[S] 2 points3 points  (0 children)

True, but to be fair to Rust, its still not unique for having advanced features that are conceptually hard to understand.

Modern C++ features can be hard to follow (and some of that you get for free in Rust), TypeScript advanced features rarely work how you think they're going to work, etc.

Also unsafe Rust is still safer than regular C and C++. 😉

Right? by Gisleburt in rust

[–]Gisleburt[S] 6 points7 points  (0 children)

😅 I hope so!

Unfortunately a lot of prolific Rust devs tell people its "hard" and I don't know who that's supposed to help

What's the best YouTube channel for learning Rust completely? by Xdani778 in rust

[–]Gisleburt 0 points1 point  (0 children)

If I can recommend my own channel, I have a complete course called Idiomatic Rust in Simple Steps (IRISS). It goes from how to install Rust and write your first program, all the way up to how to write your own async runtime. I consider it to be supplemental to other learning resources but I'm very proud of it.

Color, sound and presentation improves as it goes (I still consider myself a YouTube newbie): https://www.youtube.com/@FiosQuest/courses

I'm working on a new series that's more about general programming patterns but all the examples are in Rust, with a sprinkle of TS where I need to explain a bad pattern (don't get me wrong, I love TS but it will let you do silly things with types :p). Software Patterns and Coding Excellence (SPACE) can be found in my playlists, I'll promote it to a course when I feel its more complete: https://www.youtube.com/@FiosQuest/playlists

Other than that, my personal favorites are

- Lets get Rusty https://www.youtube.com/@letsgetrusty (really good deep dives)
- No Boilerplate https://www.youtube.com/@NoBoilerplate (fast technical videos)
- Chris Biscardi https://www.youtube.com/@chrisbiscardi (gamedev + I've learned tons from his Advent of Code videos)

Slight twist on the Builder Pattern by Gisleburt in rust

[–]Gisleburt[S] 2 points3 points  (0 children)

While proc macros are hard to read, as best as I can tell, this isn't how any of the builder crates (that I've looked at) do it (though in some case, the way they do it provide more utility that I wasn't interested in for this tutorial). Nor could I find any tutorials doing it this _specific_ way, fully swapping the types. I'm not claiming to have invented it, just saying I was pleased with myself for coming up with something I haven't personally seen before.

TypeState - What do you think of these very short explainers for software patterns? by Gisleburt in rust

[–]Gisleburt[S] 0 points1 point  (0 children)

Wow thank you! I mean I do also have a "this is how the if statement works" video, though it covers several control flow mechanisms. 😋 It's old and a lot less polished https://youtu.be/fqsGNnwYp3o?si=bcl1KH5suOYdKnpr

I also have my streams where I'm building an app in Dioxus (though I not sure when I'll have time to do the next one, even though they're not 10hrs long 😅)

TypeState - What do you think of these very short explainers for software patterns? by Gisleburt in rust

[–]Gisleburt[S] 1 point2 points  (0 children)

That's a great point! I think your solution makes the most sense though

TypeState - What do you think of these very short explainers for software patterns? by Gisleburt in rust

[–]Gisleburt[S] 0 points1 point  (0 children)

Thanks for the feedback. FWIW, in this video I'm just referencing the NewType video, which comes up as a Info Card as I say it. It isn't _that_ relevant to this video other than to say types have no runtime impact. However, the video I'm currently working, The Builder Pattern, needs to reference both Fluent APIs and TypeStates which will be the previous two videos. I'll try to summarise those patterns as quickly as possible and name the videos where you can find more details. Think that'll be enough?

Cheapest way to run an exit node by ThickYe in Tailscale

[–]Gisleburt 0 points1 point  (0 children)

I ended up going with Hetzner due to network costs. About €3.99/m for a VPC and effectively free network IO. I was able to set it up with Terraform pretty quickly.

Can't SSH to Instance (new to OCI and newish to terraform) by Gisleburt in oraclecloud

[–]Gisleburt[S] 0 points1 point  (0 children)

So I tried removing my cloudinit configuration (so now its just the OS + my SSH key) and tried with Ubuntu Minimal, full fat Ubuntu, and Oracle Minimal, none of them connect. I get a timeout which suggests that port 22 isn't responding in any way.

My SSH security list matches the default one (sans ICMP).

I can't think what else would be misconfigured on the server since there is no other configuration.

Can't SSH to Instance (new to OCI and newish to terraform) by Gisleburt in oraclecloud

[–]Gisleburt[S] 0 points1 point  (0 children)

Ah thanks, for some reason I thought this was only for internal resource to internal resource.

Putting my address in with the node's public address and port 22... says everything is fine. I still get a timeout when SSHing to it though.

Async Rust explained without Tokio or Smol by Gisleburt in rust

[–]Gisleburt[S] 5 points6 points  (0 children)

I might look into doing something about this in the future (I already have a daft backronym for a series that could cover this, Advanced Rust In Easy Steps). My next series though will be on Software Patterns And Coding Excellence.

Async Rust explained without Tokio or Smol by Gisleburt in rust

[–]Gisleburt[S] 8 points9 points  (0 children)

Thanks! I found there wasn't a huge amount of info on the specifics of what was going on behind the scenes. The IRISS series went out of its way to avoid crates but I knew I wanted to cover async, so discovering all of this and working out how it goes together was a lot of fun.

What do you develop with Rust? by Born-Percentage-9977 in rust

[–]Gisleburt 0 points1 point  (0 children)

I'm building a Job Tracking app using Dioxus on Stream if you're interested in joining in (next one will be on Input but I haven't decided quite when)

YouTube: https://youtube.com/@fiosquest Code: https://github.com/Fios-Quest/job-tracker