What is the correct way to handle a ZeroDivisionError in Ruby?
Anonymous Quiz
49%
using rescue
8%
using raise
37%
using begin and rescue
6%
using catch
What is an Event Store in the context of event-driven architecture?
Anonymous Quiz
15%
A database for storing user data
29%
A tool to manage application state changes
46%
A system for capturing and replaying events
9%
A service for handling HTTP requests
What method in Rails controllers is used to handle HTTP GET requests for retrieving data?
Anonymous Quiz
4%
get_data
40%
show
42%
index
14%
fetch
What is the name of the Rails callback that runs before a model's destroy method?
Anonymous Quiz
5%
before_save
2%
after_commit
2%
around_validation
91%
before_destroy
❤1
What is the correct way to create a Thread in Ruby?
Anonymous Quiz
85%
Thread.new { puts 'Hello' }
9%
thread = new Thread('puts', 'World')
4%
Thread.start { puts 'Ruby' }
1%
new Thread { puts 'Concurrency' }
❤1
Forwarded from Android books channel🤖
[EN] For lovers of 2000s nostalgia:
[RU] Для любителей ностальгии 2000-х:
https://github.com/USoft-History/J2ME-Articles/
[RU] Для любителей ностальгии 2000-х:
https://github.com/USoft-History/J2ME-Articles/
What pattern allows a system to handle more users by adding more servers?
Anonymous Quiz
29%
Sharding
3%
Caching
24%
Replication
44%
Load Balancing
What is a common practice to prevent XSS attacks in web development?
Anonymous Quiz
15%
Use HTTPS only
24%
Avoid using external scripts
60%
Sanitize user inputs
1%
Disable JavaScript
What is the primary purpose of using caching in HTTP requests?
Anonymous Quiz
41%
Speed up page load times
1%
Increase security by encrypting data
58%
Reduce server load by storing frequently accessed data
0%
Decrease website traffic
What is the purpose of a Rails middleware in an application?
Anonymous Quiz
86%
To handle HTTP requests and responses
6%
To manage database connections
4%
To define routes for URLs
4%
To encrypt sensitive data
What Ruby method is used to free memory occupied by an object?
Anonymous Quiz
15%
nil?
31%
delete
33%
clear
21%
free
👎5