teaching machines

CS 330 Lecture 30 – Logo Translation

Agenda what ?s writing a translator for Logo think about this TODO Extra credit 1/4 sheet: Write a Logo program to demo in class. Download the Eclipse project. In Compiler.java, change the file name to point to your file, or use the JFileChooser. To receive credit, post the Logo source in the comments. Think About […]

Garbage Collection and Music

I’ve been reading a couple of books from the 1980s about Logo education research. What passed for research papers back then is incredible. Many of them read more like letters to the editor than reports on scientific experiments. Yesterday I was browsing Allan Martin’s Teaching and Learning with Logo. In chapter 9, Making Music with […]

CS 330 Lecture 29 – Modeling a Program

Agenda what ?s model this a model for Logo Model This Code Block.java Command.java CommandListener.java CommandMove.java CommandRotate.java Environment.java Expression.java ExpressionLiteral.java LogoVirtualMachine.java Haiku

CS 330 Lecture 28 – Interpreting

Agenda what ?s a REPL walking a parse tree with ANTLR’s callbacks TODO Start Bifur. Code makefile Note to copy and pasters: makefile rules need to be indented with real tabs, not spaces. Basecalc.g InterpreterBasecalc.java Haiku

CS 330 Homework 4 – due before April 24

See the PDF.

CS 245 Lecture 20 – Linked List

Agenda what ?s a linked list a linked snake TODO Grab an updated specchecker HW3. Stay home Thursday. No lab Monday just ‘cuz. You’ve worked hard. Code LinkedList.java Haiku

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 […]

1 147 148 149 150 151 204