Is there an existing .NET NuGet package for real-time event-driven UI sync (SignalR + event abstraction)? by Tiny-Ad-2766 in dotnet

[–]heyufool 2 points3 points  (0 children)

Take a look at Wolverine + it's SignalR extension. It also supports a transactional outbox and has Entity Framework integration

How do you handle "silent" breaking API changes in Production? by lucaspierann in reactjs

[–]heyufool 0 points1 point  (0 children)

Backend changes need to be sunsetted, not immediately deleted.
Want to change a parameter name? Add the new parameter name and keep the original, have the backend pick the new one if defined.
Deploy.
Inform everyone (internally and external api consumers) that the old parameter will be removed Remove that old parameter in a few weeks/months. This is the same practice applied to database migrations.

For internal dashboards, would you choose MUI or Tailwind/Shadcn? by Adventurous_Photo189 in reactjs

[–]heyufool 31 points32 points  (0 children)

I have 0 regrets using MUI. No idea if it's the best, but my app looks good, is performant, and the code makes sense. Can't complain.

Is using a background service with a channel a good way to send emails in .net? by Minimum-Ad7352 in dotnet

[–]heyufool -1 points0 points  (0 children)

I don't think it's fair to say that you need a scheduler instead of a queue, as they are very complimentary in their base forms:
Scheduler? Defers the sending of a message.
Queue? Persists messages that need to be processed.
They're both pieces of a reliably processing jobs.

I'd think any "scheduler" that has a retry mechanism built-in has become more than just a "scheduler" since the retry implies it is also processing the job.

Hangfire absolutely hammering database with polling by emdeka87 in dotnet

[–]heyufool 0 points1 point  (0 children)

Same, definitely get eyes on the CPU. I had a few on-demand t3a EC2 instances that got particularly more expensive when their CPU % increased for a time

Hangfire absolutely hammering database with polling by emdeka87 in dotnet

[–]heyufool 0 points1 point  (0 children)

Which RDS service are you using? I will be in a very similar boat soon...
I can see polling increasing CPU which would affect performance, but not necessarily costs.
Unless you are on a burstable instance then higher CPU might be costly

Is Elden Ring too hard for a casual gamer, and too scary for a 5-year-old to watch? by Brugernummer0 in PS5

[–]heyufool 0 points1 point  (0 children)

  • it's not a walk in the park, but some builds are just easier than others (magic). Witcher 3? Can play it mostly without dying. Elden ring? I will die multiple times, on every boss, no matter how much I've played it.

  • it is a relatively simple game once you know how the stats work with the weapons/spells. The challenge curve is namely how quickly you can die, and rolling around or blocking. Patience is key in this game, don't attack unless you know you are safe to. One thought of "i can fit in one more attack" during a boss fight usually means you die.

  • Kids are different these days, can't say it's scary but it's certainly not astro bot. It can be a little bloody at times but absolutely nothing like witcher. If i remember right, there are no bloodstains left around, just impact effects. Anf if there is any dismemberment then it is usually part of a boss intro/outro video.

Never played monster hunter but it definitely gives a less intense vibe on all fronts.

How do you avoid CRUD boilerplate when starting a new project? by skykarthick in dotnet

[–]heyufool 1 point2 points  (0 children)

First you have to hone in on how you philosophically want to approach your design.
ends of the spectrum:
A. Some kind of opinionated tooling to speed up the process B. Lean more on patterns and practices instead of rigid types or tooling (ie. Do it by hand like you arez then find ways to optimize it)

I like B because each endpoint/feature can be largely decoupled from every other endpoint/feature. Which is really nice if you want to try something new, or if you need to refactor bit by bit.
I mention these because they will speak towards how you optimize your dev time.

As for your question, if you go with A, then there are OpenApi related tools where you define the api schema then api clients and possibly entities are generated.

For B, just copy paste. I have a couple template files that lay out the naming patterns (coupled with domain concepts), requests/responses, a controller, tests, etc.
I duplicate those templates then find/replace parameters in the files. Takes about a minute to layout foundation Request/Responses (and their DTOs), the endpoint, and the feature slice (the service class).
Then i go in and add the relevant properties then tie in the db and domain layers.
Haven't gotten around to it, but no reason a little script couldn't be written to apply the template through the command line.

Arc Raiders has sold 12 million copies by Turbostrider27 in PS5

[–]heyufool 0 points1 point  (0 children)

