<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-359477181833806248.post7268449623961475987..comments</id><updated>2009-02-18T15:56:12.611-05:00</updated><category term='exercise'/><category term='homework'/><category term='lecture'/><category term='fun'/><category term='info'/><category term='opinion'/><title type='text'>Comments on CSCE 242: Cards, Closures, and Code, Oh My!</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.csce242.com/feeds/7268449623961475987/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359477181833806248/7268449623961475987/comments/default'/><link rel='alternate' type='text/html' href='http://www.csce242.com/2009/02/cards-closures-and-code-oh-my.html'/><author><name>Jose Vidal</name><uri>https://profiles.google.com/106856055579609524105</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Ef0uvu-yHCE/AAAAAAAAAAI/AAAAAAAA6EU/skI_UURC5Sg/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-359477181833806248.post-7249334812631708591</id><published>2009-02-18T15:56:00.000-05:00</published><updated>2009-02-18T15:56:00.000-05:00</updated><title type='text'>You can check which constructor created an object....</title><content type='html'>You can check which constructor created an object.&lt;BR/&gt;&lt;BR/&gt;d.constructor == Card&lt;BR/&gt;&lt;BR/&gt;or &lt;BR/&gt;&lt;BR/&gt;d.constructor == Deck</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359477181833806248/7268449623961475987/comments/default/7249334812631708591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359477181833806248/7268449623961475987/comments/default/7249334812631708591'/><link rel='alternate' type='text/html' href='http://www.csce242.com/2009/02/cards-closures-and-code-oh-my.html?showComment=1234990560000#c7249334812631708591' title=''/><author><name>Jose M Vidal</name><uri>http://www.blogger.com/profile/16605820980157120553</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17280427899840422606'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_mMuRlDPULDs/SP9rMKIFL2I/AAAAAAAAAhE/ftKzOBTaTaY/s1600-R/josevidal-small.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csce242.com/2009/02/cards-closures-and-code-oh-my.html' ref='tag:blogger.com,1999:blog-359477181833806248.post-7268449623961475987' source='http://www.blogger.com/feeds/359477181833806248/posts/default/7268449623961475987' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2039984831'/></entry><entry><id>tag:blogger.com,1999:blog-359477181833806248.post-1590551537603227172</id><published>2009-02-18T15:48:00.000-05:00</published><updated>2009-02-18T15:48:00.000-05:00</updated><title type='text'>How do we distinguish between a Deck and a Card.  ...</title><content type='html'>How do we distinguish between a Deck and a Card.  typeof returns object for both. &lt;BR/&gt;&lt;BR/&gt;Right now this is how I'm going about this:&lt;BR/&gt;function Card(suit, num) {&lt;BR/&gt;this.getClass = function () {return "card"; }; and the same for deck&lt;BR/&gt;&lt;BR/&gt;then simply calling objectName.getClass()&lt;BR/&gt;&lt;BR/&gt;wrong?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/359477181833806248/7268449623961475987/comments/default/1590551537603227172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/359477181833806248/7268449623961475987/comments/default/1590551537603227172'/><link rel='alternate' type='text/html' href='http://www.csce242.com/2009/02/cards-closures-and-code-oh-my.html?showComment=1234990080000#c1590551537603227172' title=''/><author><name>Jmayhak</name><uri>http://www.blogger.com/profile/16478725001413579273</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='05701695691661241326'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp1.blogger.com/_UWj0a3vMLF0/SDxcwvAlDsI/AAAAAAAAAAM/LwJqaJj0TIY/S220/n212600336_30692374_6059.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.csce242.com/2009/02/cards-closures-and-code-oh-my.html' ref='tag:blogger.com,1999:blog-359477181833806248.post-7268449623961475987' source='http://www.blogger.com/feeds/359477181833806248/posts/default/7268449623961475987' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1506666539'/></entry></feed>
