teotwaki

Activity Graph

Page 1 of 1

2017-04-25

[18:40:20] teotwaki: Read error: Connection reset by peer

2017-04-13

[15:10:51] teotwaki: *.net *.split
[15:11:47] teotwaki: has joined #ruby

2017-03-20

[20:29:14] teotwaki: *.net *.split

2016-07-18

[17:06:23] teotwaki: Ping timeout: 272 seconds
[17:25:04] teotwaki: has joined #ruby

2016-06-25

[13:51:12] teotwaki: Ping timeout: 258 seconds
[13:52:24] teotwaki: has joined #ruby

2016-06-23

[00:53:15] teotwaki: Ping timeout: 260 seconds
[01:04:18] teotwaki: has joined #ruby

2016-05-26

[03:45:29] teotwaki: Ping timeout: 250 seconds
[03:47:06] teotwaki: has joined #ruby

2016-05-18

[08:46:31] teotwaki: has joined #ruby

2016-04-05

[13:22:09] teotwaki: *.net *.split

2016-03-29

[17:07:29] teotwaki: Ping timeout: 268 seconds
[17:07:56] teotwaki: has joined #ruby

2016-03-25

[17:57:25] teotwaki: has joined #ruby

2015-12-15

[13:44:41] teotwaki: has left #ruby: ("WeeChat 1.3")
[13:52:40] teotwaki: has joined #ruby
[13:54:06] teotwaki: has left #ruby: ("WeeChat 1.3")

2015-12-06

[13:43:13] teotwaki: Ping timeout: 240 seconds
[13:49:10] teotwaki: has joined #ruby

2015-12-02

[15:38:33] teotwaki: *.net *.split
[15:41:26] teotwaki: has joined #ruby
[15:52:18] teotwaki: *.net *.split
[16:47:41] teotwaki: has joined #ruby

2015-11-27

[08:28:38] teotwaki: Ping timeout: 272 seconds
[08:33:12] teotwaki: has joined #ruby
[10:34:49] teotwaki: *.net *.split
[10:42:50] teotwaki: has joined #ruby
[10:46:00] teotwaki: *.net *.split
[10:47:04] teotwaki: has joined #ruby

2015-11-26

[07:54:16] teotwaki: has joined #ruby

2015-11-22

[03:45:04] teotwaki: *.net *.split
[03:45:43] teotwaki: has joined #ruby

2015-11-18

[15:16:19] teotwaki: Ping timeout: 240 seconds
[15:19:19] teotwaki: has joined #ruby

2015-11-17

[05:00:03] teotwaki: Ping timeout: 246 seconds
[05:00:52] teotwaki: has joined #ruby

2015-11-16

[07:15:49] teotwaki: Ping timeout: 448 seconds

2015-11-12

[23:51:06] teotwaki: Ping timeout: 246 seconds
[23:56:08] teotwaki: has joined #ruby

2015-10-22

[15:06:50] teotwaki: *.net *.split

2015-10-18

[05:02:52] teotwaki: *.net *.split
[05:13:33] teotwaki: has joined #ruby

2015-10-16

[00:20:28] teotwaki: has joined #ruby
[03:50:33] teotwaki: Ping timeout: 246 seconds
[03:53:34] teotwaki: has joined #ruby

2015-10-06

[20:43:47] teotwaki: *.net *.split
[20:46:21] teotwaki: has joined #ruby

2015-09-09

[00:48:29] teotwaki: Ping timeout: 246 seconds
[00:55:01] teotwaki: has joined #ruby

2015-08-28

[10:27:04] teotwaki: *.net *.split
[10:30:05] teotwaki: has joined #ruby
[10:30:42] teotwaki: *.net *.split
[10:32:55] teotwaki: has joined #ruby

2015-08-24

[10:49:39] teotwaki: Ping timeout: 246 seconds
[11:01:02] teotwaki: has joined #ruby

2015-08-20

[19:51:52] teotwaki: Ping timeout: 246 seconds
[19:55:07] teotwaki: has joined #ruby

2015-07-29