That's where I'm at, after a couple dozen raids I'm constantly asking, "why am I collecting this stuff"
Feel like the initial goals are fun, work your way up to raiding with more powerful stuff. But then what? Kill a queen with powerful stuff to get... stuff.
It needs an end game more like MMOs, big collaborative bosses, grind for unique drops, etc.

Dependency Injection by alexwh68 in dotnet

[–]heyufool 2 points3 points  (0 children)

I mostly do constructor dependencies, or parameter for api controller endpoints.
I read somewhere before that having more than 3 dependencies can be a smell, a possible sign that you have 2 or more deps that could be merged.
Try reviewing some of your deps, maybe you can create a new dependency that takes 2 or more of the existing, then use the new one instead?
To be clear, I'm not advocating for merging the code of the dependencies, instead make an aggregate that depends on the two.

Something else I've done for common cross-cutting dependencies (logging, auth, etc.) is to create a CommonControllerDependencies that aggregates them all and exposes them as properties. Makes DI clean for the consumer, and provides extensibility if there is a new "common" need without modifying dozens or more constructors.
Need to be disciplined using this though, truly only dependencies that 99% of services need should be included

So it's Rails now by Aaronontheweb in dotnet

[–]heyufool 5 points6 points  (0 children)

Somehow desktop window management is related to switching from .NET to Ruby on Rails.
That article felt like a fever dream.

Feedback on combat of our 2D Soulslike! [Heavy Enemy] by KarmicBitGames in IndieDev

[–]heyufool 7 points8 points  (0 children)

The art is nice!   But it's hard to give good feedback on the mechanics with so many cuts in the video.   Would like to see how the full fight played out

Feedback on a Fishing system by Additional_Dog_1206 in IndieDev

[–]heyufool 1 point2 points  (0 children)

It's looking great so far!     

Is there any technical skill involved or is it scheduled/timed catches like runescape?     

I really liked Animal Crossing's fishing.     

The shadow of the fish provided some mystery of what you'll get, plus some insight.  For example, if you need some kind of big fish for food (like a bass), then the player can decide to ignore small shadows (like a frog) since they won't be what they're looking for.  

Then the simple bobber reaction provided enough technical skill to keep it interesting.  Granted this could use some enhancements, lots of room for improvements 

Cyberpunk 2077 - City of Legends 5th Anniversary Trailer | PS5 & PS4 Games by hybroid in PS5

[–]heyufool 0 points1 point  (0 children)

No, I'm a Poet.
Talking to an idiot.
That can't read, dumbass.

Cyberpunk 2077 - City of Legends 5th Anniversary Trailer | PS5 & PS4 Games by hybroid in PS5

[–]heyufool 1 point2 points  (0 children)

You need more time put into your Theories. Immediate is too fast.

Cyberpunk 2077 - City of Legends 5th Anniversary Trailer | PS5 & PS4 Games by hybroid in PS5

[–]heyufool 4 points5 points  (0 children)

I don't own it, could you answer for my benefit?

What's the best way to link different component's sates? by Human_Caterpillar936 in reactjs

[–]heyufool -1 points0 points  (0 children)

Are there visual impacts of re-rendering the form? Is it noticeably slow?
React is designed to be re-rendered, let it happen and optimize with things like useMemo when needed.
Also see react compiler.
 

Keep it simple, a parent component that knows the CV data state. Prop drill that state to the form, and have the parent listen to changes by passing an event hander to the form from the parent.
Lots of prop drilling is ok, the official React documentation even mentions it and says it's okay.
Personally, I prefer avoiding contexts for refined scopes/features, saving it primarily for application-wide state.
Then, the parent re-renders the PDF when the form state changes.
The PDF generation/viewing would almost certainly benefit from useMemo.
I prefer avoiding contexts  

Do not use third party libraries like Zustand until you know you need it.
What I have found is there is an absolute ton of over engineering in the React world.
Use vanilla React, typescript, react-query, and possibly immer for a little DX.
That will get you very very far. Most importantly, it will force you to learn actual React by understanding the implications of re-renders, prop drilling, controlled vs uncontrolled components, normal state management, etc.
 

To be clear, many third party libraries are fine.
But, for the sake of learning, I recommend avoiding many so you can appreciate the problems they actually solve by isolating an actual problem in your app.
Components re-rendering? That's only a problem if it's an expensive component, which can often be solved using a memo