Tactics for optimizing Rails app performance
You've built and deployed your app, and you're now starting to experience heavier traffic as it gains traction in the market. Your cloud servers will be experiencing a heavier load than in the past, perhaps leading to poor performance.
Ruby Suture Gem
A refactoring tool for Ruby, designed to make it safe to change code you don't confidently understand. In fact, changing untrustworthy code is so fraught, Suture hopes to make it safer to completely reimplement a code path.
What is time complexity? How it effects the speed of the programs?
The time complexity of the algorithm specifies that the total tie taken to run the complete program or the algorithm. The Time Complexity is generally expressed in Big-O notations.
7 algorithms and data structures every programmer must know
In programmers life algorithms and data structures is most important subject if they want to go out in the programming world and make some bucks.
Ruby has new debugger that can discover bugs in a minute
Researchers from MIT have written a new code that can spot security bugs from the Ruby on Rails application in less than a minute.Called Space, this new code debugger is the subject of a research paper that will be presented at the International Conference on Software Engineering, in May.
Ruby on Rails tutorial to send email
Action Mailer is the Rails components that enable application to send and receive email. In this chapter, we will see how to send an emails using Rails. Let’s start creating an email project using the following commands.
Rails 5 disables autoloading after booting the app in production
Autoloading is not thread-safe and hence we need to make sure that all constants are loaded when application boots. The concept of loading all the constants even before they are actually needed is called “Eager loading”. In a way it is opposite of “Autoloading”.
Good Ruby Idiom: and/or operators
Any tutorial and book will teach you there are two sets of similar operators in Ruby:
|for bit operations, but that’s not the case today). But typical tutorial will not provide further explanation why we need both of those pairs.
Tricks with RSpec components outside RSpec
In this short post I’d like to show how some of RSpec components (matchers and expectations) can be used for a greater good outside your tests. Like in your normal everyday scripts.
Object Orientation in Ruby and Elixir
When talking about mainstream programming languages, we often put them into two major buckets: object oriented programming and functional programming. There are other programming paradigms but we act like OOP and FP are oil and water. In this article I'll be blurring the lines of these two paradigms.