| ▲ | TailwindSQL – Like TailwindCSS, but for SQL queries in React Server components(github.com) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 points by ravenical 2 days ago | 61 comments | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | JimDabell 2 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | nine_k 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It's superficially tailwind-y, but in fact a sort of stenographic subset of SQL:
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 a day ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We have strayed far from God. /jk. Cool project even if I wouldn’t touch this with a pole. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ricardonunez 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This hilarious. Some people wouldn't know a good joke if it mugged them in an alley. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | johnhamlin 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Reminds me of the query methods in Spring Data JPA: https://docs.spring.io/spring-data/jpa/reference/jpa/query-m... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | kachapopopow 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | nehalem 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The actual disturbing thing is that given Next‘s track record of questionable security architecture, the author felt compelled to make the joke explicit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | olcarl75 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
everyday there is a new `insert something related to react` framework. Everyday we stray further from the simplicity god. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | _the_inflator 20 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 a day ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | sixtyj 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From the site: "For fun only - don't use in production" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | JodieBenitez 21 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It's the circle of life© | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | tacker2000 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Wow holy abstraction! Weird stuff, seems to be vibe-coded using cursor and also the github issues are full of spam. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | yousif_123123 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
License disallows production use MIT - Do whatever you want with it (except deploy to production ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | Starlevel004 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It's not really very fun when these joke projects are built by AI. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | postepowanieadm 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 20 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Like Tailwind isn't really a sales pitch for many of us. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | moron4hire 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You can't make jokes like this! Someone is going to take you seriously! Just like what happened with TailwindCSS in the first place! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | geekjeremy 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | linhns 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Looks nice but is it vulnerable to injection attacks? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | divan 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
No LLM Prompts support in className? Useless. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | ranza 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This gives me Tom's a genius vibes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | rglover 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
And we wonder why the web keeps breaking... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | Yokohiii 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Next up TailwindSyscall! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [deleted] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | maddmann a day ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I love how utterly insane this idea is. Sometimes thinking outside the box like this can yield results. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | bakugo 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
https://github.com/mmarinovic/tailwindsql/blob/main/.cursor/... You can't make this up. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | lisbbb 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | usernamed7 2 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"Your scientists were so preoccupied with whether or not they could, they didn't stop to think if they should" -Dr. Ian Malcolm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||