Some madlad commented the entirety of dwm source code

github.com/bakkeby/dwm-commented

Attached: dwm.png (192x80, 373)

Other urls found in this thread:

github.com/bakkeby/dwm-commented/blob/master/drw.c#L160
twitter.com/SFWRedditImages

Bloat

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

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

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

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

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

documentation is never well written

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

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

>some madlad
i.e. you?

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

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

based autism. looks great for starting learning x11

It's by the creator of flexipatch.

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

>making very readable code unreadable
why?

>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.

/*
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.

There's no such thing in

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

1/3 is auto-generated, 1/3 is useless gibberish like and the remaining 1/3 is either irrelevant or meaningless ( )

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

Cope and seethe your troon retard.
Goon yourself to sissy hypno while niggers rail your women.

>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