r/coffeescript • u/Shanebdavis • Jan 05 '18
Looking for feedback on my first programming language: CaffeineScript (BETA) - streamlining JavaScript by improving CoffeeScript
http://CaffeineScript.com
4
Upvotes
2
u/Shanebdavis Jan 05 '18
(x-post /r/programming/7o77r8) This is my first fully working programming language, and I'd love some constructive feedback.
I believe JavaScript has a golden heart, FP+OO+Dynamic-Typing, but its syntax is way too verbose. I believe the entire point of a high-level language is to help us write LESS code.
I started with CoffeeScript. It has the right ideas: everything should return a value, minimize syntax while improving readability and fix JavaScript's bad semantics. It just didn't go far enough. There is a lot of inconsistency within CoffeeScript(including V2) where those ideals have only been partially achieved.
I attempted to fix CoffeeScript's many inconsistencies while moving the language not just on par with ES6, but beyond. Most of all, I attempted to make CaffeineScript beautiful, fun and productive.
2
u/scrogu Jan 05 '18
Instead of completely implicit arrays, I recommend this which is more consistent with your block function invocation:
Also, I wouldn't make it multidimensional implicitly. I would still treat this as a single dimensional array.
I would also like to suggest that the writing of minimal code is not the best policy in all situations. In fact I would say that writing minimal code is only optimal when you are only going to be writing code which is not maintained. Code written for a system which will be maintained long term is read many times more than it is written. Probably at least 20 times read for 1 time written. Often more.
That means you should actually optimize for readability. I have written a lot of coffeescript and it is very fast to write, but not so much to read.
The other thing that really helps with maintainability is strong typing. Strong typing gives you confidence that you can refactor a module without worrying about errors that will only be caught at runtime.
A better coffeescript will not really be competitive with modern languages like TypeScript or FlowScript without the presence of strong typing and excellent editor support for things like look ahead expression and member completion.
2
u/virdvip Jan 07 '18
I really like your language. So much fresh ideas. Did you see maxtaco.github.io/coffee-script/ ?