[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby feasibility?

Dave Kubasiak

6/16/2009 12:55:00 PM

Good morning,

I know just about zero about Ruby but the company I work for is doing
some Ruby development and I need to eventually learn the language.
There is a program re-write project I need to complete and I was
wondering if Ruby would be appropriate for it.

The app I need to write is a communication app. It reads a list of
devices from a database and uses a bank of modems/phone lines to call
out and collect data from them at different times. There are hundreds
of devices so the app is always running, though it's idle periodically
throughout the day. It needs to have a GUI so someone can see at a
glance what it's doing, and it needs to be multi-threaded. It would
most likely be running on Windows since that's the only GUI OS we
currently have running (we have Solaris and Linux boxes but they're only
console, not GUI).

Would Ruby be appropriate for this task? I've read that it can be
sluggish and that GUI programming is somewhat lacking. But I also don't
know how old those comments were or how Ruby has progesses since they
were made. Or would something like Java, C#, etc, be better suited?

Any input greatly appreciated!

Thanks in advance,
Dave
--
Posted via http://www.ruby-....

12 Answers

pjb

6/16/2009 1:06:00 PM

0

Dave Kubasiak <davekub@hotmail.com> writes:

> Good morning,
>
> I know just about zero about Ruby but the company I work for is doing
> some Ruby development and I need to eventually learn the language.
> There is a program re-write project I need to complete and I was
> wondering if Ruby would be appropriate for it.
>
> The app I need to write is a communication app. It reads a list of
> devices from a database and uses a bank of modems/phone lines to call
> out and collect data from them at different times. There are hundreds
> of devices so the app is always running, though it's idle periodically
> throughout the day. It needs to have a GUI so someone can see at a
> glance what it's doing, and it needs to be multi-threaded. It would
> most likely be running on Windows since that's the only GUI OS we
> currently have running (we have Solaris and Linux boxes but they're only
> console, not GUI).
>
> Would Ruby be appropriate for this task?

Definitely.


> I've read that it can be
> sluggish and that GUI programming is somewhat lacking. But I also don't
> know how old those comments were or how Ruby has progesses since they
> were made.

Well, I would rather provide the user interface as an embedded web
server, so this application can run in background and can be
monitorized from the LAN from any web browser. There are libraries to
allow you to write simple web servers in ruby very easily.


> Or would something like Java, C#, etc, be better suited?

I'd bet a Ruby solution would be better (easier to write, debug and
maintain). The only improvement would be to use Common Lisp, but I
guess your company isn't prepared to jump to Common Lisp right now.
In a few years...

--
__Pascal Bourguignon__

Robert Klemme

6/16/2009 1:16:00 PM

0

2009/6/16 Pascal J. Bourguignon <pjb@informatimago.com>:
> Dave Kubasiak <davekub@hotmail.com> writes:
>
>> Good morning,
>>
>> I know just about zero about Ruby but the company I work for is doing
>> some Ruby development and I need to eventually learn the language.
>> There is a program re-write project I need to complete and I was
>> wondering if Ruby would be appropriate for it.
>>
>> The app I need to write is a communication app. =A0It reads a list of
>> devices from a database and uses a bank of modems/phone lines to call
>> out and collect data from them at different times. =A0There are hundreds
>> of devices so the app is always running, though it's idle periodically
>> throughout the day. =A0It needs to have a GUI so someone can see at a
>> glance what it's doing, and it needs to be multi-threaded. =A0It would
>> most likely be running on Windows since that's the only GUI OS we
>> currently have running (we have Solaris and Linux boxes but they're only
>> console, not GUI).
>>
>> Would Ruby be appropriate for this task?
>
> Definitely.
>
>
>> I've read that it can be
>> sluggish and that GUI programming is somewhat lacking. =A0But I also don=
't
>> know how old those comments were or how Ruby has progesses since they
>> were made.
>
> Well, I would rather provide the user interface as an embedded web
> server, so this application can run in background and can be
> monitorized from the LAN from any web browser. =A0There are libraries to
> allow you to write simple web servers in ruby very easily.

Good idea! Another alternative would be SNMP if integration into some
existing monitoring framework is required.

