News for hackers. Stuff that matters.
Re:Alan Kay and OO Programming by dnautics on Tuesday May 21, 2019 @11:40AM (#19971174)
> Dynamic languages let you think a problem you haven't thought of at design time will somehow solve itself magically at runtime, using components designed weeks before, with knowledge of that time.

I don't think most people who program in dynamically typed languages believe that. However there are people in the extreme that believe that static typing will save you from errors. Sometimes I worry that the cognitive overhead of and code legibility, conciseness, and lax documentation that become habits in static typed languages add complexity to the program which is antithetical to maintainability. In practice, static typechecking of a dynamic language is probably enough. Especially erlang family languages do a great job of keeping type annotations looking "more like documentation" which is how it ought to be.

Re:Alan Kay and OO Programming by sgt101 on Tuesday May 21, 2019 @12:47PM (#19971886)
Static typing doesn't eliminate any errors, it just exposes them earlier when you run the compiler rather than when a unit test finds them. Of course, that's if the unit test has been written.
Re:Alan Kay and OO Programming by jondubois on Tuesday May 21, 2019 @03:36PM (#19974008)
I've had several experiences where static typing forced my hand into making a software design decision which I later regretted.

Many real-world entities don't have a fixed set of characteristics/properties; instead, they have fluid characteristics that can change over time.

Trying to model those entities using static types which have a fixed/static set of properties is a bad idea.

For example, in nature, a tadpole might grow arms and legs and become a frog. Trying to represent a single entity using two different classes 'Tadpole' and 'Frog' doesn't always work... What type is the creature if it's exactly halfway between being a Tadpole and a Frog? Do you keep inventing new discrete types to keep re-categorizing the creature as it grows or do you acknowledge that the exact type of this creature cannot be expressed discretely but that it lies on a continuum?

Re:Alan Kay and OO Programming by anoncake on Wednesday May 22, 2019 @04:00AM (#19978943)
> What type is the creature if it's exactly halfway between being a Tadpole and a Frog?

It's an animal. The type checker will make sure you don't try to water() it. Static typing does not have to mean infinitely granular typing (though of course typing everything "statically" as any is pointless).

Re:Alan Kay and OO Programming by anoncake on Wednesday May 22, 2019 @03:57AM (#19978925)
> However there are people in the extreme that believe that static typing will save you from errors.

Unless s/errors/all errors/ that isn't extreme at all.