Bilge

Activity Graph

Page 1 of 1

2018-03-03

[18:21:50] Bilge: has left #ruby: ()

2018-02-25

[09:34:48] Bilge: *.net *.split

2018-02-22

[03:00:53] Bilge: Ping timeout: 255 seconds
[03:03:15] Bilge: has joined #ruby

2018-01-22

[15:40:35] Bilge: *.net *.split
[15:40:56] Bilge: has joined #ruby

2018-01-21

2018-01-20

[22:05:45] Bilge: *.net *.split
[22:06:01] Bilge: has joined #ruby

2018-01-08

[00:19:57] Bilge: has joined #ruby

2018-01-07

[20:35:07] Bilge: *.net *.split

2017-12-06

[17:22:32] Bilge: Ping timeout: 240 seconds
[17:27:30] Bilge: has joined #ruby
[20:31:11] Bilge: *.net *.split
[20:47:56] Bilge: has joined #ruby

2017-12-05

[01:57:40] Bilge: Ping timeout: 255 seconds
[02:03:01] Bilge: has joined #ruby

2017-12-01

[02:28:54] Bilge: has joined #ruby

2017-11-09

[03:15:22] Bilge: Ping timeout: 250 seconds
[03:20:14] Bilge: has joined #ruby
[07:09:21] Bilge: Ping timeout: 252 seconds
[09:30:14] Bilge: has joined #ruby

2017-11-06

[20:10:14] Bilge: Ping timeout: 240 seconds
[20:11:31] Bilge: has joined #ruby

2017-10-06

[02:05:46] Bilge: Ping timeout: 255 seconds
[02:11:34] Bilge: has joined #ruby

2017-09-21

[21:47:06] Bilge: Ping timeout: 252 seconds
[21:52:51] Bilge: has joined #ruby

2017-09-06

[14:14:50] Bilge: Ping timeout: 246 seconds
[14:20:37] Bilge: has joined #ruby

2017-09-04

[18:38:24] Bilge: *.net *.split

2017-08-09

[00:04:45] Bilge: Ping timeout: 255 seconds
[00:10:08] Bilge: has joined #ruby

2017-08-06

[19:07:55] Bilge: *.net *.split

2017-06-19

[18:19:42] Bilge: *.net *.split

2017-06-14

[04:27:04] Bilge: Ping timeout: 255 seconds
[04:29:26] Bilge: has joined #ruby

2017-05-24

[04:35:27] Bilge: Ping timeout: 240 seconds
[04:38:28] Bilge: has joined #ruby
[05:11:34] Bilge: Ping timeout: 272 seconds
[05:21:21] Bilge: has joined #ruby

2017-05-20

[09:56:37] Bilge: has joined #ruby
[10:12:22] Bilge: has joined #ruby
[10:50:20] Bilge: has joined #ruby
[10:52:33] Bilge: Client Quit
[10:53:21] Bilge: has joined #ruby
[11:32:35] Bilge: has joined #ruby
[12:37:43] Bilge: has joined #ruby
[16:12:56] Bilge: has joined #ruby
[16:40:09] Bilge: has joined #ruby
[16:47:43] Bilge: has joined #ruby
[17:32:29] Bilge: has joined #ruby

2016-06-23

[01:02:48] Bilge: has joined #ruby

2016-05-23

[22:53:40] Bilge: *.net *.split

2016-05-07

[11:38:35] Bilge: has joined #ruby

2016-04-21

[17:19:15] Bilge: *.net *.split

2016-04-18

[11:06:21] Bilge: Ping timeout: 260 seconds
[11:08:23] Bilge: has joined #ruby

2016-04-15

[15:11:31] Bilge: Ping timeout: 260 seconds
[15:18:01] Bilge: has joined #ruby
[16:13:48] Bilge: *.net *.split
[16:14:07] Bilge: has joined #ruby
[17:26:59] Bilge: *.net *.split
[17:27:44] Bilge: has joined #ruby

2016-03-09

[12:27:14] Bilge: Ping timeout: 240 seconds
[12:32:19] Bilge: has joined #ruby

2016-02-28

[00:01:53] Bilge: has joined #ruby

2016-02-27

[22:36:59] Bilge: Ping timeout: 268 seconds
[22:40:55] Bilge: has joined #ruby
[23:09:28] Bilge: *.net *.split

2016-02-19

[12:26:59] Bilge: Ping timeout: 260 seconds
[12:31:32] Bilge: has joined #ruby

2016-02-01

[05:49:35] Bilge: *.net *.split

2016-01-31

[12:25:28] Bilge: *.net *.split
[12:28:24] Bilge: has joined #ruby

