Ruby, as an emerging language, has developed rapidly over the past few years with the help of the rails killer application. This articleArticleThis is my summary of Ruby over the past month. Of course, the main tone is for reference.
Peter Cooper's five essentials for your ruby toolbox. To put it bluntly, let's start.
Summary:
- Rubygems
- A good ide or textediter
- Instant rails
- Mongrel
- A rss Feed Reader
1. rubygems
Generally, rubygems is a common method for packaging, publishing, and installing Ruby library. It allows developers to encapsulate their products into packages that can be installed. The installation package is called "gems ". This package allows developers to easily publish or download and run Ruby.Program. Similar to other package management systems or operating systems, rubygems can detect the packages that you want to install and run the installation package automatically. In this way, we can easily install a third-party Ruby library through a command line and ensure that it can run (solve the dependency problem ). Of course, the most important thing about the package management system is version management. Each database has almost different versions. Sometimes different versions of the same library may be used during program development, how can this problem be solved? Fortunately, rubygems has helped us think of it. We can install and maintain multiple versions of the library at the same time. All you need to do is to enter the version number when installing or enabling it.
Rubygems is not yet part of the Ruby installation program, but it seems that he will become part of it in the near future. Now you can go to rubygems.org to download it separately. The installation is super simple. You only need to extract the package and run the ruby file in it. For more information about rubygems, visit his website http://www.rubygems.org.
2. A good ide or textediter
Ruby, in addition to textmate, a well-recognized ide on Mac platform, seems to have no killer app like vs.net and DOTNET. The original author listed a part of it. However, except for the use of radrails, the others did not care much about it, or they did not feel how easy it was to use. Therefore, let's take a look at it. Only radrails is available for me to talk about, other columns are listed, and then two ruby ides that I would like to use are appended.
Radrails
Radrails is the first cross-platform ide developed specifically for Ruby. Radrails should not be confused by his name. Apart from developing the ROR application, he is also very good at developing Ruby programs. In addition, I like rails perspective and Dada perspective, especially the data, as if it is a dedicated database IDE for rails projects, which is super easy to use. It is also useful for generate, scaffold, and controller generation. The block enables and disables the server, and the debugging of the program is a comprehensive IDE, which can be regarded as an enterprise-level Ruby IDE.
Figure 1. Radrails in action
Jedit
Like radrails, jedit is an open source, cross-platform IDE. unlike radrails, It isn' t ruby-specific at all. it is a general programmer's text editor. what earns jedit a spot on this list is its "Ruby editor plugin," a plugin that adds a number of ruby-(and rails-) specific abilities to the editor, including syntax and error highlighting, integrated documentation, and auto-indentation (see figure 2 ).
Figure 2. Jedit and the ruby editor plugin
Find more information about the ruby editor plugin at rubyjedit.org.
Ruby in Steel
Ruby in steel is a professional-grade Ruby IDE for Microsoft Visual Studio (msvs) 2005. it features not only code completion, but also full Microsoft-style intelliisense features on Ruby code (see figure 3 ). while it's not cheap ($ 199us), a free limited-feature edition and a free thirty-day trial make Ruby in steel appealing to new Ruby developers who participate in appreciate the msvs ide.
I personally used this IDE and it doesn't feel very useful. He is a commercial software and provides a version with limited functionality. After installing it, the box will pop up every time vs2005 is enabled, Which is disgusting. However, it is good to use vs2005 to implement code completion. Now I also found a free software to implement this. I will introduce the following.
Figure 3. Ruby in Steel
Textmate
Textmate is an editor available only on Mac OS X. its use by most of the core team of rails developers has led to its strong adoption among OS X-based Ruby developers. like jedit, textmate is a general programmer's text editor with a significant number of available ruby-specific extensions. depending on the current exchange rate, textmate costs approximately $ 50us. textmate's developer, Allan odgaard, has been helping another developer produce a Windows clone called E (a.k. a. e-texteditor ).
Needless to say, this is super easy to use. I just downloaded and used that E. We will not be too sensitive to E, which has long been used to Windows. However, if it is similar to VI, it will be super fast when the shortcut key is used.
Let's talk about the other two good ides I use.
Rored
Rored is a lightweight Ruby on Rails ide written with dephi. It is very lightweight and easy to use. The specific functions are similar to those of the previous ones, but they are not supported by the previous ones in windows. His speed is very fast, his syntax is highlighted, and the function beans automatically become macro are not bad. I personally feel that it is suitable for my practice. Here's a detailed introduction to rored http://www.rubyinside.com/rored-a-new-ruby-rails-ide-for-windows-153.html. In addition, you can go to http://www.plasmacode.com/his official website to download the trial.
Eclipsedltk Ruby
This is just coming out. I have just tried it today. It feels so cool, because he supports the automated completion prompts like vs. net2005. This is a dream function. It can be seen from the name that it is developed based on Eclipse. Installation can be done through the eclipse update center, all you need is to add a source address is: http://download.eclipse.org/technology/dltk/updates/1.0/site-interim.xml. Detailed installation instructions on the http://www.eclipsezone.com/eclipse/forums/t92525.rhtml. The home page of the project is in http://www.eclipsedltk.org /.
3. Instant rails
Do you want the ROR environment to be ready in one step? No command is required. You only need to double-click a program to run it. All the environments are OK. This is no longer a dream. Instant rails has a very good idea. The birth of a very practical tool is simply the gospel for our ror developers to quickly build a development environment. Currently, only Windows versions are available, and Linux and Mac versions are being transplanted.
Instant rails is automatically installed once and runs Apache web server, Ruby, MySQL database, and rails framework.
Although instant rails can quickly build the ROR development environment, it is not appropriate to use it to deploy your server. Because of his imperfect security, the operational efficiency is still to be investigated.
4. mongrel
Mongrel is a ruby webserver and class library. mongrel is faster than Ruby's built-in web server and other webservers. Deploying a program on this page will surprise you with the speed. In addition, you can use mongrel directly in Ruby programs to develop your own dedicated web server. Mongrel installation is super simple. Don't forget that it is packaged with rubygems. A command is complete. Gem install mongrel
The five weapons we introduced in mongrel are the only class libraries. He is openSource code. He is a good teacher who teaches us how to package and market our products. Of course, he is most attracted by his authors who teach us how to write a class library.
5. a rss Feed Reader
Is it surprising that this item is used as a separate weapon. I was surprised to see it, but it was quite reasonable according to the author's meaning. It may be because RSS is the foundation of the rapidly developing document knowledge system of ROR. Because almost every ror developer has his own blog, and they share their experiences and summary on it, we may not be able to read it one by one. If we use an RSS tool for subscribers, everything is done. For details about the RSS feed reader. I believe that everyone has their favorite. Some of the articles recommended by the author do not feel very suitable for Chinese users, except Google Reader. I personally recommend using zhuaxia.com in China or www.365rss.cn, which I used to develop.
Write so much today. I haven't published any articles on the homepage for a long time. I miss you.