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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Letters: A tiny debugging library for Ruby

105 点作者 djacobs超过 12 年前

8 条评论

FuzzyDunlop超过 12 年前
It looks interesting, but the screencast needs to be a bit more concise, and aimed at people who would actually use this. I made it through the first 5 minutes and gave up, because I wanted to see what the library did. I didn't want a tutorial seemingly aimed at absolute beginners, who in my mind wouldn't give two hoots about improved debugging at that stage.<p>Had there been a shorter overview of the cool things you could do, I might have got a better impression.
评论 #4594443 未加载
评论 #4593702 未加载
jimrhoskins超过 12 年前
This looks pretty cool. At first I had the reaction that it was too simple. I didn't have patience to watch the video, so I just read the homepage.<p>I think you should at least mention the other "letters" included in the library on the front page. It goes in depth into 'p', which makes it seem like it's all there is. Maybe name some of the other letters, and link to the API docs.<p>Each individual piece seems pretty small and easy enough to implement, but the package as a whole seems more valuable, having all these little tools in one place.<p>Nice work
评论 #4593544 未加载
danso超过 12 年前
This is great. It's sad to say but there are coders (like me) who will write our own half-assed muck in order to half-assedly follow good procedure...or even worse, just skip procedure all together. So any well-implemented, graceful simplication can be more valuable than the library and its seemingly few lines of code at face value. Thank you for putting this together and I hope you keep improving it
mef超过 12 年前
What am I missing? I looked over the API and tried to skim through the video (10 minutes in and still no demonstration of anything in the API), but I couldn't figure out why any of the Letters functions would be preferable to just jumping into a debugger session.<p>Anyone care to explain?
评论 #4594078 未加载
nagnatron超过 12 年前
Didn't check the code out but it looks like p is something like:<p><pre><code> obj.tap { |x| puts x }</code></pre>
评论 #4593423 未加载
Suan超过 12 年前
The problem this is trying to solve is an annoying one - so much so that I just wrote something similar a couple of weeks ago: <a href="https://github.com/suan/quick-debug" rel="nofollow">https://github.com/suan/quick-debug</a><p>Letters seems like a better way to do it though.
tyok超过 12 年前
Nice, but for quick debugging I usually use pry: <a href="https://github.com/pry/pry" rel="nofollow">https://github.com/pry/pry</a>
waxjar超过 12 年前
This is great! I think I'll start using this, I'm tired of putting prettyprint statements everywhere :P