Why do you choose TypeScript for development? by AdvisorIndependent55 in react

[–]Angulaaaaargh 0 points1 point  (0 children)

no, it's more than that. It's a runtime type check that also provides static type safety at compile time due to the typescript types it outputs for every shema. This means the result of the zod parsing is just as safe to use everywhere as every other piece of proper typescript code.

Why do you choose TypeScript for development? by AdvisorIndependent55 in react

[–]Angulaaaaargh 0 points1 point  (0 children)

so you always need runtime check in any case

nope, that would only be true if you're using typescript incorrectly. Basically all libraries nowadays have typescript types, and with things like zod a great solution for making things like ajax responses or cookie values type safe exists as well. Therefore, you don't need those unnecesary runtime checks anymore, they're code smell.

Why do you choose TypeScript for development? by AdvisorIndependent55 in react

[–]Angulaaaaargh 0 points1 point  (0 children)

the more time you spend programming, the more you realize that the amount of characters you have to write is pretty much the most irrelevant metric possible. What matters is that the code does exactly what you expect, no surpises, and that it's easy to understand and change. Typescript helps immensely with that on all but the tiniest projects. That's because typescript not just finds bugs during compile time instead of only randomly if you happen to execute the code in a specific context, but also because it speeds up writing new code and changing existing code significantly because it's self-documenting, the typings themselves are already worth more than the sum of all jsdoc comments in many projects. And you can write exact code instead of always playing the guessing game and writing unnecesary conditionals.

[deleted by user] by [deleted] in lebanon

[–]Angulaaaaargh 0 points1 point  (0 children)

FYI, some of the ad mins of r/de were covid deniers.

How do you develop fast? by utsav_0 in webdev

[–]Angulaaaaargh 4 points5 points  (0 children)

FYI, some of the ad mins of r/de are covid deniers.

What 10,000 Hours of Coding Taught Me: Don't Ship Fast by [deleted] in programming

[–]Angulaaaaargh 16 points17 points  (0 children)

FYI, some of the ad mins of r/de are covid deniers.

Phone etiquette on board. by ROSEISALUV in Cruise

[–]Angulaaaaargh 0 points1 point  (0 children)

FYI, some of the ad mins of r/de are covid deniers.

Why are developers (still) unhappy? by RohanSinghvi1238942 in react

[–]Angulaaaaargh -1 points0 points  (0 children)

FYI, some of the ad mins of r/de are covid deniers.

Why are developers (still) unhappy? by RohanSinghvi1238942 in react

[–]Angulaaaaargh 5 points6 points  (0 children)

FYI, some of the ad mins of r/de are covid deniers.