|
|
|
|
|
by ativzzz
1195 days ago
|
|
So ruby has a JS transpiler - opal - https://opalrb.com/ I tried using it a little bit but the reality is if you need JS to make your app more interactable it's really worth it to just learn some JS. As soon as you need something complex the extra layer of abstraction just gets in the way and becomes more of a headache, and if you don't need anything complex then you don't need a fancy JS solution in the first place. JS only becomes complex when you are trying to create an enterprise version of your app along with a build platform. You can always just sprinkle in <script> tags in your HTML for simple one liners without getting into the weeds. |
|
You can be a lot more productive if you avoid JS entirely.