[14:03:23] teotwaki: Ping timeout: 244 seconds
[14:22:08] teotwaki: has joined #ruby

2015-07-17

[23:54:22] teotwaki: Ping timeout: 246 seconds
[23:57:52] teotwaki: has joined #ruby

2015-07-16

[16:21:13] teotwaki: Ping timeout: 246 seconds
[16:24:12] teotwaki: has joined #ruby

2015-07-15

[12:17:01] teotwaki: Ping timeout: 246 seconds
[12:20:22] teotwaki: has joined #ruby
[12:28:34] teotwaki: Ping timeout: 246 seconds
[12:31:53] teotwaki: has joined #ruby
[14:16:22] teotwaki: Ping timeout: 246 seconds
[14:23:34] teotwaki: has joined #ruby

2015-07-14

[18:30:53] teotwaki: *.net *.split
[18:31:34] teotwaki: has joined #ruby

2015-07-03

[00:42:20] teotwaki: Ping timeout: 256 seconds
[00:45:26] teotwaki: has joined #ruby

2015-06-29

[15:26:15] teotwaki: Ping timeout: 246 seconds
[15:27:55] teotwaki: has joined #ruby

2015-06-22

[10:43:13] teotwaki: *.net *.split
[10:43:41] teotwaki: has joined #ruby

2015-06-20

[20:30:00] teotwaki: *.net *.split

2015-06-07

[00:00:41] teotwaki: has joined #ruby

2015-06-06

[23:58:16] teotwaki: Ping timeout: 265 seconds

2015-06-04

[11:12:29] teotwaki: Ping timeout: 265 seconds
[11:15:35] teotwaki: has joined #ruby

2014-12-11

[11:35:13] teotwaki: because afaik, that's not valid XML
[11:36:13] teotwaki: workmad3: oh, my bad then.

2014-11-20

[10:03:36] teotwaki: turtlejim: I'd consider rails and ruby to be fairly distinct topics.
[10:04:31] teotwaki: turtlejim: you can't really say that "rails has major benefits over ruby", they're two completely different things. One is a web-oriented framework, the other is a language.
[10:06:41] teotwaki: depending on your use case
[10:07:47] teotwaki: if you only want to print "." on GET requests, Rails might be overkill.

2014-11-19

[11:38:50] teotwaki: why would nil have a superclass method?
[11:39:56] teotwaki: the watcher-watchers watch the watchers
[14:48:32] teotwaki: why would players be part of the board?
[14:48:57] teotwaki: that makes no sense whatsoever.
[14:50:55] teotwaki: have a game class, board and player, game holds both board and player objects, and initializes them if appropriate. Players can be told they are playing on a specific board as shortcuts, but board should not be owners of the players.
[14:52:00] teotwaki: is a board composed of players? No. So it should not instantiate them nor take care of their life cycle.
[14:52:58] teotwaki: @player.take_square @board, number
[14:53:16] teotwaki: or as I said, when you initialise the player object
[14:53:24] teotwaki: Player.new @board
[14:57:06] teotwaki: class Player; def initialize(board); assign_to board; end; def assign_to(board); @board = board; end; def assigned?; defined?(@board) and !@board.nil?; end; def take_square(number, board = nil); if board.nil? and !assigned?; # raise here, etc...
[15:00:44] teotwaki: waxjar: composition != aggregation
[15:01:51] teotwaki: in this case, the board can continue to exist with the players changing to another board.
[15:03:22] teotwaki: i've typed board so many times and heard it so many times in my head it doesn't sound like a word anymore.
[15:04:24] teotwaki: waxjar: true, it was just a shorthand to not have to send @board to the take_square() method all the time, but a current_board helper would be more appropriate, I concur.
[15:04:58] teotwaki: jhass: nice, hadn't thought of that.
[15:05:46] teotwaki: jhass: is that a common design pattern in game development?

2014-11-17

[14:18:56] teotwaki: alex88: missing comma between 'Dashboards' and the dictionary
[14:19:02] teotwaki: err, block.

2014-10-17

