Skip to content
DevMeme
3814 of 7590
Frontend Post #4156 · source on Telegram

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

59
Anonymous ★ Top Pick 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
  1. Anonymous ★ Top Pick

    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

  2. Anonymous

    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

  3. Anonymous

    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

  4. Anonymous

    Centering output in C is just arithmetic; centering a div requires arithmetic, flexbox, three Stack Overflow tabs, and an apology to the box model

  5. Anonymous

    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

  6. Anonymous

    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

  7. Anonymous

    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

  8. Anonymous

    C: integer math + printf widths. CSS: vendor prefixes, !important, and sacrificing a goat to the box model gods

  9. Alexey 4y

    margin: auto;

  10. Alexey 4y

    align: center

  11. Alexey 4y

    Можно сделать инлайн блоком и текстовыми стилями или некоторыми современными

    1. Alexey 4y

      Лет 7 на css не писал 😅

      1. @sylfn 4y

        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

      2. @RiedleroD 4y

        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)

        1. @sylfn 4y

          https://t.me/devs_chat/47888

          1. @RiedleroD 4y

            bad connection, wrote that before you lol

            1. @sylfn 4y

              how can it be that bad

              1. @RiedleroD 4y

                idk, had some connection hiccup just now

        2. @feskow 4y

          new pr!!!

        3. dev_meme 4y

          Can i get a link on GitHub for researches?

          1. @RiedleroD 4y

            @riedlers_dev_bot look into its description

            1. dev_meme 4y

              Thanks

        4. @newmankrr 4y

          even better: detect cyrillic characters and send the rules automatically

          1. @sylfn 4y

            NO

            1. @RiedleroD 4y

              lmao how is this always suggested 🤦

          2. @sylfn 4y

            Never do that! Cyrillic is not violating the rules Даже не думай об этом! Кириллица не нарушает правила, что она тебе сделала?

            1. @newmankrr 4y

              I mean if it doesn't include the translation

              1. @sylfn 4y

                translation can be sent next message

              2. @sylfn 4y

                also stickers and media files with russian text cant be detexted

            2. @feskow 4y

              I mean yeah, but must include English translation

            3. @newmankrr 4y

              you didn't provide the translation for the last part of the sentence tho... disappointed

              1. @sylfn 4y

                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

              2. @feskow 4y

                He did not provide translation only for the last part of complex sentence (последнюю часть сложного предложения), but he generally gave the idea in the translation

                1. @sylfn 4y

                  how would you translate "ну что она тебе сделала?"

                  1. dev_meme 4y

                    So what did she(Cyrillic) do to you?

                    1. @sylfn 4y

                      looks like the meaning is gone

                      1. dev_meme 4y

                        True

                  2. @feskow 4y

                    what did it do to you? or it didn't do anything to deserve it or it hadn't done anything bad for you

                    1. dev_meme 4y

                      2nd translation is great

                    2. @sylfn 4y

                      3rd one is actually "Она тебе ничего плохого не сделала!"

                      1. @sylfn 4y

                        and it differs from "что она тебе сделала?"

                  3. @QutePoet 4y

                    She didn't mean to do any heck for you.

            4. @kitbot256 4y

              Уоu аге иот шгоиg

              1. @sylfn 4y

                ох схит хов цан и реад тхис?

                1. @sylfn 4y

                  how to read my eyes are in blood now

    2. @beton_kruglosu_totchno 4y

      what dialect of the only laguage allowed here without translation is that?

  12. @mozilaip 4y

    > Centralize STDOUT is C What dialect is it in first place?

  13. @sashakity 4y

    margin: auto; max-width: 1024px; or even better: .wrapper { display: flex; align-items: center; justify-content: center; } .content { max-width: 1024px; }

  14. @beton_kruglosu_totchno 4y

    >is C

  15. @SamsonovAnton 4y

    So, what about centering STDOUT in C?

  16. @SamsonovAnton 4y

    What about centering arbitrary data (groups of variables) on a terminal of arbitrary width? PS. Using curses does not count.

    1. @RiedleroD 4y

      you can just read the terminal width from envvars

      1. @SamsonovAnton 4y

        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.

        1. @sashakity 4y

          this is nonsensical

    2. dev_meme 4y

      It's very easy.

  17. @SamsonovAnton 4y

    So, HTML is actually superior than C even in such a basic task!

  18. @SamsonovAnton 4y

    A complete system freeze is one of the most stable states of a computing device.

  19. @dsmagikswsa 4y

    😂

  20. @QutePoet 4y

    You see this? No code example of centralised text in C!

Use J and K for navigation