4 ms·
It's really interesting to see so many people going back and forth between dynamically typed languages Clojure and Elixir, and statically typed languages like O
by sdegutis 7y ago
It's really interesting to see so many people going back and forth between dynamically typed languages Clojure and Elixir, and statically typed languages like OCaml and Haskell.
Lately I've even started to even question whether TypeScript is really worth the trouble and slowness it's causing. I wrote about it briefly here:
https://sdegutis.com/2019-06-20-considering-removing-typescript https://sdegutis.com/2019-06-20-considering-removing-typescr...
On one hand, TypeScript's type system is extremely convenient when mixed with VS Code. On the other hand, it's getting slower and slower, which is making it actually counterproductive. I often wonder if I'd be faster in just plain JS.
- jzoch 7y agoWhat you've found might be that because you had this explicit contract (types) that coerced you to write your code in a certain way, your code looks simpler when you just turn the types off. But would you have written it this way had there been no types? This exercise is more similar to converting a typed language like java to a type inferenced one (a la java 12 or "auto" in C++11). If you didnt have the guard rails of types the way you built your system may differ by relying a lot more on runtime behavior and conventions rather than compile time type checking and explicitly enforced rules.
- sdegutis 7y agoThat's exactly what I aim to find out. But I don't feel very comfortable trying it on a client project, not yet at least. Having written in many statically and dynamically typed languages, I feel like I should have already come to a conclusion by now. Yet somehow I'm still on the fence after all these years.