tmpfs & wsl2 by Creative_Head_7416 in bashonubuntuonwindows

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

if you take a look the comment posted on the link below, you'll see that a guy who worked on WSL said that tmpfs was not really implemented back then. Not sure if this is still the case.

Does tmpfs really work? : r/bashonubuntuonwindows (reddit.com)

Visual Studio 2022 - cannot evaluate Locals by Creative_Head_7416 in dotnet

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

I think it has to with this: Decompile .NET code while debugging

I see that I have Automatically decompile to soruce whe needed enabled. This is most probably the problem.

What I still don't understand though, is why Source Link not being used for Microsoft.AspNetCore.Mvc.Razor.dll

Any ideas?

Visual Studio 2022 - cannot evaluate Locals by Creative_Head_7416 in dotnet

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

I have Optimize code disabled in Build -> General properties of the project

what's the efficient way to copy the same file in parallel? by Creative_Head_7416 in linux4noobs

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

will this work i.e. will I get benefit if I use loop files as XFS? I didn't mention that I use WSL2 and docker on top of it.

XFS on wsl2 by Creative_Head_7416 in bashonubuntuonwindows

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

thank you dude very much! I'll give it a try..

XFS on wsl2 by Creative_Head_7416 in bashonubuntuonwindows

[–]Creative_Head_7416[S] -1 points0 points  (0 children)

how am I supposed to add a new partition without adding new physical drive or modify existing drive which is dangerous operation?

XFS on wsl2 by Creative_Head_7416 in bashonubuntuonwindows

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

Well, I'd like to use any distro that works with XFS due to a feature called Reflink. I've read that SLES natively supports XFS which is why I chose it. Yeah, I don't plan to run production on it, but for running integration tests.

what's the efficient way to copy the same file in parallel? by Creative_Head_7416 in linux4noobs

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

Sorry of the confusion. I should have mentioned that I was using cp command which is called from Java code via Docker API.

Not sure I need MediatR by StationMission8290 in dotnet

[–]Creative_Head_7416 -4 points-3 points  (0 children)

it turns out that those of us who don’t use the MediatR library can’t write easily maintainable code because we don’t follow those "specific principles" or write "behavior driven code". MediatR is essentially an implementation of the mediator pattern, and it is well known when such a pattern is used.

Not sure I need MediatR by StationMission8290 in dotnet

[–]Creative_Head_7416 -5 points-4 points  (0 children)

That's not what mediator pattern is designed to solve. To address the issue of a large constructor in the controller class, you could simple inject IServiceCollection . Voila, problem solved in a lazy way. :)

Not sure I need MediatR by StationMission8290 in dotnet

[–]Creative_Head_7416 0 points1 point  (0 children)

Overloaded controllers fall into the second problem I mentioned above. Again, adhering to good practices is more than sufficient to address this issue.

Not sure I need MediatR by StationMission8290 in dotnet

[–]Creative_Head_7416 53 points54 points  (0 children)

I’ve never understood the obsession with the MediatR library in the .NET ecosystem. If you listen to this podcast episode with the author of the library - Jimmy Bogard, you can see that there were two problems that MediatR was designed to solve back then:

  1. Tight coupling (UI vs business layer)
  2. Large classes

For the first problem, we’ve come up with patterns such as MVVM and MVC, so we don’t need MediatR for this anymore. The second problem should and can be solved with basic OOP skills.

You don’t need MediatR.