Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

Conventions Used in This Book

Pseudocode examples explain many of the guidelines in a concrete manner. I try to make the examples as generic as possible, as this is not a language guide. The code uses a combination of conventions from a number of languages. Class names use uppercase separation (e.g., ClassName). Attributes, variables, and method names use lowercase with underscores (e.g., method_name( )), à la the C++ Standard Template Library and Python.

For classes for which you must access an object's attributes, I show assignment to and from the attributes, as if they were properties of Eiffel or C#. In other languages or with other conventions, you probably will use get and set methods.

The following typographical conventions are used in this book:

Italic

Indicates new terms, URLs, email addresses, filenames, file extensions, pathnames, directories, and Unix utilities.

Constant width

Indicates commands, options, switches, variables, attributes, keys, functions, types, classes, namespaces, methods, modules, properties, parameters, values, objects, events, event handlers, XML tags, HTML tags, macros, the contents of files, and the output from commands. It also indicates class outlines in pseudocode.

User input

Shows user input or message transactions.

Boldface

Indicates states or enumerated values.

Note:

This design element signifies a tip, suggestion, or general note.

This icon identifies a guideline.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata