Click here to Skip to main content
15,124,134 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: Forgot to Lock the Door Pin
Keith Barrow15-Feb-12 4:18
professionalKeith Barrow15-Feb-12 4:18 
GeneralRe: Forgot to Lock the Door Pin
Dalek Dave15-Feb-12 4:31
professionalDalek Dave15-Feb-12 4:31 
GeneralRe: Forgot to Lock the Door Pin
CDP180215-Feb-12 5:20
MemberCDP180215-Feb-12 5:20 
GeneralRe: Forgot to Lock the Door Pin
Dalek Dave15-Feb-12 5:27
professionalDalek Dave15-Feb-12 5:27 
GeneralRe: Forgot to Lock the Door Pin
Alberto Bar-Noy15-Feb-12 5:31
MemberAlberto Bar-Noy15-Feb-12 5:31 
GeneralRe: Forgot to Lock the Door Pin
Phil Martin15-Feb-12 6:27
professionalPhil Martin15-Feb-12 6:27 
GeneralRe: Forgot to Lock the Door Pin
Sandy_L_Schultz16-Feb-12 2:08
MemberSandy_L_Schultz16-Feb-12 2:08 
QuestionIs this a known pattern? Pin
Nicholas Butler15-Feb-12 3:55
sitebuilderNicholas Butler15-Feb-12 3:55 
I'm having difficulty finding a name for a style of programming. You can make one up if you like, but I'd prefer something that is already documented Smile | :)

I've written a layer over the Entity Framework that allows the application code to pass parameters into the data layer that shape the returned result sets.

So you can write something like this:
List<User> users = DAL.User.FetchAll( where: user => user.Age > 21 );

It's declarative programming, but I was looking for a more specific name. Something like "locality of intent". Basically, you say what you need in the place where you need it.

It's the opposite of having a data layer method like this:
List<User> FetchAllUsersWhereAgeGreaterThan( int minimumAge )

Is this a known pattern? I've run out of obvious words to Google.

Ta,
Nick

AnswerRe: Is this a known pattern? Pin
TorstenH.15-Feb-12 3:59
MemberTorstenH.15-Feb-12 3:59 
GeneralRe: Is this a known pattern? Pin
OriginalGriff15-Feb-12 4:08
mveOriginalGriff15-Feb-12 4:08 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 4:14
sitebuilderNicholas Butler15-Feb-12 4:14 
AnswerRe: Is this a known pattern? Pin
MehGerbil15-Feb-12 4:12
MemberMehGerbil15-Feb-12 4:12 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 4:18
sitebuilderNicholas Butler15-Feb-12 4:18 
AnswerRe: Is this a known pattern? Pin
leppie15-Feb-12 4:19
Memberleppie15-Feb-12 4:19 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 4:28
sitebuilderNicholas Butler15-Feb-12 4:28 
AnswerRe: Is this a known pattern? Pin
peterchen15-Feb-12 4:46
Memberpeterchen15-Feb-12 4:46 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 5:05
sitebuilderNicholas Butler15-Feb-12 5:05 
GeneralRe: Is this a known pattern? Pin
peterchen15-Feb-12 10:03
Memberpeterchen15-Feb-12 10:03 
GeneralRe: Is this a known pattern? Pin
KP Lee16-Feb-12 9:27
MemberKP Lee16-Feb-12 9:27 
AnswerRe: Is this a known pattern? Pin
Pete O'Hanlon15-Feb-12 4:46
mvePete O'Hanlon15-Feb-12 4:46 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 5:11
sitebuilderNicholas Butler15-Feb-12 5:11 
GeneralRe: Is this a known pattern? Pin
Pete O'Hanlon15-Feb-12 5:24
mvePete O'Hanlon15-Feb-12 5:24 
GeneralRe: Is this a known pattern? Pin
Nicholas Butler15-Feb-12 5:36
sitebuilderNicholas Butler15-Feb-12 5:36 
GeneralRe: Is this a known pattern? Pin
LePoete16-Feb-12 10:28
MemberLePoete16-Feb-12 10:28 
GeneralRe: Is this a known pattern? Pin
Stefan_Lang17-Feb-12 2:14
mveStefan_Lang17-Feb-12 2:14 

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.