The Artima Developer Community
Sponsored Link

Weblogs Forum
Programming with "Duh" Typing

370 replies on 371 pages. Most recent reply: Aug 8, 2007 9:54 AM by James Watson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 370 replies on 371 pages [ « | 1 ... 185 186 187 188 189 190 191 192 193 ... 371  | » ]
Achilleas Margaritis

Posts: 674
Nickname: achilleas
Registered: Feb, 2005

Re: Programming with "Duh" Typing Posted: Jul 18, 2007 6:56 AM
Reply to this message Reply
Advertisement
> > > 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?

>
> 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?

>
> 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.

Flat View: This topic has 370 replies on 371 pages [ « | 185  186  187  188  189  190  191  192  193 | » ]
Topic: Programming with "Duh" Typing Previous Topic   Next Topic Topic: Python 3000 Plea for Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use