by s_kilk · 9y ago · 0 comments
})
})
})
})
})
})
},
})
})
})
})
})
})
},
Whatever do you mean?It's incredibly clear, allows clean and concise error handling, and is easy to use.
So is having to set up preprocessors whenever you want to use Coffeescript. Which is easy in Rails but a challenge in many other scenarios such as simple static sites.
Not to mention the number of projects I've joined which has a random mix of both .js and .coffee files.
I'd prefer spacing over bracket if it was natively supported in the language as it is in my favourite languages Erlang, Elixir, and Haskell. But that's not the case here.
You meant ES2017.
HTH
`.then(x => doSomethingWith(x));`
There are still some other cases where the mess of brackets is overkill, other than callback hell.
Promisify, or (as I prefer to) just "return new Promise((resolve, reject) => { nonPromisedStuff(...) })"?
> There are still some other cases where the mess of brackets is overkill, other than callback hell.
Like bad coding style?
Additionally every JS file has to be preprocessed making debugging slightly harder and set up more involved. Every person contributing to the project has to become familiar with CS. Plus mixing both CS and non-CS files always ends up happening in my experience.
As a former CS fan, I really don't see the utility of using CS like I used to.