some madlad commented the entirety of dwm source code

https://github.com/bakkeby/dwm-commented

Shopping Cart Returner Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

Shopping Cart Returner Shirt $21.68

  1. 2 years ago
    Anonymous

    Bloat

  2. 2 years ago
    Anonymous

    Kek, you aren't kidding, there are multiple lines for every line of code.
    Kinda based but also a bit overdone.

    • 2 years ago
      Anonymous

      It's good for people who don't know C but want to customize it

      • 2 years ago
        Anonymous

        It's also good for people who know some C but have no experience in X11 programming.

    • 2 years ago
      Anonymous

      It’s actually super based, if you ever need to look at or modify the DWM code you basically have an entire enclyopedia for every single line

      There’s so many code bases I wish had this kind of reference

      • 2 years ago
        Anonymous

        Thats what documentation is for... hello? You dont pollute your codebase with comments for several reasons. Jr mentality.

        • 2 years ago
          Anonymous

          documentation is never well written

        • 2 years ago
          Anonymous

          yeah but suckmore people are p moronic and want you to just page through the source files till it makes sense.

    • 2 years ago
      Anonymous

      1/3 is auto-generated, 1/3 is useless gibberish like

      Never write comments for people that don't even know the language.
      >/* Allocate memory to hold the new monitor. */
      >m = ecalloc(1, sizeof(Monitor));

      and the remaining 1/3 is either irrelevant or meaningless (

      https://github.com/bakkeby/dwm-commented/blob/master/drw.c#L160

      )

      >making very readable code unreadable
      why?

      to farm github stars and "relevancy" I guess

      why do people here think this is impressive? dwm codebase is small, 2kloc if I remember correctly and it doesn't use anything strange or particularly obscure. you could do this in a couple of hours

      • 2 years ago
        Anonymous

        besides, the dwm codebase is perfectly readable, if you can understand the few bits of actually useful information in those comments, you can understand the code without the comments

        >explaining what some obscure Xlib function does for people who've never done X11 programming is the same as writing redundant comments about integer operations

        >XSetLineAttributes
        >obscure
        you should explain the integer operations for the people who've never done math

  3. 2 years ago
    Anonymous

    Never write comments for people that don't even know the language.
    >/* Allocate memory to hold the new monitor. */
    >m = ecalloc(1, sizeof(Monitor));

    • 2 years ago
      Anonymous

      >nooo you cant teach people, mub sekrit klub, read the heckin sicperino
      Seethe while I acquire new knowledge and skills. lol. lmao, even.

      • 2 years ago
        Anonymous

        Cope and seethe your troon moron.
        Goon yourself to sissy hypno while Black folk rail your women.

        • 2 years ago
          Anonymous

          >Goon yourself to sissy hypno while Black folk rail your women.
          Yes sir.

  4. 2 years ago
    Anonymous

    waiting for the brodie video before i have an opinion on this tbh

  5. 2 years ago
    Anonymous

    >some madlad
    i.e. you?

    • 2 years ago
      Anonymous

      It's by the creator of flexipatch.

  6. 2 years ago
    Anonymous

    this is excellent, I've been using dwm for 2 years and honestly have no idea what happens in it outside my config.h

  7. 2 years ago
    Anonymous

    based autism. looks great for starting learning x11

  8. 2 years ago
    Anonymous

    >making very readable code unreadable
    why?

    • 2 years ago
      Anonymous

      >documenting things bad
      Sorry if you have assburgers but this is common outside of group of individuals incapable of passing their genes. However if would be better if this guy documented actually useful software so I too wonder why even bother.

      • 2 years ago
        Anonymous

        /*
        Add 1 to i.

        This computational operation increments the value of the
        integer variable "i" by the standard integer unit value (one) (1).

        The operation may overflow the bits comprising i, causing
        the value to wrap around around to the most negative value
        representable by the integer type. On 32-bit Windows targets
        (make TARGET=win32), care should be taken not to exceed...
        */

        etc.

        • 2 years ago
          Anonymous

          There's no such thing in

          https://i.imgur.com/nwvfivn.png

          https://github.com/bakkeby/dwm-commented

          • 2 years ago
            Anonymous

            https://github.com/bakkeby/dwm-commented/blob/master/drw.c#L160

          • 2 years ago
            Anonymous

            >explaining what some obscure Xlib function does for people who've never done X11 programming is the same as writing redundant comments about integer operations

        • 2 years ago
          Anonymous

          Reinventing the wheel. Just leave a comment the says something like
          Bittorrent or IPFS URI to the best explanation such that when I right-click on acme it opens the file, be it text or pdf or ps or djvu etc.

  9. 2 years ago
    Anonymous

    >NOOOO you can't just write comments explaining how Xlib works, people are supposed to learn it from the ancient, incomplete documentation just like I did #NoPainNoGain

  10. 2 years ago
    Anonymous

    You saw this on Reddit.com specifically r/unixporn didn't you, you homosexual.

    • 2 years ago
      Anonymous

      Well, anon, I'm not him but how would you know?

      • 2 years ago
        Anonymous

        Reverse searching the link in the op, of course.
        which give https://www.reddit.com/user/bakkeby
        who owns the repo and the aforementioned Subreddit
        I have reddit set to loopback in my /etc/hosts

  11. 2 years ago
    Anonymous

    commenting code at all is so reddit

  12. 2 years ago
    Anonymous

    Autism is one hell of a drug.

  13. 2 years ago
    Anonymous

    Imagine seething about comments in an educational project that's only meant to be used as reference material.

    • 2 years ago
      Anonymous

      STFU you man with homosexual tendencies, if he went through all that effort, he should have just used cweb with troff or something and made something actually readable.

      • 2 years ago
        Anonymous

        Responding to myself
        https://github.com/driusan/dewm/

        • 2 years ago
          Anonymous

          how can anyone look at this and think "yeah, this is the correct way of developing software"

          • 2 years ago
            Anonymous

            It's better if the *roff or *TeX is used instead of Markdown, also unlike here the programmer should be literate in English and writing.

          • 2 years ago
            Anonymous

            Why?

          • 2 years ago
            Anonymous

            They simply look better, *roff is just as easy as markdown and can output straight text if you want (man pages) or book tier pdfs.
            The programmer should be literate in English, as it is lingua franca, and they should be literate writers, so people can easily grok the meaning behind their words.

Your email address will not be published. Required fields are marked *