- ruby uses '#' for comments (from the sh heritage) - js and css use '//' for comments (from the C++ heritage) I'd like to discuss, to allow '//' in ruby code for comments Motivation: - writing comments is good - it's cumbersom...foonlyboy (Eike Dierks)
Hi at the ruby team, I'd like to suggest to enhance `Numeric` to provide two new class methods, which shall be: `zero` and `one`. - `Integer.zero` shall be equal to `Integer(0)` - `Float.zero` shall be equal to `Float(0)` - `BigD...foonlyboy (Eike Dierks)
I'd like to propose some sugar to Object#then There should be `Object#then_if(condition, &block)`
The block should only be applied when the condition is true, otherwise the object should be returned without applying the block. ...foonlyboy (Eike Dierks)
Hi at the ruby/stdlib, Computing with times and dates is very complicated. There are so many pitfalls lurking there. I stumbled about a seemingly simple computation, involving Date and Time try: Date.today - Time.now => Type...foonlyboy (Eike Dierks)
I have installed ruby-2.6.0 I want to try to run my rails app with the jit. How can this be done? I should try env RUBY_OPTS='--jit' Is this the way the go? The jit ist experimental, but promising, so we need to try it wherever...foonlyboy (Eike Dierks)
Date.parse('2018') ArgumentError: invalid date I did expect that to return the same as: Date.parse('2018-1-1') => Mon, 01 Jan 2018 working with dates and times is really weird and complicated, so it makes sense to be strict wit...foonlyboy (Eike Dierks)
I fully agree with Martin that this is one of the most annoying problems. I used ruby -w on my failing file and it told me (which was helpful) ~~~ 333: warning: mismatched indentations at 'end' with 'if' at 332 523: warning: mism...foonlyboy (Eike Dierks)