Earlier quoted context omitted.
My world changed when I started thinking in a strongly typed way (not just using string and number) and representing state changes as different types rather than interpreting than through property values. Once you do that then your code becomes mapping from one type to the next. For example, if `type ShoppingCart = EmptyCart | LoadedCart` then `addToCart` is just a map from `ShoppingCart` to `LoadedCart`. It makes in…
I am not against types but I do find typescript’s type system to be deficient. Additionally, functional programming is not incompatible with type systems but typescript’s type system in particular makes it more difficult. Several of the terrible typescript projects I referred to still used property values to represent state (like your example). Just because every definition has a type doesn’t make it good code. Shitt…
“The days of using untyped languages on non-trivial projects are over.”
111–117 of 117 posts
Re: “The days of using untyped languages on non-trivial projects are over.”
#112Earlier quoted context omitted.
I've personally found that Python with types is just not quite enough if I have to work with other people.
Yup, it can really suck, this working other people thing. But can you elaborate or provide some examples, please? I'd like to know more about this angle.
So as soon as you have two developers on one project, you have two different opinions about it.
Re: “The days of using untyped languages on non-trivial projects are over.”
#113Typescript propaganda. Instead of worrying about types, why not worry about the actual code quality ? Half of all typescript I've seen uses "any", not to mention the fact that it obsfuscates what's actually running in the browser and forces an unnecessary build step for things that aren't "web apps".
So if you’re using it, you aren’t really using typescript, you’re disabling typescript and saying “I want to write this part in plain JavaScript.”
Re: “The days of using untyped languages on non-trivial projects are over.”
#114Makes it easy to fix and refactor things early on and improve things from a developer experience and interface perspective.
I push implementing a function as far out as possible, when the entire structure of the program becomes clear.
This hack easily makes me 10x more productive. Plus I don’t share the same annoyances with types and TypeScript for example that other devs face. Once it’s set up (just adding a tsconfig file and a package file) the type system just sort of disappears — I mean, I rarely fight with it.
I do agree though that most of the complaints with these systems, languages, and tools really come from the vast amount of competing “getting started” and build guides that always seem to get out of date or use some radical new way of doing things that upsets the whole ecosystem. There have been so many changes in this regard. That, I will say, I don’t have an answer for.
Re: “The days of using untyped languages on non-trivial projects are over.”
#115Typescript propaganda. Instead of worrying about types, why not worry about the actual code quality ? Half of all typescript I've seen uses "any", not to mention the fact that it obsfuscates what's actually running in the browser and forces an unnecessary build step for things that aren't "web apps".
Re: “The days of using untyped languages on non-trivial projects are over.”
#116Meanwhile untyped languages keep expanding the boundaries of what is considered a trivial project.
Re: “The days of using untyped languages on non-trivial projects are over.”
#117Meanwhile untyped languages keep expanding the boundaries of what is considered a trivial project.
Not my experience. Do you have any examples?