>> Or would something like Java, C#, etc, be better suited?
>
> I'd bet a Ruby solution would be better (easier to write, debug and
> maintain). =A0The only improvement would be to use Common Lisp, but I
> guess your company isn't prepared to jump to Common Lisp right now.
> In a few years...

I wouldn't bet on that a solution in Ruby is better. A Java based
solution with a Swing UI would probably be as good.

Kind regards

robert

--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestprac...

Bosko Ivanisevic

6/16/2009 1:47:00 PM

0

On Jun 16, 3:15 pm, Robert Klemme <shortcut...@googlemail.com> wrote:
> 2009/6/16 Pascal J. Bourguignon <p...@informatimago.com>:
>
>
>
> > Dave Kubasiak <dave...@hotmail.com> writes:
>
> >> Good morning,
>
> >> I know just about zero about Ruby but the company I work for is doing
> >> some Ruby development and I need to eventually learn the language.
> >> There is a program re-write project I need to complete and I was
> >> wondering if Ruby would be appropriate for it.
>
> >> The app I need to write is a communication app.  It reads a list of
> >> devices from a database and uses a bank of modems/phone lines to call
> >> out and collect data from them at different times.  There are hundreds
> >> of devices so the app is always running, though it's idle periodically
> >> throughout the day.  It needs to have a GUI so someone can see at a
> >> glance what it's doing, and it needs to be multi-threaded.  It would
> >> most likely be running on Windows since that's the only GUI OS we
> >> currently have running (we have Solaris and Linux boxes but they're only
> >> console, not GUI).
>
> >> Would Ruby be appropriate for this task?
>
> > Definitely.
>
> >> I've read that it can be
> >> sluggish and that GUI programming is somewhat lacking.  But I also don't
> >> know how old those comments were or how Ruby has progesses since they
> >> were made.
>
> > Well, I would rather provide the user interface as an embedded web
> > server, so this application can run in background and can be
> > monitorized from the LAN from any web browser.  There are libraries to
> > allow you to write simple web servers in ruby very easily.
>
> Good idea!  Another alternative would be SNMP if integration into some
> existing monitoring framework is required.
>
> >> Or would something like Java, C#, etc, be better suited?
>
> > I'd bet a Ruby solution would be better (easier to write, debug and
> > maintain).  The only improvement would be to use Common Lisp, but I
> > guess your company isn't prepared to jump to Common Lisp right now.
> > In a few years...
>
> I wouldn't bet on that a solution in Ruby is better.  A Java based
> solution with a Swing UI would probably be as good.
>
> Kind regards
>
> robert
>
> --
> remember.guy do |as, often| as.you_can - without endhttp://blog.rubybestprac...

Although I prefer Ruby for lot of tasks over other programming
languages I would recommend you C#. Since you are already on MS
Windows platform using C# is definitely the best choice. Creating form
(s) for monitoring is very easy and development is quite fast. In
addition debugging C# applications in Visual Studio is much, much
better than you'll find for Ruby.

Best regards,
Bosko

James Herdman

6/16/2009 2:09:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

Greetings.
Your requirement for Windows, alone, basically discounts Ruby. I use Ruby on
a Windows PC at work and it's the very opposite of fun. Another poster
recommended C#. I think he's on the money.

James

On Tue, Jun 16, 2009 at 8:54 AM, Dave Kubasiak <davekub@hotmail.com> wrote:

> Good morning,
>
> I know just about zero about Ruby but the company I work for is doing
> some Ruby development and I need to eventually learn the language.
> There is a program re-write project I need to complete and I was
> wondering if Ruby would be appropriate for it.
>
> The app I need to write is a communication app. It reads a list of
> devices from a database and uses a bank of modems/phone lines to call
> out and collect data from them at different times. There are hundreds
> of devices so the app is always running, though it's idle periodically
> throughout the day. It needs to have a GUI so someone can see at a
> glance what it's doing, and it needs to be multi-threaded. It would
> most likely be running on Windows since that's the only GUI OS we
> currently have running (we have Solaris and Linux boxes but they're only
> console, not GUI).
>
> Would Ruby be appropriate for this task? I've read that it can be
> sluggish and that GUI programming is somewhat lacking. But I also don't
> know how old those comments were or how Ruby has progesses since they
> were made. Or would something like Java, C#, etc, be better suited?
>
> Any input greatly appreciated!
>
> Thanks in advance,
> Dave
> --
> Posted via http://www.ruby-....
>
>

