Revisiting your code to remove redundancies and inconsistencies―known as refactoring―is a common practice when using programming languages. With this book, author Steve Lindstrom not only shows you how to structure your CSS to build a responsive, easy-to-use website, but also how to use refactoring tools to create faster, more readable CSS. Good CSS is essential to the look and feel of modern sites―as important as the HTML that dictates the site’s appearance and the JavaScript that runs the application. This book is ideal for seasoned front-end developers cleaning up an existing project, as well as those starting a new project for the first time.
In Spanish we have the word "decepción" for 'disappointment", but more often than not we translate it into its false friend "deception" with no intention of meaning "fraud". This time, I think "Decepción-deception" suit perfectly. Someone who is looking for a book with the word 'refactoring' in it, is not a newbie. So out of the 6 chapters, the first five talks about CSS basics and best practices (nothing special). And only the last one promises something close to refactoring strategies, that ends up saying something like follow the best practices of the previous chapters. I was looking for some insights and help to refactor an existing css project. I wanted methodology for refactoring. but nothing is found in this book. A simple search on google (https://goo.gl/xTboRt) will lead you to better results and grounded tips of valuable authors on the topic. Definitely a waste of time and money
While this book has some really good advice (especially pertaining to establishing a CSS coding standard), many of the suggestions seem more useful as a reference than as a textbook. Much of the book is dedicated to lines of CSS. Overall, this is less of a guide about how to Refactor CSS, and more of a primer on strategies to organize and maintain CSS.
It's also quite a short read -- the PDF clocks in at just under 160 pages, including the index and appendix. Really feels like a pocket primer, especially with the lack of exercises for the reader. Still, the suggestions are largely good (though my understanding of HTTP/2 suggests that file concatenation is not as big of a deal as the author makes it out to be).
Not quite what it says on the tin, and a little disappointing for an O'Reily. I will probably return to reference some of the normalization suggestions over time.
Lists some good practices to follow, but there's very little practical advice on how to actually go about refactoring a heaping pile of messy legacy CSS into something usable.