2016-01-24

2015-12-06

[13:43:12] Bilge: Ping timeout: 240 seconds
[13:45:34] Bilge: has joined #ruby

2015-12-02

[15:38:32] Bilge: *.net *.split
[15:41:26] Bilge: has joined #ruby
[15:52:17] Bilge: *.net *.split
[16:47:42] Bilge: has joined #ruby

2015-11-29

[12:48:51] Bilge: Do you guys think Rubo makes you into a smarter?

2015-11-27

[10:40:26] Bilge: *.net *.split
[10:42:49] Bilge: has joined #ruby
[10:45:58] Bilge: *.net *.split
[10:47:03] Bilge: has joined #ruby

2015-11-26

[19:01:51] Bilge: *.net *.split
[19:02:38] Bilge: has joined #ruby

2015-11-17

[20:59:30] Bilge: has joined #ruby

2014-05-10

[01:23:35] Bilge: How do you return/break in module code?
[01:27:18] Bilge: How do you stop execution in a module
[01:27:38] Bilge: No, for whatever
[01:27:42] Bilge: For guarding
[01:27:50] Bilge: You can't use return in a module like you can in a method
[01:28:21] Bilge: So there is no way to break in a module?
[01:32:24] Bilge: I'm writing some entry point code
[01:32:54] Bilge: I might not want to start the script in some condition
[01:36:06] Bilge: arrubin: https://gist.github.com/Bilge/c7c055d705b6040a0ecf
[01:38:33] Bilge: string =~ /\w/
[01:38:43] Bilge: string =~ /^\w+$/
[01:39:07] Bilge: string =~ /^\w*$/
[01:40:03] Bilge: arrubin: there isn't one now, but I wanted it to be procedural
[01:40:40] Bilge: refresh: https://gist.github.com/Bilge/c7c055d705b6040a0ecf
[01:47:11] Bilge: So bad that you may actually die from them
[01:49:50] Bilge: I don't think anyone here knows or cares what you're talking about
[13:52:16] Bilge: Which language is better than Ruby?
[14:03:43] Bilge: You don't answer a question with a question
[14:03:52] Bilge: It's up to your interpretation of the question
[14:13:57] Bilge: apeiros: I see you are an apostle of the Church of Ruby
[14:15:23] Bilge: >if you do not worship at the Shrine of Matz daily you are not welcome in our hallowed halls
[14:16:22] Bilge: I accept your answer
[14:17:09] Bilge: >do not deign to speak out against the motherlanguage

2014-05-06

[00:56:18] Bilge: Why does respond_to? return false for a method exposed by attr_reader?
[00:58:09] Bilge: jenrzzz: I forgot to specify the method as a Symbol
[01:04:11] Bilge: What keyword refers to the current instance of a class?
[01:04:20] Bilge: self doesn't seem to be an instance
[01:04:32] Bilge: I can't write `x.is_a? self`
[01:04:50] Bilge: In an instance method
[01:05:06] Bilge: TypeError: class or module required
[01:06:39] Bilge: Oh I see :^)
[15:45:42] Bilge: Why can't I write: @foo << *@bar
[15:49:57] Bilge: Hanmac: concat works fine but why can't I use the splat this way?
[15:50:04] Bilge: I can't even write: @foo << (*@bar)
[15:50:41] Bilge: That doesn't seem to be the reason, and @bar is a single-element array
[15:51:54] Bilge: So basically you can never use a splat on the right side of any operator?
[15:51:59] Bilge: Except for = I suppose

2014-05-05

