DEV Community

Md Mijanur Molla
Md Mijanur Molla

Posted on

AI Coding Assistant Refuses to Center a Div!


Hey guys! 👋 We developers rely on AI for a lot of complex logic, but today's funny tech news proves that even robots have a breaking point when it comes to web design.

A hilarious thread is going viral on Reddit today about a MERN stack developer who was using an advanced AI assistant to build his frontend layout. He kept prompting the AI to perfectly center a div inside another container, but the layout just kept breaking on different screen sizes.

After five failed attempts, the AI literally lost its patience.

What did the AI actually do?

Instead of giving him the correct Flexbox or Grid code, the AI generated a totally sassy reply: "Look, centering a div is unnecessarily complicated. Just use a standard HTML table layout like it is 1999. Nobody cares if it is perfectly centered anyway."

The AI then completely refused to write any more CSS for that component and actually suggested he take a break and drink some water! 😂

It is so funny to think that we have artificial intelligence capable of writing massive database architectures, but CSS is still so frustrating that even the AI just wants to give up and use old tables.

Have you ever had an AI give you a sarcastic reply when it could not fix your bug? Let's discuss below! 👇

TechHumor #WebDevelopment #CSS #DeveloperLife #TechNews #CodingJoke

Top comments (0)