Refactoring JavaScript

Turning Bad Code Into Good Code

Nonfiction, Computers, Programming, Programming Languages, CGI, JavaScript, Perl, VBScript, Internet, Web Development
Cover of the book Refactoring JavaScript by Evan Burchard, O'Reilly Media
View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart
Author: Evan Burchard ISBN: 9781491964873
Publisher: O'Reilly Media Publication: March 13, 2017
Imprint: O'Reilly Media Language: English
Author: Evan Burchard
ISBN: 9781491964873
Publisher: O'Reilly Media
Publication: March 13, 2017
Imprint: O'Reilly Media
Language: English

How often do you hear people say things like this? "Our JavaScript is a mess, but we’re thinking about using [framework of the month]."

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 won’t 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 doesn’t 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 doesn’t have to stay that way. And making it better doesn’t have to be intimidating or unreasonably expensive.

View on Amazon View on AbeBooks View on Kobo View on B.Depository View on eBay View on Walmart

How often do you hear people say things like this? "Our JavaScript is a mess, but we’re thinking about using [framework of the month]."

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 won’t 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 doesn’t bring the whole stack of blocks down. This book provides clear guidance on how best to avoid these pathological approaches to writing JavaScript:

Bad code doesn’t have to stay that way. And making it better doesn’t have to be intimidating or unreasonably expensive.

More books from O'Reilly Media

Cover of the book Learning Kali Linux by Evan Burchard
Cover of the book Windows 7: The Missing Manual by Evan Burchard
Cover of the book Learning XSLT by Evan Burchard
Cover of the book Halo 2 Hacks by Evan Burchard
Cover of the book Retrospektiven - kurz & gut by Evan Burchard
Cover of the book Automating Microsoft Azure Infrastructure Services by Evan Burchard
Cover of the book PHP: The Good Parts by Evan Burchard
Cover of the book IPv6 Essentials by Evan Burchard
Cover of the book Lean UX by Evan Burchard
Cover of the book JQuery kurz & gut by Evan Burchard
Cover of the book Linux Server Hacks, Volume Two by Evan Burchard
Cover of the book Physics for Game Developers by Evan Burchard
Cover of the book The Relational Database Dictionary by Evan Burchard
Cover of the book WebLogic: The Definitive Guide by Evan Burchard
Cover of the book Creating a Data-Driven Organization by Evan Burchard
We use our own "cookies" and third party cookies to improve services and to see statistical information. By using this website, you agree to our Privacy Policy