Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Meta programming is writing code that can modify or generate other code during runtime.
Meta programming allows for dynamic code generation and modification at runtime.
Common examples include defining methods or classes dynamically, modifying existing classes or objects, and creating DSLs.
Metaprogramming is often used in frameworks like Ruby on Rails to provide powerful abstractions and flexibility.
include is used to add instance methods to a class, while extend is used to add class methods to a class.
include is used to mix in module methods as instance methods in a class.
extend is used to mix in module methods as class methods in a class.
Example: include ModuleName adds ModuleName's instance methods to the class, while extend ModuleName adds ModuleName's class methods to the class.
Monkey patching is the practice of modifying or adding methods to existing classes or modules at runtime.
Monkey patching can be used to add functionality to third-party libraries without modifying their source code.
It can lead to unexpected behavior and conflicts if not done carefully.
Example: Adding a custom method to the String class in Ruby.
Optimizing the database involves indexing, query optimization, denormalization, and caching.
Use indexing on frequently queried columns to improve search performance.
Optimize queries by avoiding unnecessary joins and using efficient SQL queries.
Consider denormalizing data to reduce the number of joins needed for queries.
Implement caching mechanisms to store frequently accessed data in memory for faster retrieval.
Concerns in Ruby on Rails are used to group common functionality that can be shared across multiple models.
Concerns help in keeping the code DRY (Don't Repeat Yourself) by extracting reusable code into separate modules.
They are used to encapsulate shared methods, scopes, validations, callbacks, etc.
Concerns are included in models using mixins, which allow the shared functionality to be easily added to multiple classes.
...
Top trending discussions
I applied via Referral and was interviewed before Apr 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before May 2020. There were 4 interview rounds.
I applied via Referral and was interviewed before Mar 2021. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Mar 2020. There was 1 interview round.
Triggers are database objects that automatically execute in response to certain events or changes in data.
Triggers are used to enforce business rules or data integrity.
They can be used to audit changes to data.
Triggers can be set to execute before or after an event, such as an insert, update, or delete operation.
They can be defined on tables, views, or schemas.
Examples of triggers include sending an email notification ...
I appeared for an interview in Sep 2021.
I applied via Recruitment Consultant and was interviewed in Dec 2020. There were 4 interview rounds.
I applied via Naukri.com and was interviewed in Oct 2021. There was 1 interview round.
based on 1 interview
Interview experience
based on 2 reviews
Rating in categories
Software Developer
3
salaries
| ₹1.2 L/yr - ₹9.5 L/yr |
TCS
Accenture
Wipro
Cognizant