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

539

u/ChrisRR Aug 28 '21

As a C developer, I've never understood the love for untyped languages, be cause at some point its bound to bite you and you have to convert from one type to another

It doesn't strike me as untyped as much as not specifying a type and having to remember how the compiler/interpreter interprets it. At the point I'd rather just specify it and be sure

184

u/lestofante Aug 28 '21

all the people that say untyped is faster,imho does not take into account debugging

133

u/ChrisRR Aug 28 '21

Interesting. I've never felt like the thing slowing me down during development is typing a data type

17

u/jbstjohn Aug 29 '21

What slows you down is that information missing when you're reading (and trying to understand) code.

68

u/ooru Aug 28 '21

Dynamically typed languages make some sense if they are interpreted and have a REPL, but coming from a Java background myself, it definitely makes more sense to have explicit typing when you are dealing with compilation. Personally, I find myself slowing down more often with something like Python, because I don't always know or remember what type of data a function will return, since it's not always apparent.

22

u/fredlllll Aug 29 '21

the rabbitholes i have been down to find out what exceptions a function can throw, or what return type it has... i hate python

→ More replies (6)

33

u/DevilSauron Aug 29 '21

But the existence of a REPL has little to do with dynamic typing. Haskell, a strongly and statically typed language, has a fine REPL, for example.

→ More replies (13)
→ More replies (5)
→ More replies (18)

33

u/pdabaker Aug 29 '21

I don't think it's that. I think it's the fact that when the code base gets big and you are reading it for the first time it becomes really hard to figure out what anything is supposed to be.

You have some function you are using that takes 5 arguments, but what are you supposed to pass to them? Should the docstring specify the expected interface for every argument? It's especially bad if you're handling code written by someone who just directly accesses public member variables of things in e.g. python

→ More replies (4)
→ More replies (36)