Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: In favor of teaching "dot notation"
Replies: 26   Last Post: Oct 20, 2012 12:26 PM

 Messages: [ Previous | Next ]
 kirby urner Posts: 3,690 Registered: 11/29/05
Re: In favor of teaching "dot notation"
Posted: Oct 17, 2012 2:11 PM
 att1.html (2.0 K)

On Wed, Oct 17, 2012 at 10:45 AM, Joe Niederberger <niederberger@comcast.net
> wrote:

> What's all that got to do with the price of coffee Paul?
> Coffee.price?
>
> Does coffee in fact have one price or maybe more than one?
> It depends on the context. But we don't really need to talk
> about bananas if we don't care to.
>
> Joe N
>

One of the exercises I teach (daily) involves coconut instances, with
different weights. South American, Middle Eastern, and American are our
three coconut types. Some students use subclasses of Coconut and that's a
good solution. Weight may be stored at the class level.

Typical:

if not isinstance(incoming, Coconut):
etc.

That won't come across perfectly unless in plaintext view (a Math Forum
option) but you get the idea: unless the caller of the add_coconut method
is actually passing a coconut object, warning lights go on. It's like TSA
at the airport. If you have a firearm, you really need to be noticed.

Even subclasses of Coconut, like SouthAmerican, make it through. Their
weights are pre-set. But if someone tries to send a different type object
to inventory, the whistle-blowers blow.

"Sensitivity to type" is not stupid. In STEM math, we want students to see
the C > R > Q > Z > N hierarchy. If they don't, they're too illiterate for
STEM. DC has lower standards. Our students tend to be smarter than the
average American, but because of curriculum, not genes. We could assist
the USA, but we aren't required by law to do so (It's "opt in" not "opt
out").

Kirby

Date Subject Author
10/7/12 kirby urner
10/13/12 Joe Niederberger
10/15/12 kirby urner
10/13/12 Joe Niederberger
10/16/12 Joe Niederberger
10/16/12 kirby urner
10/17/12 Joe Niederberger
10/17/12 Paul A. Tanner III
10/17/12 kirby urner
10/17/12 Joe Niederberger
10/17/12 kirby urner
10/17/12 Paul A. Tanner III
10/17/12 kirby urner
10/17/12 Robert Hansen
10/17/12 Louis Talman
10/17/12 Robert Hansen
10/18/12 Louis Talman
10/18/12 Robert Hansen
10/18/12 kirby urner
10/17/12 Joe Niederberger
10/17/12 kirby urner
10/19/12 Joe Niederberger
10/19/12 Robert Hansen
10/19/12 Joe Niederberger
10/19/12 kirby urner
10/19/12 Joe Niederberger
10/20/12 kirby urner