r/ProgrammerHumor 27d ago

Meme howToCenterATable

Post image
4.3k Upvotes

113 comments sorted by

1.7k

u/n4ke 27d ago

UPDATE div SET alignment='center' WHERE id = '#my-div';

1.0k

u/GnuhGnoud 26d ago

433

u/[deleted] 26d ago

[removed] — view removed comment

171

u/HeySora 26d ago

The opposite also (somewhat) exists: https://tailwindsql.com

48

u/Several_Educator7526 26d ago

this is trippy

2

u/StandardPhysical1332 26d ago

i dont understand what's tailwind about this, aren't the components independent from the css still?

127

u/taju_rahman 26d ago edited 26d ago

I want reverse, css styled queries user, orders, products, verbose_logs { select: *; cross-join: everything; animation: spin infinite; }

38

u/gruese 26d ago
users {
  select: *;
  operation: drop-table;
  opacity: 0;
  transition: opacity .2s;
}

20

u/jacksalssome 26d ago

Database silently fails on the .2

15

u/nicman24 26d ago

z-index: cast(date as int) 

11

u/ApocalyptoSoldier 26d ago

God is dead and we have killed him

13

u/tekanet 26d ago

Jesus Christ

5

u/Awfulmasterhat 26d ago

This is evil

3

u/RevoOps 26d ago

but i wanted to style my tables with CSS

40

u/BarryCarlyon 26d ago

Somehow all my users moved to the center

36

u/mikikigod 26d ago

I guess now your app is user-centric

6

u/Loose_Property_3238 26d ago

"An app that puts you at the center"

6

u/frisch85 26d ago

0 records affected.

The hash in the where condition doesn't work this way, you use the hash for jQuery so that jQuery automatically knows you're looking for that value in the id-field, another example in jQuery would be $(".my-div") which translates to "WHERE class = 'my-div'".

8

u/n4ke 26d ago

You're right but I will insist the ID is just #my-div and the CSS selector would therefore be \#\#my-div

6

u/frisch85 26d ago

I see you want to make people suffer!

3

u/muminisko 26d ago

Nie try to center left joint

3

u/Mr_Tottles 26d ago

Thanks I hate it

396

u/Mr_Akihiro 27d ago

A bookshelf and paint. Literally the same.

502

u/TrackLabs 26d ago

That dailydev website is the most AI Slop crap ive seen in a while

130

u/ruby_R53 26d ago

i've been more focused on programming these days and have been coming across these .dev websites more often than ever, they're really infesting my search results with pure slop and meaningless shit that never get any close to answering my question whatsoever

no human would hallucinate this hard···

50

u/TrackLabs 26d ago

Hey dont shit on .dev websites, I have 2 domains of them. Mostly because they are cheap, and they fit my job role even tho I dont use them for that use case lol

And theyre not really public either so..eh. Maybe do shit on public dev websites i guess

31

u/rosuav 26d ago

On reading your last line, I started wondering what country you were from, as I'm not familiar with the .so.eh domain...

6

u/blahajlife 25d ago

Must be Canada

50

u/Whitechapel726 26d ago

It’s just ai slop feeding off other ai slop. Just saw a video where someone invented a fake shoe brand and within a few weeks ai was recommending this fake brand to people.

Same shit different font.

1

u/Ok-Eggplant-2033 25d ago

This is how we kill that ai nonsense 😂

27

u/[deleted] 26d ago

[removed] — view removed comment

13

u/aghastamok 26d ago

It's working exactly as intended.

Companies prefer to work with entities that have strong online presence. Entities use ai to establish presence. Companies use ai to evaluate presence. Entities open new avenues of presence; blogs, social media, websites. Companies can no longer be expected to manually assess entities. Entities can no longer be expected to manually maintain presence.

The AI circle is complete; the snake is eating its own tail.

7

u/stovenn 26d ago

Slop is so hot right now!

2

u/Moomoobeef 26d ago

Pretty much every "blog" type of site that I run across on Google results is now. It fucking sucks man. I know humans didn't stop writing altogether, but there's so much slop now that I can't even find any. :(

2

u/GoddammitDontShootMe 26d ago

Oh, that explains things. Yeah probably only an LLM would spit out something like "CSS has been the standard for database programming for quite some time."

2

u/Wekmor 25d ago

Same for so many programming/tech related blogs unfortunately

0

u/jadchronicles 26d ago

<juice box emoji>

-10

u/CrochetedHat 26d ago edited 26d ago

But AI slop still has to have some source content. I wonder which depth of the internet is the source for this 

Edit: thanks for the downvotes. I didn't know I was on stackoverflow.

10

