CS61A Summer 2019
  • CS61A Summer 2019
    • Week 1 - Functions, Env Diagrams
      • Functions
      • Environment Diagrams
      • Lab 1
      • HW 1
    • Week 2 - Recursion, HOF
      • Higher Order Functions
      • Recursion
      • Lab 2 - HOF
      • Lab 3 - Recursion
      • HW 2
    • Project 1 - The game of HOG
      • Phase 1 - Simulator
      • Phase 2 - Commentary
      • Phase 3 - Strategies
    • Week 3 - Sequences, Data Abstraction, Trees
      • Sequences
      • Data Abstraction
      • Trees
      • Lab 4 - Lists practice, Data abstraction
      • Lab 5 - Sequences, Trees
      • HW 3
    • Week 4 - Mutable Functions & Growth, Iterators & Generators
      • Mutable Functions
      • Measuring growth
      • Iterators
      • Generators
      • Lab 6 - Nonlocal, Mutability
      • Lab 7 - Midterm review
    • Project 2 - Typing Test
      • Phase 2 - Basic Functionality
      • Phase 3 - Autocorrect
    • Week 5 - Objects, Inheritance, LL, Interfaces
      • OOP
      • Lab 8 - OOP
      • Lab 9 - More OOP, LLs, Trees
    • Project 3 - Ants
      • Phase 1 - Basic gameplay & Phase 2 - Ants
      • Phase 3 - More Ants!
      • Phase 4 - Water & Might
    • Week 6 - Scheme, Interpreters, Macros
      • Scheme
      • Interpreters
      • Macros
      • Lab 10 - Scheme
      • Lab 11 - Interpreters
      • HW6 - Scheme, Tail Recursion, Macros
    • Week 7 - Streams, Declarative Programming
      • Streams
      • Declarative & Imperative Programming
      • SQL
      • Lab 12 - Macros
      • Lab 13 - SQL
      • HW 7 - Streams, SQL
    • Project 4 - Scheme Interpreter
      • Part 1 - The Reader
      • Part 2 - Evaluation - Core Functionality
      • Part 3 - Evaluation - User-Defined Procedures & Special Forms
      • Part 4 - Write Some Scheme
    • Week 8 - Final Review
      • Lab 14 - Final Review (Optional Lab)
Powered by GitBook
On this page
  • Declarative Programming
  • Imperative Programming
  1. CS61A Summer 2019
  2. Week 7 - Streams, Declarative Programming

Declarative & Imperative Programming

Declarative Programming

  • tell the computer what you want, instead of how, the interpreter figures out how to accomplish that

Imperative Programming

  • explicit instructions - tell the computer how to accomplish somethings - then the interpreter them executes

PreviousStreamsNextSQL

Last updated 1 year ago