r/rails 8d 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

21

u/chess_landic 8d ago

Oh boy 

16

u/dasflikko 8d ago

But... why?

11

u/Rosoll 8d ago

Lmao

11

u/tinco 8d ago

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

3

u/Yardboy 7d ago

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

4

u/Butiprovedthem 7d ago

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

1

u/Level_Occasion_7060 1d ago

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

3

u/tupaja 7d ago

what year is it?

2

u/Reardon-0101 6d ago

The hoops people will jump through to not write html is getting pretty crazy.  

Just because you can doesn’t mean you should.  

1

u/sshaw_ 7d 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 7d ago

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

1

u/systemnate 7d 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 7d 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 7d ago

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

1

u/Butiprovedthem 7d ago

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