The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Confusion over Typing....

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
Confusion over Typing.... Posted: Feb 18, 2008 11:20 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Confusion over Typing....
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Misdiagnosing the problem:

Stu demonstrates one of the basic problems with an all-dynamic language: "I just spent an hour figuring out why some carefully-tested code went no-op after adding RSpec to a project." As much as I berate Stu at times (both in person and in blog), the fact is, I deeply respect and admire his programming skill, and if he can lose an hour to something that (I submit for your consideration) could have been caught by a static analysis tool fairly easily, then clearly that was a wasted hour of Stu's life. Worse, the problem is not yet solved, since now he has to make a hard choice about which definition to use, or else find a way to hack around the two definitions and create a third. Or perhaps something even uglier than this....

This is a familiar class of problem to most Smalltalkers - the "dualing override/definition" problem. Static typing isn't really going to help you much here; the issue is with having two libraries that want to "own" the same space. It's like having two plugins attempt to add the same menu item - the last one in wins. Namespaces are a partial solution to this, allowing library designers to have their cool stufff live on its own. The difficulty arises when you want to go in and mess with low level internals. Both Ruby and Smalltalk allow that; Java and C# "solve" the problem by simply disallowing it. .

Technorati Tags: , , , ,

Read: Confusion over Typing....

Topic: Smaltalk and AppleScript Previous Topic   Next Topic Topic: Not quite a utility yet

Sponsored Links



Google
  Web Artima.com   

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