Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created July 3, 2019 20:36
Show Gist options
  • Select an option

  • Save Heavyblade/de6400b8e371b23d006f8755de5015c8 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/de6400b8e371b23d006f8755de5015c8 to your computer and use it in GitHub Desktop.
ruby_questions.rb
Ruby Interview Questions
Ruby
What is a class?
What is an object?
How is the method lookup performed in Ruby? ***
What's the purpose of method missing and how does it work? Tiene la idea
How do you support multi inheritance in Ruby?
What's the difference between include and extend?
Difference between private and protected method?
Why would you use a lambda or a proc? Explain the differences OK
What's duck typing? *****
What are the disadvantages of Ruby compared to other languages?
How do you manage private gems in some project?
What is a PORO? OK
What is the difference between == and ===
What is Enumerable in Ruby? What do you use for? OK
Difference between map and each? OK
Why would you use freeze in Ruby? OK
Rails
What is RACK? OK
What do you know about HTTP2? ****
What's the purpose of strong parameters? OK
How are the assets managed in Rails?
What type of cache do you know or have you used? ***
What is ActionController?
How does Active Record work?
What is a scope and what's the difference with a Instance method or class method?
What is the difference between optimistic and pessimistic locking *****
What is the difference between SQL injection and CSS injection? ****
Why do we use HTTPS over HTTP?
General
What is a code smell?
Why you should avoid fat controllers? How do you refactor that?
AWS / Lambda
What are the pros and cons of serverless?
From the web perspective how do you connect lambda with the external world ?
How your lambda function can access your other aws resources ?
How do you troubleshoot & debug your lambda code?
Capybara
Capybara supports javascript?
What is a driver in capybara?
Can you access to any page using Capybara?
What is a headless browser?
Capybara can inject javascript?
Which are the matching strategies that Capybara uses?
CSS
What are the advantages of CSS3?
What is Flex? ***
Situations
* Let's say you are building a bet system where odds changes at any time, how would you implement it?
* Your database has 200 million of rows in one table, how would you add a column there? What strategy would you implement it?
* Why would you recommend Rails over Java?
* You need to update and perform some calculations in a column of 200 million of clients, what would you do it?
* If you have a betting system, how would you handle race conditions?
* Your app works 24/7, how do you handle the databases changes?
* You need to integrate data from CSV files, SQL Server database, XML files into a single table in your rails app, what would you do? **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment