RubyConf 2022: Never again without a contract: dry-validation by Espartaco Palma

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=_lMw7guragc



Duration: 28:55
53 views
1


The same as you shouldn't work without a contract, our systems should accept external inputs without one, a written, clear and enforceable one. Define the structure & expected payload being aware of their schema, structure & types. Using dry-schema or dry-validation this part is a matter of a few lines of codes covering most of the cases you may find with the cherry-on-top: error handling out-of-the-box and if this not enough with optional pattern matching for results.




Other Videos By Confreaks


2023-03-07RubyConf 2022: Improving the development experience with language servers by Vinicius Stock
2023-03-07RubyConf 2022: The Power of 'No' by Glenn Harmon
2023-03-07RubyConf 2022: RSpec: The Bad Parts by Caleb Hearth
2023-03-07RubyConf 2022: Working Together: Pairing as Senior and Junior Developers by Kelly Ryan
2023-03-07RubyConf 2022: Helping Redistrict California with Ruby by Jeremy Evans
2023-03-07RubyConf 2022: From beginner to expert, and back again by Michael Toppa
2023-03-07RubyConf 2022: In Defense of Ruby Metaprogramming By Noel Rappin
2023-03-07RubyConf 2022: Splitting: the Crucial Optimization for Ruby Blocks by Benoit Daloze
2023-03-07RubyConf 2022: Ruby Lambdas by Keith Bennett
2023-03-07RubyConf 2022: Everything a Microservice: The Worst Possible Intro to dRuby by Kevin Kuchta
2023-03-07RubyConf 2022: Never again without a contract: dry-validation by Espartaco Palma
2023-03-07RubyConf 2022: Don't @ me! Faster Instance Variables with Object Shapes by Aaron Patterson
2023-03-07RubyConf 2022: scip-ruby - A Ruby indexer built with Sorbet by Varun Gandhi
2023-03-07RubyConf 2022: Keynote by Suzan Bond
2023-03-07RubyConf 2022: I'm in love with Mermaid by Carolyn Cole
2023-03-07RubyConf 2022: Data indexing with RGB (Ruby, Graphs and Bitmaps) by Benjamin Lewis
2023-03-07RubyConf 2022: How music works, using Ruby Thijs Cadier
2023-03-07RubyConf 2022: Staff Engineer: “Here be dragons” by Alexandre Terrasa
2023-03-07RubyConf 2022: 1.5 is the Midpoint Between 0 and Infinity by Peter Zhu
2023-03-07RubyConf 2022: Simulated Annealing: The Most Metal Algorithm Ever 🤘 by Chris Bloom
2023-03-07ubyConf 2022: The Magnitude 9.1 Meltdown at Fukushima by Nickolas Means



Tags:
Ruby
RubyConf
Ruby on Rails
Ruby Language
Ruby Friends
Ruby Gems