news.volyx.in

Yes, I can connect to a DB in CSS (leemeichin.com)

536 points by skilled · 1687 days ago · 134 comments on HN

Article summary

The article discusses connecting to a database using CSS, although the implementation relies on JavaScript. The title of the article is considered misleading by some, as it implies a direct connection to a database using only CSS. The actual implementation uses a CSS interface for SQL written in JavaScript. The article's content is not available, but the discussion reveals a creative approach to interacting with databases.

Main themes

  • CSS and database connection
  • Turing completeness
  • JavaScript and CSS interaction
  • Security concerns
  • Programming language theory
  • Practical applications of computer science concepts

What commenters say

  • The article's title is misleading as it uses JavaScript to connect to the database, not just CSS.
  • The implementation is still clever and achieves the goal of connecting to a database using a CSS interface.
  • Turing completeness is not a relevant concern in this context, as it is a mathematical concept that does not directly apply to physical devices or real-world programming.
  • The distinction between a language being Turing complete and its practical applications is important, as real-world computers have finite memory and are not truly Turing complete.
  • The use of CSS to connect to a database is not a significant security risk, as it relies on JavaScript and does not provide arbitrary access to the host filesystem.
  • The concept of Turing completeness is often misunderstood and misapplied in discussions of programming languages and computer science.
  • The article's approach is more accurately described as a CSS interface for SQL written in JavaScript, rather than a direct connection to a database using CSS.
  • The discussion around Turing completeness highlights the difference between theoretical computer science and practical programming considerations.