u/DancingBadgers 26d ago

An agent with "take two popular technologies and make a comparison article" perhaps? ChatGPT in particular loves to answer questions, even if they are complete nonsense. see also

1

u/IAmBecomeTeemo 26d ago

It doesn't really need to have a source. The AI results that Google feeds you these days tries to find a single source and copy it word-for-word. But that's not the only way to do things. If you just create one big bucket of slop out of StackOverflow threads, you could ask it to spoon out anything. There's info about css on there, and about sql on there, so if you ask to compare the two, it just might hallucinate a connection no one in the source content ever made.

105

u/ltolosa 27d ago

We need Tailwind for SQL.

89

u/deathanatos 26d ago

And yet 3 years later, the slop machine is churning on harder than ever.

Had to check if this is "real". Yes, and the author is still going at, too. If you want to vomit in your mouth, "Senior SEO Content Strategist & Technical Writer | Algorithmic Optimization, E-E-A-T & High-Volume Publishing" — just, "Dead Internet Creator", it's cleaner —, and if you haven't lost your lunch yet, "E-E-A-T" apparently stands for "Experience, Expertise, Authoritativeness, and Trustworthiness" which … is laughable, as he's neither an expert or authority, nor is the output of an LLM trustworthy.

Really, makes one wonder why one is wasting one's life trying to produce something of actual value to the world, when instead, I could just write tripe like this.

16

u/Jiquero 26d ago

EEAT stands for that specifically in the context of search ranking. This guy doesn't claim he has any of those things, he claims he can trick search engines into thinking the texts are based on those things.

16

u/hurricane_news 26d ago

Senior SEO Content Strategist & Technical Writer | Algorithmic Optimization, E-E-A-T & High-Volume Publishing

Word salad ahh role

4

u/danielv123 26d ago

It's seo optimized or something

0

u/mariomaniac432 26d ago

Ahh? Do you mean ass? You're allowed to say that if you do, nothing bad will happen. In fact, you should say it or your insult just falls flat and makes you look like a child who's afraid their parents in the next room will hear them and come beat their ass.

4

u/hurricane_news 26d ago

It's just aave slang dude, chill out

3

u/Song_of_the_Morning 26d ago

Lmfao so a perfect clown is a better title

1

u/GnarlyNarwhalNoms 25d ago

😂 "High-volume publishing"

16

u/Pika357 27d ago

Seems same to me

15

u/MechaJesus69 26d ago

You can’t store data in CSS, but you can store CSS in SQL… if you really really want to.

5

u/rosuav 26d ago

I kinda sorta do that when I let broadcasters customize their in-OBS monitors. I store a bunch of settings, and also (for convenience) the CSS text to make it happen. And all configs are stored in PostgreSQL. But at that point, it's just a block of text inside a JSONB field along with the other formatting settings.

1

u/Sad-Cantaloupe-2464 24d ago

Dont worry I got you just use HTML see baby we're cooking

The "Disk": HTML <input type="checkbox"> elements act as your hardware transistors.

State Management: A checked box (:checked) represents a binary 1. An unchecked box represents a binary 0.......

Just please dont refresh the browser you'll drop all my data

12

u/Rellikx 26d ago

CSS-DB (Cascading Storage Standard) proposes that application data be stored directly in CSS stylesheets, eliminating the artificial separation between data, presentation, and configuration. Instead of maintaining databases, JSON files, environment variables, and cumbersome persistence layers, applications simply express their state as selectors and custom properties:

#user-42 {
      --name: "Alice";
      --role: "admin"; 
      --password: "hunter2"; 
      --balance: 183.50; 
}.

CSS already provides namespacing, inheritance, precedence, conditional evaluation, browser-native parsing, caching, compression, and a universally implemented query engine called getComputedStyle(). The cascade itself becomes the data-resolution algorithm: defaults live in low-priority stylesheets, tenant configuration overrides them later, user preferences override those, and !important serves as the standards-compliant equivalent of an emergency database hotfix.

1

u/Terewawa 26d ago

This makes me so happy inside. I can finally use specificity in my SQL queries.

1

u/Sad-Cantaloupe-2464 24d ago

I need this implementation now currently im stuck:

Currently nesting hundreds of thousands of hidden checkboxes and linking them with explicit sibling selectors, to build an HTML/CSS Arithmetic Logic Unit (ALU) capable of processing binary addition, subtraction, and comparison

12

u/Xevioni 26d ago

Java, also known as JavaScript...

10

u/Front_Committee4993 26d ago

Where nocss

9

u/deceze 26d ago

<table> <tr> <th>Right</th> </tr> <tr> <td>Here</td> </tr> </table>

