Ask HN: What code have you read recently?
21–30 of 40 posts
Re: Ask HN: What code have you read recently?
#22http://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.
Re: Ask HN: What code have you read recently?
#23Code Complete 2nd edition
I see this recommended everywhere , so I nabbed it from a library a while ago. My two cents (for others, not picking on you, rhythmAddict): 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.
Re: Ask HN: What code have you read recently?
#24Code Complete 2nd edition
I see this recommended everywhere , so I nabbed it from a library a while ago. My two cents (for others, not picking on you, rhythmAddict): 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.
Re: Ask HN: What code have you read recently?
#25Earlier quoted context omitted.
I see this recommended everywhere , so I nabbed it from a library a while ago. My two cents (for others, not picking on you, rhythmAddict): 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 think on the whole peoples reaction to Code Complete is very much connected to when in their coding career they first come across. If you come across it early in your career while still inexperienced it can completely change your approach to coding for the better. If you come across it later in your career it just seems like a collection of obvious ideas that you already know.
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.
Re: Ask HN: What code have you read recently?
#26Re: Ask HN: What code have you read recently?
#27Tornado web server. It's extremely good code solving hard problems with a great attention to detail and in a minimal way. Highly recommended.
"Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
Re: Ask HN: What code have you read recently?
#28This has a few different versions (even python) and is pretty solid/concise due to the hardware restrictions of the late 80s.
Re: Ask HN: What code have you read recently?
#29Simcity source code - http://code.google.com/p/micropolis/ 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)."