[14:17:47] Bilge: Can you inherit from Symbol?
[14:20:38] Bilge: But I can't identify which symbol my class is representing since initialize is private?
[14:21:05] Bilge: If I inherit from Symbol how can I define which Symbol I am?
[14:22:24] Bilge: I have some cards which have IDs that are symbols. I add the cards to a hash and I want to be able to pull them out by symbol name
[14:23:18] Bilge: I can define equality between Card and Symbol by overriding == and eql? but this creates a barmy state where Card can be equal to Symbol but Symbol is not equal to card and therefore Hash.include? returns false still
[14:23:49] Bilge: attr_reader
[14:24:43] Bilge: Well no because I'm actually using a Set rather than a hash directly
[14:25:10] Bilge: It seemed like the right thing to do
[14:26:21] Bilge: So I can do things like subtract to remove ranges of cards or whatever
[14:27:21] Bilge: It's probably wrong, actually, since I don't really have a use case for that. I'd probably be removing ranges rather than matching cards
[14:27:57] Bilge: Array might be more correct, but it will still have the same issue that I can't look up a card by its Symbol
[14:32:28] Bilge: pontiki: just a symbol
[14:35:35] Bilge: Yes, since Array.include? is O(n) and Hash is faster
[14:38:23] Bilge: It's not 52 cards
[14:38:43] Bilge: Whether I use a Hash or Set, the problem remains the same
[14:38:50] Bilge: I cannot look up a Card in my Hash using the Symbol
[14:39:05] Bilge: Because Cards are stored as the keys of the Hash
[14:40:55] Bilge: I want the flexibility to be able to look up a Card by Card OR Symbol
[14:40:58] Bilge: They should be interchangable
[14:43:12] Bilge: I think maybe you're right, this is a stupid idea
[14:43:20] Bilge: Since it is possible to have two cards with the same ID
[14:43:48] Bilge: It would be weird if someone had two of the same card, played one and the other one disappeared from their hand
[14:45:01] Bilge: It's a pretty fun pet project to learn Ruby :^)
[14:46:10] Bilge: I still think my idea is good, actually, since the hash should respond to both Card and Symbol
[14:46:29] Bilge: If it is imperative to select a particular card then I would not look up by Symbol
[14:47:33] Bilge: Deck[:id] or Deck[Card.new(:id)]
[14:48:09] Bilge: I defined both of those things but include? still fails
[14:48:22] Bilge: Because you cannot override #hash and #== for Symbol
[14:48:33] Bilge: I overrode all 3
[14:48:41] Bilge: I haven't
[14:48:56] Bilge: I've encapsulated Symbol in @id
[14:49:07] Bilge: Then I overrode all of those methods
[14:49:20] Bilge: Then I was in a state where Card == Symbol but Symbol != Card
[14:49:39] Bilge: Because depending on the order of operands depends on which equality method is called and I cannot change how Symbol behaves
[14:50:02] Bilge: Therefore Deck[:id] will always be false because it looks it up as Symbol.eql(Card) which is still always false
[14:50:13] Bilge: I mean Deck.include?(:id) will always be false
[22:20:08] Bilge: Why can't I write: class Foo; @my_var = :myval; end? @my_var seems to just disappear
[22:24:44] Bilge: How should I do what it is that I want?
[22:25:06] Bilge: Am I forced to declare all defaults in initialize()?
[22:25:47] Bilge: Also, if it belongs to the class and not any of its instances, why does it appear in instance_variables
[22:27:07] Bilge: Do you think this is good design?
[22:28:37] Bilge: Having two separate sets of variables depending on whether the class is created with #new or not
[22:28:59] Bilge: You're right, I don't
[22:29:37] Bilge: I'm starting to hate Ruby
[22:30:17] Bilge: Admittedly I should be using Node but I want to create at least one project in Ruby before dismissing it
[22:30:47] Bilge: Why does it?
[22:31:31] Bilge: I was drawn to all its surface benefits, it's idiomatic expressiveness which is touted by extravagant manuals like _why's guide
[22:31:51] Bilge: But then I am repelled by all the deep quirks that lie beneath its shiny exterior
[22:32:27] Bilge: Oh, everything is an object, isn't that great? But don't try to extend any of the core objects that will never work!
[22:33:13] Bilge: It's littered throughout all the literature I've read
[22:33:20] Bilge: Blog posts, manuals and even comments in this chat
[22:34:10] Bilge: I'm not talking about monkey patching
[22:34:13] Bilge: I'm just talking about inheritance
[22:34:25] Bilge: Of basic objects like Array and Hash or whatever
[22:35:22] Bilge: Set is a standard library class that basically proxies every method of Hash just because extending Hash isn't a good idea
[22:35:47] Bilge: It's fundamentally fucked up if you can't reuse the basic building blocks of software
[22:36:27] Bilge: You seem to prefer to have a baseless argument about it instead of teaching something that would aid in understanding why I might be wrong
[22:44:46] Bilge: Just another quirk
[22:46:03] Bilge: The docs, as I recall
[22:47:14] Bilge: If I come across it again I may

2014-05-04

[13:48:09] Bilge: What is the difference between SecureRandom.random_number and Random.rand?
[15:01:30] Bilge: Why is this invalid: :(c + '0') yet this is valid: :"#{c}0"
[15:04:06] Bilge: Oh, OK :^)
[18:58:37] Bilge: If I'm working on a project in files that are require()'d, but being changed with each iteration, in a given IRB session they are only loaded once so all my subsequent changes are ignored! How do I refresh require()'d files for a given IRB session?

2014-05-01

[23:04:22] Bilge: Why does FileUtils.instance_methods return []?
[23:08:48] Bilge: Epic, simply epic