Mike111

Activity Graph

Page 1 of 1

2019-01-02

[12:04:45] Mike111: has joined #ruby
[12:05:20] Mike111: Max SendQ exceeded

2019-01-01

[10:49:45] Mike111: has joined #ruby
[12:13:04] Mike111: Ping timeout: 250 seconds

2018-11-22

[22:37:12] Mike111: has joined #ruby
[22:37:39] Mike111: Client Quit

2018-10-05

[10:36:06] Mike111: has joined #ruby
[12:39:11] Mike111: Quit: Leaving.

2018-09-18

[09:00:27] Mike111: has joined #ruby
[11:20:36] Mike111: Ping timeout: 272 seconds

2018-09-16

[14:17:09] Mike111: has joined #ruby
[21:56:43] Mike111: Ping timeout: 246 seconds

2018-08-22

[10:29:43] Mike111: has joined #ruby
[10:30:05] Mike111: Max SendQ exceeded

2018-08-15

[10:01:13] Mike111: has joined #ruby
[12:19:01] Mike111: Quit: Leaving.

2018-08-11

[14:38:16] Mike111: has joined #ruby
[14:38:44] Mike111: sorry, did I miss anything?
[14:39:22] Mike111: havenwood: https://ideone.com/H7LNEM doesn't seem to work
[14:42:30] Mike111: havenwood: is there a way to fit that into an if expression?
[14:42:35] Mike111: because I have an else clause
[14:43:12] Mike111: which should be invoked if the regular expression does not match the string
[14:44:22] Mike111: havenwood: no, I need both
[14:44:57] Mike111: match_data = r.match(s) followed by if match_data was working for me
[14:45:21] Mike111: they are like 5-6 groups to be matched :(
[14:45:38] Mike111: so, repeating the names twice doesn't look good either
[14:47:58] Mike111: havenwood: this is exactly what I want https://ideone.com/72hduy
[14:48:20] Mike111: havenwood: does this code look bad for a ruby a programmer?
[14:49:07] Mike111: and what if there are like 5-6 variables
[14:49:33] Mike111: sorry if I sound a bit fastidous
[14:49:58] Mike111: mmm, I am accessing them to store them into structures actually
[14:50:14] Mike111: outputting them to puts is here for the purposes of this minimal example
[14:51:18] Mike111: I am passing these arguments to another class's constructor
[14:51:37] Mike111: e.g. using MyClass.new(match[:dollars], match[:cents], ....)
[14:52:08] Mike111: so, I have about 6 arguments to that constructor (rubocop complains about this, and I have no idea how I can tackle that)
[14:52:25] Mike111: havenwood: oh, that looks really cool if it works
[14:53:10] Mike111: havenwood: in case of about six mandatory arguments to construct an object, would you use positional or keyword arguments?
[14:54:10] Mike111: havenwood: can keyword arguments be mandatory? (sorry if this sounds like a stupid question)
[14:54:54] Mike111: aha, so, I'll read about them and use the **match.named_captures syntax you suggested
[14:55:00] Mike111: thank you very much havenwood
[16:31:26] Mike111: Quit: Leaving.

2018-08-10

[10:47:07] Mike111: has joined #ruby
[10:47:27] Mike111: Max SendQ exceeded

2018-07-04

[17:06:48] Mike111: has joined #ruby
[17:06:52] Mike111: Client Quit

2018-06-21

[11:24:19] Mike111: has joined #ruby
[11:24:41] Mike111: Max SendQ exceeded

2018-06-18

[15:13:45] Mike111: has joined #ruby
[15:14:07] Mike111: Max SendQ exceeded
[15:15:45] Mike111: has joined #ruby
[15:16:03] Mike111: Max SendQ exceeded

2018-06-06

[16:17:04] Mike111: has joined #ruby
[16:17:25] Mike111: Client Quit

2018-05-24

[05:27:01] Mike111: has joined #ruby
[05:27:29] Mike111: Max SendQ exceeded

2018-04-14

[16:46:50] Mike111: has joined #ruby
[16:47:01] Mike111: Client Quit

2018-04-04

[10:06:42] Mike111: has joined #ruby
[10:07:04] Mike111: Max SendQ exceeded
[16:45:35] Mike111: has joined #ruby
[16:45:59] Mike111: Max SendQ exceeded

2018-03-28

[11:45:34] Mike111: has joined #ruby
[11:45:37] Mike111: Client Quit

2018-03-22

[13:44:03] Mike111: has joined #ruby
[13:44:21] Mike111: Max SendQ exceeded

2018-03-03

[16:00:21] Mike111: has joined #ruby
[16:00:49] Mike111: Max SendQ exceeded

2018-02-21

[20:28:05] Mike111: has joined #ruby
[20:28:06] Mike111: Client Quit

2018-02-02

[18:03:25] Mike111: has joined #ruby
[18:07:48] Mike111: Ping timeout: 240 seconds