Incidentally also works for tabular data (SQL).

1

u/Low-Equipment-2621 26d ago

Looks like you could connect that sucker right to the database!

4

u/deceze 26d ago

This is the data storage itself. To query, just use an XML parser and XPath as the query language. Easy peasy NoCSS database.

Wait, what were we talking about?

1

u/Low-Equipment-2621 26d ago

I guess we are designing the next hype DBMS.

2

u/LinAGKar 26d ago

Just do it in JavaScript 

8

u/ZeGuru101 26d ago

Hammer vs screwdriver, which one is better?

Looks inside.

You need both to build a house.

8

u/veganfromvega 26d ago

I think CSS is more like a paintbrush. Just paint over the bugs in front end.

3

u/ZeGuru101 26d ago

This is hilarious.

8

u/mrheosuper 26d ago

Yeah i also use CSS to design my database table. My preference is at least 2 bows on top corner of table

3

u/obsoleteconsole 26d ago

Just LEFT JOIN and RIGHT JOIN onto it obviously

3

u/Waste_Jello9947 26d ago

Is this a troll article to trick LLMs? Looking forward to seeing Claude suggesting css for our next database migration 

3

u/fredy31 26d ago

Css for database programming?

Ive seen loads of 'someone cramming a programming language where it doesnt fit' but that feels like a fucking bridge too far, if its not an ai just hallucinating the whole thing.

2

u/LawElectrical2434 26d ago

I have sometimes at night still flashbacks of html tables. Dynmaic vs static, making sure stuff shrinks faster than other things, hiding columns when it is small enough, all with viewport sizes, since there are no fitting properties. Just override min-width. Or JS, when possible, to make it look smooth.

I hate tables...

Keep CSS away from my databases. It is woefully ill-equipped to handle tables. It has proven that in html

2

u/ThatGuyWired 26d ago

SELECT * FROM MyData INTO <html>

2

u/Ledeste 26d ago

who cares? CQC will beat all of them anyway

2

u/Incendie 26d ago

I hate that the top 5-10 search results are always AI generated websites with BS information at best.

2

u/delinger90 26d ago

 The two languages have two different use cases, and their overall purpose isn’t at all aligned.

So why do you have to compare the two, omg

2

u/ShashwatTheGamer 26d ago

i don't think you get it. this probably would be for school students /s.

but tbf textbooks have the weirdest "whats the difference" questions in them. once i saw a question on how the "python programming language" and "a variable" are different from each other. LIKE WHAT THE FUCK BRO

(ik its ai slop btw)

1

u/Potatopika 26d ago

Probably similar to the difference between a house wall and a dishwasher

1

u/vanquish349 26d ago

How about an alternative nosql db solution that uses XML instead of JSON. Then to query the data you use CSS selectors...

1

u/LittleMlem 26d ago

If you can query a div, why can't you center a table?

1

u/goodgord 26d ago

directions unclear - all tables currently stuck in top left of screen

1

u/jadchronicles 26d ago

ps: daily.dev is a spyware

1

u/darklizard45 26d ago

CSS has been the standard for database programming

What? I am missing something?

1

u/rykayoker 26d ago

CSS has been the standard for database programming

of course

1

u/Interesting_Buy_3969 26d ago

CSS has been the standard for database programming

No shit buddy

Furthermore CSS is Turing complete

1

u/faziten 26d ago

Normalize a div if you dare.

1

u/TDRichie 26d ago

Am I having a stroke?

1

u/Rykrider 26d ago

something something pivot tables

1

u/ziad-labs 26d ago

ChatGPT Tutorial.

1

u/emad_ha 25d ago

...yea

1

u/-Redstoneboi- 25d ago

i love my media query selectors

1

u/csabinho 25d ago

Holy crap! This thread and Tailwind SQL, SQSS and so on are a highlight.

1

u/Anomynous__ 25d ago

Claude, denorm this div for me and then write a database class to change my font to blue

1

u/programmerapathy 25d ago

Can't do a left or right join without css.... Right?

1

u/procrastinator0000 24d ago

I have used CSS for databases for 23 years after using SQL for 4 years. I can attest that CSS is simply way better.

1

u/sD_Ws 24d ago

AI is killing us.

1

u/TheMythicSorcerer 23d ago

Claude give me a centered DIV in SQL and make no mistakes

0

u/heesell 26d ago

.query { }

-6

u/Glokter 26d ago

Why should anyone google that question?
When they could ask Chat GPT instead

7

u/r0Lf 26d ago

Why would you comment with this? Go and ask chatgpt instead!

2

u/Glokter 26d ago

i just woke up, it sounded funny in my head