DEV Community

Cover image for Meme Monday

Meme Monday

Ben Halpern on March 11, 2024

Meme Monday!

Today's cover image comes from last week's thread.

DEV is an inclusive space! Humor in poor taste will be downvoted by mods.

Collapse
 
nchandan profile image
NChandan

Image description

Collapse
 
ben profile image
Ben Halpern

Let's get it going

Feature doesn't work

Collapse
 
jess profile image
Jess Lee

Does this qualify as a meme? I thought it was funny 😃

Image description

Collapse
 
ben profile image
Ben Halpern

Yes

Collapse
 
anitaolsen profile image
Anita Olsen

Works for me 🤣

Collapse
 
dreama profile image
Dream

meme monday

Collapse
 
tyisi profile image
TyIsI

And it's awesome too!

longwalkwoodworking.com/catalog

Collapse
 
ben profile image
Ben Halpern

One line of code

Collapse
 
mellen profile image
Matt Ellen-Tsivintzeli

Working in a regulated industry:

It's one character of code, what could it take, three months of change requests?

Collapse
 
alvaromontoro profile image
Alvaro Montoro
Collapse
 
latobibor profile image
András Tóth • Edited

At this point it feels like the Church of Tailwind gaslights people. It breaks many clean code basics like avoid mental mapping, yet we are told that this approach is cleaner and more efficient than writing normal CSS. It's for people who don't get that locally styling everything from zero is the polar-opposite of the design of CSS. Probably it's the same batch of people who tries to go full-OOP or full-FP in JS not understanding that, sadly, the design of the language will always break important details of either approaches.

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Sometimes I feel like Tailwind advocates live in a weird fantasy world. So much stuff they say just doesn't seem to conform to reality, like when they say you need to know CSS to use tailwind correctly, or that it makes code cleaner, etc.

Thread Thread
 
jaredgeddy profile image
Jared

I think the main allure is maintainability and code confidence. If you're code isn't dependent on custom "named" classes then you never have to worry about breaking something somewhere else when making a style change. How many times have you changed a class style only to realize it breaks some implementation somewhere else in your app that you now need yet another custom class for though? To your point, no it doesn't make style declaration cleaner, it makes it so you don't have CSS files 1000's of lines long with 100's of unique classes defined that have maybe 1 or 2 property differences.

I'm not a Tailwind advocate but there are legitimate use cases where the philosophy behind Tailwind makes sense. For instance when an app gets too large to maintain any reasonable sense of where classes are applied and you're able to confidently say, "making this style change will only effect this scenario". Or, you have multiple people working on separate teams changing code on the same app. Is Tailwind pointless on a marketing website? Probably. Does it make your mark-up more complex and harder to read? Yes. When you're dealing with an application with 100's of features and UI components and multiple teams though... you'll trade the time it takes to read Tailwind for not having to account for class duplication or test, and fix, your changes to an existing class breaking a different implementation in the app.

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

the main allure is maintainability and code confidence

Saying that something is more maintainable and at the same time more complex and difficult to read (later in the comment) is contradictory. Complexity and difficulty to read make the code more difficult to maintain. What is it?

How many times have you changed a class style only to realize it breaks some implementation somewhere else in your app that you now need yet another custom class for though?

Almost none. To be honest, I can't remember having that problem at all. Following a methodology similar to BEM (not necessarily BEM) will avoid that problem completely. If your class is something like module-component-element, you will not get name conflicts and it will be easy to know what each class represents (both in HTML and CSS).

it makes it so you don't have CSS files 1000's of lines long with 100's of unique classes defined that have maybe 1 or 2 property differences

The CSS code generated by tailwind is literally CSS files with 1000s of lines of code with unique classes with just one property. You may not see how the sausage gets made, but it gets made anyway.

Thread Thread
 
alvaromontoro profile image
Alvaro Montoro

Don't take me wrong. Tailwind has good things: CSS code pruning which is great, the apply directive (discouraged by the authors), cross browser support (it adds vendor prefixes)... But I wouldn't list maintainability or small code as pros. I would consider them neutral or put the in the cons column.

Collapse
 
bernert profile image
BernerT

meme monday

Collapse
 
jjbb profile image
Jason Burkes

meme monday

Collapse
 
chariebee profile image
Charles Brown

meme monday

Collapse
 
kapaseker profile image
PangoSea

what's meaning?

Collapse
 
lexlohr profile image
Alex Lohr

Array.sort sorts as string, so 100 will be before 20. You need a compare function to fix that.

Thread Thread
 
kapaseker profile image
PangoSea

LOL, I forget about that.

Collapse
 
warwait profile image
Parker Waiters

meme monday

Collapse
 
dinerdas profile image
Diner Das

meme monday

Collapse
 
mrlinxed profile image
Mr. Linxed

H: Yes

Collapse
 
mellen profile image
Matt Ellen-Tsivintzeli

I: Don't call me, send an email.

Collapse
 
best_codes profile image
BestCodes

I saw these on X (formerly known as Twitter) and Reddit recently…

Image description

Image description

Image description

Collapse
 
avanichols_dev profile image
Ava Nichols

meme monday

Collapse
 
marco_43 profile image
Marco

haha it's the same with frontend developer and UI / UX Designer 😂

Collapse
 
pr_kharshakya profile image
Prakhar

I am an artist trying to learn coding, so I can build games

Collapse
 
youngfra profile image
Fraser Young

meme monday

Collapse
 
sherrydays profile image
Sherry Day

meme monday

Collapse
 
best_codes profile image
BestCodes

Image description

If you don't get it, it's funny because JS arrays begin at 0.

Collapse
 
kapaseker profile image
PangoSea

any language's arrays begin at 1?

Collapse
 
lexlohr profile image
Alex Lohr

Lua.

Thread Thread
 
kapaseker profile image
PangoSea

aha, that is really fun

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️ • Edited

Lua "arrays"* begin at 1

* Lua doesn't really have "arrays", but sequences are functionally the same thing, and those start at 1

Collapse
 
fyodorio profile image
Fyodor

Lua

Collapse
 
ivis1 profile image
Ivan Isaac

meme monday

Collapse
 
syxaxis profile image
George Johnson

Or as happened 3 weeks ago, client cancelled project after 4 months in prod, when it took 7 months to design and build! Oh well, I guess I still got paid.

Collapse
 
duncan_true profile image
Dun

meme monday

Collapse
 
vucat12 profile image
vucat12

Image description

Collapse
 
anitaolsen profile image
Anita Olsen

I just LOVE this one! 😁
Image description

Collapse
 
mrlinxed profile image
Mr. Linxed

🐍

Collapse
 
cwrite profile image
Christopher Wright

meme monday

Collapse
 
1link profile image
1Link.Fun

Win + V will save you

Collapse
 
best_codes profile image
BestCodes

Image description

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

It stands for "Grenade Launcher" because you're going to want one

Collapse
 
syxaxis profile image
George Johnson

I took up photography, it's creative, I get outdoors and I get to control how much or how little I use tech. I shoot film on landscapes, almost none. I shoot digital on architecture and I use loads, to the point I was writing Golang utils to get image meta data extracted

Collapse
 
anitaolsen profile image
Anita Olsen

Hahahahah! 🤣

Collapse
 
bartoszkrawczyk2 profile image
Bartosz Krawczyk

so accurate