Course Summary Spring 2007 CS 101 Aaron Bloomfield

  • Slides: 15
Download presentation
Course Summary Spring 2007 CS 101 Aaron Bloomfield 1

Course Summary Spring 2007 CS 101 Aaron Bloomfield 1

Course Reflection 2

Course Reflection 2

Course goals o Objectives: Students who complete the course will: n Understand fundamentals of

Course goals o Objectives: Students who complete the course will: n Understand fundamentals of programming such as variables, conditional and iterative execution, methods, etc. n Understand fundamentals of object-oriented programming in Java, including defining classes, invoking methods, using class libraries, etc. n Be aware of the important topics and principles of software development. n Have the ability to write a computer program to solve specified problems. n Be able to use the Java SDK environment to create, debug and run simple Java programs. 3

Unstated course goals o Everybody needs to have a “base” level of programming to

Unstated course goals o Everybody needs to have a “base” level of programming to continue on in the CS courses (or as required by other departments) n CS 101 and 201 provide that “base” level 4

What was new this semester o o o Each of the homeworks and exams

What was new this semester o o o Each of the homeworks and exams are always new each semester n Because of the ‘fraternity file’ effect The course project n A new one was developed for this semester Some things that were improved upon from last fall: n Videos of lectures n Clicker response system n Using cs 101 e-mail Different textbook than last semester Only 1 grad TA, so most tasks that are usually done by grad TAs (such as running labs) were done by undergrad TAs 5

What didn’t work this semester o o o Clickers! n Although they did work

What didn’t work this semester o o o Clickers! n Although they did work better than last semester n I still think that they can greatly help a large course, if they work Grading n The big problem was HW 7 – it got delayed a long time, and caused a domino effect The course project n A good idea, but in hindsight, we didn’t implement it as well as we should have Want to lower the amount of student frustration Some humor that seemed not so appropriate after the VT shootings, so I didn’t show them 6

What did work this semester o o o o Videos of lectures Clickers, sort

What did work this semester o o o o Videos of lectures Clickers, sort of Using cs 101 e-mail The new textbook n Students liked it much better than the one used in the past The assignments ideas were more creative than in the past Keeping a class of 360 students moving is not a trivial task Many things that were “behind the scenes” n TA organization and utilization n Grading system n Me delegating the work better to the TAs The class size was smaller (!) 7 n “Only” 263, vs. 415 two years ago

Did I push too hard this semester? o o o I pushed the class

Did I push too hard this semester? o o o I pushed the class hard this semester But did I push too hard? Consider: n I’ve gotten more “things are going great, but hard” comments than I have “things are too hard” comments (anecdotal) n Homeworks took about 6 hours, on average o The results from the survey questions for each HW n There were 10 HWs over about 15 weeks o That’s about 4 hours (on average) on homeworks per week From lab 12, This course required 6. 7 hours per week outside of lectures n Other courses required 7. 0 hours I’m interested in your feedback on this! n But not today in lecture… 8 n Please send e-mail (anonymous or not) if you have comments…

The Big OOP Picture 9

The Big OOP Picture 9

The classes for the game o o o Control (hw 10) Depot (hw 8)

The classes for the game o o o Control (hw 10) Depot (hw 8) Descriptions (lab 10) Game (all assignments) Inventory (hw 8) Location (hw 7) Map (hw 10) Map. Printer (lab 11) Parser (lab 9) Party (hw 9) Person (hw 7) Vehicle (hw 9) 10

How a big OOP program interacts o o o Note how the classes interacted

How a big OOP program interacts o o o Note how the classes interacted in the game A lot of objects were created and manipulated n A Location for each spot in the Map grid n Depots possible in each Location n Etc. The way this game has objects interacting is how a big OOP program would work 11

Map map - populate() - get. Location() -… - map: -… Location - app

Map map - populate() - get. Location() -… - map: -… Location - app = “arid” - depot -… -… Location - app = “sunny” - depot -… -… Depot - name = “Fort. X” - location - cost. Factor = 2. 0 - inventory -… Inventory - money = 0. 0 - food = 1000 - ammo = 100 - oxen = 100 -… player Location - app = “cloudy” - depot -… -… Map map = new Map(); map. populate(); Classes w/only static methods: Control, Descriptions Game, Map. Printer, Parser Location - app = “rocky” - depot -… -… Party - size = 3 - party -… Person Vehicle player = new Vehicle (const); player. set. Location (map. get. Location (const, const)); Vehicle - location - party - inventory -… -… Inventory - money = 155. 1 - food = 234 - ammo = 17 - oxen = 12 -… - name = “Chris” - health = 10 - is. Alive = true -… Person - name = “Chris” - health = 10 - is. Alive = true 12 -…

Problem solving o o o To solve a problem in CS, you break it

Problem solving o o o To solve a problem in CS, you break it down into smaller and smaller pieces… A big program is broken down into packages n Which we haven’t really seen yet n Consider the game to be one package The packages are broken down into hierarchies n This uses inheritance n Our game didn’t use a hierarchy, as you did not know of inheritance at that point The hierarchies are broken down into classes n The game had 12 classes Each class is broken down into methods and variables n Some (such as Map. Printer) only had a few; others (such as Location) had lots Each method is broken down into parts, etc. 13

The completed game o o o This could easily be made by multiple people

The completed game o o o This could easily be made by multiple people n Each person does a separate class n Not exactly equal, but it still lowers the workload Our (fully commented) code for the game was well over 1, 000 lines n Granted, we had very long comments However long yours was, it was a about a 1, 000 line program n Even if you had trouble getting parts working, and had to use our code n You still wrote all the parts, and saw how they interacted with the rest of the system 14

Have a great summer break! 15

Have a great summer break! 15