You're probably just using a basic text editor. Any text editor suitable for the language will have syntax highlighting and an interpreter. Try something like Sublime Text 2 - you'll probably have to google for a guide to get it set up for Ruby (you'll need to add plugins)
I used Ruby Mine when learning Ruby. It's free if you register as a student. It is an IDE, but it's very simple to use and just works with no setup needed. I used it exactly like how you describe starting out (typing code in a top panel and getting results in a bottom panel) without feeling any of the other stuff got in the way.
sure. - autocomplete - you can disable any plugin that you dont use - find/replace - you have js at your fingers(we are using vue) - css and saas, less - haml, slim, erb - refactoring that works - find usage - debugging
but best just have a look here: https://www.jetbrains.com/ruby/features/
RubyMine https://www.jetbrains.com/ruby/
It's free for students. https://www.jetbrains.com/student/
If your not a student, it's relatively cheap. It's $99.
You can also just run ruby through the windows command prompt and use any editor you want.
Also to be clear while the *nix terminal is better imo, the windows command prompt is functional and nothing in it inheritently stops you from using ruby. Personally on windows I use ConEmu and find myself in the powershell admin. Powershell console is actually pretty cool and is much better than regular command prompt.
I like RubyMine but to be honest you need to get comfortable with using an editor like sublime text or vim and using terminal to run your code. IMO that's key to being an effective Ruby developer.
I've seen some people disable the tabs and project sidebar in the IDE and rely on double tapping the shift key to bring up the search everywhere dialog which also includes recent files.
RubyMine's the best for this if you can foot the monthly bill. Just select the constant, press SHIFT+F6, and rename it. Takes care of all references, comments, and the file names all at once.
Otherwise, Solargraph might do the trick. Looks like their VS Code plugin supports refactoring, but it says it's still experimental. Either way, it'll help find all of the references.
Do you happen to know what the IntelliJ / Rubymine font is? looks like this
Actually, I'm also having some trouble installing Ruby Solargraph.
I installed Ruby, and Rubocop so I can have some intellisense action going on but Solargraph just won't get there.
>>>[Error - 2:21:40 PM] Starting client failed Error: spawn solargraph ENOENT at notFoundError (C:\Users\name.vscode\extensions\castwide.solargraph-0.19.2\node_modules\cross-spawn\lib\enoent.js:6:26) at verifyENOENT (C:\Users\name.vscode\extensions\castwide.solargraph-0.19.2\node_modules\cross-spawn\lib\enoent.js:40:16) at ChildProcess.cp.emit (C:\Users\name.vscode\extensions\castwide.solargraph-0.19.2\node_modules\cross-spawn\lib\enoent.js:27:25) at Process.__dirname.ChildProcess._handle.onexit (internal/child_process.js:198:12)
I can't figure it out. :\
> Can anyone suggest a good compiler for it.
There's no such thing as a compiler in Ruby, at least not in a traditional sense. You likely are asking about editor to use.
Common choice in this regard is Atom or VS Code. If you go with Atom you will want to install some extensions to it. In particular you will want linter-rubocop. Rubocop is basically a code analyzer that will yell at you when you write messy code - it analyzes many typical errors, starting from functions being too long to noticing when code can be simplified.
If you want a full fledged IDE - there is RubyMine:
https://www.jetbrains.com/ruby/
Personally I use it in my professional work, it's great and offers by far most complete experience out of the box. But there's a catch - it costs money. I personally do deem it worth my cash but I wouldn't tell someone still learning that they must buy it.
Honestly Sublime Text is what you should be using. Caveat - it's not free as it costs $80. However you can try it out for free, it just asks you every once and then to purchase it. But in exchange you get something that runs in circles around Atom or VS Code, especially bigger files or more complex directory trees skyrocket in loading times.
Another possibility since you are a student - JetBrains IDEs are free if you provide them a student ID:
https://www.jetbrains.com/ruby/?fromMenu
It's not a singular IDE but a set of them for different languages but it's worth checking out.
pry is one way to do it, but the closest thing I know of to firebug for ruby is built into Rubymine -- it's a visual debugger that's virtually identical to firebug. I use it and love it.
If you're used to a fully blown IDE like Visual Studio then you might want to give RubyMine a try (https://www.jetbrains.com/ruby/). I just use a text editor, but I'm pretty sure RubyMine lets you set breakpoints and step through your code (like pry-debugger / pry-byebug)
JetBrains es una empresa que tiene IDEs bastante copados para variados rubros, entre ellos, para javascript (WebStorm) y para ruby (RubyMine).
Tienen todos una version Community gratis, y una pr0 que la podés pedir gratis demostrando que sos estudiante, de todas formas, las versiones community son muy completas.
Con respecto al tema de si necesitás o no un IDE, me parece un muy mal consejo decirte que no. No es para nada despreciable el aporte de un refactor de nombres, o de las sugerencias que te puede aportar (entre muchos otros) y más que nada si estás aprendiendo.
Have you tried using JetBrains IDE Ruby Mine? https://www.jetbrains.com/ruby/
If not you might be using a Ruby Plugin in IntelliJ IDEA (the (primarily) Java/JVM langauges IDE)
Typically refactoring options are under the "Refactor" menu at the top Either "Rename..." or "Move Class" might get you part way to updating all references in a single command, in the way you want. Good Luck.
No, RubyMine isn't particularly cheap — but what's your time worth? If I can get work done that would take me 50-55 hours in a 40-42-hour work week after a couple of weeks fiddling with it off and on, then it's paid for itself inside a month.
There's also a free 30-day trial that lets you kick the tires. I agree with /u/ikariusrb; experiment with some of the text editors to see what you like and don't, and then try living in RubyMine for a month.
Not connected with RubyMine or JetBrains in any way except as an evangelistically enthusiastic paying customer.
Use an IDE like RubyMine. https://www.jetbrains.com/ruby/
>But it looks like some of the apps I install that use Ruby, still fail to work correctly, and I get a "command not found" error.
Check your path. You need to add ruby to your path permanently.
nano ~/.bash_profile
Append to the end:
export PATH="${PATH}:/path/to/ruby/executable/folder"
Hi there! Do you use Gemfile or do you add your gems thru 'require'? Because it looks like this issue that's already fixed and should be available in the upcoming v2017.2.5 (most likely this week). You can already avoid this issue by using Gemfile or by running v2017.3 Beta as it's already fixed there (but you may be facing a bunch of other issues as it's Beta :) ).
Otherwise pls let me know your build number for starters, and I'll try to help.
> I guess, in my head, it's all easy to visualize and relllllatively simple...
Ha! Yup - I've spent 350+ hours (dev+sysadmin) on an idea that my friend had where I thought "hey, that should be pretty simple!" :)
Per your other comments - you've been around the block, you have [some sense] of what you are getting into. If you have the development talent (and time) to build (and maintain) your own system - I think it would be a really neat project to tackle! But, as you commented about the LMS - these things are always much harder in practice than in theory :(
Here's a simpler idea - keep using Wufoo for now, but instead of importing into Google Sheets, download the CSVs and write some barebones Ruby code to parse them out & do your aggregation and computations. Or heck - even build just a little proof-of-concept Rails app that is just for you, to parse a CSV, load it into your local database (on your laptop), and display whatever results you want. The long term vision could be an enterprise-wide system, but start with something just for you, to help you do your job better, and let it evolve from there.
For what it's worth, I do my RoR dev on a Mac and I've been pretty happy using RubyMine IDE. You certainly don't NEED it, but I like the eye candy it provides for things like version control, test results, various windows for logs, etc.
Good luck :)
I'm not saying static typing doesn't confer any benefits, only that the actual benefits are overstated.
Static typing makes it easier to create certain IDE features, sure, but dynamic typing does not make it impossible by any means. Specialized IDEs have been created for dynamic languages (like Rubymine, Webstorm) that allow for automatic refactoring as well as code completion, method return lookups, etc.
Historically, large-scale systems shift from dynamic to static languages for performance, not maintainability. Static and dynamic codebases can be equally difficult to grok, and maintainability is more dependent on the developer's preferred flavor than anything else. Type signatures are by no means documentation. The challenges of debugging and refactoring a dynamic language are different, but are not necessarily worse.
That being said, I would never use a pacemaker that runs on Ruby or trust Javascript to handle an autopilot routine.
Those are both nice IDE's but I really love PHP Storm... And if I ever use PHP Storm again with GitHub, it has amazing conflict resolution automation. But I'm sitting on 8gb of ram so that's enough for PHP Storm lol. Atom.io is interesting. I like the FTP feature in PHP Storm. When I hit CTRL+S in the IDE, it instantly uploads and overwrites the file on FTP. I used to work for an advertising company and made wordpress plugins for them on a dev team of 10 people, and as soon as I brought up the topic of PHP Storm, everyone switched to PHP Storm lol. They have a Ruby version of the software as well https://www.jetbrains.com/ruby/
On a fundamental level, does anyone else think we're heaping way too much emacs
envy on top of trusty old vim
?
If you really don't care for keeping one terminal tab/window open for the command line while working in vim
in another, may I suggest that you'd likely be happier in a GUI editor or IDE somewhere between Komodo and RubyMine?
Languages don't "support code completion", you troll; tools do. If you insist on using a bloated heavyweight don't-let-me-think IDE for Ruby development, take a look at JetBrains RubyMine or Komodo IDE.