Try Ruby is Done, Makes HTML Now #
Just wrapped things up. I’m really pleased with the last half of this tutorial. I’m sure I’ve introduced a bunch of bugs in my haste to add the virtual filesystem and a couple of libraries to the mix.
The most glorious addition is a simple HTML generation library. Want to try it out? Go to Try Ruby and run this:
require 'popup' Popup.make do h1 "Things To Do" list do p "Try out Ruby" p "Ride a tiger" p "(down River Euphrates)" end end
Also, the upsy quizzies are fixed in Firefox for Windows. You can type slashes now. So sorry about all that. I’ll pretty things up over the next few days.
Christian
In Safari, the popup appears behind the input window! Nevertheless truly amazing :)
Zeljko
“Hey, Summary #1 Already” has “Let’s look at what you’ve learned what you’ve learned…”. (“what you’ve learned” is doubled)
rasputnik
Shouldn’t that be a tyre?
rosco
Still no love for us Opera plebs though :( No keyboard at all …
Still though, can get to it from the prompt now, so s’all good :)
why
Good, okay, working on Safari.
brianmuckian
oh what have we done….is there no hope of slowing this juggernaut. Y’know, the next thing you know we’re gonna have a full featured web application development environment running within a web browser….y’know.
Oh the horror.
Gyoung-Yoon Noh
_why, have you checked the mail I sent to you about translating? :/
slip
did you ever know that you’re my hero? and everything i would like to be?
aberant
hmmm.. now just to create the ruby code to open a popup of a “try ruby” window of my own.
why
brianmuckian: Probly a dozen different people have emailed me about turning this into an IDE . I’m sure it’ll be done at some point, but it seems so daunting. The idea of having to edit files in a browser, particularly.
Gyoung-Yoon Noh: I was just looking for your e-mail last night. Translation will begin in January. I have translators lined up for German, Portuguese and French also. You can even get a jump on it by looking at viewing the source. The whole tutorial is right there in the index.html.
Neil
On Firefox 1.5, I can’t move the popup browser, and I can’t read the next bit of the tutorial behind it…
why
Neil: You’ll need to close the window with the little X on the right side. Yeah, this is one of those things I need to friendly around with.
Ethan
(Firefox 1.5, Linux. I had this problem with a slightly older version of Firefox too.)
Ethan
why
Ethan: Do you have cookies on?
Branstrom
“This tutorial is only partway complete.. but it’s getting better! Now you can hop chapters, you know? That’s decent!”
Declare it complete if it is. :)
Ethan
No, let me try that.
Aha! That makes all the difference.
Ethan
why
Thanks, Branstrom. I totally forgot to change that.
curtis3000
schweet like bear meat
vapidbabble
It’s the cat’s pajamas!
lukfugl
_why: I can work the Spanish translation if you want. However, good as my Spanish might be, I’m not a native speaker, so we’ll probably want to find somebody to proof it…
Drop me a line if you’re interested: lukfugl AT gmail.
Matt
What a great way to introduce Ruby. Bravo!
Ian
Ooh, nice. You should make a sequel that goes deeper. Or is that the job of the (Poignant) Guide?
MenTaLguY
Nice~
I still think that “Stop, You’re Barking Mad!” bit is a bit too harsh on newbies who you may well have just tricked into their first error though.
Is it possible to make the clipboard work, by the way? I’m not sure how, but if you know a way, that would rock…
Amr
The html generation library library is simply brilliant (and most subversive).
Stupid Question: Why don’t we build web-pages like this to begin with? isn’t this how that Squeaky toy does the page generations?
What I mean is, the “V” part also being pure ruby rather than .r[ht,x]ml step? (in Rails for example?)
netghost
Will it ever be possible to download the source for this? I really want to hook it up to my Rails exception reports and poke my system when there are errors :)
assman
What about making Try Ruby into a wiki-like ide for ruby. Anybody would be able to edit source code and documentation. The wiki would run automated unit tests (which would also be created collaboratively) automatically. Code changes would be allowed even if they failed unit test but this would be frowned upon. Using this you could start software projects that would be collaborative like the wikipedia.
This could be really cool. You could have wiki style collaborative development for software. This would be the ultimate ide. You could even have some system whereby the code could be edited client side and then submitted to the wiki. You could even have the source code for the wiki itself as part of the wiki. So that even this code could be edited in real time. This would be a really radical style of collaborative software development.
dasdas
gfgdfgfddas
hede
hodo
XoloX
brianmuckian: Is that a poke at TrimJunction? If not, you are so going to regret posting that comment :^)
Comments are closed for this entry.