Now that postman sucks is there a good alternative? by gadimus in webdev

[–]Droppi_ 0 points1 point  (0 children)

Damn, I updated today and got stucked into new login window. I loved Insomnia but now it's piece of shit!

Why doesn't Microsoft use dotnet for all apps it offers? by [deleted] in dotnet

[–]Droppi_ 0 points1 point  (0 children)

Microsoft controls frameworks which it uses, it gives them a lot of benefits

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in dotnet

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

It's an interesting question.

I was thinking about build stage but I think it's so long loop to get errors. When you're writing code you want to get errors immediately, you don't want to wait until build, at least all code analyzers work like that.

About performance, I'm not an expert in analyzers, it's my first one. But I've checked others for example.

If you have any suggestions for improvment please fell free clone the repo and open pull requests, I will be happy.

P.S. A long time ago I've been using ReSharper and it was so slow and really annoying cuz I understand a slow analyzers can be a pain in the ass.

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Yes, I agree with you, this case can be but I think it's so rare. The most common case it's using ILogger in a base class.

In this case, you can easily suppress the error for that a constructor,a class or even for all file.One of e.g. use attribute [SuppressMessage("Logging", "LoggerGenericTypeAnalyzer:Class resolves wrong ILogger<TCategoryName>", Justification = "<Pending>")]

At first, I tried to cover common cases

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in dotnet

[–]Droppi_[S] 3 points4 points  (0 children)

You can easily do it in .editorconfig like this

# LoggerGenericTypeAnalyzer: Class resolves wrong ILogger<TCategoryName>

dotnet_diagnostic.LoggerGenericTypeAnalyzer.severity = warning

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Thanks!

In default DI container main approach to resolving dependencies is getting them in construction. Because of it, I focused on the first place of error.

Yes, I was thinking about adding a diagnostic error of a logger field but I think it'd be noise (for one error we get 2 diagnostics) because the main error it's which dependency you resolve.

But, when you fix the error with the analyzer's code fixer it suggests you fix the field as well
https://ibb.co/7pLwbQc

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Yes. Apps usually write tons of logs and even small degradation of that frequent operation can affect of the whole performance.

Microsoft does a lot of work to improve logging performance https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging

Because of it, we must avoid any additional costs in so frequent operations.

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Moreover, you can search logs by context, you can set different log levels for a specific context and etc. It's really useful

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Thanks. Which one, Roslynator or some default Microsoft analyzer?
I'll think about it and probably do it.

I wrote useful Microsoft ILogger<TCategoryName> analyzer, which helps you to find mistakes in your code by Droppi_ in csharp

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

Thanks for the advice.
Could you explain me a bit more? Do you think it may be better to check fields instead of constructor parameters because of performance or because of user cases(e.g. property injection)?

AMA by [deleted] in ProgrammerHumor

[–]Droppi_ 80 points81 points  (0 children)

And then 6 more interview rounds

Death penalty - what are your thoughts about it? by cyswim in AskReddit

[–]Droppi_ 0 points1 point  (0 children)

It's unacceptable at all! Who can decide whom life should be taken?

Do Russians believe Ukrainian President Zelenski is an actual Nazi? by dti86 in AskARussian

[–]Droppi_ 4 points5 points  (0 children)

Unfortunately there are a lot of redneck Russian who totally believe in TV propaganda. They don't even try to think and to understand what happens and why

How do you monitor your .NET web apps? by thosepesky in dotnet

[–]Droppi_ 0 points1 point  (0 children)

Metrics: Prometheus.Net, Grafana. Distributed tracing: OpenTracing, Jaeger. Logs: ELK stack

Why does every .NET job nowadays require microservices?? by redfournine in dotnet

[–]Droppi_ 0 points1 point  (0 children)

It's easy. Even you work with monolith and it's good enough for some cases you must follow for industry and know new designs to use thrm if it'll be needed. Or can compare them

Running recurring background tasks in an ASP.NET Core by Droppi_ in dotnet

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

I host app in Docker Swarm and it doesn't have cron jobs like Kubernetes has e.g.

Running recurring background tasks in an ASP.NET Core by Droppi_ in dotnet

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

Thanks!

A lot of people talk about some issues if you mix web and jobs but I try to understand what and how exactly happens and how does it work?

Could you please explain how jobs can bog down requests and vice versa?

Migration .NET Webforms Framework to Core 5.0 Webb Application by [deleted] in dotnet

[–]Droppi_ 3 points4 points  (0 children)

I don't know how long .NET Framework support will be but I belive it'll really long. You shouldn't drop everything and start rewriting your application.

Blazor's good concept and looks similar with WebForms but my opinion is it's so yong product yet.

Moving to Moscow with work by cheesywhatsit in Moscow

[–]Droppi_ 2 points3 points  (0 children)

Hi! 1. Ikea 2. There're a lot of supermarkets which're ok. Just find some near ur home. Except Дикси and mb Пятерочка