Click here to Skip to main content
15,918,742 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 5:58
mvahoney the codewitch6-Aug-19 5:58 
GeneralRe: Grrrr @ .NET Pin
Jörgen Andersson6-Aug-19 6:16
professionalJörgen Andersson6-Aug-19 6:16 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 6:19
mvahoney the codewitch6-Aug-19 6:19 
GeneralRe: Grrrr @ .NET Pin
Shuqian Ying5-Aug-19 22:48
Shuqian Ying5-Aug-19 22:48 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:11
mvahoney the codewitch6-Aug-19 1:11 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 1:11
professionalBillWoodruff6-Aug-19 1:11 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 1:19
mvahoney the codewitch6-Aug-19 1:19 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 1:40
professionalBillWoodruff6-Aug-19 1: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 1:53
mvahoney the codewitch6-Aug-19 1:53 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff6-Aug-19 2:09
professionalBillWoodruff6-Aug-19 2:09 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch6-Aug-19 2:20
mvahoney the codewitch6-Aug-19 2:20 
GeneralRe: Grrrr @ .NET Pin
BillWoodruff7-Aug-19 2:25
professionalBillWoodruff7-Aug-19 2:25 
GeneralRe: Grrrr @ .NET Pin
honey the codewitch7-Aug-19 2:56
mvahoney the codewitch7-Aug-19 2:56 
GeneralLast week I stood at the edge... PinPopular
CodeWraith5-Aug-19 7:36
CodeWraith5-Aug-19 7:36 
PraiseRe: Last week I stood at the edge... Pin
RickZeeland5-Aug-19 7:54
mveRickZeeland5-Aug-19 7:54 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:04
CodeWraith6-Aug-19 0:04 
GeneralRe: Last week I stood at the edge... Pin
Mike Hankey5-Aug-19 8:35
mveMike Hankey5-Aug-19 8:35 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:04
CodeWraith6-Aug-19 0:04 
GeneralRe: Last week I stood at the edge... Pin
Ron Anders5-Aug-19 8:46
Ron Anders5-Aug-19 8:46 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:05
CodeWraith6-Aug-19 0:05 
GeneralRe: Last week I stood at the edge... Pin
glennPattonWork35-Aug-19 9:58
professionalglennPattonWork35-Aug-19 9:58 
GeneralRe: Last week I stood at the edge... Pin
CodeWraith6-Aug-19 0:07
CodeWraith6-Aug-19 0:07 
GeneralRe: Last week I stood at the edge... Pin
Gary Wheeler6-Aug-19 7:03
Gary Wheeler6-Aug-19 7:03 
Generalrube goldberg, computer scientist Pin
honey the codewitch5-Aug-19 7:23
mvahoney the codewitch5-Aug-19 7:23 
GeneralRe: rube goldberg, computer scientist Pin
Mark_Wallace5-Aug-19 8:23
Mark_Wallace5-Aug-19 8: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.