[07:44:50] teotwaki: Hi, I'm using rspec to run some behaviour tests against my API based on Grape. I use Rack::Test::Methods, which works fine, however, I'm running into some performance issues: If I run the suite on my models (which actually hits the DB), ~40 tests will execute in roughly 0.14 seconds. If I run the API suite, ~30 tests run in 30 seconds. The first 10 or so tests are fast, things go very much downhill after those.
[07:45:05] teotwaki: How would I go about analysing/understanding this issue?
[07:52:18] teotwaki: hanmac1: sure, that works.
[07:52:24] teotwaki: hanmac1: ta
[07:57:17] teotwaki: HewloThere: what webframework wouldn't be able to do so?
[08:34:19] teotwaki: Ok, so after doing a bit of refcounting, I can confirm that my issue comes from uncollectable references (see https://github.com/intridea/grape/issues/665#issuecomment-59482615 for details). I guess I'll keep digging to try and find a solution.
[08:40:13] teotwaki: "I tried to buy a Renault in a Renault shop, but there were no salesmen available, so I came into this Ford shop. Why won't you sell me a Renault?!"
[08:41:00] teotwaki: just learn to program, the language doesn't really matter.
[08:42:13] teotwaki: that's because those who say it's amazing are zealots
[08:42:46] teotwaki: The number of (mainly PHP) devs in my company who can look at that article and say "he's nit-picking"
[08:44:08] teotwaki: I love ruby, but I have to say I much prefer Twisted over EventMachine when it comes to event-driven programming.
[08:45:18] teotwaki: learn one language a year
[08:45:47] teotwaki: HewloThere: whatever you do, don't assume you're good.
[08:46:33] teotwaki: HewloThere: you suck at development. Your code will be absolute shite. Ask people for input, learn how to explain the architecture you're imagining.
[08:47:09] teotwaki: HewloThere: stop with the focus on web
[08:47:17] teotwaki: HewloThere: web developers are a dime a dozen
[08:47:40] teotwaki: apeiros: really? Node.js doesn't seem restricted to the web
[08:48:08] teotwaki: apeiros: I disagree, we have 30k SLOC of Node in the backend, barely 10k on the client.
[08:48:38] teotwaki: apeiros: nope, VoIP event processing.
[08:48:56] teotwaki: apeiros: it's a backend to our SBCs.
[08:49:23] teotwaki: apeiros: I know, I'm special :)
[08:50:02] teotwaki: agent_white: the C++ part is 350k SLOC
[08:50:24] teotwaki: agent_white: the Python/Twisted part is 50k
[08:51:32] teotwaki: actually, look at PHP after you've looked at a few languages that are coherent
[08:52:01] teotwaki: if you start with PHP, it'll take a lot of effort to excusing any mistake a language makes
[08:52:10] teotwaki: s/to/to stop/
[08:53:34] teotwaki: The horror with PHP is how punishing it is to use for the dev
[08:54:33] teotwaki: And as if hit by Stockholm Syndrome, the devs keep asking for more and even protecting/defending their torturer
[08:55:52] teotwaki: then again, he's only 14, he has time
[08:56:10] teotwaki: but yeah, you won't be the next Zuckerberg, if that's why you were getting into development.

2014-10-15

[13:50:26] teotwaki: a_: some strange default
[13:50:39] teotwaki: a_ but they can never be anything else than private, AFAICT
[13:51:00] teotwaki: even though they are protected in the sense that a subclass can access them.
[13:55:36] teotwaki: jheg: please don't paste
[13:56:32] teotwaki: sure you can
[13:56:40] teotwaki: with instance_variable_get
[13:59:22] teotwaki: jheg: if you blindly trust input from other objects, just use attr_writer
[14:00:05] teotwaki: DefV: so attr_reader and attr_writer, attr_accessor?
[14:01:58] teotwaki: jheg: please stop pasting into the channel

2014-10-09

[07:44:57] teotwaki: Hi, is it appropriate to ask about grape/rack/unicorn/rspec integration issues here?
[07:46:05] teotwaki: Actually, this one may be more of a bundler/Gemfile problem, and my lack of understanding of the include path.