Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
1–10 of 47 posts
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#2Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#3Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#4Plain vanilla JS (and therefore TypeScript) still lacks one killer feature from the Coffee family: Null propagation operators (`a ? b` => `a != null ? a : b`, `a?.x` => `a == null ? null : a.x`, etc). Even C# has it.
There is a Stage 1 Null Propagation proposal: https://github.com/tc39/proposal-optional-chaining
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#5Thanks, this is something I've been thinking about for a while.
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#6Plain vanilla JS (and therefore TypeScript) still lacks one killer feature from the Coffee family: Null propagation operators (`a ? b` => `a != null ? a : b`, `a?.x` => `a == null ? null : a.x`, etc). Even C# has it.
However the `a?.b` form is coming (it's not just null propagation, it's an Existence Operator). It's called "optional chaining"
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#7Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#8It's pretty wild having seen CoffeeScript spread like a wildfire in the early 2010s, only to be discarded nearly as fast a couple years later.
I loose "nerd cred" for it, but it's better for my clients that way.
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#9I'm going to miss CoffeeScript, but being able to use ES7 features (notably async/await) is worth it.
Re: Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep
#10It's pretty wild having seen CoffeeScript spread like a wildfire in the early 2010s, only to be discarded nearly as fast a couple years later.
I also started a JS project in 2015 were the lead dev started 3 months before me with... CS! But he rewrote most of it in ES2015.