5 ms·
Honestly? Part of why I sort of shrug and don't find any of these languages terribly different is that, most of the lessons that are surfaced in one language ar
by eropple 12y ago
Honestly? Part of why I sort of shrug and don't find any of these languages terribly different is that, most of the lessons that are surfaced in one language are applicable elsewhere.
I strongly disagree with regards to the notion that Scala is closer to Haskell, I think the scalaz folks want it to be and I think not many people listen to them. Instead I think Scala is what Java should become and I find a lot of valuable lessons come from it when I'm writing Java, functionally and immutably. It's harder than in Scala, hard enough that I default to Scala when I have the choice, though with IDEA it's not that hard. (My C++ looks pretty functional and immutable too, and because everything lives on the stack or in unique_ptrs I find that it makes memory management a heck of a lot easier, too!)
Or I write metaprogramming-heavy C# and Java, automating annoying or hard problems (and I do have reasons to use C#, because Java doesn't run in half the places I want it to!) with a lot of reflection because it makes sense to me. A lot of that comes from JavaScript and Ruby; the expression of it is different in a statically typed language, but to me it's the same kind of thinking.
They're all programming languages. They emphasize different things. That doesn't mean that all those things can't be happily incorporated into whatever you're doing in whatever language if you're willing to put in the effort. I am, and I think it makes me write much better code because of it. Small sample size and all, but I've never had anybody complain that "your code isn't idiomatic", though I have had people say "I like that, I've never seen it before."