Click here to Skip to main content
15,888,313 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: Ruminating on code generation Pin
Gerry Schmitz27-Aug-22 7:40
mveGerry Schmitz27-Aug-22 7:40 
QuestionRe: Ruminating on code generation Pin
Eddy Vluggen27-Aug-22 7:53
professionalEddy Vluggen27-Aug-22 7:53 
AnswerRe: Ruminating on code generation Pin
honey the codewitch27-Aug-22 16:20
mvahoney the codewitch27-Aug-22 16:20 
GeneralRe: Ruminating on code generation Pin
jmaida27-Aug-22 17:01
jmaida27-Aug-22 17:01 
AnswerRe: Ruminating on code generation Pin
Eddy Vluggen30-Aug-22 1:36
professionalEddy Vluggen30-Aug-22 1:36 
GeneralRe: Ruminating on code generation Pin
jmaida27-Aug-22 16:02
jmaida27-Aug-22 16:02 
GeneralRe: Ruminating on code generation Pin
Ryan Peden29-Aug-22 3:01
professionalRyan Peden29-Aug-22 3:01 
GeneralRe: Ruminating on code generation Pin
MSBassSinger29-Aug-22 3:18
professionalMSBassSinger29-Aug-22 3:18 
Code generators can be useful when they meet a target need.

For example, I avoid Entity Framework (EF) whenever possible. I prefer a generic DAC and stored procedures instead of EF. That is my preference based on years of my experience delivering well performing, scalable apps. So that statement is not up for debate in this thread.

The point of that is that it led me to write a code generation tool that creates the query, insert, update, delete (soft and hard), and restore (for soft deletes) stored procedures, and then writes the C# class(es) to encapsulate the data and to use the DAC to populate those POCO classes.

What I found useful was to start with a template file for each type of file generated, then generate the output code. It saves me quite a bit of time in development, allows me to change the design of the classes by template rather than code change in the generator.

The less time a developer spends on rote, repetitive coding, the more time they have to add quality.
GeneralRe: Ruminating on code generation Pin
Gerry Schmitz29-Aug-22 8:24
mveGerry Schmitz29-Aug-22 8:24 
GeneralRe: Ruminating on code generation Pin
MSBassSinger29-Aug-22 10:11
professionalMSBassSinger29-Aug-22 10:11 
PraiseThumbs up for this tech support Pin
Sander Rossel27-Aug-22 0:31
professionalSander Rossel27-Aug-22 0:31 
GeneralRe: Thumbs up for this tech support Pin
honey the codewitch27-Aug-22 1:34
mvahoney the codewitch27-Aug-22 1:34 
GeneralRe: Thumbs up for this tech support Pin
BernardIE531727-Aug-22 6:56
BernardIE531727-Aug-22 6:56 
GeneralRe: Thumbs up for this tech support Pin
Ryan Peden28-Aug-22 15:13
professionalRyan Peden28-Aug-22 15:13 
GeneralLunar landing pictures digitally enhanced Pin
OriginalGriff26-Aug-22 18:19
mveOriginalGriff26-Aug-22 18:19 
GeneralRe: Lunar landing pictures digitally enhanced Pin
Craig Robbins27-Aug-22 2:25
Craig Robbins27-Aug-22 2:25 
GeneralRe: Lunar landing pictures digitally enhanced Pin
Mircea Neacsu27-Aug-22 4:09
Mircea Neacsu27-Aug-22 4:09 
GeneralRe: Lunar landing pictures digitally enhanced Pin
mngerhold28-Aug-22 21:34
mngerhold28-Aug-22 21:34 
JokeRe: Lunar landing pictures digitally enhanced Pin
Richard Deeming29-Aug-22 22:15
mveRichard Deeming29-Aug-22 22:15 
GeneralWordle 434 Pin
StarNamer@work26-Aug-22 14:19
professionalStarNamer@work26-Aug-22 14:19 
GeneralRe: Wordle 434 Pin
jmaida26-Aug-22 16:01
jmaida26-Aug-22 16:01 
GeneralRe: Wordle 434 Pin
Vivi Chellappa26-Aug-22 16:20
professionalVivi Chellappa26-Aug-22 16:20 
GeneralRe: Wordle 434 Pin
OriginalGriff26-Aug-22 18:08
mveOriginalGriff26-Aug-22 18:08 
GeneralRe: Wordle 434 Pin
jmaida26-Aug-22 19:11
jmaida26-Aug-22 19:11 
GeneralRe: Wordle 434 Pin
pkfox26-Aug-22 21:05
professionalpkfox26-Aug-22 21:05 

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.