hbuchel,
@hbuchel@hachyderm.io avatar

Is this a real thing people using Tailwind do because this made me actually lol at work
https://stackoverflow.com/questions/72826605/how-to-style-nested-elements-based-on-parent-class-using-tailwind-css

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar

@hbuchel "Hi I wrote this CSS and it works. How can I do it worse?"

kaiserkiwi,
@kaiserkiwi@corteximplant.com avatar
cferdinandi,
@cferdinandi@mastodon.social avatar

@hbuchel You wouldn't believe the examples of code I've seen Tailwind people share with me, while arguing that Tailwind is "so much better" than vanilla CSS.

patrick_h_lauke,
@patrick_h_lauke@mastodon.social avatar

@hbuchel tailwind is brainworms

hbuchel,
@hbuchel@hachyderm.io avatar

Someone asked about re-theming our library using Tailwind and of course my first thought is "why" and then also "why not just use CSS" but then it went to "ok but how would you pass the tailwind classes to nested elements within a component" and then I found this and realized people are out here re-inventing using the cascade with just plain old CSS but ~make it a utility class ~" I guess

hbuchel,
@hbuchel@hachyderm.io avatar

It's still so wild to me that you can point out bad practices in javascript or whatever other language or point out a better way to write something and people go "yes of course, that makes sense now, I'll do it this way now" but for CSS those same people throw up their hands and go "I fear I need to reinvent CSS actually" instead of just learning the thing

linc,
@linc@phpc.social avatar

@hbuchel My impression is that using CSS well requires specialized knowledge, which our industry is actively trying to squelch with the labor arbitrage of "Javascript everywhere" so everyone has the same skillset. Enough folks have drank the Kool Aid on this they have a critical mass and don't understand they're undercutting their own labor by devaluing others' experience.

BoredomFestival,
@BoredomFestival@sfba.social avatar

@hbuchel you're assuming that "learning CSS" is a thing that is possible for the human mind

mcc,
@mcc@mastodon.social avatar

@hbuchel For the record tho in javascript no I would absolutely go "no I must reinvent the thing" and install TypeScript

tojiro,
@tojiro@mastodon.social avatar

@hbuchel Ah, I see you are not familiar with React.

(I joke, but there's plenty of ostensibly JavaScript-based libraries out there that reinvent some subset of the language in the name of making some use case "easier")

cferdinandi,
@cferdinandi@mastodon.social avatar

@hbuchel are you sure people readily accepts better ways to write JavaScript?

Whole Lotta folks build a whole lot of over complicated framework to do things that could be accomplished very simply with platform native code.

hbuchel,
@hbuchel@hachyderm.io avatar

@cferdinandi yeeeaaah that's true. It's a weird place to be that they're so married to a library that they are basically like "lalala I can't hear you. Popular Twitter dude said this was ok so I know I'm right and you're wrong".

thomasapowell,
@thomasapowell@fosstodon.org avatar

@hbuchel @cferdinandi makes perfect sense according to “Argumentum I got lots
of followerum”

Same bullshit different millennia 😛

mattwilcox,
@mattwilcox@mstdn.social avatar

@cferdinandi As a rule of thumb it's my belief all people have a bias to:

  1. Do whatever is easiest first.
  2. To justify that choice as also being a good solution.
  3. To reject changing (1) unless (2) becomes impossible.

It applies to all aspects of being a person. We're fundamentally "efficiency machines" but with a focus on "the moment". We bias to what's least effort unless we have strong counter motivation and spare spoons.

@hbuchel

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines