Skip to content

solnic.codes

  • Home
  • Open Source
  • Talks
  • About
  • Contact
  • GitHub Sponsors
  • Screencasts

coercion

Be cautious with Ruby coercion methods

Posted on July 29, 2020 by solnic Blog 2

Coercion is a tricky problem to solve and it’s something we need pretty much everywhere. Whether you’re building a web application or a CLI tool, you will have to coerce values in some way. I say it’s a tricky problem because Ruby comes with many builtin coercion methods but it’s...

Continue reading...

  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
  • Facebook
  • Instagram

Top Posts

  • Fixing Ruby 2.7 compilation error on Big Sur
  • Yes, You Should Write Controller Tests!
  • TDD and ActiveRecord in Rails
  • Get Rid of That Code Smell – Duplication
  • Get Rid of That Code Smell – Primitive Obsession
  • Be cautious with Ruby coercion methods
  • The World Needs Another Post About Dependency Injection in Ruby
  • Open Source Status Update - March 2020
  • Open Source Status Update
  • 8 Things I Learned During 8 Years of Ruby and Rails

Tags

activemodel activerecord blog coercion conferences data datamapper ddd design di dry-configurable dry-rails dry-rb dry-schema dry-transformer dry-validation duck-typing elixir experimental fp github github-actions github-sponsors hanami immutability javascript jquery mapping metrics middleman mocks mutation-testing oop orm oss patterns personal programming prototype rails rant refactoring rom rom-rb rspec ruby sequel solid sponsorship sql srp stubs tdd testing transproc type-safety validation virtus

Open Source

  • dry-rb
  • rom-rb
  • Hanami

solnic.codes © 2021. All Rights Reserved.