Re:Show HN: CalDOM: An agnostic, reactive and minimalist Jav...
by wwweston on Monday July 19, 2021 @03:17PM
(#27886279)
I also don't like underscores much, but this is JS, so shouldn't `window.identifierOfYourChoice = _` alias it without much ado?
[ Parent
| on HN ]
Re:Show HN: CalDOM: An agnostic, reactive and minimalist Jav...
by dumindaxsb on Tuesday July 20, 2021 @03:50AM
(#27891022)
I understand.
I picked it mainly for 3 reasons. In my opinion,
1. _ kind of hide itself & give more prominence to the rest of the code (logic) 2. If we pick a long name like CalDOM, it becomes a PITA when it repeats so many times. 3. Not to be conflicted with jQuery by using $
To avoid conflicts, CalDOM provides an official workaround to define the alias before loading: https://caldom.org/docs/#_cal_dom_alias