37 points · by Wilduck · 16y ago · 37 comments
Last year I spent some time reading the arc source code. It was a lot of fun. I didn't know any Lisp, so the recursions and macros were hard for me to get my head around, but it was amazing to realise that this site is built on some small core concepts which can be grokked if you spare the time.
I loved Douglas Crockford's book Javascript: The Good Parts. Again, I couldn't understand all of it but it gave me a good feel for well-written Javascript code.
edit: Disclaimer for any planning on buying it: it only covers the language. There's no browser interaction code at all. I've seen a few people surprised / annoyed at that, but it keeps it lean and focused.
Lots of good code in there, especially in regard of simplicity and beauty. If you're diving into functional programming, be sure to have a look at it, even if you're a beginner like I am.
Nobody actually likes the standard one in its entirety, particularly Num, Monad, etc.
"Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
The code that had the biggest impact on me lately was the original J interpreter, though: http://nsl.com/papers/origins.htm . It looks like some sort of crazy brainfuck-ish thing, but it's not a joke. I highly recommend printing it out and trying to get in Arthur Whitney's head. (But if you run it, it will probably just segfault. It's rather cavalier with nonportable function pointer casting. It's prototype code from 20 years ago. If you want a working version, look at J (http://jsoftware.com) or Q (http://kx.com).)
This has a few different versions (even python) and is pretty solid/concise due to the hardware restrictions of the late 80s.
""Micropolis" is the name of the current GPL open source code version of OLPC SimCity. That was the original working title of Will Wright's city simulation game. Since Micropolis is licensed under the GPL, anyone can do anything they want with it that conforms with the GPL, except they can't call it "SimCity" (and a few other limitations to protect EA's trademarks)."
http://jashkenas.github.com/coffee-script/
I realize it's a huge investment to make, but dammit, every open source project should do something like this.
I'm far from being done and don't intend to read all of it, it isn't easy because it's huge !
Hacked together a game while doing laundry the other day with it. Read the source later to get an idea of what was going on under the hood. It's good stuff.
Ick. Bloated with manager-speak, light on quality suggestions, and massive. Not worth your time. Reading a few coding-suggestion articles here is significantly more likely to improve your code quality.
I can't get past the feeling (as it's a subjective assessment, I can't say "fact") that it's a book for non-programmers who are managing programmers, and it's being mis-applied as something a programmer should read. It's meant to raise the minimum code quality on a project, and it very well could with rather poor programmers, but it does so by sacrificing (nay, slaughtering) potentially better strategies which a decent programmer should know / be learning.
"Do X, Y, and Z and your code will improve" is something only managers believe, and they all want to find some magic combination which will work that way. Code Complete bills itself as exactly that.