Slashdot Mirror


CSS Selectors as Superpowers

An anonymous reader writes "Simon St. Laurent writes in praise of CSS selectors: 'After years of complaints about Cascading Style Sheets, many stemming from their deliberately declarative nature, it's time to recognize their power. For developers coming from imperative programming styles, it might seem hard to lose the ability to specify more complex logical flow. That loss, though, is discipline leading toward the ability to create vastly more flexible systems, a first step toward the pattern matching model common to functional programming.'"

4 of 190 comments (clear)

  1. Re:!Like by Rich0 · · Score: 3, Funny

    Bollocks. CSS was designed to separate styling from structure in web pages. It does this admirably, and only needs to be a declarative language to do so.

    Bollocks. Every configuration file should be Turing complete. -- The Sendmail Authors.

  2. Re:Completely agree by Lumpy · · Score: 5, Funny

    Tell that to the guy that has to build a house with a saw that has no teeth.

    He will probably beat you to death with that saw. People that have no clue at all as to the problems with the tools or even how to do the task are the first to blame the craftsman.

    --
    Do not look at laser with remaining good eye.
  3. Re:No , sorry. by dingen · · Score: 1, Funny

    This post is awesome! I'm saving it for later, thanks!

    --
    Pretty good is actually pretty bad.
  4. Re:Completely agree by mortonda · · Score: 3, Funny

    And now your web server has to do PHP processing on every page and every style sheet, so your load goes up. So you implement some caching. Now you have two problems.

    3 problems.... php itself being one.