How to Implement REPR Pattern in ASP NET Core Web API

  Рет қаралды 3,394

Code Maze

Code Maze

Күн бұрын

Пікірлер
@CodeMaze
@CodeMaze Ай бұрын
Thank you all for watching and for your support. ►► If you want to check out all our courses you can do that here: bit.ly/cdmz-courses
@Skwerzmernerpl
@Skwerzmernerpl Ай бұрын
REPR lends itself to vertical slice architecture very well; it makes more sense to have your request/response records defined in the same file as the endpoint they pertain to since they should be used anywhere else and they'll be immediately visible when working within the endpoint file.
@CodeMaze
@CodeMaze Ай бұрын
I really don't kike having multiple classes/records in the same file, especially when those records are DTOs. If for example you have a client Blazor apo consuming your API, I would even place them in a separate project and share that project with a Blazor client app in order to avoid double file creation both on the client and the server.
@lexNwimue
@lexNwimue 29 күн бұрын
Thanks for sharing. Simple and straight to the point
@CodeMaze
@CodeMaze 29 күн бұрын
You are very welcome.
@novaploca2080
@novaploca2080 Ай бұрын
Interesting, thanks for this. :)
@CodeMaze
@CodeMaze Ай бұрын
You are very welcome. Thank you too for watching the video.
@TeemoPwnstar
@TeemoPwnstar 28 күн бұрын
I really dislike the repr pattern personally. Thank you for the video though - it was well presented (even for a subjectively 'bad' pattern :D)
@CodeMaze
@CodeMaze 28 күн бұрын
Well, it is kind a interesting for me, but currently, I don't think I would go this way unless asked for... but again, it is not something I will just throw away, it looks interesting enough. Thank you very much for watching the video and the comment.
@k2an
@k2an 29 күн бұрын
I trhink i am the one hate clean arch. and like clean arch approaches. you arent make things ez maintainable just 1 entity you create alot of folder files bla bla . btw thanks for your time
@CodeMaze
@CodeMaze 29 күн бұрын
First, you are welcome and thank you for watching the video. Second, you are not the only one, trust me on that :) If you watched the video untill the end, you probably have seen me asking the same question. But I must admit, I like architectural approaches :)
@k2an
@k2an 29 күн бұрын
@@CodeMaze I like architectural approc. also but nowadays everyone starts projects with this like patterns. these all microservices fault :) after this everyone starts ms for their basic applications. again thanks for video
@CodeMaze
@CodeMaze 28 күн бұрын
Overengineering was always a problem in software development, I completely understand your point there :)
Health Checks in ASP.NET Core Web API
11:37
Code Maze
Рет қаралды 1,1 М.
Fix Your Controllers By Refactoring To Minimal APIs
14:56
Milan Jovanović
Рет қаралды 44 М.
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,4 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
Structured Logging With Serilog in ASP.NET Core Web API
10:17
Code Maze
Рет қаралды 2,2 М.
Result Pattern Implementation in ASP NET Core Web API
13:28
Code Maze
Рет қаралды 5 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 84 М.
Coding Shorts 111: Was I Wrong About Blazor?
16:35
Shawn Wildermuth
Рет қаралды 20 М.
Using Unit of Work Pattern
13:43
Study Mash
Рет қаралды 36 М.
Why Writing Simple Code Isn't So Simple in Real Projects
12:10
Zoran Horvat
Рет қаралды 14 М.
Implementing API Gateway With Ocelot in ASP.NET Core
13:26
Code Maze
Рет қаралды 6 М.
What's New in .NET 9 with Examples
25:02
Nick Chapsas
Рет қаралды 47 М.
CQRS & MediatR in a .NET 8 Web API 🚀
22:00
Patrick God
Рет қаралды 14 М.
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН