top | item 46336213

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

54 points| ravenical | 3 months ago |github.com | reply

59 comments

order
[+] JimDabell|3 months ago|reply
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.

[+] lisbbb|3 months ago|reply
I worked at a major university that used ColdFusion. They had one guy furiously writing all these websites that were total one-offs. They didn't use source control. Every project was a copy of his original. If there was a bug, he had to update dozens of projects instead of maintaining common source across those dozens of sites. He was totally insane and making bank.
[+] bdcravens|3 months ago|reply
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).
[+] freedomben|3 months ago|reply
With how deeply embedded cold fusion was in many gigantic corporations I've worked with, I would not be surprised if it stays alive for decades to come because nobody ever can port off of it.
[+] feketegy|2 months ago|reply
Adobe has a whole lineup of enterprise products that people don't really read about. CF is deeply integrated into these products as well as other 3rd party enterprise products.
[+] Tostino|3 months ago|reply
The company which bought my last startup, their main product (Trade Promotion Management tool) was in CF.

Definitely a little talked about language, but it does get some use.

[+] conception|3 months ago|reply
Lucee took over and is still active (ish).
[+] nine_k|3 months ago|reply
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 %)
[+] victorbjorklund|3 months ago|reply
We have strayed far from God.

/jk. Cool project even if I wouldn’t touch this with a pole.

[+] ricardonunez|3 months ago|reply
This hilarious. Some people wouldn't know a good joke if it mugged them in an alley.
[+] jasonjmcghee|3 months ago|reply
It's hard to tell these days. Anyone can now say "what if..." And have an agent build something that either looks a lot like (or is) that thing.
[+] sixtyj|3 months ago|reply
On the Internet, nobody knows you're a dog.

The same can be applied to jokes. Almost no one recognizes them :)

So authors had to write it at the bottom of the page.

[+] lisbbb|3 months ago|reply
That's because most devs are so overwhelmed with having to keep up with XYZ that the joke isn't even funny.
[+] olcarl75|3 months ago|reply
everyday there is a new `insert something related to react` framework.

Everyday we stray further from the simplicity god.

[+] mdasen|3 months ago|reply
Having clicked on the link, it's one commit with the commit message "wtf"

The README also says "License: MIT - Do whatever you want with it (except deploy to production )"

It's that perfect level of absurdity that captures so much of the terrible complexity that often happens.

[+] kachapopopow|3 months ago|reply
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.
[+] esafak|3 months ago|reply
The author is on point: "Making AI and blockchain accessible for founders who want to ship fast."
[+] nehalem|3 months ago|reply
The actual disturbing thing is that given Next‘s track record of questionable security architecture, the author felt compelled to make the joke explicit.
[+] moron4hire|3 months ago|reply
You can't make jokes like this! Someone is going to take you seriously! Just like what happened with TailwindCSS in the first place!
[+] sixtyj|3 months ago|reply
From the site: "For fun only - don't use in production"
[+] _the_inflator|3 months ago|reply
I lost it when looking at the commit message(s) which scored an all time record maximum on the notorious WTF/minute scale - preemptively, by maxing out the ratio.

This is a brilliantly clever homage to the WTF/Minute concept as proxy for code quality metrics and therefore is used among others as an indicator for maintainability where a high count inevitably leads to frustration and bugs.

Hilariously and awesomely executed.

[+] stanfordkid|3 months ago|reply
Just because it uses the className attribute doesn't really mean it is "like tailwind"... SQL is not anything like CSS classes and cannot be composed in the same manner. It's basically just using className as a data attribute. You might as well just stick raw SQL in there and parse it... what is the point of the weird hyphenated pseudo dialect?
[+] morcus|3 months ago|reply
I strongly believe it's just a joke

> For fun only - don't use in production!

[+] tacker2000|3 months ago|reply
Wow holy abstraction!

Weird stuff, seems to be vibe-coded using cursor and also the github issues are full of spam.

[+] yousif_123123|3 months ago|reply
License disallows production use

MIT - Do whatever you want with it (except deploy to production )

[+] crazygringo|3 months ago|reply
It's a joke. The entire thing is a joke :)
[+] postepowanieadm|3 months ago|reply
There was something like that in Firefox in the age of websqlite(yes, that long ago) - I can't recall it's name but it seemed like a neat idea.
[+] pjmlp|3 months ago|reply
Like Tailwind isn't really a sales pitch for many of us.
[+] geekjeremy|3 months ago|reply
Absurd. Thank you, you shouldn't have. I need it. I logged in for the first time in a long time just to upvote this.