TailwindSQL - SQL Queries with Tailwind Syntax

10 months ago by codeinabox to c/programmer_humor

Like TailwindCSS, but for SQL queries. className your way to database queries in React Server Components!
Subscript5676 26 points 10 months ago

As someone who writes a lot of CSS, and actually like CSS (yeah, unheard of, I know; I'm some alien), Tailwind doesn't just seem like it's reinventing the wheel and wrapping over an existing language, which is weird when you think about those two being mentioned together, is also bad for other reasons:

  • UserCSS becomes near impossible to use
  • Web scraping becomes a gigantic mess; LLMs become the only viable solution, and let's not even get started on how crazy that sounds
  • Semantic HTML becomes difficult to verify and build upon due to the sheer amouns of TEXT (and if you go "But you can put your most commonly used declarations together in a class selector and use that!" then congratulations you almost just wrote CSS), and in relation to this...
  • It encourages bad CSS practices and thus bad HTML practices, as if the terrible walls of text isn't already difficult to debug when working for accessibility
  • RIP traditional SEO, and thus RIP any small players who want to create and maintain their own search engine, and only large companies with a lot of resources can hire people to spend a fuck ton of time to scrape and index the web. SEO already has a ton of problems as it were, and Tailwind just adds a new dimension to the problem.

If the web industry as a whole could slow down and learn to live with the cascade (seriously, the cascade is your friend!), and stop demanding that we do CSS without the C, that'd be great.

Thanks for walking pass me standing on my soapbox that virtually nobody cares about.

path: 0 21097121, hotness: undefined, score: 26, children: 8
Hippy 6 points 10 months ago

Maybe I'm old, but I completely agree with you. There is a natural tendency to try reinvent something when you don't understand it enough to be comfortable with it. Then that new thing lacks the maturity and scrutiny that the old thing went through to survive the test of time. This is basically how overconfident tech bros are transforming the web.

path: 0 21097121 21097383, hotness: undefined, score: 6, children: 6
FooBarrington 1 point 10 months ago

There is a natural tendency to try reinvent something when you don’t understand it enough to be comfortable with it. Then that new thing lacks the maturity and scrutiny that the old thing went through to survive the test of time.

While this is something that does happen, there's also a tendency for people in the industry to dismiss new things without actually looking into the pros and cons.

Doesn't it give you pause that many very experienced Frontend & CSS developers see objective advantages in Tailwinds utility class approach? Of course there are also objective disadvantages, don't get me wrong. But that means that these tools should be used whenever their advantages can shine and their disadvantages don't cause issues.

Any developer that can't clearly name the issues with regular CSS that Tailwind attempts to solve either hasn't been developing long enough to encounter these issues, or hasn't actually tried to understand what Tailwind is.

path: 0 21097121 21097383 21098568, hotness: undefined, score: 1, children: 5
Subscript5676 3 points 10 months ago

Doesn't it give you pause that many very experienced Frontend & CSS developers see objective advantages in Tailwinds utility class approach?

That is not a good enough reason to justify its existence. You can very well say that fossil fuel companies should continue to exist because look at how long it's been around with all the expertise people have. Surely they should stay around, right?

Please also see my other comment

https://vger.to/lemmy.ca/comment/20657420

IMO, the industry decided to take the wrong direction, which I would agree makes sense from an economics perspective, but man, all I see is short term gains over long term ones, where we would've been able to build better solutions than hacks upon hacks (not using that fully derogatorily tbh). We could've spent all that energy, money, and time to bettering CSS and improving education to help people understand the cascade and specificity, while building better, more computationally efficient solutions that would minimize our bundles better and make JS a lot tamer than it is.

But I'm blabbering.

path: 0 21097121 21097383 21098568 21103433, hotness: undefined, score: 3, children: 2
FooBarrington 1 point 10 months ago

That is not a good enough reason to justify its existence.

There is no better reason to justify the existence of any technology than it having objective advantages, even if there are drawbacks as well!

You can very well say that fossil fuel companies should continue to exist because look at how long it’s been around with all the expertise people have. Surely they should stay around, right?

You're pretending that I'm making a completely different argument. Don't do that. I never mentioned "how long it's been around with all the expertise people have". There are literal objective advantages. Why are you pretending they don't exist?

Please also see my other comment

So people should choose a model that decreases development speed & increases complexity as well as the potential for bugs/side effects, just because "it's the right way to go". People have been trying to embrace the cascade for a long, long, long time, and it keeps causing issues in larger applications that simply don't happen with non-cascading approaches.

Why do you pretend like these aren't real advantages?

path: 0 21097121 21097383 21098568 21103433 21105859, hotness: undefined, score: 1, children: 1
felbane 0 points 10 months ago

utility classes are just a small step away from style attributes

path: 0 21097121 21097383 21098568 21099911, hotness: undefined, score: 0, children: 1
FooBarrington -1 points 10 months ago

See, that's a great example of a critique that nobody with professional experience would make.

path: 0 21097121 21097383 21098568 21099911 21100583, hotness: undefined, score: -1, children: 0
victorz 4 points 10 months ago

Fully agree. Making perfect sense, you are.

path: 0 21097121 21097498, hotness: undefined, score: 4, children: 0
flamingo_pinyata 22 points 10 months ago

Thanks, I hate it

path: 0 21095518, hotness: undefined, score: 22, children: 0
rooroo 8 points 10 months ago

This honestly is what tailwind looks like to people who know css.

path: 0 21096391, hotness: undefined, score: 8, children: 8
RustyNova 6 points 10 months ago

I have yet to hear a good reason to use tailwind instead of a CSS file

path: 0 21096391 21096746, hotness: undefined, score: 6, children: 5
brian 1 point 10 months ago

it matches the component model of react etc

path: 0 21096391 21096746 21098628, hotness: undefined, score: 1, children: 4
RustyNova 2 points 10 months ago

I personally don't see it?

CSS in JS match the style more closely imo

path: 0 21096391 21096746 21098628 21100274, hotness: undefined, score: 2, children: 3
brian 1 point 10 months ago

sure, but both of those are significantly better than a css file. tailwind tends to match the internal structure better, css in js tends to match the component structure better.

tailwind doesn't have a runtime though, where css in js libs generally do. not that that's a big point. the difference is mostly preference

path: 0 21096391 21096746 21098628 21100274 21103709, hotness: undefined, score: 1, children: 2
FooBarrington -1 points 10 months ago

That's what Tailwind looks like to people who think they know CSS.

path: 0 21096391 21096783, hotness: undefined, score: -1, children: 1
rooroo 1 point 10 months ago

I mean yea. Don’t see your point, it’s still an uglification of a useful language

path: 0 21096391 21096783 21111945, hotness: undefined, score: 1, children: 0
lens0021 6 points 10 months ago

Is it April Fool's Day already?

path: 0 21096870, hotness: undefined, score: 6, children: 0
MonkderVierte 1 point 10 months ago

Tailwind is shit for anyone who does usercss.

path: 0 21096562, hotness: undefined, score: 1, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
33571
2550
7101

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
    • If the mod doesn't find it funny, you're banned. Ha-ha!... For real: do not use the community for "statements". There are other places for such content. Keep it chill and funny.

go to feed...