Newbie demo 2 sceptics in my company

…i have 1.8.2…and i want to do a http hello world program in a web
browser
entirely self-contained within one computer using 1.8.2 ruby … and a
(maybe the in the same ruby program)
hello world using GUI windows within the same computer for a demo 2 my
company’s
sceptics…this computer is win2000 …

On Jul 18, 2006, at 9:01 AM, Dave R. wrote:

…i have 1.8.2…and i want to do a http hello world program in a web
browser
entirely self-contained within one computer using 1.8.2 ruby …
and a
(maybe the in the same ruby program)
hello world using GUI windows within the same computer for a demo 2 my
company’s
sceptics…this computer is win2000 …

Your message doesn’t contain a question. :wink:

We wish you the best of luck with your demo!

James Edward G. II

James G. wrote:

On Jul 18, 2006, at 9:01 AM, Dave R. wrote:

…i have 1.8.2…and i want to do a http hello world program in a web
browser
entirely self-contained within one computer using 1.8.2 ruby …
and a
(maybe the in the same ruby program)
hello world using GUI windows within the same computer for a demo 2 my
company’s
sceptics…this computer is win2000 …

Your message doesn’t contain a question. :wink:

We wish you the best of luck with your demo!

James Edward G. II

oka…how does one do the above two hello world in ruby… and does
1.8.2
windoze one-click installer (v1.8.2.1) also install enough of webbrick
to do this?
what is ‘required’…

Check out Instant Rails: http://rubyforge.org/projects/instantrails/

Then follow tutorials online. I’m still not sure why you want to put
Hello World. There is a lot of other cool things that take the same
effort as Hello World.

_Steve

The 1.8.2 Ruby O.-Click Installer should come with webrick so you can
serve up web pages for your demo. As for using Ruby for generating the
HTML or invoking Ruby code within HTML check out
http://ruby.about.com/od/learnruby/p/hello_web.htm. HTH!

On Jul 18, 2006, at 9:57 AM, Dave R. wrote:

2 my
company’s
sceptics…this computer is win2000 …

Your message doesn’t contain a question. :wink:

We wish you the best of luck with your demo!

James Edward G. II

Oh good, questions… :wink:

oka…how does one do the above two hello world in ruby…

There are many, many ways. For the first one, you will need to
decide on some way to display a web page. CGI, WEBrick, Rails, and a
lot more are all possible choices. When you find one you want to
work with, let the basics of working with that library or framework
and I’m sure you will run into a “Hello World” example along the way…

Rinse and repeat for a GUI framework.

I would probably choose WEBrick and Qt, but there are many other good
choices.

and does 1.8.2
windoze one-click installer (v1.8.2.1) also install enough of webbrick
to do this?

Yes. WEBrick is a standard library and thus included with all Ruby
installs.

what is ‘required’…

require “webrick” # Is this what you meant?

James Edward G. II

On Jul 18, 2006, at 12:00 PM, Mat S. wrote:

demo 2 my
1.8.2
Like steve said, there are a lot of things more interesting than
hello world. Hopefully these documents can help give you some
ideas on how to really drive the point home. Also, if your
skeptics are coming from Java or ASP, I know there are some good
presentations geared toward converting people. I really liked the
ASP video that showed up on this list about a month or so ago.
-Mat

Sorry for the self reply. That video link was easier to dig up than
I thought, so I wanted to send it:
http://tinyurl.com/g7eez [groups.google.com]
-Mat

Mat S. wrote:

On Jul 18, 2006, at 12:00 PM, Mat S. wrote:

demo 2 my
1.8.2
Like steve said, there are a lot of things more interesting than
hello world. Hopefully these documents can help give you some
ideas on how to really drive the point home. Also, if your
skeptics are coming from Java or ASP, I know there are some good
presentations geared toward converting people. I really liked the
ASP video that showed up on this list about a month or so ago.
-Mat

Sorry for the self reply. That video link was easier to dig up than
I thought, so I wanted to send it:
http://tinyurl.com/g7eez [groups.google.com]
-Mat
…oka…all of your replies are helpfull and i will follow all of your
leads…what impresses me about ruby is that you can present a gui on
both
a web browser AND a windoze gui screen

On Jul 18, 2006, at 10:57 AM, Dave R. wrote:

company’s
windoze one-click installer (v1.8.2.1) also install enough of webbrick
to do this?
what is ‘required’…

I don’t know your situation, but you might want to take a look at
some of the presentational material at: http://www.ruby-doc.org/whyruby
Or some of the screencasts at: Ruby on Rails — A web-app framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.

Like steve said, there are a lot of things more interesting than
hello world. Hopefully these documents can help give you some ideas
on how to really drive the point home. Also, if your skeptics are
coming from Java or ASP, I know there are some good presentations
geared toward converting people. I really liked the ASP video that
showed up on this list about a month or so ago.
-Mat

Good luck with your demo. Please let us know how it went. Once you
start getting into it a lot of things should impress you about Ruby.
It’s relatively expressive, elegant, and easy to read. Plus the
syntactical rules won’t have you scratching your head while trying to
learn the language. The community is friendly and helpful, which makes
being a newbie less intimidating. Plenty of languages will allow you to
script out GUI apps on a web browser and on top of a Windows OS. But
not all of these make it as fun as Ruby does :wink:

fr dave rose:

oka…how does one do the above two hello world in ruby… and does

1.8.2

windoze one-click installer (v1.8.2.1) also install enough of

webbrick

to do this?

what is ‘required’…

webrick is good enough, but if you want cool and clean stuff, install
nitro http://www.nitroproject.org/; then simulate the sample demo at
nitroproject.org

the first part demo will include your hello world want.

The needed lines are:

#–start hello world
require ‘nitro’
class Hello
def index
‘hello, world’
end
end

Nitro.start Hello
#—end hello world

It just takes 30 seconds to demo it (including the typing :slight_smile:

kind regards -botp