James Britt

6/16/2009 2:21:00 PM

0

Robert Klemme wrote:

> I wouldn't bet on that a solution in Ruby is better. A Java based
> solution with a Swing UI would probably be as good.

Or use JRuby + Monkeybars and Swing. Best of both worlds.

Plus, if SNMP is needed, the better Java libraries can be used in place
of the the Ruby SNMP libs.



--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

James Britt

6/16/2009 2:31:00 PM

0

James Herdman wrote:
> Greetings.
> Your requirement for Windows, alone, basically discounts Ruby. I use Ruby on
> a Windows PC at work and it's the very opposite of fun.


I've done Ruby hacking on assorted Windows boxen for years. No problem.





--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Jonathan Rochkind

6/16/2009 3:13:00 PM

0

Pascal J. Bourguignon wrote:
> Dave Kubasiak <davekub@hotmail.com> writes:
>
>> ...It needs to have a GUI so someone can see at a
>> glance what it's doing, and it needs to be multi-threaded. It would
>> most likely be running on Windows since that's the only GUI OS we
>> currently have running....
>>
>> Would Ruby be appropriate for this task?


The threading issue is something to look into more. Ruby threading is a
bit... odd.

I'm also not sure how you'd create a Windows GUI in Ruby, that's worth
looking into more too.
--
Posted via http://www.ruby-....

Eleanor McHugh

6/16/2009 3:49:00 PM

0

On 16 Jun 2009, at 16:13, Jonathan Rochkind wrote:
> Pascal J. Bourguignon wrote:
>> Dave Kubasiak <davekub@hotmail.com> writes:
>>
>>> ...It needs to have a GUI so someone can see at a
>>> glance what it's doing, and it needs to be multi-threaded. It would
>>> most likely be running on Windows since that's the only GUI OS we
>>> currently have running....
>>>
>>> Would Ruby be appropriate for this task?
>
>
> The threading issue is something to look into more. Ruby threading
> is a
> bit... odd.
>
> I'm also not sure how you'd create a Windows GUI in Ruby, that's worth
> looking into more too.

By loading GDI+ with Ruby/DL lol
Otherwise there's TK which ships with Ruby.


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-...
----
raise ArgumentError unless @reality.responds_to? :reason


eddie

6/16/2009 5:40:00 PM

0

Dave Kubasiak <davekub@hotmail.com> writes:

>Good morning,

>I know just about zero about Ruby but the company I work for is doing
>some Ruby development and I need to eventually learn the language.
>There is a program re-write project I need to complete and I was
>wondering if Ruby would be appropriate for it.


If Ruby on windows is really a problem (I wouldn't know) do the work on a Unix
box and serve the results with a web server so you get remote access too.
Serving web pages can range from incredibly trivial up to as sophisticated as
you want to get.

Eddie

James Herdman

6/16/2009 5:54:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

I've found it to be a little awkward, and sometimes downright frustrating.
An excellent example of this is Thor. AMAZING Ruby app. It kicks the pants
off of Rake. Early versions had issues with traversing directory structures
though (I've since sent in patches to fix this). Sometimes its the authors
of the libraries forgetting that Windows exists, other times it's Windows
failure to include developer tools (e.g. a C compiler) by default. The fact
that Ruby reports win32, mingw and a few other values for RUBY_PLATFORM on
Windows is equally annoying.
But yes, it's getting better.

James

On Tue, Jun 16, 2009 at 10:31 AM, James Britt <james.britt@gmail.com> wrote:

> James Herdman wrote:
>
>> Greetings.
>> Your requirement for Windows, alone, basically discounts Ruby. I use Ruby
>> on
>> a Windows PC at work and it's the very opposite of fun.
>>
>
>
> I've done Ruby hacking on assorted Windows boxen for years. No problem.
>
>
>
>
>
>
> --
> James Britt
>
> www.jamesbritt.com - Playing with Better Toys
> www.ruby-doc.org - Ruby Help & Documentation
> www.rubystuff.com - The Ruby Store for Ruby Stuff
> www.neurogami.com - Smart application development
>
>