sign in
Home | Updates | Pages | Users | Admin | Help

rubykaigi20062

Riby Conference 2006 with DHH (2)

Tokyo, 11 June 2006, Conference Day 2

Second day. The first ane was mostly like “DHH meet the Ruby Core”. The second one: “Rails for the masses” . David will speak today about the new directions in Rails. Btw, no need to publish some secret talks with him (see my previous notes) – everything will be in his presentation. But this will be afternoot. Let’s start for the beginning…

Morning

First Presentation: nil (i was late :( )

Second Presentation: “dRuby Again” by Masatoshi-san. dRb is not dead. Soon will be a new book (but in japanese :( ).

The beginning: shttpsrv (1998) , RMI over HTTP, Thread, TCPSocket, Marshal

Object types:
  • dumpable (pass by value), marshalable: Number, String, Boolean
  • not dumpable: Proc, Thread, File

Ring (tuplespace name server), RingServer – UDP broadcast

dRb server is single point of failure

Third Presentation: “Amrita2” by Nakadjima-san

He is using very interesting presentation software – Firefox XUL code Takahashi-Method-based Presentation Tool in XUL/Returns

What is template?

string? or structured document? <- amrita

html/xml is structured document, but most of template engines tread it as a string

template engine?

environment? engine is passive template active: eRb (program inside template) – need to check EVERY template

or operator? engine is active, template passive <- amrita (get fields from template and fill them) – need to verify ONLY ONE engine

amrita?
  • structured document
  • operator

Criticism: slow. Cure (some secret IO extension is comming)

amrita2 (Amrita on Rails) = amrita1 and partial ERb template (engine as environment) and …

CDATA and $_. amrita:type
<a id='ruby_home' amrita:type='link'>....

Amrita2 is HTML to Ruby compiler

use_args type: $1, $2

Amrita2 in Rails → plugin!!! – .a2html templates

in tempates → only id=’...’ in controllers → fill the data

Interesting time: DHH enter the room and start talking with Nakadjima-san. Small panic – most of the people see him on real for the first time. Flashlights most of the time. Soon the other core developers join the discussion. Escalation… Words are not enough. Quickly everybody going to the speakers room and fill the white board several times (see the photos link below, amrita2 discussion for example).

David’s notes: why to put so much code in the controllers? Better they to stay simple – see below his presentation. So why to not put all the code in template files, something like .a2data

See also:

Forth Presentation: “How the Perl company can use Ruby?” by secondlife-san I missed the most of his presentation, because of the Amrita2 on Rails discussion :( Sad, wanted to hear more.

Bento on the fly, until speaking for the following panel discussion. I’ll take part in it too. Maybe the most helpful time: told with a lot of people the common problems all we have and possible solutions. Interesting questions:
  • What is your design cycle:
    • model-view-controller-m-v-c-....
    • fix first the model, next come the design
    • make first good design (view) and after this make it live (model and controller)
  • How are you working with external web designer?
    • what come from them
    • what about common parts (layout, templates)
  • How to not make session files/records at all?
  • How are you doing rails behign proxy (ssl and plain http requests comming)?

Afternoon

Panel discussion: “Rails in production” The first 2 lines of sits are full with the most famous Ruby people in Japan. Everybody’s silent question: “Why they are with back to us? And who are this guys on the stage?” Confusing… I told them my vision: “I’m here to listen. Don’t know why I’m in front of you”. Most of the questions are between commentators. We are staying in front “by the way” – see for yourself

Notes:
  • go with Mongrel – soon it will be the recommended Rails webserver
  • fixing the current Logger was wrong (acording to DHH). Maybe ActiveLogger some day ;)
  • definitly reset sessions on logout (or before login?) (Maeda-san’s note)
  • Mysql 5.0 is pretty much working with Rails (secondlife)
  • Even DHH didn’t know what is ActiveHeart ;) Study: ActiveHeart is plugin for: changing error messages to japanese, ISO-2022JP support for ActiveMailer and other small tunes. Made in secondlife®.
Second presentation: “ActiveRecord in depth” by maiha-san. He have one of the most helpful ruby-related blogs His presentation was divided in 3 groups acording to user levels:
  • Ruby users – pretty much using only ActiveRecord
  • Rails users – Users on Rails
  • Rails developers – geeks, evil plugin masters etc.
Notes:
  • with_scope is like creating DB views. Return a bunch of records, which can be manipulated after that with Model.find(:all)
  • scoped plugin?
  • Single Table Inheritance
“One controller, many ins, many outs” by David Heinemeier Hansson. Short notes:
  • CreateReadUpdateDelete (CRUD) is design technique, a good one
  • no-CRUD methods smells
  • HTTP is not only GET/POST. PUT, DELETE welcome on rails
  • avoid namespacing in methods, better create new model
  • Models are not only “things”, but also:
    • relations (membership)
    • events (closure)
    • states (reviewed, accepted)
  • study hrough , respond_to
  • you own mime types with ‘x-mytype’
  • ActiveResources was born.
  • is ; a valid URL character?
  • go with REST, other web services protocols (soap etc.) are for enterprisers

Hm, maybe it’s not my job to describe everything. DHH will come to every house. Merry Railsmas ;) Oops the press catched him. Some interview in progress…Ok. Time to go in background. &

# fg zhesto
Ruby Battle: 11 people, everybody have 5 min to present his project. Brainf..cking for both presenters and the public:
  • bioruby
  • rubycocoa
  • relative path plugin
  • HL7 protocol in Ruby
  • rubricks – become better with every day. Definitly to try
  • ruby debian packaging
  • rabbit
  • blocks are cool
  • RFFE – emacs
  • Rendy chatbot
  • Internet physical model in Miraikan

Some photos from RubyKaigi2006

Interesting: everybody claiming “we can’t speak english”, ask Zev for translation, but now everybody’s blogs are full with notes from the David’s presentation, which was in english, without any translation.

Hm, reading trackbacks I realized that I didn’t mention the conference staff anywhere. Everything was very well organized. Interesting is that maybe most of the staff people know more for Ruby then me (babie-san, hiding around a ;) ) So no more publicity. Next time I’ll go moving tables etc. Once more. Thank you everybody for the cool conference.

Homework: how to do trackback from stikipad?


Powered by JunebugWiki v0.0.31 Page last edited by stoyan on December 15, 2006 05:49 PM (diff)
[readonly] Version 2 (current) «olderversions