Ruby Engineer
BackendPosted 3 days agovia Himalayas, a remote job board
- Work type
- RemoteIn India, Germany and Singapore
- Experience
- 1–2 years
- Pay
- Not listedUsually ₹6.2 LPABackend, median at 1–4 years, in India (Payscale)
- Posted
- 3 days ago
Skills it mentions
Add your skills to see which ones you have.
About the job
Originally posted on Himalayas
Interested?Ruby Engineer at SME Careers
Apply on Himalayas (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Ruby, Ruby on Rails and LLMs and GenAI
Interview questions for this job
For the skills the ad mentions: Ruby, Ruby on Rails and LLMs and GenAI.
What does map(&:name) mean in Ruby?Ruby
It's shorthand for
tags.map(&:name.to_proc).join(' ')If
foois an object with ato_procmethod, then you can pass it to a method as&foo, which will callfoo.to_procand use that as the method's block.The
Symbol#to_procmethod was originally added by ActiveSupport but has been integrated into Ruby 1.8.7. This is its implementation:class Symbol def to_proc Proc.new do |obj, *args| obj.send self, *args end end endFrom Stack Overflow: asked by collimarco, answered by Josh Lee (CC BY-SA 3.0)
Difference between string and text in rails?Ruby on Rails
The difference relies in how the symbol is converted into its respective column type in query language.
with MySQL :string is mapped to VARCHAR(255)
:string | VARCHAR | :limit => 1 to 255 (default = 255) :text | TINYTEXT, TEXT, MEDIUMTEXT, or LONGTEXT2 | :limit => 1 to 4294967296 (default = 65536)Reference:
When should each be used?
As a general rule of thumb, use
:stringfor short text input (username, email, password, titles, etc.) and use:textfor longer expected input such as descriptions, comment content, etc.From Stack Overflow: asked by Mo., answered by TJ Koblentz (CC BY-SA 4.0)
Explain the pros and cons of semantic chunking.LLMs and GenAI
Semantic chunking groups text based on meaning, creating coherent chunks that enhance retrieval relevance and context preservation.
Pros: It aligns chunks with natural topic shifts, improving the quality of retrieved content for complex queries, and reduces information loss across boundaries.
Cons: It is computationally intensive, requiring embedding models. Additionally, it may struggle with highly complex or poorly structured documents where semantic boundaries are unclear.
☕ Support the Author
From RAG Interview Questions and Answers Hub (Apache 2.0)
Why use Ruby's attr_accessor, attr_reader and attr_writer?Ruby
You may use the different accessors to communicate your intent to someone reading your code, and make it easier to write classes which will work correctly no matter how their public API is called.
class Person attr_accessor :age ... endHere, I can see that I may both read and write the age.
class Person attr_reader :age ... endHere, I can see that I may only read the age. Imagine that it is set by the constructor of this class and after that remains constant. If there were a mutator (writer) for age and the class were written assuming that age, once set, does not change, then a bug could result from code calling that mutator.
But what is happening behind the scenes?
If you write:
attr_writer :ageThat gets translated into:
def age=(value) @age = value endIf you write:
attr_reader :ageThat gets translated into:
def age @age endIf you write:
attr_accessor :ageThat gets translated into:
def age=(value) @age = value end def age @age endKnowing that, here's another way to think about it: If you did not have the attr_... helpers, and had to write the accessors yourself, would you write any more accessors than your class needed? For example, if age only needed to be read, would you also write a method allowing it to be written?
From Stack Overflow: asked by Saturn, answered by Wayne Conrad (CC BY-SA 3.0)
Can Rails Routing Helpers (i.e. mymodel_path(model)) be Used in Models?Ruby on Rails
In Rails 3 and higher:
Rails.application.routes.url_helperse.g.
Rails.application.routes.url_helpers.posts_path Rails.application.routes.url_helpers.posts_url(host: 'example.com')Related documentation: ActionDispatch::Routing::UrlFor
From Stack Overflow: asked by Aaron Longwell, answered by Paul Horsfall (CC BY-SA 4.0)
Why should we hire you?Behavioural
The strengths employers look for will depend on the job role. They may ask you questions like:
- what are your main strengths?
- why should we hire you?
You can use specific examples to highlight your strengths, such as:
- communication - to show you get on with others
- problem solving - to show that you can find solutions
- enthusiasm - to show that you have a positive attitude to work
- flexibility - to show that you can adapt to different ways of working
Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Senior Backend EngineerWeekday, Delhi NCR, on-siteToday
- Backend DeveloperAarvexa, Remote in India +1Today
- Senior Software Engineer - PA183ZoomInfo Technologies LLC, Bengaluru, on-site2 days ago
- Senior Analyst - Actuarial ( Python Developer) Gurgaon (3 to 4 years exp in Automation) - 5 days WFOKipi.bi, Delhi NCR, on-site2 days ago
More like this: Backend developer jobs in India (880) and Remote Backend developer jobs in India (305)



