Live data from Hacker News

Viewing profile — ohbarye

ohbarye

HN member
Joined
Sat, Jan 12, 2019, 5:00 PM UTC
HN karma
88
Public activity
18 items

About ohbarye

No profile information was provided.

Recent public activity

  1. comment
    Comment #40456307

    It's very basic content though, here's the slides of my presentation at RubyKaigi 2024. This also includes the PBT gems's explanations. https://speakerdeck.com/ohbarye/unlocking-po…

  2. comment
    Comment #40454389

    I love seeing people suggest clever names I couldn't have thought of.

  3. comment
    Comment #40454339

    Good point. There's already such a project to run PBT based on RBS. I'm also keeping an eye on this. https://github.com/ksss/raap

  4. comment
    Comment #40454315

    Wow, I didn't know about them. Thanks for letting me know!

  5. comment
    Comment #40454261

    Yeah, the easiest way is to generate attributes and instantiate any Rails model like the one below: Pbt.assert do Pbt.property(name: Pbt.printable_string, age: Pbt.integer(min: 0, …

  6. comment
    Comment #40450935

    I think there are usually three actions a programmer can take when PBT fails. - Create a test case that doesn't depend on PBT as you suggest. - Fix the production code being tested…

  7. comment
    Comment #40450876

    >yes, because you're changing the order in which the random draws are interpreted. But this isn't a problem in practice because you generally aren't changing the generator in the m…

  8. comment
    Comment #40450847

    I can really empathize. Hope the Ruby ecosystem gets more compatible with Ractor.

  9. comment
    Comment #40450841

    Thank you. In my opinion, PBT should be used in combination with example-based testing. Besides, since example-based testing cases account for the majority of tests, I think it's r…

  10. comment
    Comment #40442432

    Thank you. I hope the gem will make your testing life happier!

  11. comment
    Comment #40442420

    The answer to both questions is yes. This gem doesn't aim to reimplement a testing framework. It can also be considered just an assertion. You can use this alongside any testing fr…

  12. story
    Show HN: PBT – A property-based testing library for Ruby

    Hello HN, I introduce a property-based testing tool for Ruby. Ruby's ease of test-writing and rich ecosystem are widely acclaimed. However, property-based testing is not as widely …

  13. comment
    Comment #35917742

    Maybe not only 100 lines of code though, I think of Code Crafters. https://github.com/codecrafters-io/build-your-own-x

  14. comment
    Comment #34067944

    This comment describes well. https://github.com/rails/rails/pull/45553#issuecomment-11795...

  15. story
  16. story
  17. story
  18. comment
    Comment #18892046

    That's new to me even though I'm Japanese. lol