TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ruby Best Practices (full book available for download)

151 点作者 figured大约 15 年前

10 条评论

sandal大约 15 年前
For the tl;dr crowd, this will take you straight to the PDF:<p><a href="http://sandal.github.com/rbp-book/pdfs/rbp_1-0.pdf" rel="nofollow">http://sandal.github.com/rbp-book/pdfs/rbp_1-0.pdf</a><p>(But please read the article, it provides context :)
评论 #1199413 未加载
figured大约 15 年前
I recommend this book whole heartily. I have been reading the chapters as they have been released, an excellent resource.
bgraves大约 15 年前
So, is this the full version of the O'Reilly book [1] or something different? I'm curious about the business end of this project: did you sell this PDF before giving it away for free? How much revenue have you brought in? How much time have you spent writing/compiling/editing this book in it's current state. It seems like a very highly regarded book (judging from the Amazon reviews) so perhaps I am just out of the loop on this one, but I find the business aspect of these ventures most interesting.<p>[1]<a href="http://www.amazon.com/s?ie=UTF8&#38;tag=mozilla-20&#38;index=blended&#38;link_code=qs&#38;field-keywords=Ruby%20Best%20Practices&#38;sourceid=Mozilla-search" rel="nofollow">http://www.amazon.com/s?ie=UTF8&#38;tag=mozilla-20&#38;index...</a>
评论 #1199015 未加载
richcollins大约 15 年前
Keyword arguments via hashes is certainly not a best practice for "Beautiful API Design". Sending messages is part and parcel to good OO design. Code that deconstructs hashes to emulate keyword arguments is invariably hideously complicated.
评论 #1199274 未加载
评论 #1199261 未加载
daveungerer大约 15 年前
The sandal username on GitHub sounded familiar, so I checked and realised its the same sandal that does the Prawn PDF library: <a href="http://github.com/sandal/prawn" rel="nofollow">http://github.com/sandal/prawn</a><p>That gives the book some extra credibility in my eyes.<p>EDIT: OK, now that I've read the foreward, I see Matz himself mentions Gregory's work on Prawn. Doh.
评论 #1199414 未加载
onewland大约 15 年前
This looks sweet. Thanks sandal (for writing)/figured (for posting).
Pistos2大约 15 年前
Thank you for writing this, and thanks for open sourcing it.
评论 #1200505 未加载
sandal大约 15 年前
BTW, going to experiment with using a wiki page for collecting reader questions. Once I have a few lined up, I'll cut a blog post reply on the RBP blog.<p><a href="http://wiki.github.com/sandal/rbp-book/questions-for-gregory" rel="nofollow">http://wiki.github.com/sandal/rbp-book/questions-for-gregory</a>
erikpukinskis大约 15 年前
Here's a copy on Google Docs. I hate PDFs:<p><a href="https://docs.google.com/fileview?id=0B8mB_WI1jRkCMzgyZWY5MzYtOTM0NC00YTRiLTg3NWMtZDU1MTdmM2QzNzU0&#38;hl=en" rel="nofollow">https://docs.google.com/fileview?id=0B8mB_WI1jRkCMzgyZWY5MzY...</a>
评论 #1200201 未加载
jamesbritt大约 15 年前
Sweet! Thanks, Greg.