cthulchu_

Activity Graph

Page 1 of 3 | Next »

2019-01-14

[17:49:20] cthulchu_: Quit: Leaving
[17:49:49] cthulchu_: has joined #ruby

2019-01-13

[02:45:02] cthulchu_: has joined #ruby

2019-01-11

[06:50:23] cthulchu_: Ping timeout: 272 seconds
[15:40:46] cthulchu_: has joined #ruby

2019-01-09

[03:16:52] cthulchu_: Ping timeout: 244 seconds
[16:26:35] cthulchu_: has joined #ruby

2019-01-08

[08:47:52] cthulchu_: Ping timeout: 250 seconds
[16:09:47] cthulchu_: has joined #ruby
[16:25:02] cthulchu_: Ping timeout: 250 seconds
[16:25:21] cthulchu_: has joined #ruby

2019-01-07

[16:35:25] cthulchu_: has joined #ruby

2019-01-05

[18:32:14] cthulchu_: has joined #ruby
[19:33:52] cthulchu_: Read error: Connection reset by peer
[19:34:28] cthulchu_: has joined #ruby
[19:40:01] cthulchu_: Ping timeout: 258 seconds

2019-01-04

[01:15:32] cthulchu_: Remote host closed the connection
[01:15:58] cthulchu_: has joined #ruby
[01:20:43] cthulchu_: Ping timeout: 246 seconds
[17:21:22] cthulchu_: has joined #ruby
[17:56:54] cthulchu_: Ping timeout: 268 seconds

2019-01-02

[02:20:05] cthulchu_: has joined #ruby
[19:07:13] cthulchu_: my lovely folks
[19:08:00] cthulchu_: If I have def self.method(), then later in a different method of the same class, when I need to call the method, do I have to mention self or not?
[19:08:17] cthulchu_: it works fine when I call it like self.method(), but I wonder if there is a difference in this case
[19:32:39] cthulchu_: what's wrong with this one folks? https://paste.ofcode.org/TBpx5qdtqzN2rL4GEvycu5
[19:33:07] cthulchu_: there seems to be an issue with curvy brackets...
[19:42:03] cthulchu_: the last curvy bracket is highlighted by the syntax checker
[19:42:08] cthulchu_: I have little clue why
[19:42:41] cthulchu_: file do end?
[19:43:01] cthulchu_: sorry for that
[22:28:50] cthulchu_: ruuuuby! wewewewe
[23:12:29] cthulchu_: I REALLY appreciate that String[0] works as one would expect
[23:12:53] cthulchu_: I tried many langs and every bloody time I was like "OMFG!" when it doesn't work like that
[23:44:42] cthulchu_: what a hack!
[23:44:56] cthulchu_: NameError: undefined local variable or method `⚛⚛⚛' for main:Object
[23:44:56] cthulchu_: 2.2.0 :022 > ⚛⚛⚛[0]
[23:45:37] cthulchu_: works fine in 2.2.0

2018-12-28

[18:08:26] cthulchu_: has joined #ruby
[18:31:36] cthulchu_: actually I was wrong yesterday
[18:31:45] cthulchu_: blocks do have normal access to this
[18:31:57] cthulchu_: it's just in that particular case it didn't work
[18:32:14] cthulchu_: I fixed it, but I still don't know what was wrong with that code
[18:32:26] cthulchu_: if anyone can clarify it for me, it would be awesome
[18:33:29] cthulchu_: (and my fix is ugly, I don't like it)
[18:45:35] cthulchu_: uplime, https://paste.ofcode.org/35MJgEypkzBg9m8PVHB2LUf throws me NoMethodError: undefined method `key?' for nil:NilClass on line 8
[18:46:38] cthulchu_: I had to do ugly temp_event = temp_event || {} in there to fix it
[18:50:10] cthulchu_: also, I have a different question. I have a hash and an array with hashes. I need to make sure that all the fields in this hash are present in each hash of the array. I'm gonna do this using two nested .each in one .select. It's three nested loops. I mean, I don't expect them to be too large, but the code becomes hard to read.
[18:50:27] cthulchu_: maybe there are hacks like hash.includes(hash)
[18:50:47] cthulchu_: although I need it to do regex inclusion
[18:50:50] cthulchu_: so I guess not
[18:51:02] cthulchu_: anyhow, will write a method for this
[18:59:18] cthulchu_: I think sometimes I do : instead of =>
[18:59:52] cthulchu_: but in that case everything is =>
[19:00:12] cthulchu_: ah, right, I do json when I need to pretty print
[19:00:53] cthulchu_: anyhow, I don't think it relates
[19:08:20] cthulchu_: Ping timeout: 250 seconds

