The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Dynamic Typing where Possible, Static Typing When Needed

0 replies on 1 page.

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 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Dynamic Typing where Possible, Static Typing When Needed Posted: Jul 11, 2005 4:45 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Dynamic Typing where Possible, Static Typing When Needed
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

Spotted in Lambda the Ultimate - Programming Languages Weblog - wrote: Re: Static Typing Where Possible, Dynamic Typing When Needed. Well no one is going to lay down their arms when you put it like that are they. No, writing static typing is an optimisation and you should always do optimisations last. You don't know if you need to optimise any code until you hit the profiler - so, static typing when needed.

I've only needed static typing in a couple of areas of my code before - and that was the rendering core of a 3d application. I pushed it out to a C library. The second time I did 3d stuff I was a better Smalltalker, so I managed to write it so that I didn't need static typeing or to push it out to a C library.

So, dynamic type stuff until you suddenly find a need to static type things. Whether that be to solidify an API for an external party or to optimise some piece of code. But never before then.

Read: Dynamic Typing where Possible, Static Typing When Needed

Topic: Thoughts and Prayers Previous Topic   Next Topic Topic: First item checked off

Sponsored Links



Google
  Web Artima.com   

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