4 ms·
I also disliked my time with TypeScript, but perhaps its value hasn't made itself entirely apparent to me. Most of my programming experience has also been with
by keb_ 6y ago
I also disliked my time with TypeScript, but perhaps its value hasn't made itself entirely apparent to me. Most of my programming experience has also been with dynamically typed languages. I think if you had already spent enough time with a language like JavaScript or Lua and familiarized yourself with its quirks/footguns, you learn how to avoid the common pitfalls of not having a strict type system.
Although I've found that TypeScript is a great way to attract devs who hate JavaScript to try working on front-end.
- cageface 6y agoWhen working with devs that have grown up on dynamically typed languages I often find that they have not really thought carefully about the structure of their data and there are essentially many ad hoc data types strewn throughout the code. Thinking in types from the beginning leads to much better structured code and stronger abstractions IMO.
- DabbyDabberson 6y agoI couldn't agree more. I think the introduction of types in JS (either TS or flow) has been the single biggest leap in front end development in a decade.
- wry_discontent 6y agoI see the same thing, but in people who primarily work in statically typed languages. I don't think there's much of a pattern in wrt types, but people who don't think about data.
- cageface 6y agoSpecifying all those complex ad hoc data types in a statically typed language is so tedious I think it pushes you to start looking for unifying abstractions.
- mekster 6y agoWhat editor are you using? If you don't use an editor that supports TS, then it's all moot. Editors are meant to auto complete any parameters that you have typed as well as provide errors that don't fit to your typing. Using editors like vim wouldn't work.
- brlewis 6y ago> Using editors like vim wouldn't work Hi. Fellow emacs enthusiast here. We can evangelize emacs tide mode and slander vim on other TypeScript articles, but I think it's best not to do so on this article, because it specifically mentions vim in the editor support section. https://svelte.dev/blog/svelte-and-typescript#2_Editor_Support https://svelte.dev/blog/svelte-and-typescript#2_Editor_Suppo...
- keb_ 6y agoHey, I used VSCode. I could see how tightly integrated TS was with it, and I appreciated it.