> > > > I make those mistakes a lot. Maybe it comes from > > having > > > a > > > > compiler yell at me for them, and having IDEs > > underline > > > > them, so I'm just sloppy in my typing. > > > > > > You are going to run that code once, aren't you? > > > > This takes time. I've had a simple change take me 30 > > minutes to make in Python because I had to keep running > > the code and find errors. It's much quicker to see the > > error instantaneously and fix it. > > But you are going to run it afterwards, aren't you?
Yes. What's your point?
> > > > I recently had a bug where one out of every few lines > was > > being iterated over as a sequence. This took me quite > a > > while to locate because I had added a faux-object in a > > corner case. In a static language, It takes a few > moments > > to select all the references. I basically stumbled > over > > this by accident after about an error of looking in the > > wrong places for the error. The error turned out to be > > that I had declared one of the arguments to a method as > > field instead of *fields. In a static language I would > > know about this way ahead of time. > > Can you elaborate on the error?
The star means that the input is a sequence. I was passing a single string to the method. The method iterates over the field parameter. By removing the star, my string became the sequence that was being iterated over. If I were doing this in something where I could declare the type of field as a sequence of strings, a single string would not be an acceptable parameter.
> > > > You are focusing on the quality of the finished > product. > > The point that I am trying to make is that dynamic > > c languages can actually slow down development in the > long > > term. > > Not really. It is your approach that slows it down. The > correct approach in dynamic languages is to run the > program and correct it while it is running. Interactive > development is way much faster than anything else.
It doesn't seem feasible for the program I am running. Could I stop it and back up the recursion to the point where I saw the problem?
Can I ask how much programming you have done in static languages?