mikegee (Michael Gee)
- Login: mikegee
- Email: michaelpgee@gmail.com
- Registered on: 10/06/2014
- Last sign in: 03/13/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 0 | 1 |
Activity
06/04/2019
-
02:29 PM Ruby Feature #15897: `it` as a default block parameter
- > RSpec won't break because their "it" requires an argument
Unfortunately this is not accurate. RSpec has a shorthand style like this:
`subject { fortytwo }
it { is_expected.to eq 42 }`
11/29/2017
-
02:42 PM Ruby Feature #14136: Implement #empty? on more classes
- There seems to be some confusion about what I'm asking for here. I know how to use these classes to make my code work. I'm not asking for help using the existing methods.
I am proposing that all classes that implement `#size` or `#len... -
12:34 AM Ruby Feature #14136: Implement #empty? on more classes
- Sorry, that Rubocop issue does have a bunch of unrelated discussion. I should have summarized the parts I was referring to. Thanks for your feedback.
The discussion began because a user reported Rubocop complaining about this code:
...
11/28/2017
-
03:12 PM Ruby Feature #14136 (Open): Implement #empty? on more classes
- Hi Ruby Friends!
Rubocop prefers `#empty?` over `length == 0` and `size == 0`, which is great for `String`, `Array`, `Hash`, etc. It would be nice if more classes implemented `#empty?` for consistency.
See related discussion at htt...
08/08/2017
-
03:01 PM Ruby Feature #13784: Add Enumerable#filter as an alias of Enumerable#select
- I prefer not adding this alias. I understand that it is beneficial for people familiar with other languages that have a "filter" function like this, but I believe "filter" is confusing for people without that familiarity.
The word "fi...
10/06/2014
-
01:46 PM Ruby Feature #10320: require into module
- So Wieso wrote:
> ~~~ruby
> ...
I don't like changing `require` with one argument to mean something else. It would break too much legacy code.
If you want to require a feature into your current namespace how about this:
~~~ruby
...