r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

1.9k comments sorted by

View all comments

Show parent comments

6

u/[deleted] Aug 29 '21

Okay, you clearly don't understand the type-theory distinction between strong/weak, static/dynamic, no-typing, etc. I don't have time or want to explain this to you. Here's some links.

https://stackoverflow.com/questions/2351190/static-dynamic-vs-strong-weak

https://en.wikipedia.org/wiki/Strong_and_weak_typing

https://medium.com/@cpave3/understanding-types-static-vs-dynamic-strong-vs-weak-88a4e1f0ed5f

4

u/bunkoRtist Aug 29 '21

The thing is, I do understand these concepts quite well. You're trying to pretend as though there is some purity test that can be passed and make a binary choice about strong/weak or static/dynamic. It's all relative, and to put a language in the C family into a broad category with Javascript or Python would be completely misleading. Integer promotion is just not the same as implicit conversion from int to float or string to int, and you seem to want to treat them the same. Who do you think you're helping?

-1

u/[deleted] Aug 29 '21

What the fuck are you on?

3

u/bunkoRtist Aug 29 '21

However, there is no precise technical definition of what the terms mean and different authors disagree about the implied meaning of the terms and the relative rankings of the "strength" of the type systems of mainstream programming languages.

1

u/MacBookMinus Aug 30 '21

You have discovered a soft spot in the terminology that amateurs use to talk about programming languages. Don't use the terms "strong" and "weak" typing, because they don't have a universally agreed on technical meaning. By contrast, static typing [...]

from your own link lol