3 ms·
You're right, 5x is probably an exaggeration. Maybe in practice it's more like 2x... Still that would be a lot. Often an iteration does literally take me 3 seco
by cryptica 6y ago
You're right, 5x is probably an exaggeration. Maybe in practice it's more like 2x... Still that would be a lot.
Often an iteration does literally take me 3 seconds; like if I just want to quickly log a variable to the console. I can find out in 2 seconds.
Other times, if I made a small mistake it will take me less than 30 seconds to fix and test with JS.
Most of my time coding is spent on very short iterations which are 30 seconds or less.
I rarely encounter problems with type mismatches or wrongly named variables or that sort of thing (and when I do, my test case catches that even faster than a TS compiler would have)...
Also, waiting for the compiler tends to break my train of thought.
It's a distraction and it increases my anxiety levels because I end up spending most of my programming time anxiously waiting for a result - That's why it's not enjoyable.
I hate this waiting time between when I implement the change and when I get to see the result. I think that even people who say that they like TypeScript will subconsciously feel more anxious while they're using TS. Waiting for results naturally creates anxiety; you want to minimize that time.
I'm even thinking that maybe making employees feel anxious is part of the corporate agenda to keep them under control. Maybe they did some studies and found that TypeScript caused fewer employees to leave the company? Maybe it wasn't for the reasons they believed. Anxiety tends to make people more withdrawn, less confident and stay in jobs they hate.
- onion2k 6y agoThe thing is that TS is effectively a compiler (I know it isn't _really_ but it is in all but name). Literally millions of developers write code for languages that use a compiler very happily[1]. Having a compile step isn't a bad thing, and the fact it takes a few seconds is fine. Having a development cycle where you're concerned about how productive you are down to the number of seconds things take is just silly. The problem is with the way you work. You need to chill out a bit, take more time over your code, and think things through more. By the sounds of it you can make yourself about twice as productive just by saving your code half as often. [1] A lot of them look at JS and TS like it's actually worse because there isn't a compiler step.
- cryptica 6y agoThe way I work, I spend several days or weeks thinking, drawing diagrams about the main concepts and architecture, but when it's time to implement, I like to get the project done as quickly as possible. I don't usually encounter unexpected problems on projects; that's what the planning is for. If you've figured out the right architecture ahead of time and you've solved all the obvious technical hurdles in your mind ahead of time, then implementation is very straight forward and yes iteration time makes a huge difference.