colstrom

Activity Graph

Page 1 of 1

2018-09-03

[19:10:25] colstrom: *.net *.split

2018-07-20

[00:07:24] colstrom: *.net *.split
[00:15:47] colstrom: has joined #ruby

2018-06-20

[03:51:27] colstrom: Ping timeout: 255 seconds
[05:24:07] colstrom: has joined #ruby
[05:58:49] colstrom: Ping timeout: 256 seconds
[06:21:03] colstrom: has joined #ruby

2018-05-29

[02:47:06] colstrom: *.net *.split
[02:48:10] colstrom: has joined #ruby

2018-04-25

[15:20:05] colstrom: has joined #ruby

2018-04-17

[04:05:42] colstrom: Ping timeout: 261 seconds

2018-04-10

[14:08:28] colstrom: has joined #ruby

2018-03-03

[10:21:50] colstrom: Read error: Connection reset by peer
[10:22:06] colstrom: has joined #ruby

2018-03-02

[04:11:21] colstrom: Read error: Connection reset by peer
[04:40:06] colstrom: has joined #ruby

2018-02-28

[23:19:22] colstrom: Ping timeout: 265 seconds
[23:23:23] colstrom: has joined #ruby
[23:23:31] colstrom: Max SendQ exceeded
[23:27:19] colstrom: has joined #ruby

2018-02-23

[18:44:47] colstrom: *.net *.split

2018-01-08

[07:13:17] colstrom: *.net *.split
[07:13:32] colstrom: has joined #ruby

2018-01-07

[20:35:04] colstrom: *.net *.split
[21:07:16] colstrom: has joined #ruby

2017-12-27

[19:13:28] colstrom: Read error: Connection reset by peer
[19:41:25] colstrom: has joined #ruby

2017-12-01

[02:28:57] colstrom: has joined #ruby

2017-11-08

[09:43:28] colstrom: *.net *.split
[09:49:04] colstrom: has joined #ruby

2017-11-06

[13:23:02] colstrom: Ping timeout: 255 seconds
[13:24:07] colstrom: has joined #ruby

2017-11-05

[20:11:51] colstrom: *.net *.split
[21:51:19] colstrom: has joined #ruby

2017-09-08

[17:11:02] colstrom: Is there a reasonable way to compare two Procs/Lambdas? By way of example... `(->(x) { x + x }) == (->(x) { x + x })` is essentially what I'd like to be able to do.
[17:12:29] colstrom: @matthewd No there isn't a reasonable way, or no it's strictly impossible because <reason>?
[17:13:33] colstrom: @gizmore That's dodgy, because `->(x) { x.even? }` and `->(x) { x < 10 }` both return `true` for inputs of `2`, but are clearly not the same function.
[17:20:58] colstrom: @matthewd The objective doesn't go much deeper for this one. I'd like to compare two functions that may not be defined in source, for the purposes of comparing two objects that have functions as properties.
[17:26:19] colstrom: ACTION nods. I'd be willing to accept `x+1` and `1+x` as not equal.
[17:26:43] colstrom: For now, at least.
[18:10:57] colstrom: @TastyTrout Will do, thanks!
[18:14:27] colstrom: @chromis "60" is a string. Ruby is doing what you asked it to do, and gave you the string, 3 times.
[18:14:54] colstrom: 60, on the other hand, is probably what you wanted to use.
[18:34:56] colstrom: @RedNifre require 'date'; some_date < (Date.today - 5)

2017-08-14

[23:51:33] colstrom: *.net *.split
[23:55:02] colstrom: has joined #ruby

2017-06-20

[00:17:24] colstrom: *.net *.split

2017-05-04

[09:49:56] colstrom: has joined #ruby
[16:35:43] colstrom: Remote host closed the connection
[16:39:19] colstrom: has joined #ruby

2017-04-13

[15:10:52] colstrom: *.net *.split
[17:00:50] colstrom: has joined #ruby

2016-07-18

[17:04:29] colstrom: Ping timeout: 272 seconds
[17:14:41] colstrom: has joined #ruby

2016-06-14

[00:29:04] colstrom: Read error: Connection reset by peer
[00:29:23] colstrom: has joined #ruby

2016-06-10

[00:17:16] colstrom: Ping timeout: 264 seconds
[00:22:02] colstrom: has joined #ruby

2016-06-09

[05:25:41] colstrom: Ping timeout: 260 seconds
[05:32:23] colstrom: has joined #ruby

2016-05-18

[08:45:43] colstrom: Ping timeout: 250 seconds
[08:56:41] colstrom: has joined #ruby

2016-04-29

[14:33:12] colstrom: *.net *.split
[14:44:27] colstrom: has joined #ruby

2016-04-27

[06:59:17] colstrom: Ping timeout: 264 seconds
[07:01:05] colstrom: has joined #ruby

2016-03-10

[01:37:56] colstrom: @not_a_robot I'd use the has_a? sniff test. Does a Rover have a map? Does a Map have a Rover?
[01:38:17] colstrom: Intuitively, it feels more like the Map has Rovers.
[01:38:32] colstrom: So I'd reframe that question.
[01:38:42] colstrom: Which is responsible for enforcing those?
[01:38:54] colstrom: The boundaries are a property of the Map, right?
[01:39:17] colstrom: The Rover doesn't really need to know what rules the map has internally.
[01:39:51] colstrom: It just does what it does, and when it tries to move, it sends its attempt to the Map. It either passes or fails.
[01:41:05] colstrom: IMO, the Rover shouldn't know this. That domain logic belongs in the Map, which owns the boundaries.
[01:42:27] colstrom: Consider: there may be non-Rover things moving on the Map, right? The bounds-checking shouldn't need to be reimplemented for each new class.
[01:43:14] colstrom: @ramfjord Would a module + include be viable for what you need?
[01:43:46] colstrom: not_a_robot: Anytime!
[01:48:12] colstrom: @Ox0dea Good call! I hadn't thought of that.
[08:36:14] colstrom: Ping timeout: 250 seconds
[08:44:07] colstrom: has joined #ruby

