Decision Matrix based programming | Coding without if else conditions most of the time
Cognitive Programmer Cognitive Programmer
26.9K subscribers
242 views
0

 Published On Sep 29, 2023

Decision matrix also known as decision table is an amazing data structure which can be used within the program to eliminate most of the if conditions and branching within the code.

Not only that, with decision matrix and decision tables, we can change the execution path as well as the functionality of a program without changing the code.

And if we do that, the chances of producing a high quality code increases drastically as changes in. the decision matrix will not impact the functionality as well as error handling mechanisms of the code.

In this video, I've talked about how we can replace if else conditions with the help of decision matrix. I've also touched upon using multi dimensional decision matrix as well as the data structures like dictionary and maps which can be used for creating a decision matrix.

Timecodes
0:00 - Branching in the code and if else conditions
0:35 : Decision Matrix based Programming
1:18 : What is a Decision Matrix
2:13 : Coding with if else conditions
2:45: Coding with Decision Matrix
4:29 : Benefit of using Decision Matrix and Decision Tables
5:06 : How Decision Matrix implements functionality without changing any code
6:27 : Multi Dimensional Decision Matrix
7:34 : Data structures to use multi dimensional decision matrix
8:13 : Extension of the program without changing any code
8:19 : Reasons to use decision tables and decision matrix


#decisionmatrix #decisiontable #programming



SUBSCRIBE - https://www.youtube.com/AnInsightfulT...
INSTAGRAM - https://www.intagram.com/AnInsightful...
Twitter -   / aitdaksh  
Facebook -   / aninsightfultechie  

show more

Share/Embed