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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ruby Tricks

74 点作者 franzunix超过 9 年前

6 条评论

code_sterling超过 9 年前
A brief explanation of what some of these are doing, or moreover, a use case for why I would want to use them would be handy.
评论 #10486577 未加载
评论 #10488404 未加载
stewbrew超过 9 年前
I was hoping for something like "static code analysis" and "make code more robust", not for "magic" and "even more magic".
评论 #10488572 未加载
评论 #10486922 未加载
fphilipe超过 9 年前
One very obscure trick in ruby is the flip-flop operator. Never used it and I probably never will. There&#x27;s an open issue to get rid of it[1]. Has anyone ever had a real use case for it?<p>[1]: <a href="https:&#x2F;&#x2F;bugs.ruby-lang.org&#x2F;issues&#x2F;5400" rel="nofollow">https:&#x2F;&#x2F;bugs.ruby-lang.org&#x2F;issues&#x2F;5400</a>
评论 #10486733 未加载
sivers超过 9 年前
Thanks for sharing this. Love this format. Learned about PStore, cycle, take, fetch, securerandom, and more. May add to it.<p>Tweeted:<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;sivers&#x2F;status&#x2F;660875966466514944" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;sivers&#x2F;status&#x2F;660875966466514944</a>
评论 #10488685 未加载
_db4z超过 9 年前
Awesome initiative! Already sent my PR :)
评论 #10488431 未加载
buzzdenver超过 9 年前
Sent a PR with a couple of fixes.
评论 #10486572 未加载