All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Exploring CSS as a Query Language and General-Purpose Programming Tool

By

evnc

1mo ago· 17 min readenInsight

Summary

An exploration of using CSS as a query language and general-purpose programming language beyond its traditional role of styling web pages. The article investigates the theoretical and practical possibilities of applying CSS selectors and rules to query and manipulate data, treating CSS as a declarative query language similar to SQL or XPath. It presents a philosophical and technical deep-dive into the unconventional use of CSS for data processing tasks.

Key quotes

· 3 pulled
Question: Why in God's good name would you do that? CSS is infamously confusing. And better query languages exist, right? Such as SQL, which famously doesn't have problems.
Answer: Because it's there.
The basic principles of CSS look like this. 1. There are Things
Snippet from the RSS feed
IN which we investigate using CSS as a query language, or even a general purpose programming language, to do things other than lay out web pages in a browser.

You might also wanna read