COMPSCI 61B Lecture Notes - Lecture 16: Halting Problem, Type System, Dime (United States Coin)

55 views4 pages

Document Summary

An engineer will do for a dime what any fool will do for a dollar paul hil nger. How easy is it to read, modify, and maintain your code. Good: organizing, making things package private, canonical names for classes. Good: checks for errors early, speeds up runtime. Bad: not too exible, casting, more verbose code. Bad: is a , debugging is harder, can"t instantiate interface, must implement every method in interface. Not possible to prove that a piece of code avoids going into an in nite loop (see halting problem) Module: set of methods that work together as a whole to perform some task or set of related tasks. Module is encapsulated if its implementation is completely hidden and can only be accessed through a documented interface. An api of an adt is the list of constructors and methods, including an informal description of the e ect of each. Too general (does too much on its own)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents