X

Get the Blog Updates

Scroll to Top

To Top

Introduction to Sidekiq
Sidekiq gem is used to move long running jobs to background for asynchronous processing.
It is more efficient, with respect to memory usage, than delayed_job and Resque as it uses threads instead of forks.

Need of background process
For example, in a mailing application you need to send emails to a large list of recipients. It will take large time to process with the large list of recipients, which is too long for a User to wait for a response after clicking a link. So, it's better to move the long running task as the background process by using Sidekiq gem.

What is a CMS?

Acontent management system or CMS is a computer program that allows a user to publish, edit and modifying of the content through a editor. CMS often used for websites & blogs to avoid the hand coding and provide easy to use interface so that anybody can manage the content without depending on a programmer.

Here, I want to specify one of the popular Ruby on Rails CMS - RefineryCMS. There are some other CMS available in Ruby On Rails like BrowserCMS, LocomotiveCMS, Radiant CMS, etc...

Ruby on Rails aka “RoR” is an open-sourceMVC framework built using the Ruby programming language. Ruby on Rails development frameworkIt is considered as the epitome of the latest generation of high-productivity, open source web development tool. The growing demand for Ruby on Rails has been driven by successful RoR development companies like Andolasoft, who benefit from the speed and agility of building applications in Rails, which results in increased productivity and company growth.

1. Framework built on Agile methodology
RoR is faster because the framework was built based on Agile development methodology, best practices are emulated so web development is done with high quality and speed.

What does “Testing” means?

Testing of a product of services is an investigation to find out how well it is working against the expectation. Thus the quality of product can be assessed. Whether computer hardware or software development, testing is done at key checkpoints in the overall process to determine whether objectives are being met.

Sometimes we are unaware of unknown complexitiesin our Rails code and it gets messy. Moreover, it reduces application performance, scalability and maintainability.

Metric_fu is a set of rake tasks and compilation of several different tools that provides reports. This show which parts of your rails code might need extra work. It uses the following built-in tasks to create a series of reports. Rcov – Measures test coverage Flog – Measures code complexity Saikuro – Measures cyclomatic complexity Flay – Finds duplication (both copy/paste and structural) Reek – Spots code smells Roodi – Finds lots of general problems Churn – Identifies files that changes too often Rails best practices - code matric tool Cane - code quality threshold violations HotSpot - Meta analysis of your metrics to find hotspots in the code

Backbone.js is a popular open source JavaScript framework that allows us to develop single page web application. It offers a MVC framework for organizing Javascript application.
What is Backbone.js?
Building single-page web apps or complicated user interfaces will get extremely difficult by simply using JQuery alone. Because JavaScript libraries are great at what they do, without realizing it you can build an entire application without any formal structure. Whereas Backbone.js is a lightweight framework that allows us to create single page applications in a structured manner. Backbone.js enforces that communication to the server should be done entirely through a RESTful API. The web is currently trending such that all data will be exposed through an API, because the browser is no longer the only client, now we have mobile devices, tablets and electronic fridges etc.

“Rails” is an amazing framework to developweb apps quickly with its inbuilt helper libraries. However, there are certain best practices that should be followed for better app performance.

Most developers love to place the logics inside the controller and use the model for the Active Record operation only.

What is ElasticSearch?

Searchingon websites is important from a content discovery and user usability perspective. It allows readers to control the way they look for content instead of navigating through menus. Elasticsearch is a distributed open source search server based on Apache Lucene, much like Solr. It allows for real-time searching and the ability to scale easily through replicas. It has a REST API and communicates over JSON. We will use a gem called Tire to communicate with it.

What is the Problem if you don’t use a search engine?

If your application requires a full text search, then it is better to add a search engine like elasticsearch to the application. As normal queries to the database for the full text search might slow down your performance. You will end up with complex queries.

You should do minimum security checks before releasing the rails app to the public. The possible threats could be hijacking user accounts, manipulate access control, accessing sensitive data, doctoring with garbage contents. You should act proactively to protect your valuable information. Here you go with some useful security tips which you cannot ignore. Courtsey,:Ruby on Rails Security Guide. Don't trust logged in users (Authentication != Authorization) Always check whether the current logged in user is allowed to perform operation like create, update, delete and view. Devise, a library which handles authentication, to verify that you can only get to the destroy action if you’re logged in. However, Devise does not handle authorization. Apart from authentication authorization must be checked prior to allow any data sensitive operation.

Finally, the most awaited Rails 4.0 versionhas been released by the Rails team on 25th of June. Rails 4 has got huge changes.

There are tons of new features available, which can make your life as a Rails developer a lot easier. We will talk about the most exciting features in Rails 4 and why you should upgrade.

What is In-app Billing ?

In-appproducts are the digital goods that you offer for sale from inside your Android application to your app users. You cannot use In-app Billing to sell personal services, physical goods, or anything that requires physical delivery.

Product types

The Version 3 API supports managed in-app products and subscriptions to give you flexibility in how you monetize your application. You can specify these types of products by using the Google Play Developer Console.

Managed in-app products:

When a managed in-app item is purchased by an user, Google Play stores the purchase information for each item on a per-user basis.

A lot of discussion going on which oneto be preferred, the new Model View Controller (MVC) technology or Web Forms for Microsoft based web application development technology.

Let’s compare and figure out:

Following are the advantages of ASP.NET MVC over Web Forms:

Devise is an authentication solution forRails application development. Since devise is an engine and all the files created by it are packaged inside the gem.

We need to invoke some generators in order to customize it.

Most start-ups and established enterpriseshave evidently landed to the conclusion that, Ruby on Rails is the best option for rapid and cost efficient web app development.

‘Rails’ is an open-source, multilevel web app framework that implements MVC development architecture, for the Ruby programming.

Puma is a multi-threaded high performanceweb server written in Ruby. Currently it is very popular in market as a ruby application server.

We can use it for any ruby web app that supports rack. Here, I have mentioned detailed steps to help you configure Rails application with Puma and Nginx on CentOS.

A feed is a data format which is used toprovide frequent updates and latest contents to the users.

A feed has no particular type; it could be news, latest technology, game, gadgets, sports etc. These feeds can be easily parsed into your Rails application to make it more useful for the users.

How to create dynamic sitemap in Rails?
By Srikant M.

Ideally a website should have all the pageslisted in the sitemap. However, in some cases, developers missed out to add newly created page links to the sitemap.

For this reason the sitemap is inconsistent and leads to the most common “404-not found” error in Rails app.

Devise is a flexible authentication solutionfor Rails based on Warden. Devise handles authentication across the entire stack.

It is composed of 12 modules. Here are the steps to install Devise in Rails 3.X

‘Bullet’ is a ruby gem which facilitatesthe developers by alerting when an application performs an inefficient database query, such as an N+1 query.

It is one of the most efficient tool to optimize a Rails application. This example illustrates method of optimizing a query.

“Kaminari” is a clean, powerful, customizableand sophisticated pagination for the modern web applications.

Here we have to bundle the gem and the models that are ready to be paginated and no extra configuration is required for the process.

Copyright © 2009-2014 Andolasoft. All rights reserved.