Common issues with CSV parsing and solutions to them
Fixing performance issues Problem: you are parsing a large CSV file, and it takes a lot of time to process […]
Fixing performance issues Problem: you are parsing a large CSV file, and it takes a lot of time to process […]
RSpec installation RSpec is available as a gem, but it’s a meta-gem, which means that it depends on other gems. […]
You can easily take down your database with not properly designed transaction When you wrap the code inside the transaction […]
The way the includes method work in Active Record is one of the most common questions during interviews, yet many […]
Basic usageEmployee = Struct.new(:first_name, :last_name)employee = Employee.new(“John”, “Doe”)employee.first_name # => “John”employee.last_name # => “Doe”As you can see, it behaves like […]
Use Rails magic to speed up developmentEnum is a shortcut for the enumerated term, which means a set of named […]
Implement Redis-based locking mechanism Pushing a lot of jobs into Redis queue(s) for Sidekiq to process is very common in […]
Have you ever came across a code that verifies a lot of conditions to allow for some action? In normal […]