# simple operations

**URL:** <https://rubytalk.org/t/simple-operations/75577>\
**Category:** ruby-talk\
**Created:** [27 September 2021 12:53 UTC](https://rubytalk.org/t/simple-operations/75577 "2021-09-27T12:53:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Die\_Optimisten](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Die\_Optimisten](https://rubytalk.org/u/Die_Optimisten)\
**Post date:** [27 September 2021 12:53 UTC](https://rubytalk.org/t/simple-operations/75577/1 "2021-09-27T12:53:22Z")

</div>

Hello,

Another example - perhaps somebody could fix that (many errors have that  
source!)

Date.today

Date.today +1 # no error, but wrong result!

# Maybe this has been written for women, having calculated their age 😉

Opti

---

<div class="post-metadata">

**Author:** ![Xavier\_Noria](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/xavier_noria/32/1867_2.png) [@Xavier\_Noria](https://rubytalk.org/u/Xavier_Noria)\
**Post date:** [27 September 2021 13:51 UTC](https://rubytalk.org/t/simple-operations/75577/2 "2021-09-27T13:51:14Z")

</div>

Hello,

> Another example - perhaps somebody could fix that (many errors have that  
> source!)
> 
> Date.today
> 
> Date.today +1 # no error, but wrong result!

Look at the docs

&nbsp;&nbsp;&nbsp;&nbsp;[Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-i-2B)

Which is the wrong result you get?

> **···**
>
> On Mon, Sep 27, 2021 at 2:54 PM Die Optimisten \<inform@die-optimisten.net\> wrote:

---

<div class="post-metadata">

**Author:** ![Stefano\_Crocco](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Stefano\_Crocco](https://rubytalk.org/u/Stefano_Crocco)\
**Post date:** [27 September 2021 13:56 UTC](https://rubytalk.org/t/simple-operations/75577/3 "2021-09-27T13:56:47Z")

</div>

Which kind of wrong result do you get? For me (ruby 2.6.8), it seems to work  
as expected:

Date.today.strftime  
=\> 2021-09-27  
(Date.today+1).strftime  
=\> 2021-09-28

Stefano

> **···**
>
> On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:
> 
> > Hello,
> > 
> > Another example - perhaps somebody could fix that (many errors have that  
> > source!)
> > 
> > Date.today
> > 
> > Date.today +1 # no error, but wrong result!
> > 
> > # Maybe this has been written for women, having calculated their age 😉
> > 
> > Opti

---

<div class="post-metadata">

**Author:** ![Gerard\_Fowley](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerard_fowley/32/2085_2.png) [@Gerard\_Fowley](https://rubytalk.org/u/Gerard_Fowley)\
**Post date:** [27 September 2021 14:15 UTC](https://rubytalk.org/t/simple-operations/75577/4 "2021-09-27T14:15:09Z")

</div>

That's interesting, I think you mean the difference between a space makes  
( +1 vs. + 1 ):

[14] pry(main)\> Date.today

=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
[15] pry(main)\> Date.today +1

=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
[16] pry(main)\> Date.today + 1

=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>

(btw: please don't make sexist comments, it's discouraging to many people.)

-gf-

> **···**
>
> On Mon, Sep 27, 2021 at 8:53 AM Die Optimisten \<inform@die-optimisten.net\> wrote:
> 
> > Hello,
> > 
> > Another example - perhaps somebody could fix that (many errors have that  
> > source!)
> > 
> > Date.today
> > 
> > Date.today +1 # no error, but wrong result!
> > 
> > # Maybe this has been written for women, having calculated their age 😉
> > 
> > Opti
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Frank\_J\_Cameron](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Frank\_J\_Cameron](https://rubytalk.org/u/Frank_J_Cameron)\
**Post date:** [27 September 2021 14:21 UTC](https://rubytalk.org/t/simple-operations/75577/5 "2021-09-27T14:21:57Z")

</div>

Parsing depends on the spaces:

Adding "one":

Date.today+1  
Date.today\_+\_1

vs

Argument "one":

Date.today\_+1  
Date.today\_1  
Date.today(+1)  
Date.today(1)

irb(main):013:0\> (Date.today).strftime  
=\> "2021-09-27"  
irb(main):014:0\> (Date.today+1).strftime  
=\> "2021-09-28"

irb(main):015:0\> (Date.today +1).strftime  
=\> "2021-09-27"  
irb(main):016:0\> (Date.today(+1)).strftime  
=\> "2021-09-27"  
irb(main):017:0\> (Date.today(1)).strftime  
=\> "2021-09-27"  
irb(main):018:0\> (Date.today 1).strftime  
=\> "2021-09-27"

$ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today +1")'  
s(:send,  
&nbsp;&nbsp;s(:const, nil, :Date), :today,  
&nbsp;&nbsp;s(:int, 1))

$ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today+1")'  
s(:send,  
&nbsp;&nbsp;s(:send,  
&nbsp;&nbsp;&nbsp;&nbsp;s(:const, nil, :Date), :today), :+,  
&nbsp;&nbsp;s(:int, 1))

> **···**
>
> On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it\> wrote:
> 
> > On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:
> > 
> > > Date.today  
> > > Date.today +1 # no error, but wrong result!
> > 
> > Which kind of wrong result do you get? For me (ruby 2.6.8), it seems to work  
> > as expected:
> > 
> > Date.today.strftime  
> > =\> 2021-09-27  
> > (Date.today+1).strftime  
> > =\> 2021-09-28

---

<div class="post-metadata">

**Author:** ![Gerard\_Fowley](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerard_fowley/32/2085_2.png) [@Gerard\_Fowley](https://rubytalk.org/u/Gerard_Fowley)\
**Post date:** [27 September 2021 14:42 UTC](https://rubytalk.org/t/simple-operations/75577/6 "2021-09-27T14:42:25Z")

</div>

> **[Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)**
>
> Class : Date - Ruby 3.0.2

The optional arg for Date.today(start=Date::ITALY) specifies a calendar  
start date to use for calculation of today's date.

[43] pry(main)\> Date.today()  
=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
[44] pry(main)\> Date.today(Date::ITALY)  
=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
[45] pry(main)\> Date.today(Date::JULIAN)  
=\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>

# these are the same

[48] pry(main)\> Date.today +1  
=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
[49] pry(main)\> Date.today(1)  
=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>

# these are the same

[51] pry(main)\> Date.today + 1  
=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
[52] pry(main)\> Date.today() + 1  
=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>

-gf-

> **···**
>
> TIL: Dates are complicated, and even good tools have sharp edges.
> 
> On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \<fjc@fastmail.net\> wrote:
> 
> > On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it\> wrote:  
> > \> On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > \>\> Date.today  
> > \>\> Date.today +1 # no error, but wrong result!  
> > \>  
> > \> Which kind of wrong result do you get? For me (ruby 2.6.8), it seems to  
> > work  
> > \> as expected:  
> > \>  
> > \> Date.today.strftime  
> > \> =\> 2021-09-27  
> > \> (Date.today+1).strftime  
> > \> =\> 2021-09-28
> > 
> > Parsing depends on the spaces:
> > 
> > Adding "one":
> > 
> > Date.today+1  
> > Date.today\_+\_1
> > 
> > vs
> > 
> > Argument "one":
> > 
> > Date.today\_+1  
> > Date.today\_1  
> > Date.today(+1)  
> > Date.today(1)
> > 
> > irb(main):013:0\> (Date.today).strftime  
> > =\> "2021-09-27"  
> > irb(main):014:0\> (Date.today+1).strftime  
> > =\> "2021-09-28"
> > 
> > irb(main):015:0\> (Date.today +1).strftime  
> > =\> "2021-09-27"  
> > irb(main):016:0\> (Date.today(+1)).strftime  
> > =\> "2021-09-27"  
> > irb(main):017:0\> (Date.today(1)).strftime  
> > =\> "2021-09-27"  
> > irb(main):018:0\> (Date.today 1).strftime  
> > =\> "2021-09-27"
> > 
> > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today +1")'  
> > s(:send,  
> > &nbsp;&nbsp;s(:const, nil, :Date), :today,  
> > &nbsp;&nbsp;s(:int, 1))
> > 
> > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today+1")'  
> > s(:send,  
> > &nbsp;&nbsp;s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;s(:const, nil, :Date), :today), :+,  
> > &nbsp;&nbsp;s(:int, 1))
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Gerard\_Fowley](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerard_fowley/32/2085_2.png) [@Gerard\_Fowley](https://rubytalk.org/u/Gerard_Fowley)\
**Post date:** [27 September 2021 14:45 UTC](https://rubytalk.org/t/simple-operations/75577/7 "2021-09-27T14:45:19Z")

</div>

I forgot to add, the invalid start day of 1 is silently being ignored...  
that part seems problematic to me.

> **···**
>
> On Mon, Sep 27, 2021 at 10:42 AM Gerard Fowley \<gerard.fowley@iqeo.net\> wrote:
> 
> > [Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)
> > 
> > The optional arg for Date.today(start=Date::ITALY) specifies a calendar  
> > start date to use for calculation of today's date.
> > 
> > [43] pry(main)\> Date.today()  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [44] pry(main)\> Date.today(Date::ITALY)  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [45] pry(main)\> Date.today(Date::JULIAN)  
> > =\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>
> > 
> > # these are the same
> > 
> > [48] pry(main)\> Date.today +1  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [49] pry(main)\> Date.today(1)  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>
> > 
> > # these are the same
> > 
> > [51] pry(main)\> Date.today + 1  
> > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
> > [52] pry(main)\> Date.today() + 1  
> > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>
> > 
> > TIL: Dates are complicated, and even good tools have sharp edges.
> > 
> > -gf-
> > 
> > On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \<fjc@fastmail.net\> \> wrote:
> > 
> > > On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it\> wrote:  
> > > \> On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > > \>\> Date.today  
> > > \>\> Date.today +1 # no error, but wrong result!  
> > > \>  
> > > \> Which kind of wrong result do you get? For me (ruby 2.6.8), it seems to  
> > > work  
> > > \> as expected:  
> > > \>  
> > > \> Date.today.strftime  
> > > \> =\> 2021-09-27  
> > > \> (Date.today+1).strftime  
> > > \> =\> 2021-09-28
> > > 
> > > Parsing depends on the spaces:
> > > 
> > > Adding "one":
> > > 
> > > Date.today+1  
> > > Date.today\_+\_1
> > > 
> > > vs
> > > 
> > > Argument "one":
> > > 
> > > Date.today\_+1  
> > > Date.today\_1  
> > > Date.today(+1)  
> > > Date.today(1)
> > > 
> > > irb(main):013:0\> (Date.today).strftime  
> > > =\> "2021-09-27"  
> > > irb(main):014:0\> (Date.today+1).strftime  
> > > =\> "2021-09-28"
> > > 
> > > irb(main):015:0\> (Date.today +1).strftime  
> > > =\> "2021-09-27"  
> > > irb(main):016:0\> (Date.today(+1)).strftime  
> > > =\> "2021-09-27"  
> > > irb(main):017:0\> (Date.today(1)).strftime  
> > > =\> "2021-09-27"  
> > > irb(main):018:0\> (Date.today 1).strftime  
> > > =\> "2021-09-27"
> > > 
> > > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today +1")'  
> > > s(:send,  
> > > &nbsp;&nbsp;s(:const, nil, :Date), :today,  
> > > &nbsp;&nbsp;s(:int, 1))
> > > 
> > > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today+1")'  
> > > s(:send,  
> > > &nbsp;&nbsp;s(:send,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;s(:const, nil, :Date), :today), :+,  
> > > &nbsp;&nbsp;s(:int, 1))
> > > 
> > > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![hmdne](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hmdne](https://rubytalk.org/u/hmdne)\
**Post date:** [27 September 2021 15:05 UTC](https://rubytalk.org/t/simple-operations/75577/8 "2021-09-27T15:05:38Z")

</div>

This is not related to the Date at all. It's a parser thing. Ruby is a language which takes a language syntax to its limit and beyond. It's one of not many with a very special meaning given to whitespaces.

[user@localhost sprockets]# ruby-parse -e 'x + 1'  
(send  
Â (send nil :x) :+  
Â (int 1))  
# ie: equivalent to x() + 1  
[user@localhost sprockets]# ruby-parse -e 'x +1'  
(send nil :x  
Â (int 1))  
# ie. equivalent to x(+1)  
[user@localhost sprockets]#

(note: ruby-parse is actually a part of an alternative implementation of a Ruby parser: [GitHub - whitequark/parser: A Ruby parser.](https://github.com/whitequark/parser) )

> **···**
>
> On 9/27/21 4:42 PM, Gerard Fowley wrote:
> 
> > [Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)
> > 
> > The optional arg for Date.today(start=Date::ITALY) specifies a calendar start dateto use for calculation of today's date.
> > 
> > [43] pry(main)\> Date.today()  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [44] pry(main)\> Date.today(Date::ITALY)  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [45] pry(main)\> Date.today(Date::JULIAN)  
> > =\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>
> > 
> > # these are the same  
> > [48] pry(main)\> Date.today +1  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > [49] pry(main)\> Date.today(1)  
> > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>
> > 
> > # these are the same
> > 
> > [51] pry(main)\> Date.today + 1  
> > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
> > [52] pry(main)\> Date.today() + 1  
> > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>
> > 
> > TIL: Dates are complicated, and even good tools have sharp edges.
> > 
> > -gf-
> > 
> > On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \<fjc@fastmail.net \> \<mailto:fjc@fastmail.net\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it \> \<mailto:stefano.crocco@alice.it\>\> wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> On lunedÃ¬ 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today +1Â Â # no error, but wrong result!  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> Which kind of wrong result do you get? For me (ruby 2.6.8), it  
> > &nbsp;&nbsp;&nbsp;&nbsp;seems to work  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> as expected:  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> Date.today.strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-27  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> (Date.today+1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-28
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Parsing depends on the spaces:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Adding "one":
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today+1  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+\_1
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;vs
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Argument "one":
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+1  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today\_1  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today(+1)  
> > &nbsp;&nbsp;&nbsp;&nbsp;Date.today(1)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):013:0\> (Date.today).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):014:0\> (Date.today+1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-28"
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):015:0\> (Date.today +1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):016:0\> (Date.today(+1)).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):017:0\> (Date.today(1)).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;irb(main):018:0\> (Date.today 1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > &nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today +1")'  
> > &nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Â s(:const, nil, :Date), :today,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Â s(:int, 1))
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > &nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today+1")'  
> > &nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Â s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Â Â s(:const, nil, :Date), :today), :+,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Â s(:int, 1))
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<mailto:ruby-talk-request@ruby-lang.org\>?subject=unsubscribe\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Die\_Optimisten](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Die\_Optimisten](https://rubytalk.org/u/Die_Optimisten)\
**Post date:** [27 September 2021 17:02 UTC](https://rubytalk.org/t/simple-operations/75577/9 "2021-09-27T17:02:09Z")

</div>

Maybe the .today() method should test if arg == one\_of(Date.constants  
where class==Integer)  
# how to write that in a nice (short) form in Ruby-code?  
# perhaps enhance Ruby with above syntax?  
Opti

> **···**
>
> Am 27.09.21 um 16:45 schrieb Gerard Fowley:
> 
> > I forgot to add, the invalid start day of 1 is silently being  
> > ignored... that part seems problematic to me.
> > 
> > On Mon, Sep 27, 2021 at 10:42 AM Gerard Fowley \<gerard.fowley@iqeo.net \> \<mailto:gerard.fowley@iqeo.net\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;[Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;The optional arg for Date.today(start=Date::ITALY) specifies a  
> > &nbsp;&nbsp;&nbsp;&nbsp;calendar start dateto use for calculation of today's date.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;[43] pry(main)\> Date.today()  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[44] pry(main)\> Date.today(Date::ITALY)  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[45] pry(main)\> Date.today(Date::JULIAN)  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;# these are the same  
> > &nbsp;&nbsp;&nbsp;&nbsp;[48] pry(main)\> Date.today +1  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[49] pry(main)\> Date.today(1)  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;# these are the same
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;[51] pry(main)\> Date.today + 1  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[52] pry(main)\> Date.today() + 1  
> > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;TIL: Dates are complicated, and even good tools have sharp edges.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;-gf-
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \> \<fjc@fastmail.net \<mailto:fjc@fastmail.net\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it \> \<mailto:stefano.crocco@alice.it\>\> wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today +1 # no error, but wrong result!  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Which kind of wrong result do you get? For me (ruby 2.6.8),  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it seems to work  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> as expected:  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Date.today.strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-27  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> (Date.today+1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-28
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parsing depends on the spaces:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adding "one":
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today+1  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+\_1
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vs
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Argument "one":
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+1  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_1  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today(+1)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today(1)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):013:0\> (Date.today).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):014:0\> (Date.today+1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-28"
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):015:0\> (Date.today +1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):016:0\> (Date.today(+1)).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):017:0\> (Date.today(1)).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):018:0\> (Date.today 1).strftime  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today +1")'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s(:const, nil, :Date), :today,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s(:int, 1))
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today+1")'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s(:send,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s(:const, nil, :Date), :today), :+,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s(:int, 1))
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<mailto:ruby-talk-request@ruby-lang.org\>?subject=unsubscribe\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Die\_Optimisten](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Die\_Optimisten](https://rubytalk.org/u/Die_Optimisten)\
**Post date:** [27 September 2021 17:14 UTC](https://rubytalk.org/t/simple-operations/75577/10 "2021-09-27T17:14:45Z")

</div>

Hi!

> (btw: please don't make sexist comments, it's discouraging to many  
> people.)
> 
> -gf-

I have to describe this:

I think all girls would appreciate this;

I didn't write: Must have been added especially for not mentally  
overstraining (some sort of blonde) girls ( 1+1=1 !!! ["no  
contradiction allowed!"] ) -- sorry!

Opti :))

---

<div class="post-metadata">

**Author:** ![hmdne](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hmdne](https://rubytalk.org/u/hmdne)\
**Post date:** [27 September 2021 17:53 UTC](https://rubytalk.org/t/simple-operations/75577/11 "2021-09-27T17:53:34Z")

</div>

Talking about syntax (not about a possible solution, because Date is implemented in C and some of those constants are Floats; there also may be unrelated numeric constants):

one\_of is include?, like [1,2,3].include? 3

where is select, like [1,2,3].select { |i| i \> 1 }

So it could be written as:

#Â Â Â Â Â Â Â Â Â Â Â Â Â \<- const names to values ---\> \<- get only integers --------\> \<- is arg in our array? -\>  
Date.constants.map { |i| Date.const\_get(i) }.select { |i| i.is\_a? Integer }.include? arg

Or maybe shorter:

Date.constants.any? { |i| Date.const\_get(i) == arg }

As to the possible solution, IMO it should raise on invalid values.

> **···**
>
> On 9/27/21 7:02 PM, Die Optimisten wrote:
> 
> > Maybe the .today() methodÂ should test if arg == one\_of(Date.constants where class==Integer)  
> > Â Â Â Â Â Â # how to write that in a nice (short) form in Ruby-code?  
> > Â Â Â Â Â Â # perhaps enhance Ruby with above syntax?  
> > Opti
> > 
> > Am 27.09.21 um 16:45 schrieb Gerard Fowley:
> > 
> > > I forgot to add, the invalid start day of 1 is silently being ignored... that part seems problematic to me.
> > > 
> > > On Mon, Sep 27, 2021 at 10:42 AM Gerard Fowley \>\> \<gerard.fowley@iqeo.net \<mailto:gerard.fowley@iqeo.net\>\> wrote:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;[Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;\<[Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today&gt);
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;The optional arg for Date.today(start=Date::ITALY) specifies a  
> > > &nbsp;&nbsp;&nbsp;&nbsp;calendar start dateto use for calculation of today's date.
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;[43] pry(main)\> Date.today()  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[44] pry(main)\> Date.today(Date::ITALY)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[45] pry(main)\> Date.today(Date::JULIAN)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;# these are the same  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[48] pry(main)\> Date.today +1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[49] pry(main)\> Date.today(1)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;# these are the same
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;[51] pry(main)\> Date.today + 1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[52] pry(main)\> Date.today() + 1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;=\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;TIL: Dates are complicated, and even good tools have sharp edges.
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;-gf-
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \>\> \<fjc@fastmail.net \<mailto:fjc@fastmail.net\>\> wrote:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it \>\> \<mailto:stefano.crocco@alice.it\>\> wrote:  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> On lunedÃ¬ 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>\> Date.today +1Â Â # no error, but wrong result!  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Which kind of wrong result do you get? For me (ruby 2.6.8),  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it seems to work  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> as expected:  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> Date.today.strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-27  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> (Date.today+1).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\> =\> 2021-09-28
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parsing depends on the spaces:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adding "one":
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today+1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+\_1
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vs
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Argument "one":
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_+1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today\_1  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today(+1)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.today(1)
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):013:0\> (Date.today).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):014:0\> (Date.today+1).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-28"
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):015:0\> (Date.today +1).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):016:0\> (Date.today(+1)).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):017:0\> (Date.today(1)).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;irb(main):018:0\> (Date.today 1).strftime  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=\> "2021-09-27"
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today +1")'  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Â s(:const, nil, :Date), :today,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Â s(:int, 1))
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ ruby -r parser/current -e 'p  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parser::CurrentRuby.parse("Date.today+1")'  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s(:send,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Â s(:send,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Â Â s(:const, nil, :Date), :today), :+,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Â s(:int, 1))
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<mailto:ruby-talk-request@ruby-lang.org\>?subject=unsubscribe\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk)  
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;&gt);
> > > 
> > > Unsubscribe:\<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Gerard\_Fowley](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerard_fowley/32/2085_2.png) [@Gerard\_Fowley](https://rubytalk.org/u/Gerard_Fowley)\
**Post date:** [27 September 2021 17:54 UTC](https://rubytalk.org/t/simple-operations/75577/12 "2021-09-27T17:54:00Z")

</div>

I think that from a developer experience perspective, this is an  
interesting combination of parser flexibility re space and punctuation,  
method default values, and the Date.today() method's arg checking.  
FWIW Date.today does check and issue a warning about ignoring the invalid  
start value:

> <https://github.com/ruby/ruby/blob/c2ed5ab08b0f508185b4abd2d28f045616e7c7f5/ext/date/date_core.c#L3271-L3278>

#define val2sg(vsg,dsg) \  
do {\  
&nbsp;&nbsp;&nbsp;&nbsp;dsg = NUM2DBL(vsg);\  
&nbsp;&nbsp;&nbsp;&nbsp;if (!c\_valid\_start\_p(dsg)) {\  
dsg = DEFAULT\_SG;\  
rb\_warning("invalid start is ignored");\  
&nbsp;&nbsp;&nbsp;&nbsp;}\  
} while (0)

While development tooling may catch this (RuboCop ?) I am surprised this is  
not an ArgumentError exception.

Interestingly some Ruby bug tracker issues that mention Date,today have  
flirted with some combination of contributing factors but I don't see any  
that bring them all together:

> **[Search - Ruby master - Ruby Issue Tracking System](https://bugs.ruby-lang.org/projects/ruby-master/search?utf8=%E2%9C%93&scope=&q=Date.today)**
>
> Redmine

-gf-

> **···**
>
> On Mon, Sep 27, 2021 at 1:02 PM Die Optimisten \<inform@die-optimisten.net\> wrote:
> 
> > Maybe the .today() method should test if arg == one\_of(Date.constants  
> > where class==Integer)  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# how to write that in a nice (short) form in Ruby-code?  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# perhaps enhance Ruby with above syntax?  
> > Opti
> > 
> > Am 27.09.21 um 16:45 schrieb Gerard Fowley:
> > 
> > I forgot to add, the invalid start day of 1 is silently being ignored...  
> > that part seems problematic to me.
> > 
> > On Mon, Sep 27, 2021 at 10:42 AM Gerard Fowley \<gerard.fowley@iqeo.net\> \> wrote:
> > 
> > > [Class: Date (Ruby 3.0.2)](https://ruby-doc.org/stdlib-3.0.2/libdoc/date/rdoc/Date.html#method-c-today)
> > > 
> > > The optional arg for Date.today(start=Date::ITALY) specifies a calendar  
> > > start date to use for calculation of today's date.
> > > 
> > > [43] pry(main)\> Date.today()  
> > > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > [44] pry(main)\> Date.today(Date::ITALY)  
> > > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > [45] pry(main)\> Date.today(Date::JULIAN)  
> > > =\> #\<Date: 2021-09-14 ((2459485j,0s,0n),+0s,Infj)\>
> > > 
> > > # these are the same
> > > 
> > > [48] pry(main)\> Date.today +1  
> > > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>  
> > > [49] pry(main)\> Date.today(1)  
> > > =\> #\<Date: 2021-09-27 ((2459485j,0s,0n),+0s,2299161j)\>
> > > 
> > > # these are the same
> > > 
> > > [51] pry(main)\> Date.today + 1  
> > > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>  
> > > [52] pry(main)\> Date.today() + 1  
> > > =\> #\<Date: 2021-09-28 ((2459486j,0s,0n),+0s,2299161j)\>
> > > 
> > > TIL: Dates are complicated, and even good tools have sharp edges.
> > > 
> > > -gf-
> > > 
> > > On Mon, Sep 27, 2021 at 10:22 AM Frank J. Cameron \<fjc@fastmail.net\> \>\> wrote:
> > > 
> > > > On 9/27/21, Stefano Crocco \<stefano.crocco@alice.it\> wrote:  
> > > > \> On lunedì 27 settembre 2021 14:53:22 CEST Die Optimisten wrote:  
> > > > \>\> Date.today  
> > > > \>\> Date.today +1 # no error, but wrong result!  
> > > > \>  
> > > > \> Which kind of wrong result do you get? For me (ruby 2.6.8), it seems  
> > > > to work  
> > > > \> as expected:  
> > > > \>  
> > > > \> Date.today.strftime  
> > > > \> =\> 2021-09-27  
> > > > \> (Date.today+1).strftime  
> > > > \> =\> 2021-09-28
> > > > 
> > > > Parsing depends on the spaces:
> > > > 
> > > > Adding "one":
> > > > 
> > > > Date.today+1  
> > > > Date.today\_+\_1
> > > > 
> > > > vs
> > > > 
> > > > Argument "one":
> > > > 
> > > > Date.today\_+1  
> > > > Date.today\_1  
> > > > Date.today(+1)  
> > > > Date.today(1)
> > > > 
> > > > irb(main):013:0\> (Date.today).strftime  
> > > > =\> "2021-09-27"  
> > > > irb(main):014:0\> (Date.today+1).strftime  
> > > > =\> "2021-09-28"
> > > > 
> > > > irb(main):015:0\> (Date.today +1).strftime  
> > > > =\> "2021-09-27"  
> > > > irb(main):016:0\> (Date.today(+1)).strftime  
> > > > =\> "2021-09-27"  
> > > > irb(main):017:0\> (Date.today(1)).strftime  
> > > > =\> "2021-09-27"  
> > > > irb(main):018:0\> (Date.today 1).strftime  
> > > > =\> "2021-09-27"
> > > > 
> > > > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today  
> > > > +1")'  
> > > > s(:send,  
> > > > &nbsp;&nbsp;s(:const, nil, :Date), :today,  
> > > > &nbsp;&nbsp;s(:int, 1))
> > > > 
> > > > $ ruby -r parser/current -e 'p Parser::CurrentRuby.parse("Date.today+1")'  
> > > > s(:send,  
> > > > &nbsp;&nbsp;s(:send,  
> > > > &nbsp;&nbsp;&nbsp;&nbsp;s(:const, nil, :Date), :today), :+,  
> > > > &nbsp;&nbsp;s(:int, 1))
> > > > 
> > > > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org  
> > > > ?subject=unsubscribe\>  
> > > > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\> \<ruby-talk-request@ruby-lang.org?subject=unsubscribe\>\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt); \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Brandon\_Weaver1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/brandon_weaver1/32/1940_2.png) [@Brandon\_Weaver1](https://rubytalk.org/u/Brandon_Weaver1)\
**Post date:** [27 September 2021 18:52 UTC](https://rubytalk.org/t/simple-operations/75577/13 "2021-09-27T18:52:44Z")

</div>

You're in the wrong here. Take the loss, own up to it, and do better next  
time.

> **···**
>
> On Mon, Sep 27, 2021, 12:15 PM Die Optimisten \<inform@die-optimisten.net\> wrote:
> 
> > Hi!
> > 
> > \> (btw: please don't make sexist comments, it's discouraging to many  
> > \> people.)  
> > \>  
> > \> -gf-
> > 
> > I have to describe this:
> > 
> > I think all girls would appreciate this;
> > 
> > I didn't write: Must have been added especially for not mentally  
> > overstraining (some sort of blonde) girls ( 1+1=1 !!! ["no  
> > contradiction allowed!"] ) -- sorry!
> > 
> > Opti :))
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Gerald\_Bauer1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerald_bauer1/32/1852_2.png) [@Gerald\_Bauer1](https://rubytalk.org/u/Gerald_Bauer1)\
**Post date:** [28 September 2021 12:26 UTC](https://rubytalk.org/t/simple-operations/75577/14 "2021-09-28T12:26:08Z")

</div>

> \> (btw: please don't make sexist comments, it's discouraging to many  
> people.)

&nbsp;&nbsp;&nbsp;What's next? Don't make enterprise java jokes / comments, it's  
discouraging to many people.

&nbsp;&nbsp;&nbsp;&nbsp;Cancel culture is going too far. The intended joke is harmless  
and your comment is discouraging - yes, keep your language police  
comments to yourself.

---

<div class="post-metadata">

**Author:** ![Gerald\_Bauer1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/gerald_bauer1/32/1852_2.png) [@Gerald\_Bauer1](https://rubytalk.org/u/Gerald_Bauer1)\
**Post date:** [28 September 2021 12:33 UTC](https://rubytalk.org/t/simple-operations/75577/15 "2021-09-28T12:33:17Z")

</div>

Hello,

&nbsp;&nbsp;&nbsp;While I am at it...

&nbsp;&nbsp;&nbsp;Yes, how about making me feel welcome hypocrites, eh?

&nbsp;&nbsp;&nbsp;I am a long time open.source ruby contributor. Bring on the hate  
(or the warm and fuzzy feeling).

&nbsp;&nbsp;&nbsp;Cheers. Prost.

---

<div class="post-metadata">

**Author:** ![Thiago\_Massa](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/thiago_massa/32/2404_2.png) [@Thiago\_Massa](https://rubytalk.org/u/Thiago_Massa)\
**Post date:** [28 September 2021 12:43 UTC](https://rubytalk.org/t/simple-operations/75577/16 "2021-09-28T12:43:31Z")

</div>

If you make jokes that hurt other people feelings, maybe you should have  
taken the opportunity and kept your mouth shut. Or at least apologise.

Labeling it as 'cancel culture' makes no sense. The world always had jerks  
and people always have put them into their place, and this is what is  
happening right now.

PS: don't forget to turn off your automatic e-mail notifications when on  
vacation for the Ruby mailing list. I know it is typical in Germany, but  
mostly only in Germany. It looks silly elsewhere. The whole mailing list  
doesn't care if you are on vacation (in German).

> **···**
>
> On Tue, 28 Sept 2021 at 14:33, Gerald Bauer \<gerald.bauer@gmail.com\> wrote:
> 
> > Hello,
> > 
> > &nbsp;&nbsp;&nbsp;While I am at it...
> > 
> > &nbsp;&nbsp;&nbsp;Yes, how about making me feel welcome hypocrites, eh?
> > 
> > &nbsp;&nbsp;&nbsp;I am a long time open.source ruby contributor. Bring on the hate  
> > (or the warm and fuzzy feeling).
> > 
> > &nbsp;&nbsp;&nbsp;Cheers. Prost.
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![CRAIG\_JOHNSON](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@CRAIG\_JOHNSON](https://rubytalk.org/u/CRAIG_JOHNSON)\
**Post date:** [28 September 2021 13:11 UTC](https://rubytalk.org/t/simple-operations/75577/17 "2021-09-28T13:11:53Z")

</div>

Thanks to all you who contribute

Thanks for some of the humor

Some I can do without, but that's my choice....no Christmas card for you, kinda thing

There are enough REAL issues in the world, in our problem space, let's not confuse it with  
Â people trying to tell others how they are supposed to act....remember, the crowd used to like  
Â to burn witches too...the majority agreed....

Again---thanks for the valuable Ruby contributions of so many of you...I continue to learn....  
I come here to learn about the language and algorithms....

all else is of no import.....

Blonde jokes rock.

cj:)

> **···**
>
> On 9/28/2021 7:43 PM, Thiago Massa wrote:
> 
> > If you make jokes that hurt other peopleÂ feelings, maybe you should have taken the opportunity and kept your mouth shut. Or at least apologise.
> > 
> > Labeling it as 'cancel culture' makes no sense. The world always had jerks and people always have put them into their place, and this is what is happening right now.
> > 
> > PS: don't forget to turn off your automatic e-mailÂ notifications when on vacation for the Ruby mailing list. I know it is typical in Germany, but mostly only in Germany. It looks silly elsewhere. The whole mailing list doesn't care if you are on vacation (in German).
> > 
> > On Tue, 28 Sept 2021 at 14:33, Gerald Bauer \<gerald.bauer@gmail.com \> \<mailto:gerald.bauer@gmail.com\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hello,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Â Â While I am at it...
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Â Â Yes, how about making me feel welcome hypocrites, eh?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Â Â I am a long time open.source ruby contributor.Â Â Bring on the hate  
> > &nbsp;&nbsp;&nbsp;&nbsp;(or the warm and fuzzy feeling).
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Â Â Cheers. Prost.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<mailto:ruby-talk-request@ruby-lang.org\>?subject=unsubscribe\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ruby-lang.org%2Fcgi-bin%2Fmailman%2Foptions%2Fruby-talk&data=04|01||4ae8f736c6ff49ac1b3308d9827dab25|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637684298511743885|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=wlmBlbKTNJLBE2MLJHVvSjX28eCLLpuTDnXCsW%2FuZB0%3D&reserved=0&gt;&gt](https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ruby-lang.org%2Fcgi-bin%2Fmailman%2Foptions%2Fruby-talk&data=04%7C01%7C%7C4ae8f736c6ff49ac1b3308d9827dab25%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637684298511743885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wlmBlbKTNJLBE2MLJHVvSjX28eCLLpuTDnXCsW%2FuZB0%3D&reserved=0&gt;&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> 
> --  
> If you can't set a good example,  
> &nbsp;&nbsp;&nbsp;&nbsp;be a glaring warning.

---

<div class="post-metadata">

**Author:** ![hmdne](https://avatars.discourse-cdn.com/v4/letter/h/7feea3/32.png) [@hmdne](https://rubytalk.org/u/hmdne)\
**Post date:** [28 September 2021 13:25 UTC](https://rubytalk.org/t/simple-operations/75577/18 "2021-09-28T13:25:16Z")

</div>

There's a certain set of universal corporate values that you are expected to follow and \*enforce\* if you are financially, emotionally or otherwise dependent on a company or organization that subscribes to those values. \*It's a waste of time\* to argue about those values, because they are already set in stone by the respective corporate departments. If you personally subscribe to a different set of values and feel in conflict, the best course of action is to work on eliminating those dependencies whenever possible and encouraging your loved ones to do so as well.

> **···**
>
> On 9/28/21 2:26 PM, Gerald Bauer wrote:
> 
> > > > (btw: please don't make sexist comments, it's discouraging to many
> > > 
> > > people.)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;What's next? Don't make enterprise java jokes / comments, it's  
> > discouraging to many people.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cancel culture is going too far. The intended joke is harmless  
> > and your comment is discouraging - yes, keep your language police  
> > comments to yourself.
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Sean\_Felipe\_Wolfe](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/sean_felipe_wolfe/32/1952_2.png) [@Sean\_Felipe\_Wolfe](https://rubytalk.org/u/Sean_Felipe_Wolfe)\
**Post date:** [28 September 2021 17:23 UTC](https://rubytalk.org/t/simple-operations/75577/19 "2021-09-28T17:23:20Z")

</div>

For myself, I am a big fan of the "MINASWAN" doctrine in Ruby,

Matz Is Nice And So We Are Nice.

If someone wants to argue a lot ... maybe time to switch to Python 😂

> **···**
>
> On Tue, Sep 28, 2021 at 9:25 AM hmdne \<hmdne@airmail.cc\> wrote:
> 
> > There's a certain set of universal corporate values that you are expected  
> > to follow and \*enforce\* if you are financially, emotionally or otherwise  
> > dependent on a company or organization that subscribes to those values. \*It's  
> > a waste of time\* to argue about those values, because they are already  
> > set in stone by the respective corporate departments. If you personally  
> > subscribe to a different set of values and feel in conflict, the best  
> > course of action is to work on eliminating those dependencies whenever  
> > possible and encouraging your loved ones to do so as well.  
> > On 9/28/21 2:26 PM, Gerald Bauer wrote:
> > 
> > (btw: please don't make sexist comments, it's discouraging to many
> > 
> > people.)
> > 
> > &nbsp;&nbsp;&nbsp;What's next? Don't make enterprise java jokes / comments, it's  
> > discouraging to many people.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Cancel culture is going too far. The intended joke is harmless  
> > and your comment is discouraging - yes, keep your language police  
> > comments to yourself.
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\> \<ruby-talk-request@ruby-lang.org?subject=unsubscribe\>\<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt); \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> 
> --  
> A musician must make music, an artist must paint, a poet must write, if he  
> is to be ultimately at peace with himself.  
> - Abraham Maslow

---

<div class="post-metadata">

**Author:** ![Robert\_K1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/robert_k1/32/1830_2.png) [@Robert\_K1](https://rubytalk.org/u/Robert_K1)\
**Post date:** [29 September 2021 08:11 UTC](https://rubytalk.org/t/simple-operations/75577/20 "2021-09-29T08:11:41Z")

</div>

> For myself, I am a big fan of the "MINASWAN" doctrine in Ruby,
> 
> Matz Is Nice And So We Are Nice.

These days I read and post very rarely on ruby-talk but keep the  
subscription (maybe some form of nostalgia?). This community used to be  
very friendly most of the time and I find it a bit sad that the same sorts  
of conflicts start to pop up here as well that we see elsewhere. I guess,  
we cannot escape general trends in society. I would love though if we could  
keep as much of the friendliness as possible and also retain the occasional  
humor.

> If someone wants to argue a lot ... maybe time to switch to Python 😂

🙂

Kind regards

robert

> **···**
>
> On Tue, Sep 28, 2021 at 7:24 PM Sean Felipe Wolfe \<ether.joe@gmail.com\> wrote:
> 
> --  
> [guy, jim, charlie, sho].each {|him| remember.him do |as, often| as.you\_can  
> - without end}  
> [http://blog.rubybestpractices.com/](http://blog.rubybestpractices.com/)

[Next page](https://rubytalk.org/t/simple-operations/75577.md?page=2)
