Rudi Visser
banner
rudi.dev
Rudi Visser
@rudi.dev
Developer in disguise.

🐾 Husky daddy, Husband, .NET / Svelte(Kit) Advocate.

CEO @divergent.group. Building @divergent.cloud.

#dotnet #aspnetcore #svelte
Yep, this seems about right for a SQL Migration name. Thanks @drizzle.team
December 15, 2024 at 8:22 PM
Another banger from Advent of @svelte.dev, whilst this was possible before having it built in to the framework and avoiding in-app bindings for these things is a big win.

This is just proving that small, incremental changes can make a huge difference to UX.
December 11, 2024 at 5:27 PM
Advent of @svelte.dev Day 9 now gives us proper links to errors in the svelte documentation.

Demo: svelte.dev/playground/8...
December 9, 2024 at 8:15 PM
Advent of @svelte.dev Day 8 is a good one!
December 8, 2024 at 5:50 PM
I'm not sure if I should be proud or not?

But fact: The Lonely Island is the best coding music #provemewrong
December 4, 2024 at 4:29 PM
It's #AdventOfCode Day4 in C# and after a very long day, I'm not happy with the code. But it works :shipit:
December 4, 2024 at 4:03 PM
Sorry for being in the way of the snipe 🤡

I assume you're not talking about this?
December 3, 2024 at 6:02 PM
So as an ex-Jaguar fan, this insane rebrand has my attention.

This design is straight out of Gotham and I'm all for that.

Until it breaks down. Maybe the pink one came to jump start the blue one.
December 3, 2024 at 4:40 PM
So @xpaw.me also used Span (yay!) for #AdventOfCode Day3 but he had less code, less allocations and better perf even using StringValues.

Can't be having that can we? Here's a refined version.
December 3, 2024 at 2:57 PM
It's #AdventOfCode Day3, but everyone was using Regex. Boring. Why not look at the Memory in C#?
December 3, 2024 at 10:31 AM
It's #AdventOfCode Day2, which is still for people who abuse LINQ in C#. I was hoping for something different today.
December 2, 2024 at 8:55 AM
Here's the Svelte version I just hacked together from @emilyliu.me's gist. Image for your post above.



gist.github.com/rudiv/246afc...
December 1, 2024 at 6:06 PM
I'm not sure why it thinks I'm a dad joke code comedian. Obviously need to talk more about Svelte!

blueskyroast.com/roast/rudi.dev
December 1, 2024 at 1:39 PM
It's #AdventOfCode Day1, but for people that abuse LINQ in C#.
December 1, 2024 at 9:53 AM
That's definitely true in certain cases, but in this instance it's obvious that it would be an int. It's up to the developer to make the best judgement like with anything else. Repeating types is rarely necessary.

Anyway I thought you were saying that var was dynamic typing which it's not 😀
November 30, 2024 at 9:01 AM
I know these benchmarks are to be ignored in the real world, but submitted Reaper's latest version with .NET 9. appmpower (which is just middleware) should also see a gain from the AOT improvements.
November 29, 2024 at 7:55 AM
I've posted a bit about .NET 9 being a lil buggy which it is, but that's not really fair as it's also very impressive.

Here's my benchmarker for web frameworks (Carter, FastEndpoints, MVC Controllers, Minimal APIS, Reaper) between .NET 8 and .NET 9.

#dotnet #aspnetcore #aspnet #performance #net9
November 28, 2024 at 9:15 PM
So FastEndpoints literally _is_ Minimal APIs, it's just a huge wrapper around it for convenience.

Here's a rough minimal version of it (no Request) that I like to call LightEndpoints (just made that up ofc). For a Request obj too, you could just extend IEndpoint.

It's still quite minimal.
November 28, 2024 at 7:24 PM
Forge for .NET Aspire is now out in preview to fix your dotnet watch woes 🥳

Install it as a dotnet tool, then run forge fire from your solution or AppHost project directory. We've been using it for a week now without incident, but issues are welcome!
github.com/rudiv/forge

#csharp #aspire #dotnet
November 28, 2024 at 3:18 PM
I like it! Obviously I'm playing devil's advocate here, but what if it grows further - do we introduce a switch to make it cleaner? 😉
November 27, 2024 at 8:28 PM
C# says you can, but should you? Pt. 2.
November 27, 2024 at 8:34 AM
This is better?

(Note: The syntax highlighting is the same)
November 27, 2024 at 8:11 AM
Windsurf is very unhappy right now (but still amazing for @svelte.dev even without the chat thing).

@windsurfai.bsky.social
November 25, 2024 at 9:18 PM
...
- Provide secure defaults for our apps, and retry policies etc
- Add new, usable, wired up resources in 3 lines of code across 2 projects

I get your point, if something's working for you then it may not be worth the migration. I think a lot of C# devs like to stay in C# though (think Blazor).
November 25, 2024 at 3:15 PM
C# says you can, but should you?
November 24, 2024 at 3:40 PM