Posts Tagged “ruby”
-
Float division by 0 in not always Infinity
1.0 / 0.0 #=> Infinity, but 0.0 / 0.0 #=> NaN
-
Why you should probably avoid mixins
Mixins can be dangerous in many cases, avoid them if you can
-
Writing Ruby gem in Rust
How to integrate Rust with Ruby
-
I18n for data in your models
How to store data in multiple languages
-
Resident eval - code: Ruby. Survival guide
Different methods to eval ruby code
-
Improve console print debugging experience
Improving console print debugging
-
DRY with_options
ActiveSupport's with_options helps you keep classes DRY
-
Ensure you understand ensure
Ruby's ensure sometimes may lead to not obvious behavior
-
Using service objects with CRUD interface, the smart way
User CRUD interface with your domain objects with crud_responder gem
-
CRUD interface for service objects
Embrace CRUD interface to all of your domain objects