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 ... 191 192 193 194 195 196 197 198 199 ... 371  | » ]
Erik Engbrecht

Posts: 210
Nickname: eengbrec
Registered: Apr, 2006

Re: Programming with "Duh" Typing Posted: Jul 18, 2007 8:41 AM
Reply to this message Reply
Advertisement
> > But that assumes that the root cause of the error is
> where
> > the error was raised (or close to it). Often times it
> is
> > not (unless I stick in all my isinstance checks), so
> the
> > actual error entered the application state an hour ago,
> > the consequence just wasn't felt until later. But then
> in
> > a Smalltalk environment I suppose you could go manual
> > fiddle with the objects that have bad values.
>
> It also assumes there is an exception. I often have
> errors in code (the kind that static typing captures) that
> don't manifest themselves as exceptions.

Me too. But usually (for me) those are algorithmic and wouldn't have been caught by static typing.

One thing that occured to me is that I don't always take the most "testable" approach. I could refactor me code so that it is more resumeable. If I memoized certain results to disk so they could be reloaded instead of computed, or took a more granular staged approach to the computation, it would be better. But then I'm dealing with tangential issues when I want to be developing an algorithm.

Flat View: This topic has 370 replies on 371 pages [ « | 191  192  193  194  195  196  197  198  199 | » ]
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