Live data from Hacker News

TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components

github.com

41–50 of 63 posts

Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components

#43

ColdFusion used to work this way: https://en.wikipedia.org/wiki/Adobe_ColdFusion What surprised me is that when I went to look at the Wikipedia page for CF, apparently its latest release was this year! I haven’t heard anybody mention it in a very long time.

I was active in the ColdFusion/CFML community for a long time, and still run some production code in it. It certainly isn't popular, but just carries on quietly, powering a lot of internal applications you'll never hear about. Many run the open source version of it (Lucee).

Indeed it does. I maintain one such application while an in-progress rewrite develops. Gotta say, it's not been that bad and the Lucee docs have served me well, but for whatever reason I tend to be pleased/impressed by all kinds of tech, even when popular opinion is negative about it.

Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components

#44
It's superficially tailwind-y, but in fact a sort of stenographic subset of SQL:

  db-{table}-{column}-where-{field}-{value}-limit-{n}-orderby-{field}-{asc|desc}

  db-users →
    SELECT * FROM users
  db-users-name →
    SELECT name FROM users
  db-users-where-id-1 →
    SELECT * FROM users WHERE id = 1
  db-posts-title-limit-10 →
    SELECT title FROM posts LIMIT 10
  db-products-orderby-price-desc →
    SELECT * FROM products ORDER BY price DESC
Certainly can result in some terribly inefficient access patterns, as there's no obvious syntax for joins. But enough for a toy project, and enough to hit the HN front page %)

Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components

#45
post #33

I didn't look to see if this is a joke, but seriously, is SQL still a big thing in web dev these days? Feels like it isn't. GraphQL is a thing.

GraphQL and SQL are not comparable or competing technologies. GraphQL is more analogous to a REST API. GraphQL can use SQL under the hood, or you can even hand serve the bytes (tongue in cheek here). It's just an over-the-network protocol to serve data.

a Node.JS server might use SQL directly or call out to a GraphQL API, but I literally don't think it's possible to let client-side JavaScript (safely) call a SQL database server directly.

Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components

#46
post #23

hopefully I never have to review someone unironically using something similar in production code since I don't think I'll be able to stop myself from dropping a slur or two.

The author is on point: "Making AI and blockchain accessible for founders who want to ship fast."

Luckily this entire thing is a joke.
Post reply on HN