- What is your role and responsibilities in your current project?
- Find common elements from two arrays? Without using any Ruby operator and tell me how would you write a program?
- How to find an element from an array? How it internally works?
- How to sort ruby objects based on particular object? For ex: [@user1, @user2, @user3, @user4] - Then sort it by user's salary.
- Explain MVC?
- What is the use of moving controller code to model?
- Tell me the internal flow of execution when I call some method? For ex: @object.some_method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' # gem install sinatra --no-rdoc --no-ri | |
set :port, 3000 | |
set :environment, :production | |
html = <<-EOT | |
<html><head><style> | |
#text{width:100%; font-size: 15px; padding: 5px; display: block;} | |
</style></head><body> | |
<input id="text" placeholder="Write then press Enter."/> | |
<div id="chat"></div> |
NewerOlder