Dan Patrascu Profile Banner
Dan Patrascu Profile
Dan Patrascu

@danpdc

Followers
3,711
Following
251
Media
594
Statuses
8,266

📽️YouTube: 📖Blog: 📧Newsletter:

Timisoara
Joined November 2009
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@danpdc
Dan Patrascu
20 days
The past few months I've been talking to conferences, user groups and universities across 3 different countries. It's always a great pleasure for me to participate in such events and I'm always happy to talk towhoever wants to listen. My last experience at #PeakIT06 was a blast!
Tweet media one
Tweet media two
Tweet media three
Tweet media four
0
0
6
@danpdc
Dan Patrascu
11 months
I see may people around Microsoft making fun of the Twitter rebranding. Folks, you literally renamed Azure AD to Entra ID a couple of weeks ago. I'd keep quiet :)
30
57
502
@danpdc
Dan Patrascu
8 months
If Blazor wasn't part of #dotnet and therefore Microsoft, it would be the most popular UI framework by now....
43
24
267
@danpdc
Dan Patrascu
1 year
I'm not a fan of AutoMapper. But if you use it, you should definitely use projections more often than I see around code bases! If you like this video, subscribe to my channel for more: #programming #dotnet #csharp #programmingtips
5
39
222
@danpdc
Dan Patrascu
1 year
In #csharp we can't return multiple types. Tuples are cumbersome to work with. The OneOf library helps us to do this and it even provides some nice extension methods that we can use in consumers to perform logic based on the returned type. #dotnet
13
38
205
@danpdc
Dan Patrascu
5 months
React < Angular < Blazor
35
16
183
@danpdc
Dan Patrascu
1 year
Here's how to add authorization to .NET 7 Minimal API. If you enjoyed this, you might want to subscribe to my YouTube channel for more good stuff: #dotnet #aspnetcore #csharp #programming #programmingtips
2
28
183
@danpdc
Dan Patrascu
1 year
Is this the most underrated C# feature? If you enjoyed this, you might want to subscribe to my channel: #dotnet #csharp #programming #programmingtips
9
24
179
@danpdc
Dan Patrascu
1 year
Printing Pretty JSON in C#! If you enjoy this video, you might want to subscribe to my channel: #dotnet #csharp #programming #programmingtips
3
23
169
@danpdc
Dan Patrascu
1 year
Here's how to implement global exception handling in #aspnetcore via an exception filter in just 30 seconds. You might want to subscribe to my channel if you enjoyed this: #dotnet #programming #programmingtips
5
35
165
@danpdc
Dan Patrascu
9 months
Route Groups in #aspnetcore Minimal APIs can be very useful! #dotnet
4
23
162
@danpdc
Dan Patrascu
1 year
Custom authorization policies are insanely powerful in #aspnetcore If you enjoyed this video, you might want to subscribe to my YouTube channel: #dotnet #csharp #programming #programmingtips
1
29
155
@danpdc
Dan Patrascu
1 year
Would anybody be interested in a video about #aspnetcore Web API security? Like a cheat sheet for most common vulnerabilities and how to fix them.
25
6
154
@danpdc
Dan Patrascu
10 months
It's popular to globally handle exceptions in #aspnetcore within middleware. But there's another way we could do it in filters. Here's how it works! #Dotnet If you enjoyed this video, you might want to subscribe to my YouTube channel:
2
23
149
@danpdc
Dan Patrascu
1 year
We are tempted to perform model validation in #aspnetcore controllers. However, this is not clean. A better way is to use action filters. If you like this content, subscribe to my channel for more: #dotnet #programming #programmingtips #cleancode
4
35
148
@danpdc
Dan Patrascu
1 year
Unit testing .NET Minimal APIs is actually very easy! If you enjoyed this, you might want to subscribe to this channel: #dotnet #csharp #programming #programmingtips
2
27
142
@danpdc
Dan Patrascu
7 months
Implementing a redirect to login functionality in Blazor SSR turned out to become a nightmare for me. I want to spare you this experience so here's how you can do it. If you enjoyed this, you might want to subscribe to my YouTube channel: #dotnet #blazor
7
14
133
@danpdc
Dan Patrascu
1 year
Adding dependency injection in Azure Functions might be a little bit tricky. But here are the simple steps to achieve this without any head aches. Subscribe to my channel if you enjoyed this video: #azure #dotnet #serverless #programming #programmingtips
3
36
132
@danpdc
Dan Patrascu
1 year
😎 Route groups are really cool thing in .NET 7 Minimal API. If you enjoyed this, you might want to subscribe to my channel: #dotnet #csharp #programming #programmingtips
0
23
122
@danpdc
Dan Patrascu
1 year
Here's how the required modifier can make your app better! If you enjoyed this, you might want to subscribe to my channel: #dotnet #csharp #programming #programmingtips
2
25
116
@danpdc
Dan Patrascu
7 months
Blazor in .NET 8 has fundamentally changed. I've been critical about some aspects, but there's definitely some good stuff in there and I'm excited for the future. Therefore, here's everything you need to know about the new Blazor! #dotnet #blazor
3
17
117
@danpdc
Dan Patrascu
1 year
Here's a very practical example of the Action<T> class. I use it all the time! If you enjoyed this, you might want to subscribe to my #youtube channel: #dotnet #programming #programmingtips
0
20
116
@danpdc
Dan Patrascu
1 year
❗Here's how you can use switch expressions to modernize your codebase! ✅If you enjoyed this video, you might want to subscribe to my YouTube channel: #csharp #dotnet #programming
3
17
118
@danpdc
Dan Patrascu
4 months
I'll say it again! Every SINGLE time you add a library to your project, you add technical debt!
24
12
113
@danpdc
Dan Patrascu
1 year
In the long run, AutoMapper causes more problems than it solves. That's why I prefer to not use it at all and keep things very simple. If you enjoyed this video, you might want to also subscribe to my YouTube channel: #dotnet #csharp #programming
8
27
111
@danpdc
Dan Patrascu
1 year
Model validation in #Dotnet 7 Minimal API is a diferent beast. Here's how you can implement it in 4 easy setps! If you like this video, you might want to subscribe to my channel:
1
20
113
@danpdc
Dan Patrascu
10 months
How to do model validation in .NET 7 Minimal API in 4 EASY steps! If you enjoyed this, you might want to subscribe to my #youtube channel: #dotnet #programming #programmingtips #aspnetcore
0
19
108
@danpdc
Dan Patrascu
11 months
IHttpClientFactory in #aspnetcore 101 in under 1 minute! If you enjoyed this video, you might want to subscribe to my channel: #dotnet #programming #programmingtips
1
23
107
@danpdc
Dan Patrascu
1 year
Here's how to add #Azure Key Vault as a configruation source in your #aspnetcore app. If you enjoyed this video, make sure to subscribe to my #youtube channel: #programming #programmingtips #dotnet #azure
2
31
100
@danpdc
Dan Patrascu
9 months
So, the latest Java seems to be now on feature parity with C# from 2 years ago. Nice!
12
6
103
@danpdc
Dan Patrascu
7 months
This Sunday, I'll start live streaming again building a school management app with microservices orchestrated by .NET Aspire and using Blazor SSR for the front end. Make sure to not miss it, so hit the "Notify me" button. #dotnet
0
18
101
@danpdc
Dan Patrascu
8 months
Here's how to get started with #authorization in a #dotnet Minimal API
2
16
101
@danpdc
Dan Patrascu
1 year
So, how do we create #jwt in #csharp ? It's not that complicated and if you get to understand these very simplye building blocks, then auth will be a breeze in your #aspnetcore apps. #dotnet
2
25
93
@danpdc
Dan Patrascu
1 year
#logging in Program.cs is actually very easy in #aspnetcore . If you enjoyed this video, you might want to subscribe to my YouTube channel: #dotnet #programming #programmingtips
1
17
89
@danpdc
Dan Patrascu
8 months
We often don't really see the value of Action<T> in #csharp . Here is at least one practical use case. #dotnet
1
16
87
@danpdc
Dan Patrascu
1 year
Authorization in #aspnetcore doesn't need to be complicated. Here's my simple approach to it: #dotnet #programming
Tweet media one
0
23
85
@danpdc
Dan Patrascu
1 year
Everybody talks about REST and how we should conform to it. However, I think that REST works great for CRUD, but in reality most business applications are task based. So how do we balance full REST compliance and practicality?
45
7
82
@danpdc
Dan Patrascu
5 months
Here's how to use primary constructors for dependency injection in #dotnet and #csharp ! Note, I'm not saying you should prefer to do this, as there are some downsides like the fact that the corresponding backing fields are not readonly and publicly exposed.
6
9
83
@danpdc
Dan Patrascu
10 months
.NET 7 rate limiter is not distributed. Still, there are scenarios where it might be useful. Here's how to get started! If you enjoyed this video, you might want to subscribe to my #youtube channel: #dotnet
1
17
79
@danpdc
Dan Patrascu
1 year
@yb_fedev I know this vid has C# in the title, but the explanations about floating point arithmetics standards is the same for all languages. JS does only implement the 64 bit format. Alternatively there is a Decimal lib that might help.
3
7
76
@danpdc
Dan Patrascu
1 year
Here's an #aspnetcore web api security checklist. It's based on the 3 most common vulnerabilities. With clear practical examples and how to mitigate these risks. Video: #dotnet #security #programming
Tweet media one
0
17
76
@danpdc
Dan Patrascu
7 months
I have worked with Blazor (mostly server) since it was an experimental project. I have built production apps with it. I've done trainings and courses on it. But the new Blazor, really puts me on my knees. Nothing is working as it worked previously. For a lot of hours I'm fighting
25
8
75
@danpdc
Dan Patrascu
1 year
Building a serverless REST API from scratch based on Azure Functions is a good pretext to go deeper into some important topics. Curious? Here's a full video on this: #dotnet #Azure #serverless #programming
Tweet media one
2
20
69
@danpdc
Dan Patrascu
5 months
Just upgraded to version 4.0.1. A lot of breaking changes ahead, but there we'll be at least one constant: I'll still create #dotnet content wether you like it or not :)
Tweet media one
7
0
72
@danpdc
Dan Patrascu
1 year
Here's how to work with HTTP bodies in Azure Functions in just 30 seconds! If you enjoyed this video, you might want to subscribe to my channel: #azure #dotnet #programming #programmingtips
3
15
68
@danpdc
Dan Patrascu
6 months
I am really sad that more and more #dotnet creators start lashing out at other creators insinuating that they are bad engineers. And I'm equally sad there are creators that basically call C# developers stupid and uneducated if they don't share their narrow view on some paradigm.
11
3
69
@danpdc
Dan Patrascu
7 months
BIG ANNOUNCEMENT! After much consideration, I have decided to start a newsletter! This is a logical step pursuing my mission to become a mentor for anybody who thinks I can offer some valuable directions. That's why this newsletter is totally different than most others. It will
10
11
66
@danpdc
Dan Patrascu
1 year
OWASP mentions the lack of rate limiting as a security vulnerability of APIs. This was cumbersome to implement in #aspnetcore until #dotnet 7. Now we have built in support for this! If you enjoyed this video, you might want to subscribe
2
20
67
@danpdc
Dan Patrascu
2 years
Today @nickchapsas asked DotNet Twitter about #DotNet YouTubers, bloggers that they follow. On of the replies also mentioned my channel, Codewrinkles. Sure, it's only one mention but I take this as a motivation to keep on the work.
6
3
64
@danpdc
Dan Patrascu
1 year
Generating links is one of the most important aspecects of web development. When it comes to the .NET MInimal APIs, link generation is important for redirects and to remain compliant to the HATEOAS REST constraint. Here's everything you need to know about link generation in just
1
8
60
@danpdc
Dan Patrascu
1 year
Asynchrony vs Parallelism (thread) Sometimes there is a common misconception that async/await will make our code faster. I'd argue that most of the times this is not true. #dotnet #csharp #dotnetdeveloper #asynchronous #programming #softwareengineering
4
12
60
@danpdc
Dan Patrascu
7 months
Working with EF Core in Blazor Server is still a mystery for a lot of people. In this video I try to demystify it by showing how to implement full CRUD operations in Blazor Server using EF Core and doing it the right way. #dotnet #blazor #aspnetcore #crud
1
15
60
@danpdc
Dan Patrascu
1 year
Another day, another #dotnet dilemma. I've seen people creating interfaces that only contain properties. What do you think about this? You don't get anything from it as you still need to write those properties in each class. I'd probably use abstract classes. What about you?
41
6
57
@danpdc
Dan Patrascu
7 months
Working on a #Blazor server app and I switched to VS instead of Rider. The only reason I did this is the ability to use @EngstromJimmy 's Blazm VS extension. Saves a lot of time. If you're curious, I even did a video about it:
2
10
57
@danpdc
Dan Patrascu
2 years
I use the concept of "registrars" to keep my #AspNetCore startup classes clean. I wanted to create a dedicated registrar for #AutoMapper and #MediatR and didn't know how to name it. Ended up naming it "BogardRegistrar" 🤣🤣
Tweet media one
3
1
55
@danpdc
Dan Patrascu
1 year
@abhibisht97 @GergelyOrosz It doesn't even need to be large. As soon as it's not pure CRUD anymore things get complicated.
0
0
53
@danpdc
Dan Patrascu
11 months
THIS causes a lot of headaches to #csharp beginners. It's a very popular source of bugs, so make sure you always have this in the back of your head. If you enjoyed this video, you might want to subscribe to my channel: #dotnet #programmingtips
2
11
52
@danpdc
Dan Patrascu
7 months
I just saw in a Blazor presentation at #dotnetconf how someone used DbContext diectly in an interactive server component. Cmmmon guys! No! No! No! No! These components use websockets. Use IDbContextFactory instead!
6
5
50
@danpdc
Dan Patrascu
7 months
It's not all about work and coding. Here are some snapshots of my #hiking trip from yesterday. Around Ilova, #Romania . Not sure what you hear or know about my country, but it's beautiful!
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
0
50
@danpdc
Dan Patrascu
7 months
I thik this video is a must watch if you want to understand how Blazor components with interactive server mode work, how this might affect the DbContext and what can we do about that! #dotnet #blazor cc @CHBernasconiC
2
9
50
@danpdc
Dan Patrascu
1 year
@BelloneDavide If you have interfaces and implementations both in the same module, it means you don't need interfaces.
15
2
48
@danpdc
Dan Patrascu
11 months
One of the problems with TDD is that its advocates behave like door-to-door Bible sellers. They try to impose their way of working as the only one leading to salvation. And they're using mostly flawed argumentation that wouldn't compete even against a high-school debate team
12
4
46
@danpdc
Dan Patrascu
11 months
Here's how you can move your command validation in MediatR pipeline behaviors and keep your handlers clean. If you enjoyed this video, you might want to subscribe to my #youtube channel: #dotnet #aspnetcore #programming #programmingtips
1
11
46
@danpdc
Dan Patrascu
1 year
One of the main frustration I have as a #dotnet YouTuber is that videos, that are certainly useful for most of those who are watching, perform very bad. Clickbaity or hot take videos perform excellent. I think the first category brings more value, but the second more
14
5
44
@danpdc
Dan Patrascu
7 months
Ok, Blazor SSR sounds great in theory, but I see a lot of pitfalls when put to practice and we want to enhance it with components that use interactive server mode. How should we check for authz in this case? How should we use EF Core? Then, what if somebody changes one component
12
5
44
@danpdc
Dan Patrascu
1 year
Here's how we can connect to #Azure KeyVault from an #aspnetcore application the right way (Without having client ids and secrets in appsettings.json, which seems to be very "popular" in other tutorials). If you enjoyed this, you might want to subscribe to my YouTube channel for
1
8
42
@danpdc
Dan Patrascu
2 years
Playing chess in a #blazor server app. A small side project I'm working on.
3
4
43
@danpdc
Dan Patrascu
1 year
Here's how you can add a Blazor WASM app to an existing AspNetCore API and serving it from the same host. If you enjoyed this video, you might want to subscribe to my YouTube channel for more: #dotnet #dotnetcore #blazor #programming #programmingtips
4
12
41
@danpdc
Dan Patrascu
1 year
#Dotnet folks, I've seen a lot of SO responses using MediatR pipeline behaviors for authorization. I've seen even a few Medium articles. TBH it feels so WRONG! Am I missing something? Why would you want to do authorization this way?
23
1
41
@danpdc
Dan Patrascu
1 year
I viscerally disagree with people claiming prophetically that the future of C# is functional. Literally each functional construct in C# is lowered to regular OOP. The fact the some folks prefer one style over the other doesn't change the reality/facts.
Tweet media one
17
2
40
@danpdc
Dan Patrascu
8 months
This "magic" is the cause of many bugs and a lot of us fail to understand how LINQ deferred execution in #csharp can cause a lot of bugs if we're not aware. #dotnet If you enjoyed this, you might want to subscribe to my #YouTube channel:
2
3
41
@danpdc
Dan Patrascu
7 months
I know it's been long, but here's a new #dotnet video that might prove useful.
Tweet media one
0
4
40
@danpdc
Dan Patrascu
9 months
We've done some experiments and it seems that AI (Copilot to be precise) is definitely overhyped. ❌code quality didn't improve ❌sprint velocity didn't improve So, right now (and I quote some of our devs) "it's just a little bit better than Resharper".
13
4
38
@danpdc
Dan Patrascu
5 months
Collection expressions and the spread operator are awesome in C# 12! #dotnet #csharp
3
3
38
@danpdc
Dan Patrascu
5 months
If you are a #dotnet developer or interested in this tech, you should definitely folloe @DevLeaderCa 's YouTube channel. IMO he has one of the best content, without BS that's just trending and tought that come from experience
1
1
37
@danpdc
Dan Patrascu
10 months
Here's how to create a service class to interact with #Azure Blob Storage in #dotnet If you enjoyed this, you might want to subscribe to my #YouTube channel:
1
8
36
@danpdc
Dan Patrascu
6 months
Here's how you can get rid of annoying IFs using switch expressions in #dotnet and #csharp ! P.S: If you want to become a better software engineer, not just a better coder, you might find my newsletter useful. Feel free to join it!
1
4
35
@danpdc
Dan Patrascu
1 year
Here's a possible way to generate random strings in C#! If you like this video, you might want to subscribe to the Codewrinkles channel: #csharp #dotnet #programming #programmingtips
2
4
34
@danpdc
Dan Patrascu
2 years
Has anybody ever seen a REAL PRODUCTION project that is pure #DDD , or pure #CQRS , or pure #cleanArchitecture , or pure #EventSourcing ? You know, like the ones that are always presented at conferences.
28
2
33
@danpdc
Dan Patrascu
1 year
From my POV, the software development process is a hell made of meetings, estimations on wrong assumptions, endless discussions. I think everything went South the moment we started to replace common sense with pointless certifications and out of context processes.
6
5
33
@danpdc
Dan Patrascu
1 year
Working with CSV files is something that I needed to do in almost every project. So, I thought it might be useful to share how easy it is to work with CSV files in #dotnet and #csharp #programming #programmingtips
4
8
31
@danpdc
Dan Patrascu
1 year
Here's why you should NEVER use doubles for prices, VAT calculations and other important stuff! If you enjoyed this video, you might want to subscribe to my channel for more awesomeness :) #Dotnet #csharp #programming #ProgrammingTips
6
5
32
@danpdc
Dan Patrascu
1 year
So, I'm trying to catch a SqlException in #dotnet / ef core and I'm interested to only do something if it's a unique constraint violation. These SqlException have an inner exception that contains a number. I believe that 2627 is the number for unique constraint violation. But are
6
3
29
@danpdc
Dan Patrascu
1 year
@traversymedia @elonmusk Quite the contrary in my case. I still see only tech related stuff in my timeline. The only aggressive posts are those against Musk coming from people who in theory appreciate thoughts diversity, but it seems they don't.
0
1
30
@danpdc
Dan Patrascu
7 months
I know everyone is excited about .NET 8. However, this is a kind reminder to not focus on frameworks, focus on beeing an engineer! The hype might derail your attention from this. It's useless to know all the new framework features if you can't well engineer an app #dotnet
2
4
31
@danpdc
Dan Patrascu
6 months
So, I just upgraded my setup with a new desktop. I9 processor, 64GB RAM and an RTX 3080. Hopefully, video editing will be much faster now. Preparing for a great 2024 🚀🚀🚀
1
0
29
@danpdc
Dan Patrascu
8 months
Tweet media one
2
0
29
@danpdc
Dan Patrascu
3 years
I was not a @MagnusCarlsen fan, but the way he was just locked in, calculating in depth in a winning position in game 8, staying at the table, concentrated is a life lesson, not only a chess lesson. Magnus just became a role model for me. #CarlsenNepo
1
3
28
@danpdc
Dan Patrascu
1 year
#Romania is actually beutiful. Taking a 2 days break from shooting videos, so I tought I shoot some photos instead
Tweet media one
2
0
26
@danpdc
Dan Patrascu
6 months
There are also some ugly parts about it, but generally Nullable Reference Types and the required modifier can save us a lot of headaches in #dotnet If you enjoyed it, you might want to subscribe to my newsletter as well:
3
7
29
@danpdc
Dan Patrascu
6 months
As a creator in the #dotnet space, I'm particularily happy that this year I managed to get @anton_t0shik , @codeopinion , @mjovanovictech , @jfversluis , @amantinband , @CHBernasconiC and @gsferreira to share their opinion on what makes a great software engineer. All of them in one
3
4
27
@danpdc
Dan Patrascu
1 year
So, I just created my first MAUI app!
5
0
27