Always Learning

Smalltalk with Style
Suzanne Skublics
Edward KlimasLinea Engineering
David A. ThomasMontana State University

ISBN-10: 0131655493
ISBN-13:  9780131655492

Publisher:  Prentice Hall
Copyright:  1996
Format:  Paper; 127 pp
Published:  06/26/1995
Status: Out of Print


We're sorry, this product is no longer available.
Please contact your Pearson rep if you are using this product and need instructor resources.


Print this content

In this section:


Description

For object-oriented programming courses in Smalltalk or as a supplement to concepts of programming language or software engineering courses using Smalltalk.

Designed to bridge the gap between well-established software engineering principles and the actual practice of programing in an OOP language such as Smalltalk, this text documents a minimal set of guidelines and potential standards in design techniques that promote easy reuse and maintenance of object-oriented code, reduce the number of defects, and make code easier to read.


Features

  • uses Smalltalk vocabulary and examples, however most of the concepts are generic and directly applicable to other object-oriented languages.
  • presents a set of specific guidelines for using Smalltalk in a disciplined manner. Each guideline consists of a concise statement of principles and examples.
  • addresses layout and structure — including overall program structure.
  • considers the level of comments needed in a project.
  • discusses reliability and portability issues.
  • excellent, inexpensive course supplement.


Table of Contents



1. What's In a Name.

Introduction. General Naming Guidelines. Upper and Lower Case Letters. Class Names. Variable Names: Semantic or Typed? Method Names. Accessor Method Names. Method Parameter Names. Method Temporary Variable Names. Numbers. Abbreviations.



2. Comments.

Introduction. Code Comments. Component Comments. Applications. Classes. Methods. Comments within Source Code.



3. Code Formatting.

Introduction. Method Template. Horizontal Spacing. Indentation and Alignment. Cascaded Message Protocols. Number of Statements per Line. Blank Lines. Source Code Line Length. Parentheses.



4. Can Your Software Be Reused?

Introduction. Common Protocols. Accessor Methods—Variable-Free Programming. Class Evolution and Refactoring. Class Names and Pool Dictionaries.



5. Tips, Tricks, and Traps.

Introduction. Common Syntactic Mistakes. Assumption of Return Values. "Cut and Paste" Reuse. Common Yet Confusing Error Messages. Equality, Identity, and Equivalence. Collections. Creating Example Code. Testing. Potential Sources of Abuse and Misuse.



6. Summary of Guidelines.


Glossary.


References.


Index.



Back to top

Log in to the Instructor Resource Center

Login name: 

  Password: 

Forgot login/password?  |  Need to redeem an access code?

        

Instructor Resource Center File Download

This work is protected by local and international copyright laws and is provided solely for the use of instructors in teaching their courses and assessing student learning. Dissemination or sale of any part of this work (including on the World Wide Web) will destroy the integrity of the work and is not permitted. The work and materials from this site should never be made available to students except by instructors using the accompanying text in their classes. All recipients of this work are expected to abide by these restrictions and to honor the intended pedagogical purposes and the needs of other instructors who rely on these materials.

Cancel     I accept, proceed with download

Print this content

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.

Back to top