Click here to Skip to main content
15,900,589 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.

 
GeneralCode Last Pin
Marc Clifton11-Oct-18 3:50
mvaMarc Clifton11-Oct-18 3:50 
GeneralRe: Code Last Pin
Mycroft Holmes11-Oct-18 11:57
professionalMycroft Holmes11-Oct-18 11:57 
GeneralRe: Code Last Pin
Marc Clifton11-Oct-18 13:43
mvaMarc Clifton11-Oct-18 13:43 
GeneralRe: Code Last Pin
R191111-Oct-18 19:57
R191111-Oct-18 19:57 
GeneralRe: Code Last Pin
Marc Clifton12-Oct-18 4:05
mvaMarc Clifton12-Oct-18 4:05 
GeneralRe: Code Last Pin
R191113-Oct-18 21:19
R191113-Oct-18 21:19 
GeneralRe: Code First Pin
MadMyche11-Oct-18 4:12
professionalMadMyche11-Oct-18 4:12 
GeneralRe: Code First Pin
theokr11-Oct-18 21:31
theokr11-Oct-18 21:31 
There's a lot of waffle in the responses but the truth is as it is for most things... It depends on what you're developing. Some people have alluded to this.

I have worked on projects that have used code first effectively. No performance bottlenecks, easy deployments, very neat code. Easy to follow and all in one place. If you have a fairly simple schema to create, code first is not going to be a problem. If you have a more complex schema, then you may have to evaluate it a bit more.

I have worked on projects that code the DB first. This gives you the most control and is the more consisitent approach when writing stored procedures, triggers and other object types. If using Visual Studio (assuming as you're using EF) and if you're also using SQL Server then Visual Studio DB projects are great for modelling databases and doing quick and easy deployments.

ORMs are great but use with a little caution as you may introduce unnecessary overheads.

In summary, to answer your question more directly, yes code first is used for real applicstions/projects. On the question of whether to aspire to it, I do not believe it should be considered a standard or any sort of evolution of development - you would use it based on the merits for your application.
GeneralRe: Code First Pin
KBZX500011-Oct-18 21:47
KBZX500011-Oct-18 21:47 
GeneralRe: Code First Pin
Gerry Schmitz12-Oct-18 3:42
mveGerry Schmitz12-Oct-18 3:42 
GeneralRe: Code First Pin
maze312-Oct-18 4:52
professionalmaze312-Oct-18 4:52 
QuestionOi Lord Griffington! Pin
megaadam10-Oct-18 23:36
professionalmegaadam10-Oct-18 23:36 
AnswerRe: Oi Lord Griffington! Pin
OriginalGriff11-Oct-18 0:24
mveOriginalGriff11-Oct-18 0:24 
GeneralCan I ask a question... Pin
glennPattonWork310-Oct-18 22:24
professionalglennPattonWork310-Oct-18 22:24 
GeneralRe: Can I ask a question... Pin
Slacker00710-Oct-18 22:46
professionalSlacker00710-Oct-18 22:46 
GeneralRe: Can I ask a question... Pin
glennPattonWork310-Oct-18 23:01
professionalglennPattonWork310-Oct-18 23:01 
GeneralCCC Thursday - We have a winner! Pin
megaadam10-Oct-18 22:00
professionalmegaadam10-Oct-18 22:00 
GeneralRe: CCC Thursday Pin
pkfox10-Oct-18 23:56
professionalpkfox10-Oct-18 23:56 
GeneralRe: CCC Thursday Pin
megaadam11-Oct-18 0:01
professionalmegaadam11-Oct-18 0:01 
GeneralRe: CCC Thursday Pin
pkfox11-Oct-18 0:17
professionalpkfox11-Oct-18 0:17 
AnswerRe: CCC Thursday Pin
megaadam11-Oct-18 0:23
professionalmegaadam11-Oct-18 0:23 
GeneralRe: CCC Thursday Pin
pkfox11-Oct-18 0:26
professionalpkfox11-Oct-18 0:26 
GeneralRe: CCC Thursday Pin
Richard MacCutchan11-Oct-18 0:47
mveRichard MacCutchan11-Oct-18 0:47 
JokeLilies will do... Pin
Kornfeld Eliyahu Peter10-Oct-18 20:13
professionalKornfeld Eliyahu Peter10-Oct-18 20:13 
GeneralRe: Lilies will do... Pin
CodeWraith10-Oct-18 22:24
CodeWraith10-Oct-18 22:24 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   491 votes