Click here to Skip to main content
15,915,800 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: Code First, do you like it? Pin
RUs12310-Feb-16 20:50
RUs12310-Feb-16 20:50 
GeneralRe: Code First, do you like it? Pin
Anna-Jayne Metcalfe10-Feb-16 22:47
Anna-Jayne Metcalfe10-Feb-16 22:47 
GeneralRe: Code First, do you like it? Pin
WiganLatics10-Feb-16 2:16
professionalWiganLatics10-Feb-16 2:16 
GeneralRe: Code First, do you like it? Pin
xiecsuk10-Feb-16 22:19
xiecsuk10-Feb-16 22:19 
AnswerRe: Code First, do you like it? Pin
Jacquers10-Feb-16 2:18
Jacquers10-Feb-16 2:18 
GeneralRe: Code First, do you like it? Pin
Nish Nishant10-Feb-16 7:24
sitebuilderNish Nishant10-Feb-16 7:24 
GeneralRe: Code First, do you like it? Pin
Jacquers10-Feb-16 20:33
Jacquers10-Feb-16 20:33 
GeneralRe: Code First, do you like it? Pin
Pat Capozzi11-Feb-16 4:42
Pat Capozzi11-Feb-16 4:42 
I built a large project with code first using MS MVC (a couple of years ago) and felt that I addressed one of the major problems in programming. One of my basic rules of project development has been YOU BETTER GET YOUR DATABASE DESIGNED FIRST OR YOU WILL REALLY DESTABILIZE THE APP WHEN YOU MAKE CHANGES TO THE DB MIDSTREAM. Sometimes, however, you just don't have that luxury and Code First really helps in that scenario. With code first you focus on your classes and so you can work and think at a truly theoretical level. Changes to classes and new classes migrate to the DB at the push of a button and so there is never any lag between design and implementation when making design changes.

That is the high level view. You are free to work and think at a class level. The companion to code first is LINQ. With code first and LINQ you can literally design and built a complex system and never even look at the database. It is a very cool experience.

There are some considerations. The key one is test data. When you 'recycle' your DB after class / design changes you often need to migrate test data. When I was working on my code first project, MS had some data migration hooks but I just ended up building a routine to re-populate the test data. I am sure it is better now.

I felt Code First was a useful technique when building a system from the ground up.
AnswerRe: Code First, do you like it? PinPopular
Vark11110-Feb-16 2:23
Vark11110-Feb-16 2:23 
GeneralRe: Code First, do you like it? Pin
ZurdoDev10-Feb-16 2:45
professionalZurdoDev10-Feb-16 2:45 
GeneralRe: Code First, do you like it? Pin
Slacker00710-Feb-16 3:02
professionalSlacker00710-Feb-16 3:02 
GeneralRe: Code First, do you like it? Pin
Gavin Coates10-Feb-16 5:50
Gavin Coates10-Feb-16 5:50 
GeneralRe: Code First, do you like it? Pin
Layinka10-Feb-16 21:58
professionalLayinka10-Feb-16 21:58 
GeneralRe: Code First, do you like it? Pin
Slacker00711-Feb-16 0:36
professionalSlacker00711-Feb-16 0:36 
GeneralRe: Code First, do you like it? Pin
User 1106097910-Feb-16 3:33
User 1106097910-Feb-16 3:33 
GeneralRe: Code First, do you like it? Pin
jgakenhe10-Feb-16 3:45
professionaljgakenhe10-Feb-16 3:45 
GeneralRe: Code First, do you like it? Pin
GuyThiebaut10-Feb-16 3:58
professionalGuyThiebaut10-Feb-16 3:58 
GeneralRe: Code First, do you like it? Pin
PIEBALDconsult10-Feb-16 12:58
mvePIEBALDconsult10-Feb-16 12:58 
GeneralRe: Code First, do you like it? Pin
PSU Steve11-Feb-16 2:40
professionalPSU Steve11-Feb-16 2:40 
AnswerRe: Code First, do you like it? PinPopular
Duncan Edwards Jones10-Feb-16 2:39
professionalDuncan Edwards Jones10-Feb-16 2:39 
GeneralRe: Code First, do you like it? Pin
WildlingCoder11-Feb-16 4:59
professionalWildlingCoder11-Feb-16 4:59 
AnswerRe: Code First, do you like it? Pin
Eddy Vluggen10-Feb-16 2:43
professionalEddy Vluggen10-Feb-16 2:43 
GeneralRe: Code First, do you like it? Pin
Slacker00710-Feb-16 3:05
professionalSlacker00710-Feb-16 3:05 
GeneralRe: Code First, do you like it? Pin
Eddy Vluggen10-Feb-16 3:23
professionalEddy Vluggen10-Feb-16 3:23 
GeneralRe: Code First, do you like it? Pin
Eddy Vluggen10-Feb-16 6:16
professionalEddy Vluggen10-Feb-16 6:16 

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.