This repository has been archived by the owner on Nov 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Roadmap (v2.0.0)
Greg Swindle edited this page Feb 17, 2019
·
1 revision
A notepad for refactoring and improving jsrules.
Since acronyms like "js" are poo-pood infixes, maybe we should go back to its roots, and try something like:
/* 🌟 */ @archetypes/rules
-
extract:method
- There is lots of repetitious source code that could use refactor:extract function, especially:-
nameFactory
- A factory function that eliminates duplicate code by creating a name for unique RuleElements, e.g.,const nameFactory = (rule, ruleElement, operator) => `(${rule.name} ${operator.toString()} ${ruleElement.name})`
-
resultFactory
- returns aProposition
const resultFactory = (rule, ruleElement, operator) => { const name = nameFactory(rule, ruleElement, operator) const truthVal = invoke(rule.value new Proposition( }
-
-
remove-middle-man
: Move all of Grunt's features into npm-scripts
- #and =>
We'll keep many low-level operator, e.g., comparison operator, but also add
includes