IP352W14A Programming Basics Assignment Five

Assignment 5

By Friday (works best if you do this within 48 hours of the class)
Reflections on your learning this session: Please add a comment in the Session Five Notes.
Time budgets
Review the assignment, estimate the time it will take to do each part, and then compare your estimates to the actual time it takes.

Read / Write

Read ‘at least’ the pages 3-6 inclusive of this article. Read more if you like.

Eliminate the Testing Bottleneck

Comment on at least one points that seemed significant to you as a programmer. Copy/paste this outline into your wiki page.

==== The Testing Bottleneck ====
Reading: [http://dotnet.tech.ubc.ca/programming/content/Borland_-_eliminate_testing_bottleneck_whitepaper.pdf Eliminate the Testing Bottleneck]
 the following points were interesting to me:
===== change the heading for the first point =====

===== change the heading for a second point =====

Thinking About Objects

Do this by Monday so others’ can view your work and comment

Create a class called human.

  • Do not use programming code.
  • List the properties and methods you would assign to the class.
  • Add comments to explain what data is in the properties
  • Add comments to explain what the methods do
  • Note if any of the properties would be read only. Copy/paste section below into your wiki page, and then extend it.
==== Class: Human ====
===== properties =====
* id : read only
** assigned at birth
* dateOfBirth : read only
** assigned at birth
* firstName 
* lastName
===== methods =====
* sayHello
** says "Hello, my name is " firstName

Now create a subclass of human. It will inherit all the properties and methods of human but it will have at least two properties and one method that human does not have.

==== Class: fill in the name of the class ====
inherits '''human'''
===== properties =====
*  propertyName  : optional - readOnly
** comments
*  propertyName  : optional - readOnly
** comments
===== methods =====
** comments

Comment and Help

Review at least three other students’ work on these classes. Comment and help where possible.


by Monday

Add at least two questions in PeerWise. At least one question should be related to Object Oriented Programming.

by Wednesday before class

Answer at least six questions.

  • Remember to confirm your answers
  • Improve the explanations if you think they need help
  • Leave comments where appropriate
  • Rate the questions

Catch Up

Go back and fill in anything in the previous assignments that you have not done.


9 thoughts on “IP352W14A Programming Basics Assignment Five

  1. […] Here’s a link to the rest of Assignment Five […]

  2. pamelakimlee says:

    In class I mentioned a concept where people could not see a ship in the water because they did not know what a ship is. When their wise man explained what a ship is, they all saw it.

    The movie is called What the #$*! Do We (K)now!?
    Here’s a link to IMDb http://www.imdb.com/title/tt0399877/

  3. pamelakimlee says:

    Note, the above is only a small part of this movie.

  4. pamelakimlee says:

    Can I add an image to the blog? How?

  5. pamelakimlee says:

    A few key things that I learned:

    Structure by Pamela Lee

    • When Jim defined some parts of the code, a light went off for me. It reminded me of grammar or parts of a sentence that I learned in grade seven english.
    • The word Number is an intrinsic function.
    • ( ) parentheses catch the variables.

    What that means to me:
    By dissecting the code it has solidified some of the basic structure, nomenclature and conventions. This gave the code context for me.

    A few questions:
    • Can you tell what is an intrinsic function by language or placement?
    • Is there a list of intrinsic functions?

    • JimUBC says:

      Number in JavaScript is actually a native object. I didn’t go into all the detail it would have taken to draw the distinction between native objects and features of the language that can behave as functions. JavaScript has lots of short-cuts and we used one of those when we used Number() this week.

      Here’s a link to the documentation for the JavaScript Number Object (a native object).

      In the most general sense I used the term intrinsic to mean “a part of” JavaScript; built-in as opposed to something that you would have to build.

      It’s hard to know if something is intrinsic to a language just by looking at the syntax except that in the case of Number used in this way – you would probably notice that it is Capitalized. Please note that in JavaScript the window object is written in lower case. That’s a longer conversation very specific to the relationship between JavaScript and the browser.

      You can see a list of JavaScript Objects. Note the list down the left side. Here’s another similar source JavaScript Standard Built-in Objects.

      Keeping the focus on the big picture, the generalization on the second line of your illustration is a something you will find in several other languages. Good catch!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s