Click here to Skip to main content
15,887,962 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: SOLID Open/Close principles in Python Pin
Eddy Vluggen8-Jan-15 0:28
professionalEddy Vluggen8-Jan-15 0:28 
AnswerRe: SOLID Open/Close principles in Python Pin
Richard MacCutchan8-Jan-15 0:58
mveRichard MacCutchan8-Jan-15 0:58 
AnswerRe: SOLID Open/Close principles in Python Pin
Richard MacCutchan9-Jan-15 4:31
mveRichard MacCutchan9-Jan-15 4:31 
QuestionHow can i explain this to our programmers? Pin
Member 1133122523-Dec-14 5:10
Member 1133122523-Dec-14 5:10 
AnswerRe: How can i explain this to our programmers? Pin
Eddy Vluggen23-Dec-14 7:54
professionalEddy Vluggen23-Dec-14 7:54 
AnswerRe: How can i explain this to our programmers? Pin
Dominic Burford30-Dec-14 5:38
professionalDominic Burford30-Dec-14 5:38 
AnswerRe: How can i explain this to our programmers? Pin
jschell30-Dec-14 11:10
jschell30-Dec-14 11:10 
QuestionA good pattern for complex search criteria? Pin
Member 1132553220-Dec-14 14:05
Member 1132553220-Dec-14 14:05 
I am currently working on a store search function. The search criteria are quite complex, for example:

C#
Footage >= 50 AND (SizeCode == SizeType.Large OR MobileEnd == "ABC") 


I think that each criterion could be represented by a Func<store, boot> (I am using C# and LINQ).
C#
Func<Store, bool> filter1 = (s => s.Footage >= 50);
Func<Store, bool> filter2 = (s => s.MobileEnd =="abc");
Func<Store, bool> filter3 = (s => s.SizeCode == SizeType.Large);


My question is how I can deal with AND, OR, NOT logic, and order of precedence. How can I convert the user input into a LINQ expression?

Thanks.
AnswerRe: A good pattern for complex search criteria? Pin
Garth J Lancaster20-Dec-14 14:28
professionalGarth J Lancaster20-Dec-14 14:28 
AnswerRe: A good pattern for complex search criteria? Pin
Eddy Vluggen23-Dec-14 8:03
professionalEddy Vluggen23-Dec-14 8:03 
QuestionA server to communicate with a robot Pin
cocoonwls17-Dec-14 6:26
cocoonwls17-Dec-14 6:26 
AnswerRe: A server to communicate with a robot Pin
Eddy Vluggen17-Dec-14 7:34
professionalEddy Vluggen17-Dec-14 7:34 
GeneralRe: A server to communicate with a robot Pin
cocoonwls17-Dec-14 13:57
cocoonwls17-Dec-14 13:57 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen18-Dec-14 0:29
professionalEddy Vluggen18-Dec-14 0:29 
GeneralRe: A server to communicate with a robot Pin
cocoonwls18-Dec-14 13:49
cocoonwls18-Dec-14 13:49 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen19-Dec-14 5:32
professionalEddy Vluggen19-Dec-14 5:32 
GeneralRe: A server to communicate with a robot Pin
cocoonwls21-Dec-14 19:04
cocoonwls21-Dec-14 19:04 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen22-Dec-14 2:59
professionalEddy Vluggen22-Dec-14 2:59 
GeneralRe: A server to communicate with a robot Pin
cocoonwls22-Dec-14 14:45
cocoonwls22-Dec-14 14:45 
GeneralRe: A server to communicate with a robot Pin
Eddy Vluggen23-Dec-14 7:48
professionalEddy Vluggen23-Dec-14 7:48 
AnswerRe: A server to communicate with a robot Pin
Keld Ølykke4-Jan-15 12:42
Keld Ølykke4-Jan-15 12:42 
AnswerRe: A server to communicate with a robot Pin
manoranjan10-Jan-15 11:22
manoranjan10-Jan-15 11:22 
QuestionNever use pure built in types Pin
D4rkTrick11-Dec-14 6:23
professionalD4rkTrick11-Dec-14 6:23 
AnswerRe: Never use pure built in types Pin
Richard MacCutchan11-Dec-14 6:43
mveRichard MacCutchan11-Dec-14 6:43 
GeneralRe: Never use pure built in types Pin
D4rkTrick21-Dec-14 8:18
professionalD4rkTrick21-Dec-14 8:18 

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.