News for hackers. Stuff that matters.
Re:CoffeeScript for TypeScript by Yahivin on Monday February 27, 2023 @06:52PM (#34963789)
Hello! I created Civet ask me anything.

Or just curse me for keeping the dream of CoffeeScript alive :P

Re:CoffeeScript for TypeScript by intellix on Monday February 27, 2023 @07:05PM (#34963908)
I've got 99 problems but the tersity in TypeScript isn't one of them. Can't wait to groan that a random project we depend on uses this and I have to learn new syntax to make a 1 line change.

Whenever I saw coffeescript I just felt like the developers fancied a change for change sake and doesn't have real problems to solve.

It's clever though to create a new syntax, I'll give you that

Re:CoffeeScript for TypeScript by Yahivin on Monday February 27, 2023 @07:35PM (#34964184)
I like the documentation that TypeScript types provide but I'm always running into lots of small quality of life issues that wear me down.

- Rest in any position

- Dedented block strings

- Default to const in for loops

- Lack of -> function shortand

- Everything is an expression

- Implicit returns

- Chained comparisons

- Nested unbraced object literals

- Optional trailing commas in arrays

- Optional trailing commas in objects

- x.map .name function shorthand

Each one is a fairly minor concern but they all add up. I'm sure different people will have a different list of favorite features as well. One of my goals in creating Civet was to fix my top 100 issues with TS syntax while being 99% backward compatible. The ultimate goal being: TS with my top 100 issues fixed will be the best language I have ever used.

Re:CoffeeScript for TypeScript by duttaoindril on Tuesday February 28, 2023 @12:34AM (#34966018)
Hey Yahivin! I love the idea and would love to use it and spread it. I think the best way to jumpstart that is a VS Code extension that allows Civet to be used as an Emmet style tool for the modern developer - write code really quickly and have it convert to production grade typescript following all your eslint / prettier rules, and use it as a personal speed up tool for just writing. When your coworkers start asking how you're moving so fast you tell them about Civet!
Re:CoffeeScript for TypeScript by Yahivin on Tuesday February 28, 2023 @01:00AM (#34966174)
Thanks! Sounds like a good idea and a nice way to make it easier for people to get started playing around with Civet.
Re:CoffeeScript for TypeScript by rzzzt on Tuesday February 28, 2023 @01:24AM (#34966294)
Sorry, a slightly offtopic question: who drew the mascot? :)
Re:CoffeeScript for TypeScript by Yahivin on Tuesday February 28, 2023 @05:47PM (#34976029)
DALL-E 2
Re:CoffeeScript for TypeScript by mikl on Tuesday February 28, 2023 @05:30AM (#34967778)
I guess an animal that poops out coffee is strangely fitting for this project.
Re:CoffeeScript for TypeScript by myaccountonhn on Tuesday February 28, 2023 @08:33AM (#34969096)
Super nicely done! Thank you so much for contributing with this.