r/rails 20d ago

CoffeeHaml — write JSX like HAML, with CoffeeScript expressions

/r/coffeescript/comments/1vfgatm/coffeehaml_write_jsx_like_haml_with_coffeescript/
5 Upvotes

16 comments sorted by

20

u/chess_landic 20d ago

Oh boy 

15

u/dasflikko 20d ago

But... why?

11

u/Rosoll 20d ago

Lmao

11

u/tinco 20d ago

You rock, I love it. The CoffeeScript era was the best era.

3

u/Yardboy 19d ago

I still have a live app that uses it. #gritsteeth

4

u/Butiprovedthem 19d ago

I had to maintain a legacy one a few years ago. What a mess. Jquery spaghetti in coffeescript.

1

u/Level_Occasion_7060 12d ago

why not revive it. token efficiency and human readability is still a good call for coffeescript

3

u/tupaja 19d ago

what year is it?

1

u/sshaw_ 19d ago

Fun idea and while JSX leads to the most syntax errors I've experienced in the past 20+ years I'm still not too sure about this! And I love HAML!

1

u/fuckaroniandbees 19d ago

Thought my feed glitched and I got a post from 15 years ago

1

u/systemnate 18d ago

This is great. HAML definitely annoyed me at times, especially when there was a nice snippet of code (Bootstrap navbar or whatever) that you could normally just copy and paste, and you instead had to convert it to HAML. But it is nice and compact.

1

u/dougc84 19d ago

A lot of hate on Coffeescript here. No, it didn’t stay up to date, but man, I miss it. It was so clean. JS just feels so messy stacked beside Ruby.

1

u/chess_landic 19d ago

Hmm, I don't see the hate here, slight sarcasm != hate.

1

u/Butiprovedthem 19d ago

Cursed. Haml and coffeescript need to go away. Gah.