Andry S Huzain wrote:
> 'Yet another framework' untuk Ruby web app. Jadi sekarang udah ada 4: Rails,
> Nitro, Merb, RubyCGI
Saya heran kenapa Yohanes atau Herry "mendiam-diamkan" aja, mungkin mereka
sedang
sangat sibuk-sibuknya sehingga tidak sempat mengkoreksi satu poin: RubyCGI
diatas.
RubyCGI != Framework.
####
id-ruby:~ arie$ ri -f bs -T CGI
------------------------------------------------------------- Class: CGI
CGI class. See documentation for the file cgi.rb for an overview
of the CGI protocol.
Introduction
------------
CGI is a large class, providing several categories of methods,
many of which are mixed in from other modules. Some of the
documentation is in this class, some in the modules
CGI::QueryExtension and CGI::HtmlExtension. See CGI::Cookie for
specific information on handling cookies, and cgi/session.rb
(CGI::Session) for information on sessions.
For queries, CGI provides methods to get at environmental
variables, parameters, cookies, and multipart request data. For
responses, CGI provides methods for writing output and generating
HTML.
Read on for more details. Examples are provided at the bottom.
####
file:///opt/local/doc/ruby/stdlib/libdoc/cgi/rdoc/index.html
or trace from here:
http://www.ruby-doc.org/stdlib
cgi.rb - cgi support library
Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
Copyright (C) 2000 Information-technology Promotion Agency, Japan
Author: Wakou Aoyama <[EMAIL PROTECTED]>
Documentation: Wakou Aoyama (RDoc‘d and embellished by William Webber)
Overview
The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP
request from a web server to a standalone program, and returning the output to
the
web browser. Basically, a CGI program is called with the parameters of the
request
passed in either in the environment (GET) or via $stdin (POST), and everything
it
prints to $stdout is returned to the client.
This file holds the CGI class. This class provides functionality for retrieving
HTTP request parameters, managing cookies, and generating HTML output. See the
class documentation for more details and examples of use.
The file cgi/session.rb provides session management functionality; see that file
for more details.
See www.w3.org/CGI/ for more information on the CGI protocol.
> (Java ada 52 framework, at least).
Kalau saya malah lebih senang kalau di Ruby ada *sedikit* framework, *gak
ribet*,
*keep it simple* aja. Contoh kalau ada "proyek gagal / ato mungkin belum
dicommit2x sama yg bikin" macam Wee saya pikir maksimalkan aja effort ke rails,
kecuali kalau DHH ngotot, maka bikin aja framework lagi versi sendiri (macam
model
framework yg john long pernah bahas dulu itu). Yang saya perhatikan Komunitas
Ruby
itu bagusnya suka mengumpul ke wadah "satu framework sejenis" , asal jangan
sampai
reinventing the wheel macam penerapan Mixin diada-adakan lagi di file
jadi-jadian
di rails ya!
Atau ada lagi untuk urusan desktop GUI, dimaksimalkan di bikinan2x why itu
(terus
terang saya belum sempat coba-cobain yg ini lebih jauh/hendy udah cobain shoes
tuh), atau bikin inheritance yang memaksimalkan bikinan2x "mbah2 pinter" tsb.
Macam scrubyt, trus BDD ada 3 biji di hasil search rubyforge.org. Tapi kalau
udah
sampai ke scrubyt dan library biasa ruby lain ya paragraf ini sudah
terkontaminasi
dari hal2x yang murni framework juga, jadi kembali ke lap.. topik awal!
--
id-ruby:~ arie$ irb-19
irb(main):001:0> {name:'arie',
blog:'http://ariekusumaatmaja.wordpress.com'}.is_a?(Hash)
=> true
<*> Kunjungi *arsip milis* id-ruby di
http://groups.yahoo.com/group/id-ruby/messages
http://www.mail-archive.com/[email protected]/
http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia
<*> *Baca peraturan id-ruby* sebelum posting
http://tech.groups.yahoo.com/group/id-ruby/files/
<*> Ikutilah *Jajak Pendapat ID-Ruby*
http://tech.groups.yahoo.com/group/id-ruby/polls
<*> *Links ID-Ruby*
http://tech.groups.yahoo.com/group/id-ruby/links
<*> *Database ID-Ruby*
http://tech.groups.yahoo.com/group/id-ruby/database
<*> Untuk mengubah settings online, kunjungi
http://groups.yahoo.com/group/id-ruby/join
(Anda harus punya Yahoo! ID)
<*> Untuk *mengubah setting lewat email*, kirim email ke
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> Untuk *meninggalkan milis*, kirim email kosong ke
mailto:[EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/id-ruby/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/id-ruby/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/