Posts by dblack@ruby.social
 (DIR) Post #APu4XCqA5GP4td9aRU by dblack@ruby.social
       2022-11-23T18:19:53Z
       
       0 likes, 0 repeats
       
       Hey @james -- it's been a while! (Since I've seen you, I mean, but also since I started using Ruby, come to think of it :-)
       
 (DIR) Post #AQ7yLu4NeYbnyzTEm0 by dblack@ruby.social
       2022-11-30T11:13:16Z
       
       0 likes, 1 repeats
       
       I retired in January... BUT... I am in fact looking for part-time / short-term / consulting work. Development, technical writing, training, code review, project planning -- I'm open to suggestions and my schedule is pretty flexible. I'm looking for a maximum of around 20 hours per week, but that could vary depending on other things like duration of project. Thanks for any ideas or leads!
       
 (DIR) Post #AQ89GiSiTtA41xaBUW by dblack@ruby.social
       2022-11-30T12:29:59Z
       
       0 likes, 0 repeats
       
       @postmodern I'm a little late to the party but I'm curious how people would suggest testing this (any implementation), without getting into a prove-the-negative situation.
       
 (DIR) Post #AQ89Giv4mRqXRuqphA by dblack@ruby.social
       2022-11-30T12:56:49Z
       
       0 likes, 0 repeats
       
       @postmodern Maybe do a three-character string several thousand times? (I seem to be in a brute force mood this morning but I'm not sure how else one would test it never coming up with the same string, except maybe by stubbing some built-in string methods.)
       
 (DIR) Post #AQ89SC3qm0KR11QNaC by dblack@ruby.social
       2022-11-30T13:21:00Z
       
       0 likes, 0 repeats
       
       @james @postmodern I remember discussing with Gregory Brown the matter of how to test that a class modeling a deck of cards successfully shuffled the deck. My feeling was that if the deck ever came back in the same order, that was evidence that the shuffle method wasn't working. Greg made the point that it was (though barely) possible for a shuffle to return the same order. I don't remember any particular resolution but it was an interesting discussion.