Refactoring JavaScript
Turning Bad Code Into Good Code

EPUB · English
Price and availability
EPUB eBookUS store
$46.99
Sign in to buyYou’ll review your order and final price before payment.
Download from your library after delivery. Protected eBooks need a compatible reading app.
For personal use under the eBook licence.
Territorial availability
Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa
Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.
- Format
- EPUB
- DRM
- Not stated by the publisher
- Language
- English
- Publisher
- O'Reilly Media
- Published
- 13 March 2017
- ISBN
- 9781491964873
- Subjects
- Web programming, Web programming
About this book
How often do you hear people say things like this? "e;Our JavaScript is a mess, but were thinking about using [framework of the month]."e;Like it or not, JavaScript is not going away. No matter what framework or compiles-to-js language or library you use, bugs and performance concerns will always be an issue if the underlying quality of your JavaScript is poor. Rewrites, including porting to the framework of the month, are terribly expensive and unpredictable. The bugs wont magically go away, and can happily reproduce themselves in a new context. To complicate things further, features will get dropped, at least temporarily.The other popular method of fixing your JS is playing JavaScript Jenga, where each developer slowly and carefully takes their best guess at how the out-of-control system can be altered to allow for new features, hoping that this doesnt bring the whole stack of blocks down. This book provides clear guidance on how best to avoid these pathological approaches to writing JavaScript:Recognize you have a problem with your JavaScript quality.Forgive the code you have now, and the developers who made it.Learn repeatable, memorable, and time-saving refactoring techniques.Apply these techniques as you work, fixing things along the way.Internalize these techniques, and avoid writing as much problematic code to begin with.Bad code doesnt have to stay that way. And making it better doesnt have to be intimidating or unreasonably expensive.
Bibliographic data © Gardners Books Ltd.