Muhammad Hanif

518 posts

Muhammad Hanif banner
Muhammad Hanif

Muhammad Hanif

@hanif2253

Software Engineer 👨‍💻 Content Creator ⌨️ | C#, .NET Core | Exploring Cloud

Islamabad, Pakistan Katılım Nisan 2012
249 Takip Edilen67 Takipçiler
Muhammad Hanif
Muhammad Hanif@hanif2253·
@mjovanovictech Good tips, why not create http client as global property instead of creating in every method?
English
0
0
0
66
Milan Jovanović
Milan Jovanović@mjovanovictech·
Here are 5 simple tips to best work with HttpClient: - HttpClient should be long-lived - Prefer creating one with IHttpClientFactory - Use named clients for configurability - Use typed clients for configurability + strong typing - Avoid using typed clients in Singleton services
Milan Jovanović tweet media
English
5
27
107
11.3K
Matthias Jost
Matthias Jost@jost0101·
@hanif2253 I decided to give the solution with Scaffolding Identity from VisualStudio a try. I want to use cookie authentication. So basically letting the user go to a Razor Page login before going to the actual SPA.
English
1
0
1
209
Muhammad Hanif
Muhammad Hanif@hanif2253·
@BelloneDavide Would recommend to use IDP e.g identity server, It covers allost all the scnerios
English
0
0
1
31
Davide Bellone | Code4it.dev | Microsoft MVP
Hey friends, I need some help to cover my weakest spot: Handling authentication and user content 😱 I've seen a lot of resources about how to authenticate with provider X. But... what next? How can I architect my application (from FE to DB) to handle private content?
English
3
1
4
1.9K
Weston Walker
Weston Walker@wes_walke·
Working on something new today An app to automate setting up VM servers and deployments for ASP.NET and Blazor apps Using SSH.NET library I can run bash scripts & commands to automate everything $5 hosting with no painful setup and auto deploys
Weston Walker tweet media
English
6
14
105
19.8K
Nikola Svitlica
Nikola Svitlica@TheCelavi·
@hanif2253 So, he can state his opinion, but I can not? I am not entitled to that, no freedom of speech for me? Could you elaborate why?
English
1
0
0
170
Nikola Svitlica
Nikola Svitlica@TheCelavi·
And this is what is deeply wrong with our industry - choosing tech stack "a priori" is equally ridiculous as being a doctor prescribing medicine to a patient who yet has to enter the office.
English
2
0
11
3.6K
Muhammad Hanif
Muhammad Hanif@hanif2253·
@TheCelavi Yes, did he ask you to choose this stack. He just shared his opinion
English
1
0
0
51
Nikola Svitlica
Nikola Svitlica@TheCelavi·
@hanif2253 Not sure what you mean by that? Did he asked me to choose this stack or…? What was the question?
English
1
0
0
194
Weston Walker
Weston Walker@wes_walke·
@kad1r To add context, this would be for personal projects. Which one would you prefer in that case?
English
2
0
1
1.2K
Weston Walker
Weston Walker@wes_walke·
.NET devs, how are you storing user uploaded files in your apps? I've used services like Imagekit and also stored uploaded files on the server in the past. What other services or techniques are out there for storing user uploaded files?
English
66
15
93
14.9K
Weston Walker
Weston Walker@wes_walke·
.Net devs making web apps, what CSS libraries are you using? Anyone using Bootstrap or Tailwind? Or just plain CSS?
English
52
6
42
10.8K
Weston Walker
Weston Walker@wes_walke·
.NET devs, is there a big difference between the different test projects (NUnit, XUnit, MSTest)? I've always defaulted to MSTest projects. I know very little about the others.
English
8
0
12
1.8K
Milan Jovanović
Milan Jovanović@mjovanovictech·
Here are 4 things I set up on every new .NET project: - Logging (Serilog) - Docker-compose - StyleCop + SonarAnalyzer - Coding conventions (.editorconfig) Everything is easier after that. And I can make sure the team has a consistent development experience.
English
20
31
232
23K
Milan Jovanović
Milan Jovanović@mjovanovictech·
If you want to learn Software Architecture patterns, here's my approach. Do these 4 things: - Pick a Software Architecture - Research for a few hours (or days) - Create a simple project applying what you just learned - Repeat this process with a different architectural pattern
English
5
20
145
12.3K
Weston Walker
Weston Walker@wes_walke·
.NET devs, what ORM or library do you use to query your data? I've never really tried anything besides Entity Framework. Curious about other solutions.
English
223
23
206
84.4K