3 ms·
i used to write ruby, this reminds me of a js ruby it was about a decade ago and i liked ruby for the implicit nature and minimal looking code— without the cur
by tylerchilds 2y ago
i used to write ruby, this reminds me of a js ruby
it was about a decade ago and i liked ruby for the implicit nature and minimal looking code— without the curly braces and shorthand notation whenever possible
return true unless false
that line is roughly why i favor curly braces and javascript’s control flow
lines like return true unless false are so easy to write in the moment, but so much to reason about it post.
in all, i’m in favor of systems that bring future code to today’s code, like polyfilling tc39, but probably won’t bet against core javascript semantics again, like other coffee-script adjacent comments, which was the dominant flavor of js for rubyists at the peak.
- wruza 2y agoI came to the same conclusion after the initial perl intoxication. Stable, regular constructs are much easier to parse and get back to than this pseudo-natural language. My worst confusion is python’s truly unreadable “x if cond else y” construct, especially when x and y are non-trivial. Putting a condition in between is not smart. Oh, now this gets me started on “is not”! Keeping calm…