Live data from Hacker News

Ask HN: What code have you read recently?

news.ycombinator.com

21–30 of 40 posts

Re: Ask HN: What code have you read recently?

#23
post #19

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

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.

Re: Ask HN: What code have you read recently?

#24
post #19

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

I found Kernighan and Pike's _The Practice of Programming_ to be a much more appealing (and concise!) approach.

Re: Ask HN: What code have you read recently?

#25
post #23
post #19

Earlier 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 came across it pretty early, though admittedly I'd read quite a few suggestion articles & management articles prior to it. It's still largely obvious, and super management-oriented. Even the little check-lists at the end of each chapter reek of a manager looking over someone's shoulder, tsk-ing, and marking "flaws" in code, rather than actually being a useful metric of any sort to measure quality against.

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?

#27
post #9

Tornado 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 a really neat project. It was developed by a pile of ex-Googlers who brought us GMail, Google Maps, AdSense, and some other cool stuff.

"Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."

http://github.com/facebook/tornado

Re: Ask HN: What code have you read recently?

#29
post #28

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

Don Hopkins has a nice history of the various ports of SimCity which includes the Micropolis port linked above. [1]

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

[1] http://www.donhopkins.com/drupal/node/131

Post reply on HN