{"product_id":"9781491964873","title":"Refactoring JavaScript: Turning Bad Code Into Good Code","description":"\u003cp\u003eHow often do you hear people say things like this?\u003ci\u003e \"Our JavaScript is a mess, but we’re thinking about using [framework of the month].\"\u003c\/i\u003e\u003c\/p\u003e\u003cp\u003eLike 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.\u003c\/p\u003e\u003cp\u003eThe 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:\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003eRecognize you have a problem with your JavaScript quality.\u003c\/li\u003e\n\u003cli\u003eForgive the code you have now, and the developers who made it.\u003c\/li\u003e\n\u003cli\u003eLearn repeatable, memorable, and time-saving refactoring techniques.\u003c\/li\u003e\n\u003cli\u003eApply these techniques as you work, fixing things along the way.\u003c\/li\u003e\n\u003cli\u003eInternalize these techniques, and avoid writing as much problematic code to begin with.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cp\u003eBad code doesn’t have to stay that way. And making it better doesn’t have to be intimidating or unreasonably expensive.\u003c\/p\u003e","brand":"O'Reilly Media, Incorporated","offers":[{"title":"Default Title","offer_id":47126229811440,"sku":"9781491964873","price":42.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0737\/7593\/9824\/files\/9781491964873_p0.jpg?v=1763661502","url":"https:\/\/shop-qa.barnesandnoble.com\/products\/9781491964873","provider":"Barnes \u0026 Noble (DEV)","version":"1.0","type":"link"}