Click here to Skip to main content
15,914,225 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: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 15:04
Christopher Duncan18-Oct-13 15:04 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
jschell21-Oct-13 9:15
jschell21-Oct-13 9:15 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan21-Oct-13 10:18
Christopher Duncan21-Oct-13 10:18 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Mycroft Holmes18-Oct-13 12:48
professionalMycroft Holmes18-Oct-13 12:48 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 15:07
Christopher Duncan18-Oct-13 15:07 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
PIEBALDconsult18-Oct-13 13:22
mvePIEBALDconsult18-Oct-13 13:22 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 15:11
Christopher Duncan18-Oct-13 15:11 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Marc Clifton18-Oct-13 13:27
mvaMarc Clifton18-Oct-13 13:27 
While I would say you're not missing anything, my experience is that people who write SP's have really no good practices regarding re-use (I believe another person responded about the lack of re-use with SP's as well.) And the triggers can get huge, spaghetti code, and invariably have undocumented logic and special case handlers, often using hardcoded data values. It's a mess, and when you talk to the people managing the code, they invariably say, we know it's a mess but we've had to make all these patches without any budget to fix the real underlying problems. And why's that? Because that would require changes to application, and the app devs, that were outsourced to write the app to begin with, are no longer around and nobody knows how to make changes in THAT code base without breaking half a dozen other features. So, that describes my real-world experiences, and probably those of many other people.

Also (stepping down from my rant platform), what you're describing in both cases is a 2-tier environment in most cases: app talking directly to the database. I hope I never have to work in a 2-tier environment ever again, but most people don't understand the benefits of a 3-tier environment. First off, you can isolate the application from "the database business." The stuff that manipulates data in the database's representation (aka schema) rather than the application's model, which can be quite different (but I'm not saying anything you don't already know.) But, what I like to do is then choose whether something should be an SP, or the SQL can be auto-generated by the middle tier, or it pulls in additional metadata that supplements the DB schema for further automation, or, as a last resort, the code in the middle tier does some processing of the data in C# (or whatever.)

But it's hard to convince people to take the time to architect a 3-tier system in which most stuff can be handled by metadata (schema + domain-specific declarative stuff) and then leverage either the middle tier or the SP's for the stuff that doesn't fit.

So, the question, in my mind, isn't "what am I missing with SP's vs Linq vs EF?", but "why am I still stuck in a 2-tier development environment?"

Well, that's my somewhat ranty reply. Smile | :)

Marc

GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan18-Oct-13 14:55
Christopher Duncan18-Oct-13 14:55 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
GuyThiebaut19-Oct-13 3:55
professionalGuyThiebaut19-Oct-13 3:55 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan19-Oct-13 6:10
Christopher Duncan19-Oct-13 6:10 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
PIEBALDconsult19-Oct-13 19:28
mvePIEBALDconsult19-Oct-13 19:28 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
GuyThiebaut20-Oct-13 1:22
professionalGuyThiebaut20-Oct-13 1:22 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
_Maxxx_20-Oct-13 13:03
professional_Maxxx_20-Oct-13 13:03 
GeneralRe: Another religious question: LINQ vs stored procedures Pin
Christopher Duncan21-Oct-13 1:06
Christopher Duncan21-Oct-13 1:06 
NewsMacBook Air systems sold between June 2012-June 2013 might need replacement drive Pin
Kevin Priddle18-Oct-13 9:00
professionalKevin Priddle18-Oct-13 9:00 
GeneralRe: MacBook Air systems sold between June 2012-June 2013 might need replacement drive Pin
Maximilien18-Oct-13 9:02
Maximilien18-Oct-13 9:02 
RantWindows Update Cleanup Pin
Rutvik Dave18-Oct-13 7:23
professionalRutvik Dave18-Oct-13 7:23 
GeneralRe: Windows Update Cleanup Pin
Corporal Agarn18-Oct-13 7:40
professionalCorporal Agarn18-Oct-13 7:40 
GeneralRe: Windows Update Cleanup Pin
Eddy Vluggen18-Oct-13 7:50
professionalEddy Vluggen18-Oct-13 7:50 
GeneralRe: Windows Update Cleanup Pin
Rutvik Dave18-Oct-13 7:53
professionalRutvik Dave18-Oct-13 7:53 
GeneralRe: Windows Update Cleanup Pin
Joe Woodbury18-Oct-13 9:50
professionalJoe Woodbury18-Oct-13 9:50 
GeneralRe: Windows Update Cleanup Pin
Rutvik Dave18-Oct-13 10:59
professionalRutvik Dave18-Oct-13 10:59 
GeneralRe: Windows Update Cleanup Pin
Joe Woodbury18-Oct-13 14:16
professionalJoe Woodbury18-Oct-13 14:16 
GeneralRe: Windows Update Cleanup Pin
Marc Clifton18-Oct-13 13:28
mvaMarc Clifton18-Oct-13 13:28 

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.