The Artima Developer Community
Sponsored Link

Agile Buzz Forum
I don't think that means what he thinks it means...

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
I don't think that means what he thinks it means... Posted: Aug 5, 2007 1:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: I don't think that means what he thinks it means...
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

I'd call this argument a straw man, but it's too big for that - more of a whole field of hay:

The basics of sequential programming are all object oriented. To explain this fuller, their basic building block is the object, or a thing. In the above examples, the objects were the command input, the fireball and the opponent. Programs can check whether certain objects are doing certain things by comparing their numerical values. For example if every space on the game screen is assigned a number, much like grid coordinates, the program can use simple greater than or less than comparisons to figure out where the characters, the fireballs, the floor, and everything else was. So why can’t this be used in games like spore?
Well in games with so many options, the IF/THEN list becomes so long it becomes scrambled. Several calls to previous points in the list are made and the whole thing gets disorganized, something which programmers affectionately call “Spaghetti Code.” Also, that much code and that many variables simply gets huge! Even though information technology has been growing at an exponential rate, there is only a limited amount of space you can put on a CD or DVD. On the PS1 there were 4 disk games, and on the PS2 there were 2 and 3 DVD games. It is only a matter of time before we have games which fill up 2 or 3 HD DVDs or Blu Ray disks.

The thing is, in good OO, we try to eschew if/then statements. Using polymorphism, you ask an object to do something, and it responds appropriately - including no response if the query makes no sense. I'm not sure whether the author has ever done any OO work - but if he thinks he has, I bet I wouldn't recognize it as OO...

Technorati Tags: ,

Read: I don't think that means what he thinks it means...

Topic: Smalltalk Scripting Support Previous Topic   Next Topic Topic: Smalltalk Daily 8/01/07: Numeric Collections

Sponsored Links



Google
  Web Artima.com   

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