2018-12-27

[06:37:24] cthulchu_: has joined #ruby
[08:22:50] cthulchu_: Ping timeout: 268 seconds
[09:29:51] cthulchu_: has joined #ruby
[09:44:26] cthulchu_: Ping timeout: 260 seconds
[10:07:20] cthulchu_: has joined #ruby
[10:15:04] cthulchu_: Ping timeout: 268 seconds
[17:32:18] cthulchu_: has joined #ruby
[18:05:42] cthulchu_: Ping timeout: 252 seconds

2018-12-26

[05:49:59] cthulchu_: Ping timeout: 268 seconds
[10:33:54] cthulchu_: has joined #ruby
[11:49:03] cthulchu_: Ping timeout: 250 seconds
[11:57:40] cthulchu_: has joined #ruby
[16:42:51] cthulchu_: Ping timeout: 250 seconds
[18:37:19] cthulchu_: has joined #ruby
[21:59:00] cthulchu_: Ping timeout: 252 seconds

2018-12-25

[06:21:34] cthulchu_: has joined #ruby
[06:26:27] cthulchu_: Ping timeout: 246 seconds
[21:46:27] cthulchu_: has joined #ruby

2018-12-22

[00:01:16] cthulchu_: it's kinda sad that Ruby doesn't have the concept of primitives
[00:01:30] cthulchu_: One one hans I'm kinda grateful for the fact that everything is an object
[00:01:51] cthulchu_: on the other hand, it's uncomfy to not being able to pass arguments by reference
[01:02:39] cthulchu_: Ping timeout: 250 seconds

2018-12-21

[17:42:19] cthulchu_: has joined #ruby

2018-12-18

[01:06:34] cthulchu_: has joined #ruby
[18:01:40] cthulchu_: Ping timeout: 246 seconds
[18:07:03] cthulchu_: has joined #ruby
[18:13:12] cthulchu_: Ping timeout: 268 seconds

2018-12-13

[01:59:40] cthulchu_: Ping timeout: 250 seconds

2018-12-12

[17:34:17] cthulchu_: has joined #ruby
[17:40:28] cthulchu_: Ping timeout: 250 seconds
[21:51:41] cthulchu_: has joined #ruby

2018-12-04

[01:27:28] cthulchu_: Ping timeout: 250 seconds
[16:44:51] cthulchu_: has joined #ruby
[23:08:09] cthulchu_: Ping timeout: 246 seconds

2018-12-03

[17:10:38] cthulchu_: has joined #ruby

2018-12-01

[02:03:54] cthulchu_: Ping timeout: 268 seconds

2018-11-30

[17:31:33] cthulchu_: has joined #ruby

2018-11-23

[17:19:50] cthulchu_: has joined #ruby
[19:36:33] cthulchu_: Ping timeout: 252 seconds

2018-11-09

[17:22:25] cthulchu_: has joined #ruby
[17:42:09] cthulchu_: Ping timeout: 272 seconds

2018-11-03

[00:57:15] cthulchu_: Ping timeout: 268 seconds

2018-11-02

[16:44:20] cthulchu_: has joined #ruby

2018-10-24

