CIS 343

Tradeoffs

Winter 2023

Tradeoffs

  1. Name one feature of C that improves writability but hurts readability.
  2. Name one feature of C that improves writability but hurts reliability.
  3. Are there any features of C that you would bring into Java given the choice?
  4. Explain how the idea of a void function in C is not orthogonal. (We may have mentioned this last week.) Why might it still be useful? Do you think it is worth the tradeoff?
  5. Name and explain another criterion by which languages can be judged (in addition to those discussed in this chapter).
  6. What common programming language statement, in your opinion, is most detrimental to readability?
  7. Many languages distinguish between uppercase and lowercase letters in user-defined names. What are the pros and cons of this design decision?
  • Is it better for a programming language to
    1. silently ignore/fix obvious mistakes (e.g., capitalization, missing tags in HTML), or
    2. force the programmer to make these changes explicitly?
  • Describe some design trade-offs between efficiency and reliability in some language you know.
  • (Questions in this exercise come from both Prof. Bowman and the textbook.)

    Updated Monday, 3 April 2023, 9:46 AM

    W3c Validation