Created Friday, March 26, 2010 by Ryan Stenhouse
Battery is going down, so end of the liveblog for tonight. Catch you guys tomorrow.
Couldnt cover my own talk; but you can see it on slideshare
http://github.com/schacon/showoff
Works with Heroku too, lets you push you presentation to Heroku.
Has a command-line Reenactor. This mean it ‘types’ things for you.
It has a Menu system; hit T and gives youa nice nested menu to pick slides. Does basic anmiation and transitions too. All custom CSS and Jaavscript.
It can also evaluate any Javascript cose that you make it highlight.
It does code highlighting, which is bloody nifty. @@@ language
Benefits and Features: Mate is his presentation editor with a logical folder structure, split into sections. It’s mostly text, so you can diff it.
Write slides in Markdown and add a wee bit of CSS and Javascript.
Showoff is a Sinatra app which is for presenting slides. Chacon hates keynote. One of it’s problems that it’s covered with 90% of stuff that he never uses.
Scott Chacon is up talking about Showoff.
Too many questions for me to get them all down!
Question: Can you set keybindings? Yes, there’s a keymap plugin that you can extend in the same way as adding menus in your plugin. Does it have a graphical debug support? No, but it wouldn’t be hard to do if you want to.
sudo gem install redcar. And online it’s redcareditor.com
Ryan Bigg is @ryanbigg on Twitter, not @radar!
Redcar is designed to be an open editor – everything can be changed and added to. The core of Redcar is the Plugin Manager and every single other part of it is a plugin that all use the same API that would be used by 3rd partied to extend the application.
Back to the presentation – Why did he make Redcar? It’s a lot of fun! Good way to learn too. There’s a lot of complicated things needed to make an editor work. Most importantly – why not?
Everything in Redcar is a ‘plugin’. Nice API for adding menus and buttons to the IO.
RedCar has IRB built in and he’s making it spit up a alert box just now. Doing all manner of nifty stuff.
Runs on top of JRuby. Inspired a lot by TextMate. RedCar supports TextMate bundles too. Code is on github.
Oooh, this talk is about Redcar! Dan Lucraft. Redcar is the Ruby editor written in Ruby.
There are questions, but I’m having trouble making out the answers, hard to hear him, he’s talking fast and in a thick accent.
Check it out at http://github.com/bblimke/webmock and there’s a webmock-users Google group.
Also lets you dynamically set the response with lambada or a big Proc. Supports Net::HTTP, HTTPClient (soap4r) Patron, HTTParty, RESTClient, SightScale and open-uri.
Supports smart URI matching, which to you or me means, fuzzy searches I guess. It also lets you match with RegExps and supports HTTP Basic authentication.
WebMock works with Test::Unit too.
Test fails because the API changed, so the stubs and mocks were wrong, so go back to change them. The point of the talk emerges: He wanted to make a tool for subbing HTTP requests. It shouldn’t depending on a specific HTTP API, and support subbing based on request method, uri, body and headers and verify expectations.
Jumped straight into an RSpec fill full of mocks and stubs and all manner of other (in my opinion – horrific) things. Explains how it defined how we expect the code to behaves. And that now we’ve got a test that doesn’t care about the implementation of how we’re getting HTTP, so we can change that while preserving behavior.
Write the spec first, this example appears to be RSpec, talking through the spec skeleton he’s written.
Explaining how TDD wrks, test, code, refactor, test, code, refactor in a nice triangular diagram.
Ryan’s done to much applause. Next up TDD of HTTP Clients with WebMock. Bartox Blimke.
Whoops, should be http://ryanbigg.com/2010/02/congratulations/
Ryan is talking through is excellent blog post, you can read what he’s saying here: .
But he has no slides. He apologises for being Australian, but it’s OK. He’s @radar on Twitter. He’s famous online.
Next up, Ryan Bigg on “Congratulations” once the setup happens. I myself am going to have fun, I only have a DVI adapter, and everyone else here has a newer mac than me.
Question: What just happened?
Code heavy presentation; code is at http://bit.ly/spectac it’s a simple Rack application.
Talk over! Next up is talking about Rack and how it is spectacular.
Question: Do you get one rails instance for each engine? No it shares them.
Questions: Does it support with clicking in HTML Canvas tags? I don’t know – Selenium may support it but it probably doesn’t expose canvas.
Question: Is there support for Javascript dialogues? It’s very tricky. Because it works differently in every engine, it’s not there yet because abstraction is a pain. Patches welcome.
Question: How much work is to install the dependancies? Selenium is installed as a dependance of capybara and just works with it as default. Switching to others (Celerity) needs JRUby and the Celerity Gem to be installed under JRuby.
Running t un Culerity for a further example. Headless unlike selenium and also just works. End of the talk.
Shows a failing default example without JS support, brings in Capybara, but makes it run under Selenium and boom – the test passes correctly.
Switching to a demo now, its support is built into cucumber; ./script/generate cucumber —capybara
Currently supports RackTest, Selenium, Culerity, Celerity and EnvJS is coming soon.
Makes is easy to test Javscript too. Built on top of Tack, and can run its tests against any rack-based framework and application through RackTest.
Capybara is written to work with different drivers; extensively tested and a simple as possible to set up. Written from the ground up to be compatible with Webrat scripts, but works with Selenium well (And other things).
Tried to extend Webrat and it failed horribly because of the poor test suite with it.
Webrat doesn’t do JavaScript, crappy Selenium module. Not extensible and weakly tested.
It simulates a browser for testing. Much like Webrat. Has a cool DSL for simulating the interaction with a web application, which is simple and quick to get going. Used with Cucumber.
Weigh like 50 kg, big awesome rats. Capybara is also a simple DSL for interacting with web applications.
Capybara – Didn’t catch who is giving it. It’s the world’s largest Rodent.