Refactoring in Ruby [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Are there any programs or IDEs that support refactoring for Ruby or RoR?

The best refactoring tool is good test coverage. If your tests cover your code and they all past you can just make whatever changes you want and the tests will find any dependencies you have broken. This is the main reason why IDE-based refactoring tools are less prevalent in Ruby than elsewhere.

IntelliJ IDEA with Ruby plugin supports some refactorings.
alt text http://www.skavish.com/rubyrefactorings.png

I believe net-beans and eclipse both support some refactoring within their 'ruby-mode' - also the emacs code browser (ECB) and the various ruby support tools (e.g. rinari) for emacs have some support.

Aptana has some simple refactoring tools. I often extract into partials and they have a simple shortcut for pulling things out, creating a file and inserting the right call to the partial. Not the most amazing ever but it's useful

I'd be bold and say that Rubymine has the best rails/ruby refactoring in all RoR IDEs. Give it a try and see for your self.

There's also 3rdRail from CodeGear (from Delphi fame). The only catch is that it's not free.

I've used the refactoring in netbeans. I didn't find it that much more useful than find and replace.

You could always give RubyMine a try.

Related

The editor for Corona on Win32 platform [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I look for some editor where I could work with Lua. I have a Win32. Thanks.
Check out this post on setting up IntelliJ to work with Corona http://producerism.com/blog/how-to-develop-in-corona-sdk-on-windows/
The IntelliJ / Corona Tutorial is great because it's free. However there is also a Corona-specific IDE now too (just came out a few weeks ago):
http://www.mydevelopersgames.com/CIDER/
You should check out Notepad++
Not an IDE, but for a text editor, it is pretty awesome.
And lightweight as well.
You might want to check out the Eclipse Koneki project (http://www.eclipse.org/koneki/). It has an active developer community and even supports integration with the Corona debugger.
Checkout Sublime Text 2, it's awesome in Mac and it has Windows version.
You wont be disappointed
I use ZeroBrane Studio
It is free and lightweight Lua IDE with code completion, syntax highlighting, remote debugger, code analyzer, live coding, and debugging support for several Lua engines.
it supports debugging for Löve 2D, Moai, Gideros, Marmalade Quick and Corona. Available for Mac/Windows/Linux here.
Notepad++ is free. I use it in corona. It has an easy way to go to a particular line also.
I use Sublime 2 with the following add-on for code completion. Works great! The add on is for textmate but works for sublime as well.
https://github.com/osadchuk/Corona-SDK.tmbundle
Corona Complete is also pretty decent.
Krea - For windows only -- never tried but looks great
http://www.native-software.com/index.php/en/

Any recommended Code navigation tool for Delphi? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Can anybody recommend a good Delphi source code navigation and analysis tool, which enables code browsing, shows class hierarchy and evtl. has an editing option? I tried Code-Navigator which is very fast but i a bit its unstable in complex dependencies.
For navigation and refactoring, I prefer the ModelMaker Code Explorer IDE expert over anything I have seen before.
It is fast, stable, supports many Delphi versions, has excellent key-bindings (for me, using a mouse is so last century), and supports generics.
It doesn't do repaints over the code-editor (like CodeRush did, and now Castalia does), which can be useful, but it doesn't suffer from painting artifacts either.
Unlike ECO, and the Delphi internal refactoring and ...-Insight tools, it doesn't keep a full model of the whole application and all the libraries it (indirectly) uses. But the tools that do, try to completely emulate the Delphi compiler, and usually fail.
--jeroen
Castalia for Delphi has some great features - including (amongst lots of other stuff) some code navigation aids.
The only other set of tools I've ever really used in Delphi is GExperts, but quite honestly, I can't remember if it included any code navigation features... worth a look nonetheless!
Have you tried
ModelMaker?
or
GExperts?
or
Castalia?
"As we have a huge code base..."
Our Source Code Search Engine (SCSE) might be helpful. It uses a language structure aware tokenizer to break you source into tokens, index the set and store the index as a database, and provides the ability to use queries to search across that set using the index rather than a file-by-file scan. This gives you fast searches that aren't confused by white space or comments. (It will also do grep style searches, but they're a lot slower).
It doesn't construct class hierarchies. It will allow you to access an editor from found hits.

Please recommend me some rails/ruby open source code that needs documentation/tests written [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I've been using ruby on rails for the last 4 months or so and I've been really enjoying the whole concept of open source. I know it's not exclusive to ruby/rails but coming from windows programming this is my first real exposure to it.
I want to "give back" what I can but I don't feel like I can contribute any worthwhile open source projects or gems of my own. So I figured a good place to start is by documenting or writing tests for some existing projects.
Could you guys please point me to a few possible options? I'd prefer projects that are pretty active but at the same time not too complex (since I'm not very good with ruby right now).
This might be a subjective question but at this point I have no idea where to even start. So even subjective answers would be much appreciated.
Kudos! There are several ways to participate.
I think the question to ask yourself is, what are your areas of expertise? What subject area to you have a solid knowledge of? For example, if you had experience with Web Services, the Savon project is in dire need of documentation, examples, etc. If you have Java experience, there are many burgeoning JRuby projects that could use a hand.
You can check the Ruby Toolbox, which lists gems in categories by popularity. Look in the areas that appeal to you and check out the popular gems. The vast majority of gems have github repositories. If you haven't learned git, I highly recommend it. It's super easy to branch a project, update it. Look for projects which have a good test suite, which will not only help you figure out how it works, but will give you good examples for testing your additions/fixes.
Also, the Ruby and Rails documentation at APIdock allows for comments. If you come across something that's not entirely clear in the Rails documentation, for example, you can add a clarifying comment or examples.
You are doing a great thing for the Rails community. +1 to you!
I'm also new to rails. I can tell you I had a difficult time learning the ins and outs of aweseome_nested_set because of no examples. The readme lacked any real use case examples such as building an entire tree, outputting the first and second level only, etc.
Although it could be that I am new and was not around for acts_as_nested_set to learn the fundamentals of that plugin (which awesome_nested_set is built on, I believe)

Which LOLCODE interpreter to use? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
This is similar to this question. What I am asking though, is which LOLCODE interpreter should I pick based on these criteria:
1) Works well and is up-to-date
2) Ease of install - I've looked before and couldn't find one which I found easy to install.
Please feel free to give your suggestions and opinions, I haven't looked in a number of months and am curious as to what people think, and I look forward to learning it.
EDIT: I am just doing this to learn LOLCODE. Why? Because I can and I think it would be fun to declare variables with ICANHAZ and end programs with KTHXBAI. I'm really just curious. I would really prefer that it be as close to spec as possible. I don't care if it's open or closed source and it can run in either Windows (my desktop) or Linux (my laptop). Hope this helps!
EDIT 2: I have downloaded the LOLCODE compiler available here. However, I am having trouble figuring out some of the instructions so I am still open to any suggestions for any other interpreters/compilers.
I highly recommend repl.it. It's online, but available for download. It also has other languages like Emoticon, Python, JavaScript and many others. Here's a complete list...
Ruby
Python
Lua
Scheme
QBasic
Forth
Javascript
Javascript.next
Move
Kaffeine
CoffeeScript
Emoticon
Brainf***
LOLCODE
Unlambda
Bloop
Unlike the name implies, it has a scripting box right next to the REPL. A perfect setup I believe.
My friend created once LOLCODE interpreter for some project on our Univ. It requires Ruby with some gems, but I don't remember exactly which. I can update answer later when I have time to check it by myself. Here is link to github repository.

