Reading 'A little smalltalk' shows some nice idea how a whole class library can be built. It is not a toy and small enough to be comprehensible and it talks about the VM implementation in more detail than the blue book. #smalltalk
@ckeen I think seeing `not not x` in some part of OpenComputers was such a thing?
It wasn't so much a life changing thing but it just showed how deeply the programmer understood the language and kept the chaos under control.
(`not not` in Lua is a very cheap and fast way of coercing a value into a boolean)
@grainloom is that similar to xor ax,ax ?
@kelbot Yeah I think I am one of the few people that have read the whole source code of their window manager...
@ckeen #Auditdistd code from #OpenBSM is dense yet pretty well-structured: https://github.com/openbsm/openbsm/tree/master/bin/auditdistd
I've learnt a lot already and I'm still studying it.
@ckeen I haven't actually checked but I think I remember people talking about the Sqlite codebase being very good to learn and things like that ;)
I ran this for a year or so: https://www.meetup.com/The-Classical-Code-Reading-Group-of-Stockholm/events/past
- GNU true and false
- GNU yes, OpenBSD yes
The real thrill for me was comparing them against each other - it helped draw different priorities and coding styles out.
There's a book called _Beautiful Code_ and some of the examples discussed in it can be found here:
You can read some of it online here:
@ckeen I have enjoyed the series of books from the "Architecture of Open Source Software". I have used them to dip in to the implementation of different software. The first two provide a nice intro to the ideas behind the code of the programs they cover. Thew newest is "500 Lines or Less", which provides small implementations of commonly encountered software.
The books are CC licensed and can be read online or purchased (proceeds go to Amnesty International). http://www.aosabook.org/en/index.html
@ckeen I'm a fan of nicm@openbsd's codebases, i.e: tmux/fdm. It tends to match other developers as well, thanks to style(9).
@ckeen Anything that -actually- has comments that give a fig about intent.
Everything else is kind of moot if you dont understand the intent of a LOC.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!