Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Creating a full application with Ruby

Reply
Thread Tools

Creating a full application with Ruby

 
 
Fily Salas
Guest
Posts: n/a
 
      04-12-2011
>Please point us to what you are referring to.
Here.
http://shoes.heroku.com/manual/Installing.html

I have been reading the book "No Body Knows Shoes" and it seems to be
pretty simple and makes me wonder if shoes is really a complete GUI
program, or is simply for very simple stuff.

What are the limitation of using Shoes? I like it and even if there are
some limitations I will definitely give it a try.

Thanks a lot

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Steve Klabnik
Guest
Posts: n/a
 
      04-12-2011
[Note: parts of this message were removed to make it a legal post.]

Hey there! Maintainer of Shoes here!

You don't need to install Ruby because Shoes is like its own Ruby
distribution. It comes with a Ruby 1.9.1 built inside of it.

> What are the limitation of using Shoes? I like it and even if there are

some limitations I will definitely give it a try.

The main limitation is that you can't use gems with C extensions. We've
included a few with Shoes: bloopsaphone, chipmunk, ftsearch, hpricot, json,
and squite3, but that's all you're going to get.

The second limitation is that Shoes can still be a bit strange in places.
I'm currently undergoing an effort to increase documentation and add tests,
but you can run into strange corners sometimes.

The last big limitation is that some larger Shoes programs can be a bit
unstable on Windows sometimes. I can't reproduce this myself, but Hackety
Hack (the largest Shoes program I know of) will just die on certain systems
after about 15 minutes of running. It has something to do with Ruby 1.9.1
and threads, and I'm working on it, but be aware of that. Smaller programs
seem to have no issues, and it's not on every system, just some.

With that said, Shoes is a lot of fun to code with, and you get all three
platforms for free, so... yeah!

Any other questions about Shoes, I'll be happy to answer them.

 
Reply With Quote
 
 
 
 
Fily Salas
Guest
Posts: n/a
 
      04-13-2011
Thank you for your reply!

I'm currently trying it and as I said its way too easy, I like it.

What would you considere a small-big program?

I also heard that with shoes you can not create menus, like File, Save
as, Version etc. is this true?


Thanks a lot!

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
ashbb
Guest
Posts: n/a
 
      04-13-2011
[Note: parts of this message were removed to make it a legal post.]

Hi Fily,

> I also heard that with shoes you can not create menus,
> like File, Save as, Version etc. is this true?

Umm,... No.
You can use list_box like this:

Shoes.app do
list_box items: %w[File Save Version]
end

Or, you can write your original menu method with image or shape
elements of Shoes.

You can find lots of way in the ShoeBox: http://the-shoebox.org/

Cheers,
ashbb

 
Reply With Quote
 
Steve Klabnik
Guest
Posts: n/a
 
      04-13-2011
[Note: parts of this message were removed to make it a legal post.]

>
> I'm currently trying it and as I said its way too easy, I like it.
>


Glad to hear it.


> What would you considere a small-big program?
>


I dunno, a couple of hundred lines? Check out Hackety Hack, for example:
https://github.com/hacketyhack/hacketyhack


> I also heard that with shoes you can not create menus, like File, Save
> as, Version etc. is this true?
>


Yes, we don't have a good solution for this yet. Basically, cross-platform
menus are hard to do right, since they end up looking different on every
platform... ashbb's suggestion is how most Shoes apps handle such things.

 
Reply With Quote
 
Fily Salas
Guest
Posts: n/a
 
      04-13-2011
Thank you all for your help!

>You can find lots of way in the ShoeBox: http://the-shoebox.org/

Thank you for the link.

>What would you considere a small-big program?


>I dunno, a couple of hundred lines? Check out Hackety Hack, for example:
>https://github.com/hacketyhack/hacketyhack




Are you saying that Hackety Hack is a perfect example of a program that
may unexpectedly quit after 15 minutes using it? Now, this is a Windows
problem only right?

Thanks

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Steve Klabnik
Guest
Posts: n/a
 
      04-13-2011
[Note: parts of this message were removed to make it a legal post.]

> Are you saying that Hackety Hack is a perfect example of a program that
> may unexpectedly quit after 15 minutes using it?



heheh, yes, that may be what I'm referring to. :/ Working on it!


> Now, this is a Windows
> problem only right?
>


Yep. Flawless on my Mac and Linux. In fact, mostly flawless on my Windows,
too: it's only some configurations.

 
Reply With Quote
 
Fily Salas
Guest
Posts: n/a
 
      04-14-2011
Thank you for your help!

There are currently 19 users using the application I described im my
original post and a little worried about stability since they are all
Windows users, I know its a small application but it can create up to
50,000 rectangle shapes.

Could this be a problem if I create it using Shoes?

Now, is it even possible to pack and distribute an application created
in Shoes?

Thanks a lot!

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
Steve Klabnik
Guest
Posts: n/a
 
      04-14-2011
[Note: parts of this message were removed to make it a legal post.]

>
> Could this be a problem if I create it using Shoes?
>


Only way to know for sure is to try.


> Now, is it even possible to pack and distribute an application created
> in Shoes?
>


Absolutely! There should be a 'package an app' screen on the main shoes
screen. It'll give you a .exe of your app.

 
Reply With Quote
 
Fily Salas
Guest
Posts: n/a
 
      04-14-2011
Thanks a lot for your help!

I will try to create the app and see how it goes. Where can I ask future
questions about Shoes? I'm sure I will have some...

Thanks

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
First ever full day Ruby and Ruby On Rails event in India sur Ruby 1 11-04-2008 04:53 PM
[ANN] Debian ruby-full package - a full installation of Ruby vince.hetk@gmail.com Ruby 1 05-28-2007 05:08 PM
Re: XP Pro (Full) , X64 (Full) and Windows Server 2003 R2 TRIAL - which is latest ntldr ? - Bobb - Windows 64bit 9 12-14-2005 04:59 PM
Options for generic full-text search without using database-specific full-text engine? Samuel R. Neff ASP .Net 2 06-10-2005 06:53 PM
Creating full-screen photo slide shows with music tomdoster@yahoo.com Digital Photography 23 01-06-2005 12:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57