petitviolet blog

    functional programming (2 posts)

    icon
    Written by petitviolet

    Empower Pattern Matching in Ruby

    2020-04-10RubyFunctional Programming
    Quick overview of pattern match in Ruby and Gems to empower it
    Ruby2.7 provides Pattern Matching feature as an experimental one. https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ I used to do pattern matching in Scala, so I'm excited to be able to use it in Ruby! tl;dr [Rstructural Gem](https://github.com/petitviolet/rstructural) what I'

    Circuit Breaker in Ruby

    2020-04-16RubyFunctional Programming
    Introduction of Circuit Breaker and RCB gem I developed
    I've developed a circuit breaker in Ruby, and published it as rcb gem in RubyGems.org. - GitHub: [petitviolet/rcb](https://github.com/petitviolet/rcb) - RubyGems: [rcb](https://rubygems.org/gems/rcb) What is CircuitBreaker? CircuitBreaker is a well-known pattern to make services stable that