5 ms·
For me it is that I learned to program in dynamically typed languages and have used them for decades. I am interested in using types, but it is not enforced at
by irrational 3y ago
For me it is that I learned to program in dynamically typed languages and have used them for decades. I am interested in using types, but it is not enforced at my work, I am not given time to learn how to use them at work, and I’m too busy at home to learn it on my own.
- dsQTbR7Y5mRHnZv 3y agoI find it helps to think about it like this: Whether you specify them or not, the data moving around your application _has_ types. Strings, ints, booleans - they're all there. You're just keeping that information in your head while you work. By writing them in the code, you're simply offloading all of that and saying "I trust the computer to validate this better than I can." Which is exactly the kind of thing we should be trusting computers to do. They won't forget what type something is 5 function calls deep and they won't get tired from lack of sleep. I know I prefer having the computer tell me I made a mistake while I'm developing something rather than a user emailing me after I've shipped it.
- irrational 3y agoSure, I just have no idea how to write them, what the syntax is, where to write them, etc. Since my work doesn’t care to give me time to find out, and I don’t have time to do it on my own, it isn’t going to happen until it becomes a priority at work.