813 karma · joined June 12, 2020
I have an implementation on GitHub for my personal hybrid bookmark-manager / hackernews-reader newtab extension[0]. Its still a wip but i use the website version[1] daily as it doesn’t need to be installed and can still be set as my newtab page (warning as I’ve never opened it on mobile).
[0] https://github.com/fractalhq/nutab [1] https://nutab.vercel.app
I compulsively rewrite JS into TS and 100% of the repos I work on have “allow-js” set to false in the tsconfig. It seems to be fueled by the same “OCD” I get when designing UI, organizing css, or making music for example.
The biggest things I wouldn’t be able to live without:
- the self-documenting nature of Typescript code (I instantly know what a function accepts and returns by hovering over it).
- the comprehensive auto complete my ide gets (saves hundreds of trips to the docs / source code per day).
- the incredible productivity gains when refactoring (change one thing, instantly get notified of all 30 places in the codebase that change introduced errors and clean them up in minutes).
I’ve always had it bad because of my career as a musician / producer / audio engineer.
If I do happen to become aware of it for whatever reason, it rarely takes long for for it to drift into the background again.
If I know the first letter or two of the command, then it’s only 3 keystrokes away. For example, “Evaluate Math Expression” is “cmd+shift+p”+”ev”+”enter”. The command palette also provides great additional explorability with the fuzzy searchable menu + descriptions.
This is a far superior workflow because I have access to every possible command in the editor / installed extensions (very easily mapped to my own shortcuts of I want) without the need to memorize anything. I can even reverse-search commands by typing the shortcut and it will tell me the commands bound to that shortcut.
I could be missing something, but Vim and family feels like a huge step backwards in workflow for me.
That being said, as a Svelte user, I really wish Rich would stop dragging his feet on Typescript as much as he does (no TS in markup is a huge bummer). I can’t complain too much though.. the Svelte Compiler is a magnificent beast and I couldn’t write it let alone contribute to it in a meaningful way. If leaving Typescript to the other maintainers helps him be more productive, so be it.