Index

Symbols and Numbers

_ (leading underscore), in function names, 386

== operator (Ruby), 255

A

add method (for collections), 170

Add Parameter. See Change Function Declaration

Agile software methods, 63

Algorithms, substituting, 195196, 230, 309

Alternative classes with different interfaces, 83

Ambler, Scott, 70

and logical operator, 264265

Application Programming Interfaces (APIs), refactoring, 126128

Architecture

decaying over time, 47

refactoring and, 6263

testability of, 99

Arrays, sorting, 173

Assertion libraries (Mocha framework), 92

Assertions

applicability of, 302, 304

introducing, 84, 98, 129, 208, 211, 249250, 302304

Assignments

removing to parameters, 112

Assumptions, for values, 302

Automated refactoring tools, 131

B

Get Refactoring: Improving the Design of Existing Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.