• Complain

Lindstrom - CSS refactoring: architect your stylesheets for success

Here you can read online Lindstrom - CSS refactoring: architect your stylesheets for success full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Beijing, year: 2017;2016, publisher: OReilly Media, Inc., genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Lindstrom CSS refactoring: architect your stylesheets for success
  • Book:
    CSS refactoring: architect your stylesheets for success
  • Author:
  • Publisher:
    OReilly Media, Inc.
  • Genre:
  • Year:
    2017;2016
  • City:
    Beijing
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

CSS refactoring: architect your stylesheets for success: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "CSS refactoring: architect your stylesheets for success" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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.

CSS refactoring: architect your stylesheets for success — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "CSS refactoring: architect your stylesheets for success" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
CSS Refactoring

by Steve Lindstrom

Copyright 2017 Steve Lindstrom. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Editor: Meg Foley
  • Production Editor: Kristen Brown
  • Copyeditor: Rachel Head
  • Proofreader: Molly Ives Brower
  • Indexer: Ellen Troutman-Zaig
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Rebecca Demarest
  • November 2016: First Edition
Revision History for the First Edition
  • 2016-11-08: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781491906422 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. CSS Refactoring, the cover image, and related trade dress are trademarks of OReilly 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 publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance 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 contains 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 complies with such licenses and/or rights.

978-1-491-90642-2

[LSI]

Dedication

To my family, who have supported me through thick and thin; I wouldnt be where I am today without you.

Preface

When I first started learning CSS, I found that getting to grips with the syntax (the set of rules and structures that comprise a programming language) was simple because there are rules that explain how the code should be written. However, I found it was much more difficult to learn how to keep my CSS organized and maintainable, and even more difficult to clean up the disorganized CSS Id written without a clear vision. I wrote this book with the hope that I could help others by sharing everything I learned through trial and error; I wish this book had existed when I was just starting out.

Intended Audience

While I hope that anybody writing CSS will benefit from reading this book, its aimed primarily at people who have cobbled together a working user interface but lack either the experience or the vision to understand how their code fits together in the bigger picture. The intended reader understands how to write CSS syntax, but might not necessarily grasp why some things work the way they do. They might also not know how to better architect their code into a piece of software that is easier to maintain, extend, and collaborate on.

Objectives of This Book

My goal in writing this book is to make some of the subtler aspects of CSS more approachable to readers that are just starting out. I also aim to shed some light on why CSS can be difficult to write and test and why spending time refactoring CSS is a worthwhile endeavor.

Topics well cover include:

  • What refactoring is, why its beneficial, and how it relates to software architecture

  • Commonly misunderstood aspects of CSS including the cascade, selector specificity, and the box model

  • How to write better CSS by making informed decisions and being consistent

  • How to maintain well-written CSS with coding standards and pattern libraries

  • How to test CSS

  • How to organize CSS

  • Strategies for refactoring CSS

  • Ways to measure success when refactoring

Reading this book will provide the knowledge necessary to take immediate action to start working toward a better CSS codebase that should also be more maintainable when working with a team. While doing so, readers are encouraged to revisit chapters that apply to concepts theyre currently making use of.

Whats Not In This Book

This book focuses on explaining concepts that are not necessarily technical in nature. As such, there are a lot of topics that are not covered in this book. These include:

CSS properties

Knowledge of available CSS properties is necessary for writing CSS, but they will not be covered in this book. While there may be recommendations for which properties to use from time to time, these properties are better learned by consulting a book like CSS: The Definitive Guide by Eric Meyer or CSS Cookbook by Christopher Schmitt (both from OReilly), or any number of reputable websites like the Mozilla Developer Network.

Structuring HTML

HTML and CSS are used in tandem to build user interfaces, and one can influence the other. Strategies for decoupling CSS from HTML will be discussed, but the pros and cons of how to write and structure HTML will not.

Frontend performance

Frontend performance is an important aspect of building any website, and its an extremely interesting topic. Since this book is only about refactoring CSS, though, this topic will only be covered very brieflyit is far too broad a topic, since it encompasses a variety of other subjects. Steve Souders has written some great books about performance, and Paul Irish, Nicole Sullivan, and Stoyan Stefanov have done a lot of great work on the topic as well. Google also provides a number of guidelines and tools that can be very beneficial to frontend performance.

CSS frameworks

CSS frameworks change frequently and impose their own rules on implementation, so they wont be covered in this book. However, after reading this book I hope that you will be able to look at the source code of any given framework and draw your own conclusions about its implementation.

Lesser-known or less popular browsers

There are a ton of web browsers out there, but Ill only be discussing the major playersMicrosoft Edge (formerly Internet Explorer), Safari, Chrome, and Firefox, as well as their mobile counterpartsbecause they comprise the majority of the market share.

Nomenclature

Although the intended audience for this book has some knowledge about CSS, some nomenclature might not be familiar, so various terms will be defined throughout the book. At an even more basic level:

  • Selectors are patterns that are used to choose an element or group of elements to style.

  • A declaration block is a collection of rules that denote the properties and values that should be applied to an HTML element.

  • A property indicates which style should be applied to the selected elements and is assigned a value.

  • A ruleset is comprised of one or more selectors combined with a declaration block.

In .

Example P-1. A sample ruleset
p{color:#1200FF;font-size:16px;}
Figure P-1 Diagram of a CSS ruleset What Youll Find on the Companion - photo 1
Figure P-1. Diagram of a CSS ruleset
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «CSS refactoring: architect your stylesheets for success»

Look at similar books to CSS refactoring: architect your stylesheets for success. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «CSS refactoring: architect your stylesheets for success»

Discussion, reviews of the book CSS refactoring: architect your stylesheets for success and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.