News for hackers. Stuff that matters.
Re:Show HN: I decided to document and share my high-level CS... by mhartl on Monday March 12, 2012 @12:10PM (#3694077)
I'm surprised by the lack of spaces in, say,

  .error{ color:red; }
I much prefer

  .error { color: red; }
or

  .error {
    color: red;
  }
(The latter is particularly nice because it implicitly acknowledges the likelihood that additional rules will be added.)

I don't recall seeing the space-compressed version much in the old days. Is it a new trend? I don't like it.

Re:Show HN: I decided to document and share my high-level CS... by jacobr on Monday March 12, 2012 @02:16PM (#3694657)
I don't understand how anyone using version control can use one liner CSS. There is code folding in all decent text editors.
Re:Show HN: I decided to document and share my high-level CS... by jastuk on Monday March 12, 2012 @01:53PM (#3694553)
Personally, I prefer the non-spaced variant when dealing with one-lined css. Simply because grouping it visually in chunks makes it easier for me to skim through code.

Here I can recognize 4 chunks almost immediately:

  .error{ width:350px; height:200px; color:red; background:blue; }
While here everything gets mixed up due to its uniformed spacing:

  .error { width: 350px; height: 200px; color: red; background: blue; }