At work encountered boolean expression from 6 arguments and it was optimized for characters, but not for readability. In the end I managed to extend expression, but got an idea for a small utility.
Utility is pretty simple, extract variables and brute force through all possible true\false combinations and compare output of two expressions. If output matches for all possible argument combinations, then we can safely replace one expression with other and don't worry about breaking changes. Fun small project for a weekend.
Was suprised how easy it is to start debugging local files in Visual Studio Code
- Install extension "Debugger for Chrome"
- Press F5 and window will open asking to select environment
- Choose "Chrome"
- launch.json file will be created in .vscode directory, change url parameter to html file full path.
- Restart debugging
Visual Studio Code will open html file in Chrome and attach debugger.
Source available at github and live version: https://floatincodeblog.github.io/BoolLogicValidator/