refactoring-javascript.pdf
(
2985 KB
)
Pobierz
Refactoring JavaScript
Evan Burchard
Turning Bad Code into Good Code
Refactoring JavaScript
by Evan Burchard
Copyright © 2017 Evan Burchard. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol,
CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotion-
al use. Online editions are also available for most titles (http://oreilly.com/
safari).
For more information, contact our corporate/institutional sales depart-
ment: 800-998-9938 or
corporate@oreilly.com.
• Editors: Nan Barber and Allyson MacDonald
• Production Editor: Kristen Brown
• Copyeditor: Rachel Monaghan
• Proofreader: Rachel Head
• Indexer: Ellen Troutman-Zaig
• Interior Designer: David Futato
• Cover Designer: Karen Montgomery
• Illustrator: Rebecca Demarest
• March 2017: First Edition
Revision History for the First Edition
• 2017-03-10: First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491964927
for release
details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Refactoring
JavaScript,
the cover image, and related trade dress are trademarks of O’Reilly
Media, Inc.
While the publisher and the author have used good faith efforts to ensure that
the information and instructions contained in this work are accurate, the pub-
lisher and the author disclaim all responsibility for errors or omissions, includ-
ing without limitation responsibility for damages resulting from the use of or re-
liance on this work. Use of the information and instructions contained in this
work is at your own risk. If any code samples or other technology this work con-
tains or describes is subject to open source licenses or the intellectual property
rights of others, it is your responsibility to ensure that your use thereof com-
plies with such licenses and/or rights.
978-1-491-96492-7
[LSI]
For Jade, again and always.
Table of Contents
Foreword
Preface
CHAPTER 1:
What Is Refactoring?
How Can You Guarantee Behavior Doesn’t Change?
Why Don’t We Care About Details of Implementation?
Why Don’t We Care About Unspecified and Untested Behavior?
Why Don’t We Care About Performance?
What Is the Point of Refactoring if Behavior Doesn’t Change?
Balancing Quality and Getting Things Done
What Is Quality and How Does It Relate to Refactoring?
Refactoring as Exploration
What Is and Isn’t Refactoring
Wrapping Up
CHAPTER 2:
Which JavaScript Are You Using?
Versions and Specifications
Platforms and Implementations
Precompiled Languages
Frameworks
Libraries
What JavaScript Do You Need?
What JavaScript Are We Using?
xiii
xv
1
1
3
4
5
7
7
7
10
11
11
13
14
15
17
18
19
20
20
v
Plik z chomika:
rumpelTeam
Inne pliki z tego folderu:
software-engineering-at-google-lessons-learned-from-programming-over-time-1nbsped-1492082791-9781492082798_compress.pdf
(13278 KB)
[JAVASCRIPT][High Performance JavaScript].pdf
(4438 KB)
ANF_DesignTestowFrontendowych.pdf
(2002 KB)
React_TypeScript_Nextjs-Michal_Miszczyszyn-Michal_Miszczyszyn.pdf
(491 KB)
How to Solve Common Problems in Vue.pdf
(18085 KB)
Inne foldery tego chomika:
Cheat Sheets
Na krawędzi pojmowania
Zgłoś jeśli
naruszono regulamin