[18:48:52] cthulchu_: *.net *.split

2018-10-23

[19:18:51] cthulchu_: so we've been discussing ops
[19:19:21] cthulchu_: and we decided that the less an op uses their power, the better op they are
[19:19:37] cthulchu_: also best channels seem to have no ops at all
[19:22:45] cthulchu_: I'm good, thanks
[19:23:34] cthulchu_: hehe, where did you get it from? :)
[19:24:48] cthulchu_: congrats on that
[20:19:21] cthulchu_: I believe you can always justify usage
[20:19:29] cthulchu_: the opposite is true too
[20:19:34] cthulchu_: you can always avoid usage

2018-10-22

[16:18:53] cthulchu_: has joined #ruby
[23:01:25] cthulchu_: ruuuuuubyyyy

2018-10-19

[15:48:34] cthulchu_: has joined #ruby
[23:20:36] cthulchu_: Ping timeout: 252 seconds

2018-10-05

[16:20:40] cthulchu_: has joined #ruby
[21:35:06] cthulchu_: Ping timeout: 252 seconds

2018-09-11

[01:00:12] cthulchu_: Ping timeout: 252 seconds

2018-09-10

[16:23:22] cthulchu_: has joined #ruby

2018-08-21

[18:35:02] cthulchu_: Read error: Connection reset by peer

2018-08-20

[16:12:15] cthulchu_: has joined #ruby

2018-08-18

[02:41:32] cthulchu_: Ping timeout: 260 seconds

2018-08-17

[15:23:40] cthulchu_: has joined #ruby

2018-08-16

[16:25:45] cthulchu_: has joined #ruby
[23:57:30] cthulchu_: Ping timeout: 268 seconds

2018-08-11

[00:48:44] cthulchu_: Ping timeout: 255 seconds

2018-08-10

[00:31:16] cthulchu_: Ping timeout: 256 seconds
[16:48:50] cthulchu_: has joined #ruby
[21:06:06] cthulchu_: folks, what does it do? https://paste.ofcode.org/kpRT7utdkZsHrFusCTRvjZ
[21:06:09] cthulchu_: how does it work
[21:06:29] cthulchu_: the all_possible_values is just a hash that has all these fields set
[21:08:24] cthulchu_: it creates all combos of that hashes fields vals...
[21:08:49] cthulchu_: oh, ok, will continue looking for it
[21:10:39] cthulchu_: also what's each_with_index?
[21:10:50] cthulchu_: I mean, is there anything in an array that wouldn't have an index?
[21:11:19] cthulchu_: so then what's the point of doing each_with_index to an array?
[21:11:28] cthulchu_: it would do just the same as .each?
[21:12:21] cthulchu_: it's just to get the index variable inside the block
[21:12:23] cthulchu_: makes sense
[21:50:27] cthulchu_: I have a quick stupid question, folks. How do I add an explicit key-val to a hash? like hashA,push({a:123})
[21:50:56] cthulchu_: just hashA[a]=123?
[21:51:17] cthulchu_: a colon where?
[21:52:00] cthulchu_: ok, interesting, thanks
[21:52:12] cthulchu_: would hash.a = value work?
[21:52:29] cthulchu_: what about hash:a?
[21:52:50] cthulchu_: should we use hash store?
[21:53:05] cthulchu_: ok, cool, thanks
[21:53:17] cthulchu_: but I guess that method gets called implicitly
[22:06:20] cthulchu_: so I can do something like field_test_combinations[index][:index]=index
[22:06:30] cthulchu_: given that the array is a collection of hashes
[22:06:40] cthulchu_: I just want to put hash index into the hash
[22:07:52] cthulchu_: actually that :index should be a string since it's a key
[22:08:00] cthulchu_: so it should be field_test_combinations[index][:"index"]=index
[22:12:38] cthulchu_: never needed anything more than a string as a key
[22:23:03] cthulchu_: a=b?b=a:false
[22:23:10] cthulchu_: is that how you end the ternary?
[22:23:24] cthulchu_: or just :nil
[22:37:27] cthulchu_: byebug is so extremely useful!
[22:37:31] cthulchu_: I made a wrapper for it

