OpenUserJS.org
OpenUserJS.org copied to clipboard
Consider ES6+ migration
The project is currently ES5.1 and it would be helpful to migrate so we can use some more features.
- Some of the CONTRIBUTING.md guidelines would need to be changed... especially regarding "hoisting" since the
letsyntax would change if it was coded hoisted. We are using someletsyntax already for speed/memory considerations in key code points. - I am totally not into the arrow operator and it actually makes code more difficult to read and improves laziness. :-1:
- With the recent issue at #1548 it may be prudent to dump async at some point since
asyncandawaitexist. There are a few other technologies too butPromisesare also a :-1: from me. - I do like callbacks but when combined with our current site issue and async it seems to be error prone. Perhaps a combination of these to be allowed in CONTRIBUTING.md
While I'm at #1548 I'll do some pro tests to see how well it handles that soon after the holidays.
Open to discussion here.
Note:
- #1709 deprecation of request may force some
async/awaitusage i.e. promises. mongoose uses system promises and we have some.then,.catchsyntax already.
Ref(s):
- https://nodejs.org/api/util.html#util_util_callbackify_original