3 ms·
Maybe you haven't looked very often but nice code is out there for quite some time. Take a look at anything related to the GNOME stack (GLib, GTK+, all the appl
by matthiasv 13y ago
Maybe you haven't looked very often but nice code is out there for quite some time. Take a look at anything related to the GNOME stack (GLib, GTK+, all the applications) or the Linux kernel for example. And quite frankly, I stumble upon badly written Python way more often than C.
- spullara 13y agoThe code for those might be great, but Redis is beautiful inside and outside. I'm not a fan of the actual output of the GNOME stack. I agree the Linux kernel code is generally great to read and to use.
- 16s 13y agoIMO, OpenBSD and tarsnap are other notable samples of clean C code.
- maurycy 13y agoI'd also mention FreeBSD kernel and Niels Provos' code.
- avtar 13y ago"And quite frankly, I stumble upon badly written Python way more often than C." I'm curious, which public codebases would you consider to be examples of well written Python?
- matthiasv 13y agoThe often cited requests library, flask and Django. Some counter examples are high profile projects such as IPython and Matplotlib.
- avtar 13y agoThanks. I'll spend some time with Requests over the weekend. It looks like the person who maintains that library is also behind this http://docs.python-guide.org/en/latest/#writing-great-code http://docs.python-guide.org/en/latest/#writing-great-code