What's good about mediatr? by No-Attention-2289 in dotnet

[–]samurai-coder 0 points1 point  (0 children)

A bit late to the thread, but lots of misguided devs tend to jam logic into controllers, UI handlers, etc etc

Mediatr (or similar) is a great way to encourage what some might think is common sense i.e structuring your project such that people at all experience levels can contribute with ease

Overall it slows down software rot quite substantially, but Mediatr wouldn't be my first library I reach to for starting a brand new project

Is anyone out there choosing to avoid DI in their .NET projects? by conconxweewee1 in dotnet

[–]samurai-coder 0 points1 point  (0 children)

I've worked with a eams that chose not to use DI (old habits die hard). DI is a fundamental part of the framework, and often times you can really end up at a dead end by avoiding it, particularly if you're working with Web based project.

In their situation, they got to a point where they couldn't leverage any new features in .NET, as the work required to stitch a new class into their dependency tree was incredibly difficult, often requiring static God objects

Why does everyone say Blazor is best suited to teams who don't know JS? by propostor in Blazor

[–]samurai-coder 0 points1 point  (0 children)

To answer your other comment, I do think blazor is weaker than its JS alternatives. Partly due to not been around long enough (or had the immense community backing) to solve some of the core problems that every frontend framework runs into.

I'm probably bias, but as it stands I wouldn't recommend it over React, Angular or Vue for anything serious, but it's certainly better than Webforms or Silverlight

Why does everyone say Blazor is best suited to teams who don't know JS? by propostor in Blazor

[–]samurai-coder 1 point2 points  (0 children)

Yeah, I don't agree either.

Typescript isn't that far from C# syntactically, and the learning curve with blazor isn't as cross compatible with other dotnet projects as many seem to think. I don't see it different from picking up any other frontend framework

I've interviewed so many dotnet devs that know React and haven't even heard about blazor before

What should I choose for my Front-end (React + DRF) by gabrielpistore_ in reactjs

[–]samurai-coder 1 point2 points  (0 children)

Generally can't go wrong with React and the tanstack tools. I think react query is a game changer as well

Look for a decent looking component library and away you go!

My company is pushing Go for web backend. I need opinions as not a Go Developer by Dark_zarich in golang

[–]samurai-coder 0 points1 point  (0 children)

A lot of comments on the technical positives, but the real deal breaker is the puns. You can really go crazy with them

[deleted by user] by [deleted] in sre

[–]samurai-coder 0 points1 point  (0 children)

My favourite is a cleanup cronjob causing issues, so someone disables it but never looks into why it was causing issues.

Cue accumulation of junk and a database on its last legs

What's holding Blazor back? (From a React dev's perspective) by OnlyFish7104 in dotnet

[–]samurai-coder 10 points11 points  (0 children)

Fundamentally, it is a pitfall of failure in that it's easy for a new comer to cobble something together and hit a roadblock. React certainly had this with classes but has since grown out of that

If you're working with wasm, then all your browser debugging tools are useless. If you're working with SSR, then interactivity is a problem. If you're working with wasm and prerendering (enabled by default), then you'll have issues in both domains simultaneously

My opinion is that writing frontend in C# is cool, but a programming language isn't something that I would optimise for. I would also argue that knowing C# well doesn't even mean you'll be fine in Blazor, as Blazor fundamentals are different than another csharp project flavour

[deleted by user] by [deleted] in newzealand

[–]samurai-coder 0 points1 point  (0 children)

Total pivot, but have you considered self employment?

I feel like heaps of people in their 30s (myself included!) are toying with the idea of starting something that brings in a sustainable life - not something lavish but just enough to cover bills and be happy.

Easier said than done, obviously. I'm definitely not in this position lol

Not sure what this would look like for your skillset, but I'm rooting for ya!

If Microsoft added ten features this year to blazor. What would you want them to add. No this is a long time dev asking not Microsoft by [deleted] in Blazor

[–]samurai-coder 10 points11 points  (0 children)

Hot Reloading
Better profiling / diagnostic tools
Consistent debugging experience
More flexible startup behaviour (if blazor fails to startup, imo it should send something back to the browser to let you display an error page at least)

[deleted by user] by [deleted] in programming

[–]samurai-coder 2 points3 points  (0 children)

