The Duality of a Developer: C vs. CSS
Description
A 'Swole Doge vs. Cheems' (or 'Buff Doge vs. Crying Cheems') meme comparing the perceived difficulty of two different programming tasks. On the left, a muscular, confident-looking Shiba Inu (Swole Doge) is labeled 'Me' and is associated with the text 'Centralize STDOUT in C'. This represents a task that, while sounding complex to outsiders, is relatively straightforward for a systems programmer. On the right, a small, sad, crying Shiba Inu (Cheems) is labeled 'You' and is paired with the text 'Centralize div in HTML'. This represents the notoriously frustrating and often counter-intuitive task of centering an element in CSS/HTML, a common pain point for even experienced developers. The humor lies in the ironic inversion of difficulty: a low-level systems task is portrayed as a show of strength, while a seemingly simple web layout task is a source of weakness and despair
Comments
59Comment deleted
Centering a div is the real 'halting problem' of web development. You think you've solved it, but then a new browser comes out and proves you wrong
I can implement a lock-free queue in C between stand-up and coffee, yet aligning a div dead-center still feels like negotiating CSS politics with four rendering engines and three historical grudges
After 15 years in the industry, I've shipped distributed systems handling millions of requests per second, but I still Google 'how to center a div' every single time. Meanwhile, junior devs are out here casually using printf('\t\t\tHello World\n') and calling it centered
Centering output in C is just arithmetic; centering a div requires arithmetic, flexbox, three Stack Overflow tabs, and an apology to the box model
After 20 years in the industry, I can write a kernel module to redirect stdout through a custom buffer with signal handling, but I still Google 'how to center a div' every single time. The real joke? Both tasks are trivial once you know the incantation, but only one has seventeen different 'correct' solutions depending on which browser version your PM's cousin is using
I can wire up epoll and a lock‑free ring buffer in C before standup, but centering a login modal still has me choosing between flex, grid, or the ancient translate(-50%, -50%) ritual and praying Quirks Mode isn’t enabled
Redirect stdout in C: dup2. Center a div: convene Flex vs Grid, consult the Box Alignment spec, and pray Safari doesn’t ship a regression
C: integer math + printf widths. CSS: vendor prefixes, !important, and sacrificing a goat to the box model gods
margin: auto; Comment deleted
align: center Comment deleted
Можно сделать инлайн блоком и текстовыми стилями или некоторыми современными Comment deleted
Лет 7 на css не писал 😅 Comment deleted
please use english in this chat tr: you can use inline block and text styles or some modern (wtf is this) didnt write in css for 7 years Comment deleted
please write English or provide a translation to your text. (note to self: add /rules to bot so I don't have to manually write this every time) Comment deleted
https://t.me/devs_chat/47888 Comment deleted
bad connection, wrote that before you lol Comment deleted
how can it be that bad Comment deleted
idk, had some connection hiccup just now Comment deleted
new pr!!! Comment deleted
Can i get a link on GitHub for researches? Comment deleted
@riedlers_dev_bot look into its description Comment deleted
Thanks Comment deleted
even better: detect cyrillic characters and send the rules automatically Comment deleted
NO Comment deleted
lmao how is this always suggested 🤦 Comment deleted
Never do that! Cyrillic is not violating the rules Даже не думай об этом! Кириллица не нарушает правила, что она тебе сделала? Comment deleted
I mean if it doesn't include the translation Comment deleted
translation can be sent next message Comment deleted
also stickers and media files with russian text cant be detexted Comment deleted
I mean yeah, but must include English translation Comment deleted
you didn't provide the translation for the last part of the sentence tho... disappointed Comment deleted
translation should not be exact word-by-word but it should contain same meaning and i was too lazy to open translator to check how to tr correctly last part Comment deleted
He did not provide translation only for the last part of complex sentence (последнюю часть сложного предложения), but he generally gave the idea in the translation Comment deleted
how would you translate "ну что она тебе сделала?" Comment deleted
So what did she(Cyrillic) do to you? Comment deleted
looks like the meaning is gone Comment deleted
True Comment deleted
what did it do to you? or it didn't do anything to deserve it or it hadn't done anything bad for you Comment deleted
2nd translation is great Comment deleted
3rd one is actually "Она тебе ничего плохого не сделала!" Comment deleted
and it differs from "что она тебе сделала?" Comment deleted
She didn't mean to do any heck for you. Comment deleted
Уоu аге иот шгоиg Comment deleted
ох схит хов цан и реад тхис? Comment deleted
how to read my eyes are in blood now Comment deleted
what dialect of the only laguage allowed here without translation is that? Comment deleted
> Centralize STDOUT is C What dialect is it in first place? Comment deleted
margin: auto; max-width: 1024px; or even better: .wrapper { display: flex; align-items: center; justify-content: center; } .content { max-width: 1024px; } Comment deleted
>is C Comment deleted
So, what about centering STDOUT in C? Comment deleted
What about centering arbitrary data (groups of variables) on a terminal of arbitrary width? PS. Using curses does not count. Comment deleted
you can just read the terminal width from envvars Comment deleted
The catch is that one cannot simply ask printf to center the entire output. Instead, it is required to sprintf to some buffer (which size should be known in advance, which is not the case in general) and only then to center that on screen with printf. To make that a generic function, one needs to rely on va-args, which may not be available. Comment deleted
this is nonsensical Comment deleted
It's very easy. Comment deleted
So, HTML is actually superior than C even in such a basic task! Comment deleted
A complete system freeze is one of the most stable states of a computing device. Comment deleted
😂 Comment deleted
You see this? No code example of centralised text in C! Comment deleted