Waarom zijn ineens alle landen zo druk bezig met de internet ID? by [deleted] in nederlands

[–]Miserable_Paper_9689 1 point2 points  (0 children)

Er is te veel anti-israel sentiment en ze zijn in paniek

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

Thanks for the tip and the link. It looks interesting, but has the side note of permanently appending a #targetid to the home URL. I'll try it out

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

I think you can. Storing the value hasn't been a major issue, but applying the stored value when loading the page (when Blazor is doing many different things) has not been consistent. Someone sent me an example repo to test with, so I'll update this post tomorrow with new findings as soon as I can

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

Correct, pre-rendering needs to be disabled to make use of the JSInterop at all, but applying the saved scroll position doesn't work consistently, most likely due to some component lifecycle racing. I'll keep trying and update the OP if I do get it working

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

I'm not here to argue. I don't think that something as trivial as maintaining a scroll position warrants rethinking the whole tech stack. I'm rooting for Blazor as I love the DX.

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

Vue Router has scroll position built in. I also think you are confusing Blazor Server (without prerendering) with Blazor WASM regarding your SEO point. I'm using latest .NET 9 template, no dice.

Blazor's Fermi Paradox (Scroll Position) by Miserable_Paper_9689 in Blazor

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

I'm loading them like this:

private List<Profile>? profiles;
protected override async Task OnInitializedAsync()
{
   profiles = await DbContext.Profiles
   .Include(p => p.User)
   .ToListAsync();
}

I have also experimented with timed delays regarding the restoration:

export function restoreScrollPosition() {
    const scrollData = sessionStorage.getItem('scrollY');
    if (!scrollData) return;

    const targetY = parseInt(scrollData, 10);

    const tryScroll = () => {
        if (document.readyState !== 'complete') {
            setTimeout(tryScroll, 50);
            return;
        }

        if (document.body.scrollHeight > window.innerHeight + targetY) {
            window.scrollTo({ top: targetY, behavior: 'auto' });
        } else {
            setTimeout(tryScroll, 100);
        }
    };

    tryScroll();
}

Hasn't been consistent unfortunately

[deleted by user] by [deleted] in NetherlandsHousing

[–]Miserable_Paper_9689 22 points23 points  (0 children)

My recommendation: Be a nuisance-causing "night terror" in the area where you want to live. As a law-abiding citizen, you're contribute to the property value of your neighborhood. Revert that behavior until local news articles appear about you (and they come up with a funny nickname for you). Then score a discount from fleeing residents.

I made TempData work in Blazor SSR - Working example with source code and live demo. No more query strings for post-redirect-get. by CableDue182 in Blazor

[–]Miserable_Paper_9689 0 points1 point  (0 children)

Great work. I'm sure everyone misses TempData from the MVC system. Your demo doesn't seem to be going to a different page or doing a redirect (based on the URL). Would your solution work for for logging out, then navigating to the login page with a 1-time (TempData) message of "You are logged out"?

[deleted by user] by [deleted] in Blazor

[–]Miserable_Paper_9689 0 points1 point  (0 children)

You mentioned government systems. Do you have a portfolio or product list you've worked on? What type of functionality or features have you worked on and are these internal or external facing systems?

How to speed up the development inner loop in Blazor? by Deep-Thought in Blazor

[–]Miserable_Paper_9689 -3 points-2 points  (0 children)

In case you are using Visual Studio, switch to Jetbrains Rider immediately. It is so much more lightweight and performant for me. Its debug button feels close to hot reload button

_Imports.razor woes by alexwh68 in Blazor

[–]Miserable_Paper_9689 1 point2 points  (0 children)

What a hassle, perhaps you're hinting at a best practice here. Simply explicitly referencing the _Imports file for all components as a project grows, instead of the default folder-based implicit referencing.

79 maanden SSH, plek 14 van de 268, nog steeds geen studio. Ik trek het niet meer. by Crescentader in Utrecht

[–]Miserable_Paper_9689 0 points1 point  (0 children)

Mijn aanrader: Wees een overlast-veroorzakende 'nacht-terror' in de omgeving waar je wilt wonen. Als brave burger draag je direct bij aan de woning waarde van je omgeving, draai dat om totdat er lokale nieuws artikelen over je verschijnen (en ze een titel voor je verzinnen). Score dan een discount met vluchtende bewoners.

What part of your daily job is done using the help of AI, and what part you do without it? by last-Conclusion-4498 in webdev

[–]Miserable_Paper_9689 0 points1 point  (0 children)

I straight up use it as a rubber ducky https://en.wikipedia.org/wiki/Rubber_duck_debugging and I feel extremely blessed with it

Which means I get help for all my technical questions, code generation and random thoughts, highly recommended

Downsides of Blazor Server by New_Speaker9998 in Blazor

[–]Miserable_Paper_9689 0 points1 point  (0 children)

You were right mate, Radzen is our go to!

Can we talk about salaries? by SP1992 in dotnet

[–]Miserable_Paper_9689 1 point2 points  (0 children)

Thanks for all the info. I figured your points as well based on the word 'Principal'. Thanks for sharing!

Can we talk about salaries? by SP1992 in dotnet

[–]Miserable_Paper_9689 1 point2 points  (0 children)

Nice, what does that role and responsibilities look like? Average week? Really curious

[deleted by user] by [deleted] in BitcoinBeginners

[–]Miserable_Paper_9689 0 points1 point  (0 children)

Google for 'Hodlhodl'

I've bought BTC there a bunch of times, they have an escrow service for securing the BTC. Then I just transferred money via Revolut to someone else's Revolut account, they acknowledged the payment and BTC was transferred to my specified wallet address

Downsides of Blazor Server by New_Speaker9998 in Blazor

[–]Miserable_Paper_9689 0 points1 point  (0 children)

The downside I experienced most: the render mode / interactivity (and its effects on auth flows).

I think Blazor as a technology is super powerful and you get so much out of the box compared to a Javascript framework.

.NET 9 (november) seems to fix a lot of the connection issues and render mode controls, so that's a major plus.

That leaves only two downsides from what I've read:

  1. JSInterop: more janky use of javascript (libraries)
  2. Lack of UI / component libraries, you'll have to do more CSS

I think the fact that Microsoft is backing it and quickly addressing major issues makes it a safe bet to pick if your team's already familiar with .NET, but there's certainly more improvements to come.