CS 330 Lecture 27 – Goodbye, Generics and a Base Calculator

Agenda what ?s two kinds of polymorphism Java’s approach to generics our first grammar/interpreter TODO Walk through https://theantlrguy.atlassian.net/wiki/display/ANTLR4/Getting+Started+with+ANTLR+v4. Read chapter 2 through section 2.1 in the book. Also read section 2.3. 1/4 sheet. Code Basecalc.g

CS 330 Lecture 26 – Reference Counting and Templates

Agenda what ?s reference-counted garbage collection a smart pointer subtype polymorphism vs. parametric polymorphism the difference between generics and templates Think About This Code SharedPointer.h test_shared.cpp Haiku

CS 245 Lecture 19 – Snake

Agenda what ?s Snake with ArrayList linked structures TODO I’ve reduced the grading scale by a couple of points. There are still 18 Blugolds available. Code HashSet.java SnakesOnAFrame.java Haiku

CS 245 Lab 9 – Array vs. Linked

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 330 Lecture 25 – A Compiler That’s For You

Agenda what ?s what’s wrong with this? think about this a reference-counted pointer What’s Wrong With This? What Does This Do? Think About This Code SVector.cpp foo.cpp Haiku

CS 245 Lecture 18 – Snake

Agenda what ?s a snake game hashset and iterator different kinds of lists TODO Homework 3 is posted. Due before April 16. Read sections 2.5-2.7 in Data Structures. 1/4 sheet. Tasks for Snake? How do we manage eggs? Generate and draw eggs. Handle cursor events. How do we manage snake? Draw snake. How do we […]