Zed Shaw: Tir Web Framework Officially Up
sheddingbikes.com
Zed Shaw: Tir Web Framework Officially Up
1–10 of 70 posts
Re: Zed Shaw: Tir Web Framework Officially Up
#2 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
#3Aside 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
#4Re: Zed Shaw: Tir Web Framework Officially Up
#5What did you do this year?
Re: Zed Shaw: Tir Web Framework Officially Up
#6Very 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."
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
#7I 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
#8So 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?
Re: Zed Shaw: Tir Web Framework Officially Up
#9So 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?
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.
Re: Zed Shaw: Tir Web Framework Officially Up
#10So 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?