Why doesn't Ruby have a GUI? [closed] - ruby

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Ruby is hard when all they have is a command prompt. Any idea as to what I might be doing wrong? None of the tutorials mention about opening a program with a GUI although they explain the code as if you already have one opened.

It sounds like you might be getting a programming language (Ruby) mixed up with an IDE (Integrated Development Environment) like Elicpse, Netbeans or Visual Studio which are all graphical interfaces (GUIs) that help you write programs (in Java, C++, Ruby etc).
Because Ruby is an interpreted language with a powerful command line interface REPL (read–eval–print loop) I'd say that most people would say the best way to learn Ruby is to get familiar with the command line and fire up the interpreter and start playing. Using the interpreter will allow you to start from the basics like just running 2+2 and seeing the result instantly.
If you don't feel comfortable diving in to a command line then perhaps you could try something like Aptana Studio IDE. There will be a learning curve for that as well so perhaps if you just want to start from the absolute basics maybe try using the Try Ruby website. It provides a web based "console" for you to try out and learn the ruby basics.
Finally, if you do want to learn ruby the best way, and you are on Windows then I suggest downloading Cygwin and running the Ruby interpreter there. There are plenty of tutorials on how to get cygwin and ruby installed, Wikibooks provides a good start.

Related

Any good IDE for Ruby on windows? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I began learning Ruby this morning, so please forgive me if my questions sound silly ;=)
I had experience programming C++ with visual studio before, so I want to ask if there are IDEs like VS for ruby. (I noticed that I can write python with VS, but not ruby...)
Also, my friend told me that Eclipse can be used for ruby, but debug is painful, because you can not watch the value of a variable in eclipse.
Since I have thousands of lines of ruby code to read and understand, it will really be helpful if someone recommend me a good IDE to debug with.
Thanks in advance.
Rubymine is the only real IDE I know of (trial for 30 days), but most of the people use a texteditor like Sublime Text, eventually expanded with addons for the language you program in.
I wouldn't advise Eclipse unless you are allready familiar with it, a lot to configure and slow.
You don't really need an IDE for debuging, take a look here.
IMHO, all IDEs that supports Ruby are
Netbeans
IntelliJ IDEA
Eclipse
RubyMine
RubyMine is the best IDE, it supports some great features like refactoring
But I use vim , which is you know beyond the best IDE :)
Netbeans actually support Ruby but i don't know if it brings more options than Eclipse. Check it out : http://www.netbeans.org/features/ruby/index.html
If you are already comfortable with Eclipse, you can use Aptana, it's web dev counterpart.
Many ruby developers use a full-featured text editor instead of an "IDE". I would guess using a text editor is more popular among ruby devs than using an IDE.
The difference between text editor and IDE can be somewhat blurry, but generally a text editor has fewer language integration features than an IDE. Although sometimes features approaching what one would expect from an IDE are available. As ruby is not compiled, compilation/packaging features are not generally required from a text editor/IDE.
SublimeText is a popular text editor among rubyists, that runs on Windows as well as OSX and Linux.
There is at least one ruby debugger plugin for SublimeText; I have not used it myself.

Ruby GUI Development on Mac/Linux and Windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I have following concern:
I should creat a application for a documentation tool (Tex/Word files to a final PDF). This tool requires a GUI and I would really love to write it in my fav programming lang Ruby.
The main problem while asking my friend google was: every question was asked 3+ years ago and/or the libraries are outdated.
So is there a nice way to get a GUI with Ruby on Mac/Linux and Windows (it would not bother me to create two different interfaces). Or are some better solutions out there (please no .java)
(Ruby on Rails could be a solution, but only browserbased ...)
Would be happy for your Ideas and Solutions :)
Best Regards
bMalum
I grepped #ruby channel logs and found that people often recommend Shoes framework for Ruby GUI apps.
Since Shoes makes use of JRuby, it requires Java to run. It shouldn't be a problem if your software is intended for regular people, as Java is installed on most computers anyway.
GitHub: https://github.com/shoes/shoes4
Some tutorial: http://pragtob.wordpress.com/2013/07/17/shoes-4-a-progress-report/
While there are some Ruby solutions for GUI, I would go for writing a Rails Web application and wrapping it with node-webkit instead. You will have a separate window for the application so it's kind of a native app, not a webapp. ;)
Please note you will need to bundle both node.js and Ruby binaries for the platforms you want to support. The most popular approach for node-webkit wrapped apps is AngularJS - then you don't have to bundle Ruby.
I have created a Gem LibUI for creating small GUI tools in Ruby. You can try it out if you like.
https://github.com/kojix2/libui

What programming language is prefered for a simple program like this? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm planning to make a simple program which will basically web scrape and provide that information into a simple gui.
There'll be notification for new info, and a simple database to store history, favorite and such
What programming language is suitable/good for simple task like this? And can you please give a starting point about making the program?
I'm currently only using python, trying to find out how to make the gui. If anyone can give some resources, it'll be super usefull.
It would be best if you pick the programming language you know best.
Since you mentioned Python, you could use PyGTK, wxPython or similar GUI frameworks for Python.
I would personally do it in C# since the GUI designer in Visual Studio is one of the best I've used, but this is entirely up to you.
The choice of language depends on your experience with each language: In C++ it takes time, in Python it might be uncomfortable and in C# it might be hard to get it running on other platforms.
SQLite would be an excellent choice for the database. It is easy to set up and use in any language.
Links:
http://www.wxpython.org/
http://www.pygtk.org/
https://sqlite.org/

Multi-platform "easy" window programming [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
i'm thinking about programming a tool that would be useful in windows and mac (as we use those at work) and it's 100% necessary that is inside on a OS window.
The first thing that came to my mind was to use java - as it's cross platform - but, is there any alternative to program cross platform window based programs?
Has anyone tried to use C# windows forms with Mono in other OS's?
I'm interested in a garbage collected language if possible as I don't want to think about possible memory leaks for a tool that can be slower or faster without any trouble.
Also if it's possible to be as easy as it is in visual studio + C# it would be awesome!
Any idea will be appreciated, thanks!
Java is fine if you're comfortable with it.
Many languages have bindings to cross-platform toolkits: for example Python is very pleasant and has PyQt4 or WxPython, both of which can be used to make GUIs which work nicely on Windows or Mac.
In the manage-your-memory world, using Qt from within C++ is actually very pleasant (they have a nice API). I find it creates more elegant applications than my Java code (they feel a tad more native) though YMMV.

How to bring an image inside a GUI? Its possible in BashScript or Let's learn a new language? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am developing my first pretty application in Bashscript, hmm...
So.. I am starting some kind of GUI for it, with zenity on this first try. But I want to bring some visual art inside the GUI, with no function at all, just some visual art. I want the final application to be cross-os executable.
How to just show an image inside a GUI box? (Maybe with just a OK button, or nothing, just show the image for some time).
Any "easy" solution for this? In BashScript or whatever? Any solution, specially in C, or other languages, is highly appreciatted too...
Thanks for your attenttion, have a good day.
I found Glade with gtk, but have to deep in yet. Any other solution?
EDIT:
I want the final application to be cross-os executable.
Hey... Pretty road... I found a crazy guy like me, he wants a GTK GUI with Bashscript! I am not the only crazy dude in the world, lol....
And I want a "easy" solution, just because what I need for my program is really simple, GUI shows image, buttons, and done. Just to clarify.
Use the display command in ImageMagick:
$ display img.png
It will show the image in a GUI window.
Bash is not a language for writing GUI applications. There are extensions such as dialog, zenity, and others that allow for using a GUI or TUI to accept input for further bash processing, but these things are very limited. You need to pick a toolkit, such as GTK, QT, or wxWidgets. Most high level scripting languages will have bindings for all the GUI toolkits that I have proved examples for (python, ruby, perl).

Resources