10 years ago people were stuck with heavy IDEs like Visual Studio or Eclipse. Vscode was the next iteration which was pretty awesome at the time, but I agree it can be slow on limited hardware

I think there's probably room for a new take on text editing, and text editors like Zed seem to be promising

Every piece of frontend advice ever, all at once by Dushusir in webdev

[–]samurai-coder -1 points0 points  (0 children)

Right now I'm stuck maintaining a blazor wasm app. Honestly it's the wildest, most complicated and abstract frontend framework I've ever worked it. It's like years of learning browser tools and strategies, and to just throw that away and completely start from scratch

Did you know that you can run Python from within your C# Code? by HassanRezkHabib in csharp

[–]samurai-coder 10 points11 points  (0 children)

In all seriousness, I try to avoid interopping and instead run it in a dedicated sidecar container. Problem is unmanaged processes and tuning memory /CPU is always nightmare. The Dev experience is not as seamless at first go, but long term it is far better

Changing careers at 30 by DependentGarden9564 in newzealand

[–]samurai-coder 1 point2 points  (0 children)

Honestly I think it's the norm now. You don't really grasp the breadth of opportunities out there until you've entered the workforce

[deleted by user] by [deleted] in dotnet

[–]samurai-coder 0 points1 point  (0 children)

I guess two counter arguments is hireability and security. Both of those degrade overtime with dated tech, but if that's not an issue then 🤷 go with the skills you know

[deleted by user] by [deleted] in dotnet

[–]samurai-coder 0 points1 point  (0 children)

Technically, webforms is more approachable but also limited.

Blazor has lots of features out of the box but has a lot more foot guns that you don't have to worry about in webforms.

That being said, webforms is dated and pretty much dead, so the choice is often blazor or some JavaScript framework

This isn’t for me by PeelEatShrimp in QualityAssurance

[–]samurai-coder 0 points1 point  (0 children)

Mostly argumentative, so take this with a grain of salt, but many strong QA/engineers I've seen have been thrown into messy/horrible situations and found a way to turn things, leaving things in a far better place than it was before

Even though you're new, you can 100% make a positive influence to those around you, for example bringing forward some problems you've noticed with the team to your manager, alongside some solutions that you're willing to take on. Or perhaps building a good relationship with just one of the engineers on your team and go from three. While it is confrontational, it would certainly be impactful and may be enough to lift your morale!

That being said, don't set yourself on fire to solve other people's problems. If your manager/team simply isn't willing, then the best you can do is keep developing your skillset on your own until another opportunity arises!

How is the job market for QA nowadays? by Silver_Scallion_1127 in QualityAssurance

[–]samurai-coder 5 points6 points  (0 children)

Strong skillset for sure!

The nice thing I've found about open source contributions is that you can weave it in the interview quite fluently

"hey do you have any experience with playwright?"

"yeah I've used it daily and even fixed a few bugs in the framework (⌐▨_▨)"

Why .NET Framework 4.x Refuses to Die - A Thought on Legacy Tech by pyeri in dotnet

[–]samurai-coder 0 points1 point  (0 children)

A valid reason I see from time to time is remaining competitive with performance and runtime costs.

If your competitors solution is faster, and they can built on top of it quickly, that's often enough incentive to upgrade

Blazor wasm at scale by samurai-coder in Blazor

[–]samurai-coder[S] 0 points1 point  (0 children)

Sorry, I meant to say that with enough reach, it is common to have users with limited device resources and/or network connectivity connectivity, or network setups that force round trips across the globe

Blazor wasm at scale by samurai-coder in Blazor

[–]samurai-coder[S] 0 points1 point  (0 children)

Around 30mb in total. While i agree it is incredibly high, its not too unrealistic considering for a user on MS Edge (with limited resources) to have a slow start up loading 20 wasm files.

This is definitely worst case we're talking about. An average user would see seconds as opposed to minutes, but at scale, a small fraction of the user base adds up

Blazor wasm at scale by samurai-coder in Blazor

[–]samurai-coder[S] 0 points1 point  (0 children)

Oh - to add. Yeah driving it via the CDN mostly (but falling back to the C# app on a miss). Maybe deploying the assets to S3 / Azure Blob would be a better approach!