CS 330 Lecture 24 – Templates

Agenda what ?s program this a templated vector class overloading builtin operators TODO Read section 7.7.3 in your book. Wondering about Java’s garbage collection? Read http://www.ibm.com/developerworks/library/j-jtp10283/. Why do we need both delete and delete[]? Check out http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=287. 1/4 sheet. Program This Code QVector.h vector_test.cpp Haiku

CS 330 Lecture 23 – Inheritance vs. Composition, Iflessness

Agenda what ?s inheritance vs. composition a raffle Game of Life without conditionals Code raffle.cpp life_sans_if.cpp Haiku

CS 245 Lecture 17 – Hashing Implications

Agenda what ?s what does this do? requirements of a key hashes in other languages think about this TODO Trivia time! Why must a hashmap’s array sometimes be of a length that’s a prime number? What is the name of the hashmap class that Apple includes in their standard library for Objective-C? Who invented the […]

CS 330 Lecture 22 – Vtables and Other C++isms

Agenda what ?s O(1) dynamic dispatch Game of Life with conditionals overloading builtin operators copy constructor formatted output with stringstream references TODO Optional participation point: write Game of Life without conditionals. Code Sizeof.cpp life.cpp Haiku

CS 245 Midterm

See the PDF.

CS 245 Lab 8 – Generic History

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Work in pairs, where possible. Prefer working with someone that you did not work with last lab. The exchange of new ideas and perspectives is […]

CS 245 Lecture 16 – Hashing

Agenda what ?s hashing implementing a hashtable the requirements of a key TODO Start and finish preassignment 2. Thailand is in upheaval. Sync on Bitbucket, and pull in Eclipse to get an updated SpecChecker. Code HashTest.java HashMaster.java StateQuiz.java Haiku

CS 330 Lecture 21 – Object-oriented Programming

Agenda what ?s homework 3 – due before April 4 textbook definition of OOP theorize this what does this do? Game of Life with Conditionals TODO Read http://www.insomniacgames.com/tech/articles/0308/three_big_lies.php. (This page rendered improperly for me; I had to highlight the text to read it.) Read http://hacksoflife.blogspot.com/2008/04/what-is-oop-good-for.html. What do you think? 1/4 sheet. Theorize This What Does This Do? […]

Implicit Named Parameters?

In Learnable Programming, Bret Victor argues that to dispel the mysteries of source code we must show data in its context. One of the examples he suggests of offering context is to add a feature to IDEs: when a developer hovers over a parameter in source code, the IDE shows a message indicating the semantic […]

CS 330 Midterm

See the PDF.

1 2 3