Live data from Hacker News

Zed Shaw: Tir Web Framework Officially Up

sheddingbikes.com

1–10 of 70 posts

Re: Zed Shaw: Tir Web Framework Officially Up

#2
I love the natural style of page conversation on the example page. As a Java developer, I wish that this style were possible on the servlet platform:

  local login_page = Tir.view("login.html")
  local login_form = Tir.form { 'login_name', 'password'}

  local function login(web, req)
    local params = login_form:parse(req)

    repeat
        params = web:prompt(login_page {form=params, logged_in=false})
    until login_form:valid(params)
    
    return web:redirect('/')
  end

  Tir.start {route='/Login', main=login}
Also, +1 to this: "the framework creator shouldn't be shoving stateful/stateless dogma in your face".

Re: Zed Shaw: Tir Web Framework Officially Up

#3
Very cool. I was just looking for other Seaside-style web frameworks today. The "natural style" mode in Tir is just like the main way to build web apps in Seaside.

Aside from Lua and Smalltalk, what other languages could host this kind of framework? I know Ruby 1.9 has Wee, but that doesn't seem to be "ready for prime time."

Re: Zed Shaw: Tir Web Framework Officially Up

#6

Very cool. I was just looking for other Seaside-style web frameworks today. The "natural style" mode in Tir is just like the main way to build web apps in Seaside. Aside from Lua and Smalltalk, what other languages could host this kind of framework? I know Ruby 1.9 has Wee, but that doesn't seem to be "ready for prime time."

I've been toying with something similar in Atomo (running atop mongrel2): http://bitbucket.org/alex/web/src/2a90b9bd6322/example.atomo

In its early stages it was continuation-based, but now it's just regular ol' closures. You can still use continuations rather easily though; some of it is modeled on the PLT stack (send/suspend, etc.).

Earlier progress: https://gist.github.com/717381/433d743dc4a7d91705692ff1dc6ca...

Source code: http://bitbucket.org/alex/web/src

Re: Zed Shaw: Tir Web Framework Officially Up

#7
This one really surprised me: "Finally, there's not much for deployment. I run my apps in GNU screen and that's about it." Seriously? Is he that lucky, serves that little traffic, or does he run with redundant power, network, server and 24/7 monitoring in an inaccessible bunker?

I haven't been able to run even my toy web apps without something like monit - due to both things under my control and outside of it.

Re: Zed Shaw: Tir Web Framework Officially Up

#9
post #5

So in 2010 Zed has written his own web server which runs his new framework he wrote for the new webapp he wrote. What did you do this year?

In 2010? I reworked my Comet-based realtime game-in-a-web-server library, RailsGame.

I fully rewrote, updated and released a webapp called WantMyJob.com.

I wrote a circuit simulator game called Shanna's Pizza to start teaching my two-year-old the basics of programming. I also started doing Snap Circuits with her so she'd have a physical basis to understand the circuit simulator game. Also, had a second kid.

I wrote a Rails 3 tutorial, including an app with logins and nested resources, called RefactorIt!

I finally put together a real programming portfolio, on the web and everything (angelbob.com/portfolio).

I read up on Bayesian Statistics and Data Analysis (thanks, O'Reilly!).

I blogged and blogged and blogged.

I reworked, resurrected and took screen shots of a scary amount of my old work, partly for the portfolio. This sort of blurs with converting my old Rails stuff to Rails 3, but I did some of both.

I continued to work on my day job, of course. And gave a JRuby presentation for Engine Yard based on what we do there.

Did you know you get more done if you write it down somewhere (like a blog and portfolio) and tell people about it? True story.

That's probably part of Zed's trick, too.

Post reply on HN