Re:My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't De...
by arrowsmith on Tuesday October 24, 2023 @10:07AM
(#37999363)
> javascript was in a horrible, braindead place
was?
Re:My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't De...
by e12e on Tuesday October 24, 2023 @10:25AM
(#37999593)
Before modules, "let"/"const", uniform APIs cross browsers (xmlhttprequest, anyone?) - js was much, much worse. Rails dates back to before 2005 - before chrome existed, and around the time Firefox emerged from Netscape.
Re:My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't De...
by PH95VuimJjqBqy on Tuesday October 24, 2023 @01:19PM
(#38002229)
coffeescript was an obvious deadend at the time it was created.
The only thing that could have saved (maybe) is better tooling but the community had no interest in it (who knows why). Rust feels like this too.
Re:My Love Letter to Rails (and Ruby) – Or, Why RoR Isn't De...
by e12e on Tuesday October 24, 2023 @06:35PM
(#38006624)
If I remember correctly, the first version of coffee script was quite sane, but the second version was completely different, and IMNHO much worse?
I think the initial version was a moderate enhancement on js, fixing some things like global scope etc?
As much as I think RoRs initial love for coffee script was a mistake (although it certainly did help at a time when javascript was in a horrible, braindead place) - I'm not sure I'd like the js mess at Rails' feet.
I think that the team navigated js integration as well as could be expected - and everyone was happy in version 7 when js support in browsers had advanced to the point that most of the special handling could simply be ripped out.
The remaining issue IMNHO is that there's no browser support for typescript - and using ts dictates a build pipeline which would otherwise be needless complexity with modern js and js modules.