2018-08-08

[18:53:28] cthulchu_: has joined #ruby

2018-08-01

[09:26:21] cthulchu_: has joined #ruby
[20:07:18] cthulchu_: Ping timeout: 256 seconds

2018-07-31

[16:06:27] cthulchu_: Ping timeout: 240 seconds
[17:43:34] cthulchu_: has joined #ruby
[22:12:41] cthulchu_: Quit: Leaving

2018-07-27

[18:38:00] cthulchu_: has joined #ruby

2018-07-25

[01:06:23] cthulchu_: has joined #ruby
[05:57:18] cthulchu_: Ping timeout: 244 seconds
[22:00:18] cthulchu_: has joined #ruby
[22:55:49] cthulchu_: Ping timeout: 268 seconds

2018-07-24

[03:06:32] cthulchu_: has joined #ruby
[05:32:01] cthulchu_: Ping timeout: 265 seconds
[05:38:42] cthulchu_: has joined #ruby
[19:19:30] cthulchu_: Ping timeout: 256 seconds
[22:44:03] cthulchu_: has joined #ruby
[23:58:52] cthulchu_: Ping timeout: 256 seconds

2018-07-11

[00:24:53] cthulchu_: has joined #ruby
[00:42:21] cthulchu_: Ping timeout: 240 seconds

2018-07-10

[02:34:25] cthulchu_: has joined #ruby
[02:38:51] cthulchu_: Ping timeout: 240 seconds
[03:05:58] cthulchu_: has joined #ruby
[04:17:51] cthulchu_: Ping timeout: 240 seconds

2018-07-06

[19:44:49] cthulchu_: has joined #ruby
[23:36:33] cthulchu_: Ping timeout: 248 seconds

2018-06-29

[00:50:38] cthulchu_: Ping timeout: 260 seconds
[01:58:04] cthulchu_: has joined #ruby
[02:04:50] cthulchu_: Ping timeout: 260 seconds
[02:27:51] cthulchu_: has joined #ruby
[18:03:13] cthulchu_: Ping timeout: 248 seconds

2018-06-28

[22:05:36] cthulchu_: somebody tries to use map reduce :)
[22:06:22] cthulchu_: does match return boolean?
[22:06:43] cthulchu_: >> "qwe".match(/qwe/)
[22:06:59] cthulchu_: oh, eval is down?
[22:07:11] cthulchu_: anyhow, I use ===
[22:07:18] cthulchu_: it does the trick for me
[22:07:22] cthulchu_: regex === string
[22:07:42] cthulchu_: a bit faster than ===
[22:07:47] cthulchu_: cuz === looks up the classes
[22:08:04] cthulchu_: the difference is similar to the difference between + and <<
[22:08:08] cthulchu_: when it's concat
[22:09:13] cthulchu_: I would also do display +=
[22:09:40] cthulchu_: dude, it's ruby
[22:09:53] cthulchu_: readability and easiness comes first
[22:10:06] cthulchu_: simplicity of the tests
[22:10:26] cthulchu_: well it's supposed to be first in case of Ruby
[22:10:36] cthulchu_: if you wanted speed, you'd use go
[22:10:52] cthulchu_: you didn't know?
[22:11:02] cthulchu_: go is amazing
[22:11:07] cthulchu_: performance-wise
[22:11:15] cthulchu_: I do the same :)
[22:11:28] cthulchu_: just started ruby a few weeks ago :)
[22:49:39] cthulchu_: there's rubocop for VSCode
[22:49:51] cthulchu_: my code will look preeeeetty!
[23:02:09] cthulchu_: Ping timeout: 264 seconds
[23:34:09] cthulchu_: has joined #ruby