Page 1 of 2 | Next »
[23:16:34] leea: shevy do you have any advice on how to get used to a codebase of such size like fpm?
[23:32:00] leea: not sure if i should ask here on on #fpm, but how would i run this thing? since it's a gem
[20:41:26] leea: So I'm trying to do metaprogramming, and I'm wondering if there's a class version of initialize where I can call this code from https://gist.github.com/drwl/148eae697769692743510be47148163d
[20:44:12] leea: so I discovered I can just put it in the class without it being wrapped in a method and that it will achieve the desired effect. Is this bad practice?
[21:04:37] leea: MOgolid it could be: 1) the VPN ip is blocked for that IRC server, 2) irc ports are blocked on your vpn, 3) other
[21:10:57] leea: elomatreb would you mind taking a look at this? https://gist.github.com/drwl/dfb0588b4eef2dab56a1a9332832cc7a I'm wondering if there's anything to work on the first version, or if the 2nd version is more preferred (i think this would be called a macro, right?)
[21:16:37] leea: jhass is there a way to achieve the first version, or is the bottom way preferred? https://gist.github.com/drwl/dfb0588b4eef2dab56a1a9332832cc7a
[21:23:48] leea: jhass are there any naming conventions when it comes to this? I'm not able to find anything on google
[00:32:09] leea: any atom users know what the v and c mean on autocompletion? http://imgur.com/4C2YA3F
[00:33:09] leea: postapocallyptic what are you trying to do? I believe you can declare variables outside of the constructor (initialize method)
[00:36:00] leea: al2o3-cr oh ok, yeah I should have googled first. I thought I could do autocompletion by pressing those letters, didn't work though
[00:39:31] leea: postapocallyptic on line 2 you defined @names, and in lines 4 and 5 you don't use the @,
[00:40:12] leea: The reason the 2nd class works is because attr_accessor defines a method "names" and it returns an array, then you're adding elements to that array
[00:40:52] leea: >> class Nameslist; @names = Array.new; def populate; @names << "blah"; @names << "yeah"; end; end
[03:29:06] leea: what would you add as a git commit message when doing tdd and implementing the tests so they pass w/ good code
[03:37:31] leea: oh i mean not implementing the tests, but implementing the code that the tests are testing for
[23:43:25] leea: can anyone tell me if i'm understanding this or not: so when you create an instance of a class, reopen the class and add new methods after instantiation, the instance still has access to these new methods because changes happen to the class?
[23:44:20] leea: are there any cases in ruby where this doesn't happen? (not including instance_eval)
[02:55:13] leea: so i'm trying to implement a way to delete multiple objects given indices, I'm wondering if there is a better solution than this for checking that the input are valid indexes (indices & (1..@items.length).to_a) == indices
[02:59:50] leea: on stackoverflow i'm reading that it might be better to convert them into sets (?) http://stackoverflow.com/questions/699448/ruby-how-do-you-check-whether-a-range-contains-a-subset-of-another-range