Advanced LaTeX Tutorial/Book [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've been using LaTeX for about 3-4 years now. In that time I've picked up what I've needed as I've needed it, most often by Googling. However, I'd like to learn some more advanced features of LaTeX such as editing or even creating my own class files and bibtex styles. I've worked with some fairly powerful class files before, but I have a tough time understanding the syntax as it's rather obscure.
Does anyone know of a good tutorial (or book) that I can use to learn such advanced features of LaTeX?
For the really advanced stuff, nothing can beat the dtx files describing the LaTeX classes themselves. Your TeX distribution might not have shipped them, so get them from CTAN; the dtx files are usually stripped of comments before being installed, but you can compile them with LaTeX to get the comments and code nicely typeset.
TUGboat has some advanced articles as well.
Have a look at the LaTeX Companion.
Have a look at the answers in these questions:
Best practices in LaTeX
What is the fastest way to learn LaTeX basics? (especially the second answer has some nice references)
I have been using a few books over the years,
Guide to LaTeX by Helmut Kopka and Patrick W. Daly
The LaTeX Companion (Tools and Techniques for Computer Typesetting) by Frank Mittelbach, Michel Goossens, Johannes Braams and David Carlisle
And the clssic
LaTeX: A Document Preparation System by Leslie Lamport
Also,
the soft book available at http://www.ctan.org/tex-archive/info/lshort/english/ is a moderately good one.
Moreover, as advised above, make it a practice to read the dtx files when you start using a new style file.
Some of these advanced topics are covered in the Wikibook. There is also the (Not So) Short introduction to LaTeX2e.

Resources