Click here to Skip to main content
14,359,465 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: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 6:58
memberhoney the codewitch6-Aug-19 6:58 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 7:16
protectorJörgen Andersson6-Aug-19 7:16 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 7:19
memberhoney the codewitch6-Aug-19 7:19 
GeneralRe: Grrrr @ .NET Pin
Shuqian Ying5-Aug-19 23:48
memberShuqian Ying5-Aug-19 23:48 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:11
memberhoney the codewitch6-Aug-19 2:11 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:11
mveBillWoodruff6-Aug-19 2:11 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:19
memberhoney the codewitch6-Aug-19 2:19 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:40
mveBillWoodruff6-Aug-19 2:40 
honey the monster, codewitch wrote:
have you seen my code
Yes, it reminded me of Thai traffic in terms of frequent pile-ups, no one observing traffic light signals, or speed limits Smile | :)

Actually, I am a fan of your work, and its ambition, even though I can't understand it ... yet. It's great thing to love what you do, to be deeply involved. Van Gogh said:
Quote:
"I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying: 'I know all about it. I've already found it.'
I remain fascinated by the (very old) methodology of "Decision Tables," which, I am sure you know, is one way to describe a grammar, or state machine.

The problem that intrigues me is: given a set of "rules" like this:
Quote:
Airfare

Infant passengers under two years old are offered a discount of 80% on domestic flights Infant passengers under two years old are offered a discount of 70% on international flights.

Youth passengers (between two and sixteen) are offered a discount of 10%, for any kind of destination.

Frequent flyer enjoys a discount of 20%.

For international flights, passengers are offered 15% discount if they travel during off-seasons.There would be no discount for international flights, except that when the passenger is an infant passenger or when travelling during off-season.

Passengers who make reservation five months before their journey are offered a discount of 10%.

Frequent flyer enjoys a discount a 15% by making reservation five months before their journey.

The amount of discount is accumulated.

The maximum amount of discount for infant passengers is 80%

The maximum amount of discount for non-infant passengers is 20%
While a decision table (or a gigantic nested if/then/else) for this can be designed any number of ways, how do you parse/analyze ... in code ... the factors with the most discriminatory power, and the factors that can be omitted in evaluation based on the key factors. I scan the rules, and, intuitively, see 'age as the key factor, but, damn if I can articulate exactly how that intuitive response comes into play.

I show this rule-set to intermediate students; their responses, in terms of what is most significant, vary widely.

cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:53
memberhoney the codewitch6-Aug-19 2:53 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 3:09
mveBillWoodruff6-Aug-19 3:09 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 3:20
memberhoney the codewitch6-Aug-19 3:20 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff7-Aug-19 3:25
mveBillWoodruff7-Aug-19 3:25 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch7-Aug-19 3:56
memberhoney the codewitch7-Aug-19 3:56 
GeneralLast week I stood at the edge... Pin
CodeWraith5-Aug-19 8:36
memberCodeWraith5-Aug-19 8:36 
PraiseRe: Last week I stood at the edge... Pin
RickZeeland5-Aug-19 8:54
mveRickZeeland5-Aug-19 8:54 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:04
memberCodeWraith6-Aug-19 1:04 
GeneralRe: Last week I stood at the edge... Pin
Mike Hankey5-Aug-19 9:35
professionalMike Hankey5-Aug-19 9:35 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:04
memberCodeWraith6-Aug-19 1:04 
GeneralRe: Last week I stood at the edge... Pin
Ron Anders5-Aug-19 9:46
memberRon Anders5-Aug-19 9:46 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:05
memberCodeWraith6-Aug-19 1:05 
GeneralRe: Last week I stood at the edge... Pin
glennPattonWork5-Aug-19 10:58
professionalglennPattonWork5-Aug-19 10:58 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 1:07
memberCodeWraith6-Aug-19 1:07 
GeneralRe: Last week I stood at the edge... Pin
Gary Wheeler6-Aug-19 8:03
memberGary Wheeler6-Aug-19 8:03 
Generalrube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 8:23
memberhoney the codewitch5-Aug-19 8:23 
GeneralRe: rube goldberg, computer scientist Pin
Mark_Wallace5-Aug-19 9:23
memberMark_Wallace5-Aug-19 9:23 

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.