TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
41–50 of 63 posts
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#42Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#43ColdFusion 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).
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#44 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
#45I 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.
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
#46hopefully 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."
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#47I 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.
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#48I 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.
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#49It's not really very fun when these joke projects are built by AI.
Re: TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components
#50/jk. Cool project even if I wouldn’t touch this with a pole.