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. Had there been a shorter overview of the cool things you c…
Letters: A tiny debugging library for Ruby
21–27 of 27 posts
Read the API. I had the same problem and skimmed through the API in 2 minutes.
Re: Letters: A tiny debugging library for Ruby
#22This is great! I think I'll start using this, I'm tired of putting prettyprint statements everywhere :P
Re: Letters: A tiny debugging library for Ruby
#23The problem this is trying to solve is an annoying one - so much so that I just wrote something similar a couple of weeks ago: https://github.com/suan/quick-debug
Letters seems like a better way to do it though.
Re: Letters: A tiny debugging library for Ruby
#24Earlier quoted context omitted.
worthless postings should be pointed out, i believe, so that we can have quality links on the front page. this sugar coating which seems to be so popular with the hacker news community these days is not helping anyone.
What an obnoxious tosspot you are. Once your karma is in minus territory I'm not sure you are qualified to comment on the HN community.
you're funny
Re: Letters: A tiny debugging library for Ruby
#25Nice, but for quick debugging I usually use pry: https://github.com/pry/pry
Re: Letters: A tiny debugging library for Ruby
#26Earlier quoted context omitted.
That's the base case. It takes arguments, too, and if you give it a block, it prints out the result of the block called in the receiver's scope.
Why `p` though? That's a method on Kernel already and does puts(args.inspect)
Just changed it. I was hoping people wouldn't mix and match, but I don't mind using `o` instead: