As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking for a good Ruby interactive shell. The shell I'm looking for must have the following features:
autocompletion
syntax highlighting
smart ident
previous command retrieval
automatic display of function arguments
automatic display of function documentation
works on Windows
fast and responsive
The shell I'm looking for would have been nice had it featured the following:
automatic completion of file names
automatically adds parenthesis when coding a function call
a division of the window into a history box (with previous commands and their outputs) and a code box (where I write my code). DreamPie is an example of a Python shell which features that concept.
Any suggestions for such a Ruby interactive shell?
The two main ruby shells that exist currently are irb and pry, neither of which accomplishes all of your requirements. Also, you may be able to fulfill more of your needs using an IDE like RubyMine or by hacking on a plugin to a text editor like Sublime.
Having a fully capable ruby shell like this could be great for the community. Drop a link if you're working on one :)
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I have written Ruby code to convert a number to words.
Am running it on my ruby console locally.
So now, am considering a very simple webpage with an input text field for users to enter the number and an output field to display the result.
I could have written the code in Javascript, but I preferred to hide the code from users, and at the same time I wanted to get my hands dirty trying to learn Ruby.
So now, what are my options, should I use Sinatra (heard it is the most basic framework) or can it be done without any framework?
There are quite a few ruby frameworks to pick from. Sinatra, but also Rails, Padrino, and a few lightweight ones line Camping.
If you really want to get your hands dirty, you could also build a Rack app without using any of them:
http://m.onkey.org/ruby-on-rack-1-hello-rack
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
We all know that Puppet and Chef are the superstars of the IT automation area, and they are developed in Ruby (though Chef 11 server was rewritten in Erlang).
In my working environment, a very large group of the operations team uses Python as the primary language to develop operation tools or basic system applications.
I want to find why both Puppet and Chef were written in Ruby? What are the advantages? Ruby supports DSLs well. Can Python do such thing?
From Luke Kanies, Puppet’s author:
I was a sysadmin by trade and had mostly developed in perl, but when I
tried to write the prototype I had in mind, I couldn’t get the class
relationships I wanted in perl. I tried Python, because this was
around 2003 and Python was the next new thing and everyone was saying
how great it is, but I just can’t seem to write in Python at all. A
friend had said he’d heard Ruby was cool, so I gave it a try, and in
four hours I went from never having seen a line of it to having a
working prototype. I haven’t looked back since then, and haven’t
regretted the choice.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
In my current environment, I've implemented a login script system that uses Kixscript. I'm able to drop any kix script in the appropriate directory, after which the login script parsed that directory and executes each script.
I've noticed a decrease in the amount of people documenting/developing for KIX, as well as a lack of 64-bit functionality (not necessary, but nice to have). Therefore, I'm curious if there is anything that can be recommended (other than WSH or PowerShell) that would be easy to use/implement and be efficient. Maybe Lua??
FYI, I've seen this thread, but it's about 2 years old, so I'm looking for new input without "threadjacking".
Thanks
Maybe VBScript? Support is built into Windows.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
As a learning exercise I'm building a basic scientific computation environment based on .NET. I'd like the GUI of the app to be much like matlab, in that I have an interactive window, an objects window and the facility to spawn visualisation windows. Intellisense in my command window would be very nice. It seems visual studio itself could almost be used in this manner, is this a viable option? Creating the visualisations within the VS environment seems like the only hurdle. What could I do here?
Eclipse is also an option I suppose but I'd prefer to stay totally with .NET if possible.
Any other suggestions?
You could take a look at MonoDevelop here to provide some help. It is open-source and one of the nicer IDEs.
You could also build something based on GEdit, as it is very pluggable.
Those are the two tools, plus the CLI that I use for .NET development, but I am entirely on Linux/Unix using the Mono tools.
Hope that helps!
I've just discovered VSlab. Its specific to F#, however its a good demonstration of what I would like to be able to do with my own DSL in terms of visualisation and an interactive editor.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm digging around trying to find a good set of tools for creating console applications, as most of the settings I expect to be using Ruby in the coming months won't be webapps, but server-side scripts.
I know of highline, and I do plan on using that for user and possible password prompts, but I know that the Console application world should be chock-full of other gems to assist and/or enrich your plain 'ol command-line apps.
Does anyone have some good suggestions? I'm not exactly sure what I'm really looking for, but I wouldn't be surprised if there were gems in Ruby to help with colorizing, ascii-like art, user-interaction (similar to bash-completion), man-page similar tools (or generators) or just helpers for making the work of creating a richer console app not come across as being so difficult to understand, or plain and cryptic.
Here's some console related gems I've written you may like:
bond - Custom readline autocompletion of methods, arguments and more.
hirb - Framework for formatting ruby objects. Comes with tables, trees, selection menus and a smart pager.
alias - Creates, manages and saves aliases for class methods, instance methods, constants, delegated methods.
My table_print gem lets you see IRB output in easy-to-scan table format. Super simple, lightweight, customizable. http://tableprintgem.com