Click here to Skip to main content
15,887,267 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Evil. Pin
Ron Anders19-Apr-21 16:51
Ron Anders19-Apr-21 16:51 
GeneralRe: Evil. Pin
Super Lloyd19-Apr-21 17:04
Super Lloyd19-Apr-21 17:04 
GeneralRe: Evil. Pin
RickZeeland19-Apr-21 19:09
mveRickZeeland19-Apr-21 19:09 
GeneralRe: Evil. Pin
Rage19-Apr-21 22:00
professionalRage19-Apr-21 22:00 
GeneralRe: Evil. Pin
kmoorevs20-Apr-21 5:09
kmoorevs20-Apr-21 5:09 
GeneralRe: Evil. Pin
OldDBA20-Apr-21 19:53
OldDBA20-Apr-21 19:53 
GeneralRe: Evil. Pin
Gilles Plante21-Apr-21 1:34
Gilles Plante21-Apr-21 1:34 
RantThis is what you get when you have junior programmers write an application in .NET Core PinPopular
Marc Clifton19-Apr-21 7:45
mvaMarc Clifton19-Apr-21 7:45 
A small .NET Core API project...

30+ controllers, one for each table.
30+ services, one service per table.
30+ "repositories", one repository per table.
30+ files for constants, basically one constant string definition (ok, maybe 3 or 4) per static class.
30+ files for actual model entities. So why are you using Dapper instead of EF?

The "repositories" are basically passthroughs to the db context for CRUD operations, and because the project uses Dapper, somewhere in the code base is 30*4 SQL statements for each table's CRUD operations.

And given that the controllers, services, and "repositories" are manipulating tables, and it seems like they were hand coded rather than generated by a tool... Sigh | :sigh:

And it seems so bassackwards to me. To me, controllers and services should be based on function, not table CRUD operations.

And while I haven't looked at the Angular Dead | X| front-end, I suspect, from what I see of the back-end, that all the business rules are coded in the UI.

So, given that:

No integration testing to validate business logic.

It's actually quite clean, given it all follows a repeated coding style and practice. On the other hand, the lack of abstraction and the lack of any architecture other than the "controller-service" architecture baked into ASP.NET Core API just leaves me feeling sad and depressed.

And you do NOT want to know how much budget this project was given, that has been completely used up and the project is not anywhere near finished. Laugh | :laugh: Cry | :(( (We're talking just shy of six figures here.)

GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Super Lloyd19-Apr-21 7:51
Super Lloyd19-Apr-21 7:51 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Marc Clifton19-Apr-21 7:56
mvaMarc Clifton19-Apr-21 7:56 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Ste.S19-Apr-21 22:40
Ste.S19-Apr-21 22:40 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
GuyThiebaut19-Apr-21 8:06
professionalGuyThiebaut19-Apr-21 8:06 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
raddevus19-Apr-21 11:04
mvaraddevus19-Apr-21 11:04 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Super Lloyd19-Apr-21 17:05
Super Lloyd19-Apr-21 17:05 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
MSBassSinger20-Apr-21 3:54
professionalMSBassSinger20-Apr-21 3:54 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
MichaelLuna20-Apr-21 8:32
MichaelLuna20-Apr-21 8:32 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Daniel Pfeffer19-Apr-21 8:15
professionalDaniel Pfeffer19-Apr-21 8:15 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Marc Clifton19-Apr-21 9:01
mvaMarc Clifton19-Apr-21 9:01 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Eddy Vluggen20-Apr-21 2:28
professionalEddy Vluggen20-Apr-21 2:28 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Member 1091697420-Apr-21 2:43
professionalMember 1091697420-Apr-21 2:43 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Dan Neely20-Apr-21 2:53
Dan Neely20-Apr-21 2:53 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
MSBassSinger20-Apr-21 3:52
professionalMSBassSinger20-Apr-21 3:52 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Xequence20-Apr-21 4:11
Xequence20-Apr-21 4:11 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
salz15020-Apr-21 6:38
salz15020-Apr-21 6:38 
GeneralRe: This is what you get when you have junior programmers write an application in .NET Core Pin
Gerry Schmitz20-Apr-21 7:22
mveGerry Schmitz20-Apr-21 7:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.