[HN Gopher] Decision Table Patterns (2020)
       ___________________________________________________________________
        
       Decision Table Patterns (2020)
        
       Author : rramadass
       Score  : 65 points
       Date   : 2023-12-31 06:50 UTC (1 days ago)
        
 (HTM) web link (www.hillelwayne.com)
 (TXT) w3m dump (www.hillelwayne.com)
        
       | rramadass wrote:
       | Related: Decision Table based Methodology for Software
       | Development - https://news.ycombinator.com/item?id=38821708
        
       | ganzuul wrote:
       | Truth tables were when the rubber really hit the road for me in
       | understanding computers. Up until then I had understood
       | transistor logic levels and the fundamentals of programming, but
       | the two seemed miles apart.
        
       | amelius wrote:
       | There are of course ways to compress the information in these
       | tables in many practical cases, e.g. using binary decision
       | diagrams.
        
       | happysadpanda2 wrote:
       | > What we can do is replace the number N with the equation N % 2.
       | That has only a finite number of inputs and leads to a valid
       | table.
       | 
       | Just so I'm understanding it correctly, it should say "finite
       | number of OUTPUTS" there, right?
        
         | JonChesterfield wrote:
         | I think they mean "finite number of rows", which would be
         | "finite number of distinct inputs" or "finite number of
         | outputs". The context is the challenge of writing down an
         | infinite table.
         | 
         | There's probably a recursive/inductive equivalent notation but
         | maybe it's hard to render clearly as a table.
        
           | happysadpanda2 wrote:
           | I just re-read the entire reasoning, and I got it all wrong I
           | think. N%2 will only ever yield one of two inputs. In short,
           | I shouldn't try to brain before the morning coffee ;D
        
       | ragebol wrote:
       | Once you have a decision table, representing the logic conditions
       | can be simplified by Karnaugh maps:
       | https://en.m.wikipedia.org/wiki/Karnaugh_map
        
       | tlarkworthy wrote:
       | There are more expressive versions which are less formal but have
       | the ability for more than one row to fire, which is then resolved
       | with a "hit policy". Used in finance and process modelling
       | 
       | https://docs.camunda.io/docs/components/best-practices/model...
        
       ___________________________________________________________________
       (page generated 2024-01-01 23:01 UTC)