Skip to main content

Stop Coding

  • Chapter
  • First Online:
  • 4053 Accesses

Abstract

The moment you start to feel confused, stop coding. When I first assigned the Traveling Salesman Problem to my students.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    In 2003, at ARML, the premier H.S. mathematics competition, the captain of our school’s math team gave his teammates a pep talk before the final round. He said that he had noticed in practice many of his teammates missed problems that they were capable of solving. Why? They had failed to read the problems carefully enough to detect subtle relationships in the given information. His advice was to “read each problem closely before starting to solve it.” Our school won ARML that year.

  2. 2.

    Search the Internet for BDUF (big design up front), RDUF (rough design up front), and “emergent design.” There are significant problems with designing a complex program, without the experience of having written a prototype (scaled-down version) of the same program.

  3. 3.

    The definitions of stubs and mocks vary. Safer is to use the term “fakes.”

  4. 4.

    How bad could the error be? Let \( z=x+y \), where x and y are both non-negative, and \( w=\sqrt{x^2+{y}^2} \) . Then what is the largest \( \raisebox{1ex}{$z$}\!\left/ \!\raisebox{-1ex}{$w$}\right. \)will ever become? The answer is \( \sqrt{2} \).

  5. 5.

    Robert L. Kruse, Data Structures & Program Design, 2nd Ed. (Prentice-Hall, 1987), page 55.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Michael Stueben

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Stueben, M. (2018). Stop Coding. In: Good Habits for Great Coding. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3459-4_9

Download citation

Publish with us

Policies and ethics