wildermind has quit [Quit: Connection closed for inactivity]
user_corrupt has joined #ruby
hi everyone.. I'm going through process of installing ruby gem (jekyll) in order to support local development of github pages site (I guess I need it for bulndling???) latest thing I did was add "export PATH=$HOME/.gem/ruby/2.6.0/bin:$PATH" to .bash-profile, and I am now checking gem paths by doing "gem env".. here are the results:
note that the guessed value of the loser's score is not important. this may lead to questions about whether it is appropriate to even ask for a loser's score as a param. perhaps it is wiser to instead simply take the guessed winner and guessed winning score.
.... okay, actually the actual value of the loser's score is also unimportant. so the same idea applies to those as well.
jenrzzz has joined #ruby
actual value important for return 2 or 1
the loser, I said
of course the actual value is important for the winners.
well I was about to write some longer sentences about "some people may dislike `if A; LONG_CODE else return thing end` and prefer `return thing if !A; LONG_CODE` since then one can unindent LONG_CODE
but it looks like that has already been covered.
jenrzzz has quit [Ping timeout: 245 seconds]
jinie has joined #ruby
poontangmessiah has joined #ruby
at some point, one might also consider whether to use a ternary. although I do admit it may make the structure of the code... a bit less balanced