Everybody who deals with Ruby knows that collections can be tedious. This post overviews two methods that can greatly simplify you development routines. You will get real-life examples that demonstrate how to optimize the code to make it work fast and look good. You will be given some tips on increasing code readability to simplify system support in the future.
Blog on All Things Cloud Foundry
Enjoy the full article: Why CoffeeScript!
Test driven development is quite a popular thing that allows you to stay on the safe side and be sure that the system works correctly. However, there are some routines that make tests in Ruby really slow. In this post, you will read how to save some precious seconds when you start Ruby on Rails tests. You will learn how to avoid re-starting the tests each time when any changes to a file are made. This post also explains how to check the test coverage of your app.
To learn how to make your Ruby/Ruby on Rails tests work much faster, read the full article.
Good news from Nastia Shaternik, a Ruby Developer at Altoros. She prepared a tutorial on how to create an Ember.js application from scratch without any bootstrapping tools. She uploaded the source code, so you could take a look at a commit history to catch on to her idea. This is the first part of the tutorial, the updates will arrive soon!
Find the full version of the article here. Have a nice reading!
There are a number of Ruby frameworks that allow for creating amazing feature-rich applications. However, very often you need some simple functionality and your main goal is to ensure the fastest performance possible. I decided to compare performance of the basic applications that were created with Sinatra, Espresso, Padrino, Goliath, and Ruby on Rails to find out which framework is the fastest one.
See all 4 tables with the performance tests on our Github blog.
Updated: The new version of this performance comparison was released on Feb 7, 2014.
Transactional e-mails are important part of any project or business, no matter if it’s a startup or a big company. But if corporations can afford the huge mailouts and the costs of big mail distribution services, startups usually look for cheaper options.
Mandrill by MailChimp is one of such options. It is a transactional mail distribution service that allows for sending up to 12,000 free e-mails per month. If you need more, there are various affordable pricing options. Mandrill supports SPF and DKIM records ensuring your emails won’t be regarded as spam by the most of e-mail services. Moreover, it allows for tracking e-mail statuses, such as sent, bounced, received, clicked, marked as spam, etc. It also supports templates and special tags for A/B testing, which is an advantage.
Please, have a look at the full overview of the service by our specialist Eugene Melnikov, following this link: http://altoros.github.io/2013/mandrill-free-smtp-server-for-application
If you are fond of testing, just like our Ruby Developer Nastia Shaternik, you’ll probably be interested to read her post about using RSpec. There, she dwells on how some RSpec features that are not commonly used can help you simplify testing and make tests clearer.
Learn how to make your tests readable as short documentation. Find out how using mock_model can make your tests run faster, see an example of using RSpec’s built-in expectations, get two strategies of sharing the same data among different examples, and more.
You may read the full Nastia’s posting, following this link: http://altoros.github.io/2013/lets-test-it-well.