HNHacker News
TopNewBestAskShowJobs

joshbuddy

685 karma · joined September 16, 2009

submissionscomments
joshbuddy··on Gitdocs: Open-source Dropbox using Ruby + Git
Well, it's probably much simpler. And it relies on fsevents to do the pushes. But, aside for that, what issues are people having with sparkleshare?
joshbuddy··on Renee, the friendly rack-based framework
Um, where did you see those? I think I used curly braces for a lot of the Renee { .. } examples, and use the do..end once I'm inside there. That's just my style, but, you can use which ever one you prefer (and of course, if the precedence is correct.)
joshbuddy··on Renee, the friendly rack-based framework
It's also easy to split a Renee application into multiple parts, but, I'd really like to address this more going forward, to make it easier.
joshbuddy··on Renee, the friendly rack-based framework
Yeah, exactly. I wanna get a better handle on what these common cases are, so, comments like this are wonderful.
joshbuddy··on Renee, the friendly rack-based framework
This very well might be the next iteration in fact. There is no "good reason" aside from simplicity. One of the reasons against this is var can take validation. So, you can do the following.

  var Integer do |id|
this will only continue if it matches against an Integer (and it will also cast it for you). The argument list might get hella complicated if you allow munging like that.

I am considering allowing chaining though, so,

  path('blog').var do |id|
What would you think of that?
joshbuddy··on Renee, the friendly rack-based framework
I have no idea how we got down the Russian path. Sort of started as a joke and somehow went from there.

Renee is my gf's name, and she's very patient with me when I wanna work on open source, so, it's a nod to her.

The inspiration for it came from Railsconf 2009 when one of the Sinatra guys said how get "/:id" do |id| was a smell because of the id repeat. I had been working on a new routing DSL for Goliath, when I got an itch to start making simple, useful rack apps.

joshbuddy··on Renee, the friendly rack-based framework
Essentially, it let's you take something like

  before '/blog/:id' do
    @blog = Blog.get(params[:id])
  end
  
  get '/blog/:id' do
    @blog
  end
  
  put '/blog/:id' do
    @blog.update_attributes(params)
  end
and turn it into

  path 'blog' do
    var do |id|
      @blog = Blog.get(id)
      get { halt @blog }
      put { @blog.update(request.params); halt :ok}
    end
  end
I feel this is DRY'er than the Sinatra representation. It also has nice integration with Rack itself. The implementation is very simple, easy to get into.
joshbuddy··on Ghostbuster: Easier headless testing with PhantomJS (and CoffeeScript)
I wanted to use "CIRCLE WITH LEFT HALF BLACK" for pending tests (see: http://en.wikipedia.org/wiki/Geometric_Shapes) .. alas, not supported in my terminal .. maybe I was doing it wrong.
joshbuddy··on Ghostbuster: Easier headless testing with PhantomJS (and CoffeeScript)
PhantomJS is pretty cool. There are some super rough areas I had to deal with to get this working, but I hope they can improve it and make it more awesome. I've gotta file some bugs actually..

I was just happy to get the link traversal test passing. So many tears to get that reliable.

joshbuddy··on Poll: Will keyboards still be around in 20 years?
Keyboards will be relegated to a specialist tool, something only a small number of people interact with. Much like paper books. I would predict voice recognition will supplant the keyboard as the most common means of entering text.

Basically, what showerst said.

joshbuddy··on Appreciate Rails 3 with Chaos
I just installed it, it's not malicious, just hilarious.
joshbuddy··on Appreciate Rails 3 with Chaos

    sudo gem install rials
    rails
    # greeet justice.
joshbuddy··on New Rejection Reason From Apple May Have Major Implications
I'm not sure this is Astroturfing; Astroturfing is making something carefully planned look spontaneous and bottom-up. We need a new term for this. I suggest misinterpretunity.
← PreviousPage 3 of 3