2016-02-17

[09:52:52] colstrom: *.net *.split
[10:02:28] colstrom: has joined #ruby

2016-01-31

[12:25:20] colstrom: *.net *.split
[12:29:19] colstrom: has joined #ruby

2016-01-13

[18:29:48] colstrom: has joined #ruby

2015-12-13

[10:25:22] colstrom: Ping timeout: 272 seconds
[10:43:30] colstrom: has joined #ruby

2015-12-12

[17:42:15] colstrom: *.net *.split

2015-12-06

[13:58:24] colstrom: Ping timeout: 264 seconds

2015-12-02

[15:39:22] colstrom: *.net *.split
[16:47:34] colstrom: has joined #ruby
[19:59:19] colstrom: Read error: Connection reset by peer
[20:11:30] colstrom: has joined #ruby

2015-11-30

[01:13:33] colstrom: has joined #ruby
[01:30:48] colstrom: Ping timeout: 264 seconds
[02:00:14] colstrom: has joined #ruby
[02:48:48] colstrom: Ping timeout: 264 seconds
[02:52:21] colstrom: has joined #ruby
[07:20:34] colstrom: Ping timeout: 245 seconds
[08:18:10] colstrom: has joined #ruby
[08:31:00] colstrom: has joined #ruby
[08:31:00] colstrom: Changing host
[08:33:47] colstrom: Ping timeout: 260 seconds
[08:54:50] colstrom: has joined #ruby
[09:00:22] colstrom: Read error: Connection reset by peer
[09:01:10] colstrom: has joined #ruby

2015-11-29

[21:11:45] colstrom: *.net *.split
[21:19:36] colstrom: has joined #ruby
[21:30:48] colstrom: Ping timeout: 264 seconds
[21:34:33] colstrom: has joined #ruby
[21:59:05] colstrom: Ping timeout: 264 seconds
[22:00:14] colstrom: has joined #ruby
[22:00:15] colstrom: has joined #ruby
[22:00:15] colstrom: Changing host
[23:07:24] colstrom: Ping timeout: 264 seconds

2015-11-21

[17:44:47] colstrom: Ping timeout: 240 seconds
[17:47:57] colstrom: has joined #ruby

2015-11-16

[01:33:21] colstrom: Read error: Connection reset by peer
[01:43:53] colstrom: has joined #ruby

2015-11-08

[02:41:36] colstrom: Remote host closed the connection
[12:39:40] colstrom: has joined #ruby

2015-11-06

[10:28:46] colstrom: Ping timeout: 240 seconds
[10:29:34] colstrom: has joined #ruby

2015-11-03

[14:52:39] colstrom: Ping timeout: 240 seconds
[14:53:36] colstrom: has joined #ruby

2015-10-30

[03:06:11] colstrom: Read error: Connection reset by peer
[03:12:22] colstrom: has joined #ruby

2015-10-16

[00:15:52] colstrom: has joined #ruby

2015-10-06

[22:22:30] colstrom: Remote host closed the connection
[23:25:45] colstrom: has joined #ruby

2015-10-04

[05:17:29] colstrom: has joined #ruby
[05:36:45] colstrom: Quit: Textual IRC Client: www.textualapp.com

2015-09-22

[07:43:51] colstrom: has joined #ruby

2015-09-16

[00:21:40] colstrom: Ping timeout: 268 seconds

2015-09-07

[02:15:29] colstrom: *.net *.split

2015-08-28

[10:27:04] colstrom: *.net *.split
[10:30:06] colstrom: has joined #ruby
[10:30:42] colstrom: *.net *.split
[10:33:02] colstrom: has joined #ruby

2015-08-22

[14:11:13] colstrom: Ping timeout: 240 seconds
[14:22:17] colstrom: has joined #ruby

2015-08-20

[19:28:51] colstrom: Ping timeout: 244 seconds
[19:34:06] colstrom: has joined #ruby

2015-08-07

[16:41:16] colstrom: has joined #ruby
[16:41:40] colstrom: ACTION waves.
[17:34:04] colstrom: So... brain fuzz today leaves me with a question: how do I call `.methods` on the `main` object?
[17:35:09] colstrom: For instance, if I `def foo`, outside of a module or class, it gets defined on something... `self.to_s` in pry returns 'main', which makes sense as the top-level object.
[17:35:21] colstrom: And I can call `self.methods` from that context.
[17:35:49] colstrom: But... if I'm calling that from inside a class, `self` changes scope, right?
[17:36:10] colstrom: So how to explicitly reference `main` from another scope?
[17:38:04] colstrom: Bingo. That's what I was looking for, I think.
[17:39:37] colstrom: apeiros: Wanting to trace changes to that object over the life of a program, for curiousity.
[17:40:50] colstrom: Sure, I could use TracePoint to do it.
[17:40:55] colstrom: And normally that's where I'd go.
[17:41:40] colstrom: But I'm exploring right now, and figured I'd look at other options.
[17:41:50] colstrom: Adventure time, right? ^_^
[17:43:05] colstrom: Thanks for the direction. Not enough sleep last night, brain super fuzzy today.