« Back to channel list

#ruby - 09 July 2016

« Back 1 day Forward 1 day »
[00:00:18] ghr: has joined #ruby
[00:00:29] pawnbox: has joined #ruby
[00:02:04] roamingdog: has joined #ruby
[00:05:40] Bugboy1028: has joined #ruby
[00:06:37] JakFrist: has joined #ruby
[00:07:48] shevy: 6 * 5 euro + 1 * 3 euro + 12 * 10 euro !
[00:10:35] houhoulis: has joined #ruby
[00:10:49] ghr: has joined #ruby
[00:11:28] mattwashere: has joined #ruby
[00:11:35] JeanCarloMachado: has joined #ruby
[00:11:55] johnny56: has joined #ruby
[00:15:04] blackmesa: has joined #ruby
[00:15:13] whathappens: has joined #ruby
[00:18:37] JakFrist: has joined #ruby
[00:19:21] mistermocha: has joined #ruby
[00:20:26] mattwashere: has joined #ruby
[00:20:26] kevr: has joined #ruby
[00:21:16] nankyokusei: has joined #ruby
[00:21:41] whathappens: has joined #ruby
[00:22:20] ghr: has joined #ruby
[00:24:30] blackmesa: has joined #ruby
[00:25:05] A5101: has joined #ruby
[00:25:27] LegenTeri: has joined #ruby
[00:26:54] charliesome: has joined #ruby
[00:28:04] PlasmaStar: has joined #ruby
[00:28:11] weaksauce: has joined #ruby
[00:29:34] mattwashere: has joined #ruby
[00:32:50] ghr: has joined #ruby
[00:33:41] mattwashere: has joined #ruby
[00:34:36] Marsjan: has joined #ruby
[00:35:37] fschuindt: has joined #ruby
[00:36:34] pawnbox: has joined #ruby
[00:38:19] fschuindt: Why is such thing impossible? https://gist.github.com/fschuindt/967ecdc97f457b535b8be5a45343feff (loops through recursion like in functional languages)
[00:38:26] enterprisey: has joined #ruby
[00:39:41] fschuindt: Actually it needs a clause if n > 0
[00:40:01] colegatron: has joined #ruby
[00:41:25] LegenTeri: has joined #ruby
[00:41:33] Es0teric: has joined #ruby
[00:43:01] fullofcaffeine: has joined #ruby
[00:43:39] KnownSyntax_: has joined #ruby
[00:43:39] KnownSyntax_: has joined #ruby
[00:49:21] ghr: has joined #ruby
[00:49:28] fullofca_: has joined #ruby
[00:51:53] Rodya_: has joined #ruby
[00:52:30] Guest97566: has joined #ruby
[00:53:43] krakenr: Is there any way to do this in one line?
[00:53:44] krakenr: https://gist.github.com/KrakenHH/8c7d24dc1b8954d101b87aa6e9b7fe45
[00:55:43] krakenr: can you return a break value
[00:56:10] paultreny: has joined #ruby
[00:56:10] paultreny: has joined #ruby
[00:58:51] ghr: has joined #ruby
[01:00:54] Rodya_: has joined #ruby
[01:02:23] jhack: has joined #ruby
[01:02:39] mattwashere: has joined #ruby
[01:04:10] lupine: kraken_: return call_method if move_piece_xy == 's' ?
[01:04:40] krakenr: Looks good to me
[01:07:03] krakenr: lupine, in a similar vein, is there any way to do THIS in one line https://gist.github.com/KrakenHH/e110b5502eabb4a09e4036455b28b9af?
[01:07:57] lupine: nothing attractive
[01:08:03] lupine: why the obsession with a single line?
[01:08:13] mistermocha: has joined #ruby
[01:08:19] krakenr: I'm trying to keep my methods under 6 lines
[01:08:35] lupine: I would suggest thinking in terms of expressions rather than lines
[01:08:44] lupine: you can put as many expressions onto one line if you like, after all
[01:08:52] krakenr: I suppose that's true
[01:08:55] lupine: the purpose is not to have short methods, it is to have easily understandable methods
[01:09:05] krakenr: What exactly is an expression
[01:09:16] lupine: a statement that returns a value
[01:09:27] lupine: (except statements aren't expressions, but there you are)
[01:09:36] lupine: in ruby, "x = 1" is an expression
[01:09:50] lupine: "x = 1; y = 2" is two expressions on a single line
[01:10:44] whathappens: has joined #ruby
[01:11:05] lupine: for what you're doing, I'd suggest having all these checks as simple state methods, then have a game state, then you can have a single monster method that is case game_state ... end
[01:11:21] lupine: you have to zoom out quite far to see it, I expect
[01:11:39] lupine: (and yes, a giant case statement is evil, but there you go)
[01:14:34] ur5us: has joined #ruby
[01:21:50] AndyBotwin: has joined #ruby
[01:22:52] ghr: has joined #ruby
[01:23:29] ekinmur: has joined #ruby
[01:26:15] DevMagpie: has joined #ruby
[01:30:06] blackgoat: has joined #ruby
[01:31:00] smathy: has joined #ruby
[01:31:08] agentmeerkat: has joined #ruby
[01:32:56] skalfyfan: has joined #ruby
[01:33:23] ghr: has joined #ruby
[01:33:29] roamingdog: has joined #ruby
[01:34:21] Rodya_: has joined #ruby
[01:35:19] RegulationD: has joined #ruby
[01:35:54] cdg: has joined #ruby
[01:40:27] Elvin: has joined #ruby
[01:41:01] sarbs: has joined #ruby
[01:42:44] karapetyan: has joined #ruby
[01:44:27] dangerousdave: has joined #ruby
[01:44:37] jaguarmagenta: has joined #ruby
[01:45:54] ghr: has joined #ruby
[01:48:15] hahuang61: has joined #ruby
[01:51:22] Rodya_: has joined #ruby
[01:52:16] flashpoint9: has joined #ruby
[01:54:18] ekinmur: has joined #ruby
[01:55:24] ghr: has joined #ruby
[01:59:00] karapetyan: has joined #ruby
[02:00:55] arescorpio: has joined #ruby
[02:01:13] benlieb: has joined #ruby
[02:02:54] CloCkWeRX: has joined #ruby
[02:04:13] AndyBotwin: has joined #ruby
[02:05:55] ghr: has joined #ruby
[02:07:22] mattwashere: has joined #ruby
[02:08:36] lxsameer: has joined #ruby
[02:08:57] Es0teric: has joined #ruby
[02:10:40] LegenTeri: has joined #ruby
[02:12:14] c0mrad3: has joined #ruby
[02:14:56] arlek: has joined #ruby
[02:15:26] ghr: has joined #ruby
[02:18:25] SuperLag: has joined #ruby
[02:22:11] nankyokusei: has joined #ruby
[02:22:42] nando293921: has joined #ruby
[02:24:56] ghr: has joined #ruby
[02:25:12] blackmesa: has joined #ruby
[02:26:49] PaulCapestany: has joined #ruby
[02:29:28] charliesome: has joined #ruby
[02:34:09] agentmeerkat: has joined #ruby
[02:34:28] ghr: has joined #ruby
[02:36:23] RegulationD: has joined #ruby
[02:40:10] pilne: i've done some research (coming from mostly python over the years), on what to do to "speed up" code. in python i'd first dip into cython, and then into c itself. with ruby i think it looks like jruby and then native c/c++ (unless there is already a good c/c++ lib to wrap compared to a java implementation, then c/c++ first).
[02:43:34] benlieb: has joined #ruby
[02:44:10] ur5us: has joined #ruby
[02:44:27] ghr: has joined #ruby
[02:46:23] agentmeerkat: has joined #ruby
[02:49:45] zacstewart: has joined #ruby
[02:51:11] enterprisey: has joined #ruby
[02:52:38] kevr: has joined #ruby
[02:53:58] ghr: has joined #ruby
[02:56:42] memorasus1: has joined #ruby
[02:56:43] flashpoint9: has joined #ruby
[03:03:28] ghr: has joined #ruby
[03:06:29] pawnbox: has joined #ruby
[03:10:39] braincrash: has joined #ruby
[03:11:35] smathy: has joined #ruby
[03:12:47] gix: has joined #ruby
[03:13:32] ghr: has joined #ruby
[03:16:54] colegatron: has joined #ruby
[03:17:20] karapetyan: has joined #ruby
[03:17:46] Polysics: has joined #ruby
[03:18:41] Yzguy: has joined #ruby
[03:21:35] treaki__: has joined #ruby
[03:22:21] ledestin: has joined #ruby
[03:23:29] ghr: has joined #ruby
[03:23:52] craigp_: has joined #ruby
[03:23:53] coffeecupp: has joined #ruby
[03:26:57] skalfyfan: has joined #ruby
[03:27:05] blackmesa: has joined #ruby
[03:29:46] Tempesta: has joined #ruby
[03:31:33] zacstewart: has joined #ruby
[03:31:59] kevr: has joined #ruby
[03:34:10] jaguarmagenta: has joined #ruby
[03:35:00] ghr: has joined #ruby
[03:37:46] valkyr1e: has joined #ruby
[03:41:23] z3ndrag0n: has joined #ruby
[03:44:30] ghr: has joined #ruby
[03:46:30] mkosaki: has joined #ruby
[03:48:59] hahuang61: has joined #ruby
[03:51:30] al2o3-cr: has joined #ruby
[03:53:12] SilverKey: has joined #ruby
[03:54:01] ghr: has joined #ruby
[03:54:37] jazzonmymind`: has joined #ruby
[03:54:39] havenwood: pilne: Other options include Crystal or Rust extensions or JRuby+truffle has performance rivaling extensions: http://jruby.org/bench9000/
[03:55:44] CloCkWeRX: has joined #ruby
[03:56:26] benlieb: has joined #ruby
[03:58:09] colegatron: has joined #ruby
[03:58:36] havenwood: http://chrisseaton.com/rubytruffle/modularity15/rubyextensions.pdf
[03:58:39] pilne: havenwood=> i had thought of helix and/or rust, i hadn't thought of crystal or the trufffle version of jruby, i *like* the ruby ways a bit more as they seem to remain more "ruby" whereas with python i had to become at least familiar with the other langauges
[03:59:35] mattwashere: has joined #ruby
[03:59:58] havenwood: pilne: Yeah, JRuby+truffle+graal really is Ruby, so it'll be exciting when they get RubyGems working.
[04:00:11] havenwood: pilne: And Crystal-lang is like you say way more Ruby than most!
[04:00:20] hippyphysicist: has joined #ruby
[04:00:59] pilne: i haven't dipped into jruby much at all, but i'll assume that like other jvm languages, it can (with some "cleaning" of passed data) use java libs?
[04:01:26] alfiemax: has joined #ruby
[04:01:29] bougyman: it can, but you should do so sparingly.
[04:01:33] bougyman: as with all deps, really.
[04:01:43] chouhoulis: has joined #ruby
[04:02:33] havenwood: pilne: Just an aside, but there's a #jruby channel as well.
[04:02:58] havenwood: And a #crystal-lang channel.
[04:03:23] djbkd: has joined #ruby
[04:03:33] pilne: i really am not at that point yet in my ruby-ways, my curiosity tends to get ahead of my abilities frequently :)
[04:03:43] kevr: has joined #ruby
[04:04:01] ghr: has joined #ruby
[04:04:08] al2o3-cr: ruby needs a drink
[04:05:01] al2o3-cr: the best general lang inter
[04:06:25] CloCkWeRX: has joined #ruby
[04:08:47] A_Drone: has joined #ruby
[04:10:57] Ebok: has joined #ruby
[04:12:22] skalfyfan: has joined #ruby
[04:15:35] A_Drone: has joined #ruby
[04:16:32] ghr: has joined #ruby
[04:16:38] leea: has joined #ruby
[04:18:35] al2o3-cr: give it a pigging rest
[04:19:10] pawnbox: has joined #ruby
[04:21:43] jaguarmagenta: has joined #ruby
[04:22:46] jenrzzz: has joined #ruby
[04:23:04] nankyokusei: has joined #ruby
[04:24:07] leea: has joined #ruby
[04:26:03] ghr: has joined #ruby
[04:30:00] blackmesa: has joined #ruby
[04:32:16] A_Drone: has joined #ruby
[04:34:14] leea: has joined #ruby
[04:34:44] postmodern: has joined #ruby
[04:35:32] shevy: some interesting "tricks" or more snippets really: http://blog.ifyouseewendy.com/blog/2015/11/30/some-hash-tricks-in-ruby/
[04:35:33] ghr: has joined #ruby
[04:35:50] shevy: I didn't think about strict fetching
[04:37:26] Madplatypus: has joined #ruby
[04:37:57] roamingdog: has joined #ruby
[04:38:45] elomatreb: shevy: Is there an advantage to using the default block like that instead of Hash#fetch?
[04:39:05] shevy: I am not sure :-)
[04:39:17] shevy: I don't think I have ever needed to raise an error so far
[04:39:28] shevy: since if it is important, I check whether a key exists or not
[04:39:33] roamingdog: has joined #ruby
[04:39:35] elomatreb: Maybe that you could use a custom error class
[04:39:53] voodoofish4301: has joined #ruby
[04:45:39] ghr: has joined #ruby
[04:46:00] jenrzzz: has joined #ruby
[04:46:00] jenrzzz: has joined #ruby
[04:51:35] hutch34: has joined #ruby
[04:51:56] alfiemax: has joined #ruby
[04:54:22] flashpoint9: has joined #ruby
[04:54:32] djbkd: has joined #ruby
[04:55:32] dtzuzu: has joined #ruby
[04:55:34] ghr: has joined #ruby
[04:56:04] jenrzzz: has joined #ruby
[04:56:33] AndrewIsHere: has joined #ruby
[05:06:54] pawnbox: has joined #ruby
[05:07:35] ghr: has joined #ruby
[05:08:27] minimalism: has joined #ruby
[05:10:00] hk238: has joined #ruby
[05:11:29] Vingador: has joined #ruby
[05:17:53] matp: has joined #ruby
[05:19:08] karapetyan: has joined #ruby
[05:21:06] ghr: has joined #ruby
[05:27:18] yadobujo: has joined #ruby
[05:28:07] yadobujo: has joined #ruby
[05:30:04] Es0teric: has joined #ruby
[05:30:32] A_Drone: has joined #ruby
[05:30:36] ghr: has joined #ruby
[05:30:45] Es0teric: has joined #ruby
[05:31:12] charliesome: has joined #ruby
[05:31:30] Dimik--: has joined #ruby
[05:31:56] Dimik--: how can i do this (0.001..1).step(0.001).map {|x| x.round(3)} in reverse ?
[05:33:02] blackmesa: has joined #ruby
[05:33:18] shevy: if you only need the target array
[05:33:20] shevy: (0.001..1).step(0.001).map {|x| x.round(3)}.reverse
[05:34:27] RegulationD: has joined #ruby
[05:35:04] alt513: has joined #ruby
[05:36:27] Rodya_: has joined #ruby
[05:37:10] futilegames: has joined #ruby
[05:37:22] A5101: has joined #ruby
[05:38:24] shevy: there also is .reverse_each (2..100).step(0.1).reverse_each(&method(:p))
[05:38:39] vuoto: has joined #ruby
[05:38:55] shevy: 100.step(2, -2.0, &method(:p))
[05:39:07] shevy: I am copy pasting from http://stackoverflow.com/a/3030164/722915
[05:39:20] Dimik--: yeah i did the .reverse_each
[05:39:41] Dimik--: the {}.reverse also worked but it's jumpy in pry/irb
[05:40:08] Dimik--: adding the records in sqlite3 so the actual code looks like
[05:41:09] ghr: has joined #ruby
[05:41:15] Dimik--: (0.001..1).step(0.001).map {|x| db.execute "INSERT INTO offer(offer) VALUES(#{x})"}.reverse
[05:41:19] Dimik--: that worked well
[05:41:47] Dimik--: only in pry it gave out a ton of nils at the end
[05:42:08] xiaket: has joined #ruby
[05:42:28] Dimik--: so yeh somethign like for x in (1..1.5).step(0.05).reverse_each do end also works
[05:44:56] Rodya_: has joined #ruby
[05:45:50] Dimik---: has joined #ruby
[05:45:55] Dimik---: network flapping
[05:46:11] karapetyan: has joined #ruby
[05:49:02] tvw: has joined #ruby
[05:49:43] kevr: has joined #ruby
[05:49:44] hahuang61: has joined #ruby
[05:53:39] daumie: has joined #ruby
[05:55:37] ghr: has joined #ruby
[05:57:11] A_Drone: has joined #ruby
[05:57:23] A_Drone: has joined #ruby
[05:57:26] pontiki: has joined #ruby
[05:57:36] Devalo: has joined #ruby
[06:05:08] ghr: has joined #ruby
[06:05:54] craigp_: has joined #ruby
[06:07:07] chouhoulis: has joined #ruby
[06:07:24] alfiemax: has joined #ruby
[06:07:44] lkb: has joined #ruby
[06:10:32] headius: pilne: JRuby proper can use Java libraries very easily. I don't believe that's implemented for JRuby+Truffle yet (and it's not really production-ready for a while anyway)
[06:15:09] ghr: has joined #ruby
[06:16:23] aryaching: has joined #ruby
[06:19:22] Dimik: has joined #ruby
[06:21:44] TomyLobo: has joined #ruby
[06:22:43] dionysus69: has joined #ruby
[06:24:01] nankyokusei: has joined #ruby
[06:24:13] A_Drone: has joined #ruby
[06:24:39] ghr: has joined #ruby
[06:25:47] elifoster: has joined #ruby
[06:28:14] Devalo: has joined #ruby
[06:33:10] JoshGlzBrk: has joined #ruby
[06:33:21] zacstewart: has joined #ruby
[06:34:10] ghr: has joined #ruby
[06:34:34] lkba: has joined #ruby
[06:34:48] blackmesa: has joined #ruby
[06:35:20] ReinH: has joined #ruby
[06:41:22] redria: has joined #ruby
[06:42:17] dc4: has joined #ruby
[06:44:41] ghr: has joined #ruby
[06:46:43] jenrzzz: has joined #ruby
[06:46:44] jenrzzz: has joined #ruby
[06:47:38] karapetyan: has joined #ruby
[06:51:18] hogetaro: has joined #ruby
[06:52:46] mistermocha: has joined #ruby
[06:53:26] The_Phoenix1: has joined #ruby
[06:53:35] mistermocha: has joined #ruby
[06:54:11] ghr: has joined #ruby
[06:54:30] pjstirling: has joined #ruby
[06:57:05] flughafen_: has joined #ruby
[06:57:19] dionysus70: has joined #ruby
[06:59:14] mkosaki: has joined #ruby
[07:00:39] ddffg: has joined #ruby
[07:01:09] mistermocha: has joined #ruby
[07:01:41] hck89: has joined #ruby
[07:02:35] hck89: has joined #ruby
[07:03:10] deecross: has joined #ruby
[07:07:12] craigp_: has joined #ruby
[07:09:28] Jackneill: has joined #ruby
[07:12:34] alfiemax: has joined #ruby
[07:13:42] ghr: has joined #ruby
[07:14:43] solars: has joined #ruby
[07:14:55] al2o3-cr: has joined #ruby
[07:14:58] houhoulis: has joined #ruby
[07:17:07] yfeldblum: has joined #ruby
[07:17:53] der-landgraf: has joined #ruby
[07:17:53] der-landgraf: has joined #ruby
[07:20:20] max1: has joined #ruby
[07:21:58] yfeldblum: has joined #ruby
[07:24:13] ghr: has joined #ruby
[07:24:55] ReK2GnULinuX: has joined #ruby
[07:25:36] tmtwd: has joined #ruby
[07:29:28] miqlas-H: has joined #ruby
[07:29:52] Wildfyr: has joined #ruby
[07:32:22] crdpink2: has joined #ruby
[07:33:22] pjstirling: has joined #ruby
[07:34:20] ReK2: has joined #ruby
[07:35:18] pjstirling: hi, I updated the "rouge" ruby gem and it seems to be stuck while parsing the documentation, top says that the ruby-mri process has run for 27 minutes at 100% cpu on a reasonably fast machine, any suggestions?
[07:35:31] RegulationD: has joined #ruby
[07:35:47] ghr: has joined #ruby
[07:35:56] kevr: has joined #ruby
[07:36:21] jenrzzz: has joined #ruby
[07:36:36] blackmesa: has joined #ruby
[07:39:57] dtzuzu: has joined #ruby
[07:41:34] psaifi: has joined #ruby
[07:45:06] A_Drone: has joined #ruby
[07:47:17] ghr: has joined #ruby
[07:47:25] ReK2: has joined #ruby
[07:48:01] pontiki: pjstirling: my first reaction is stop it and restart it
[07:49:18] multi_io: has joined #ruby
[07:50:20] sinpai: has joined #ruby
[07:50:28] hahuang61: has joined #ruby
[07:51:50] elomatreb: pjstirling: I just tried to install rouge with rdoc, killed it after 10 minutes of CPU time
[07:53:01] BaroMeter: has joined #ruby
[07:53:11] pjstirling: I hunted down the rouge github page, and apparently there's an issue in rdoc that makes it go berserk, so for now you need to install it without rdoc
[07:53:59] elomatreb: Do you really need the docs? I have my rubygems configured to only build docs if I tell it to, never missed them
[07:55:20] yadobujo_: has joined #ruby
[07:56:46] flashpoint9: has joined #ruby
[07:57:17] ghr: has joined #ruby
[08:03:39] Es0teric: has joined #ruby
[08:04:21] tristanp: has joined #ruby
[08:07:22] benlieb: has joined #ruby
[08:08:48] ghr: has joined #ruby
[08:09:08] craigp_: has joined #ruby
[08:12:03] Devalo: has joined #ruby
[08:13:22] Devalo: has joined #ruby
[08:13:26] yeticry: has joined #ruby
[08:15:02] benlieb: has joined #ruby
[08:16:52] bkxd: has joined #ruby
[08:18:10] shock_one: has joined #ruby
[08:18:46] ghr: has joined #ruby
[08:19:42] firstdayonthejob: has joined #ruby
[08:22:56] voodoofish4302: has joined #ruby
[08:24:03] alfiemax: has joined #ruby
[08:24:43] nankyokusei: has joined #ruby
[08:25:21] blackmesa: has joined #ruby
[08:29:16] ghr: has joined #ruby
[08:29:30] karapetyan: has joined #ruby
[08:34:31] LoneHerm_: has joined #ruby
[08:35:16] digneety: has joined #ruby
[08:36:11] blackmesa: has joined #ruby
[08:37:55] zytrix: has joined #ruby
[08:39:47] ghr: has joined #ruby
[08:44:10] karapetyan: has joined #ruby
[08:45:37] conta: has joined #ruby
[08:50:17] ghr: has joined #ruby
[08:50:37] nhhc: has joined #ruby
[08:50:37] flughafen_: has joined #ruby
[09:00:18] ghr: has joined #ruby
[09:04:32] ^mtkd: has joined #ruby
[09:05:38] tristanp: has joined #ruby
[09:07:24] symm-: has joined #ruby
[09:09:49] ghr: has joined #ruby
[09:09:57] Mimorial: has joined #ruby
[09:11:30] hck89: has joined #ruby
[09:13:29] armyriad: has joined #ruby
[09:14:43] benlieb: has joined #ruby
[09:18:53] daumie: has joined #ruby
[09:19:37] insured: has joined #ruby
[09:19:40] codecop: has joined #ruby
[09:20:44] insured: I like ruby's syntax better than python. python's syntax makes me nervious
[09:20:58] alfiemax: insured, y?
[09:21:18] Wildfyr: insured: i think they are more or less equal
[09:21:47] insured: idk like print "a"*3
[09:22:05] insured: that's aggrevating
[09:22:26] alfiemax: thats same in ruby
[09:22:31] Wildfyr: insured: if u do that in ruby, u'd get the same thing :P
[09:22:50] ghr: has joined #ruby
[09:22:59] alfiemax: i stitched from python to ruby in like just hours
[09:23:09] Wildfyr: list comps in python are more readable (at places) however map seems so easy
[09:23:12] elomatreb: If you don't like that, Ruby may not be the best choice. Ruby overloads operators like that all the time
[09:24:42] insured: oh boy. well I will not use that
[09:25:03] M4dH4TT3r: has joined #ruby
[09:25:06] insured: what about the indentation that's confusing
[09:25:20] alfiemax: how can that be confusing?
[09:25:26] alfiemax: it makes the code readable
[09:25:34] alfiemax: we follow the same in ruby
[09:25:49] insured: I like the end to close the statement
[09:26:01] Wildfyr: alfiemax: it isn't necessary tho
[09:26:01] alfiemax: its just that the language as such doesn't makes indentation strict
[09:26:07] Wildfyr: alfiemax: yea
[09:27:03] alfiemax: but i always advice to use proper indentation, for whichever language it might be, it makes the code alot readable
[09:27:28] Wildfyr: alfiemax: thanks to python, i have that habit
[09:27:52] alfiemax: me too, but i started that long back when i learned C/C++
[09:28:05] elomatreb: If you like explicit end, maybe try Javascript? It requires the { }, but has free indentation
[09:28:13] insured: why would someone switch from python to ruby
[09:28:37] elomatreb: Scripting languages are basically personal preference
[09:28:37] ytti: someone i know coded python for years and switched to ruby like 2 years ago
[09:28:47] ytti: because he feels more productive on ruby
[09:29:06] M4dH4TT3r: anyone here that can tell me some off topic sht?
[09:29:06] alfiemax: personally i liked the rails framework, and django didnt feel so welcoming.. :)
[09:29:07] elomatreb: I really enjoy Ruby's syntax and standard library, that's the reason I'm using it
[09:29:07] LoneHermit: has joined #ruby
[09:29:25] ytti: i view ruby much cleaner implementation than python
[09:29:32] Xeago_: has joined #ruby
[09:29:35] ytti: python having many things, which to me, feel hacky and undesigned
[09:29:37] elomatreb: Ruby also doesn't have that 2/3 issue :D
[09:29:53] insured: yea it somehow feels cleaner and consice
[09:30:13] alfiemax: you mean float precision?
[09:30:19] ytti: stuff like len(obj), sorted(list), ".".join(list) annoy me lot more than they probably should
[09:30:21] M4dH4TT3r: wtf is haml?
[09:30:29] elomatreb: Python projects often only run in Python 2 or Python 3
[09:30:31] insured: 2 to 3 version
[09:30:44] insured: that's weird
[09:30:57] alfiemax: they are not much bothered about backward compatibility
[09:31:12] elomatreb: M4dH4TT3r: It's a templating engine. You write abstract code to generate HTML
[09:31:20] alfiemax: M4dH4TT3r, its just another templating engine liek erb or slim
[09:32:15] M4dH4TT3r: is fedora based on redhat? (i usually use deb) but have to learn RH for more than a month...
[09:32:24] ghr: has joined #ruby
[09:32:42] ccooke: M4dH4TT3r: fedora is red hat.
[09:32:59] insured: idk if ruby's functionality is as broad as python's though but I rather stick to it
[09:33:06] M4dH4TT3r: is cucumber a compiler?
[09:33:19] pawnbox: has joined #ruby
[09:33:19] elomatreb: It's a testing tool
[09:33:30] M4dH4TT3r: what kind of testing?
[09:33:43] Sammichmaker: elomatreb: I disagree.. most modules work fine in both, and 2to3 works nicely. I like python's strict indentation for clean code, and it's easier to read IMO
[09:33:46] ccooke: M4dH4TT3r: Well. It's the desktop/consumer/experimental distro that is the basis for Red Hat, the more official and supportable distro that's more corporate focussed
[09:34:04] elomatreb: Haven't used it, sorry. Maybe look at their website?
[09:34:24] M4dH4TT3r: as long as the term commands are the same thats all im worried about
[09:35:11] elomatreb: Sammichmaker: It's gotten better recently. But I had to work against that more than once, whereas I never had these problems with Ruby
[09:35:20] Sammichmaker: I think each person is used to whatever they prefer, but I like both for different reasons, however I find Python can get the job done in any application
[09:35:33] M4dH4TT3r: elom they actually seem to have a irc chan f0or cucumber but i cant tell if anyones there or like the topic says on something called gitter
[09:35:50] Sammichmaker: I do think rails is superior to django for a number of reasons as far as web frameworks go
[09:36:22] M4dH4TT3r: thought RH used su not sudo though...
[09:36:25] RegulationD: has joined #ruby
[09:36:42] elomatreb: As I said earlier, scripting languages are a matter of preference. I despise writing Javascript, but it's a perfectly fine language
[09:36:50] M4dH4TT3r: in fedora im doing sudo yum update...
[09:36:59] elomatreb: M4dH4TT3r: su and sudo are two different things
[09:37:02] M4dH4TT3r: shouldnt it be suyum update
[09:37:11] M4dH4TT3r: su yum update
[09:37:17] Sammichmaker: python is great for systems programming, cross platform standard lib, and comes with all major OS's natively (besides windows)
[09:37:29] Sammichmaker: and GUI development
[09:37:33] elomatreb: M4dH4TT3r: You're probably better off in a linux-focused channel
[09:38:00] elomatreb: Sammichmaker: I agree, esp. on the GUI part
[09:38:05] M4dH4TT3r: elom i only had a few q's about it everything after that is ruby
[09:38:37] elomatreb: You can press tab in your IRC client to autocomplete nicknames btw
[09:38:55] Sammichmaker: M4dH4TT3r: sudo grants users temporary root access to certain commands, su is for switching users
[09:39:20] M4dH4TT3r: im usually deb serv/network guy but over next 2mo need to learn ruby+ror with cucumber on RH
[09:39:22] Sammichmaker: so, if you're not root, you need to run "sudo yum ..." to run yum as root, assuming you can.
[09:39:51] Sammichmaker: Redhat / Debian doesn't matter when it comes to sudo/su
[09:39:52] M4dH4TT3r: yeah thats the way it is in deb Sammi just wasnt sure if same in RH
[09:40:44] Sammichmaker: yeah, all Linux behaves that way.
[09:40:56] M4dH4TT3r: so only real dif in term between RH and deb is yum/apt?
[09:41:22] Sammichmaker: those are the two different package managers
[09:41:28] xue: has joined #ruby
[09:41:30] M4dH4TT3r: thats what im saying
[09:41:38] Sammichmaker: so they are one distinction, but not the only
[09:41:50] Sammichmaker: stuff like SELinux / apparmor or whatever
[09:41:52] elomatreb: Aren't there also differences in release policies, etc?
[09:41:54] M4dH4TT3r: what else is there?
[09:42:29] Sammichmaker: well Redhat is enterprise Linux, Debian/Ubuntu is free
[09:43:08] elomatreb: Redhat (the company) offers paid support for their OS, Debian does not
[09:43:09] antgel: has joined #ruby
[09:43:13] Sammichmaker: There are RHEL "clones" like CentOS, but they include additional packages in yum by default.
[09:43:56] M4dH4TT3r: put it this way i know deb like the back of my hand, what do i need to know to jump into RH term besides the dif pkg managers?
[09:44:22] Sammichmaker: if you know Linux then you don't really need to worry about it
[09:44:33] M4dH4TT3r: k, works for me
[09:44:34] Sammichmaker: just the package management
[09:44:42] Sammichmaker: the rest you'll figure out as you go
[09:45:05] Sammichmaker: stuff like systemd vs upstart you can figure out if you are familiar with Linux.
[09:45:23] Sammichmaker: SELinux is for RHEL, which you can google
[09:46:42] Sammichmaker: I don't really use it, I mostly use Debian based linux (e.g. Ubuntu), but it's a firewall/applications rules policy type thing
[09:46:53] futilegames: has joined #ruby
[09:47:12] M4dH4TT3r: yeah, i only use deb personally
[09:47:13] Sammichmaker: I just prefer iptables for any of those needs :P
[09:47:40] M4dH4TT3r: actual deb though
[09:47:45] Sammichmaker: I used to use Debian
[09:48:07] elomatreb: Archlinux is nice for desktop use, no experience with servers though
[09:48:19] Sammichmaker: but Ubuntu is more commonly used and updated today, has a large community and is very stable for both desktop and server usage
[09:48:40] M4dH4TT3r: i do deb servers and have no issues
[09:48:43] Sammichmaker: 10 years ago I ran Debian or Slackware
[09:49:01] Sammichmaker: and compiled my own kernel, blah blah
[09:49:09] Sammichmaker: but nowadays I'm just too lazy
[09:49:28] M4dH4TT3r: so ruby is interpreted right?
[09:49:38] Sammichmaker: plus hardware is much faster then needed
[09:50:08] M4dH4TT3r: so i just need to sudo yum ruby?
[09:50:19] Sammichmaker: Python (CPython) is compiled to bytecode after running it once, usually.
[09:50:37] Sammichmaker: *yum install ruby... or whatever the package is called
[09:50:40] Sammichmaker: but look into RVM
[09:51:11] hahuang61: has joined #ruby
[09:51:22] elomatreb: I wouldn't recommend RVM, try ruby-install and chruby
[09:51:25] Sammichmaker: if you want to manage different versions of ruby with diff dependencies
[09:51:34] Sammichmaker: yeah I haven't used ruby lately
[09:51:45] Sammichmaker: RVM was what I was using like 3 years ago
[09:52:01] Sammichmaker: well, I use it for Chef, but that comes installed with ChefDK
[09:52:07] Sammichmaker: so its embedded
[09:52:18] elomatreb: It works, but the way it hooks into shell commands and offers things are today done by bundler (gemsets) is a little weird
[09:52:39] Sammichmaker: I never cared for it much
[09:52:49] Sammichmaker: i like virtualenv in python though
[09:52:55] blackmesa: has joined #ruby
[09:53:08] elomatreb: For desktop use rvm is OK, I tried rvm on my (shared) server once and it only broke stuff
[09:53:40] elomatreb: It's probably something I could avoid with reading how to do that, but chruby is so much cleaner
[09:53:43] Sammichmaker: I ran rvm in production for my job, various versions of web apps using various ruby versions and dependency versions, didnt have much issue
[09:53:58] pawnbox: has joined #ruby
[09:54:32] Sammichmaker: yeah i dont think chruby was around back then
[09:54:43] M4dH4TT3r: ruby-install and chruby ?
[09:55:02] elomatreb: https://github.com/postmodern/chruby and https://github.com/postmodern/ruby-install
[09:55:15] elomatreb: Tools to manage ruby versions and install rubies if needed
[09:55:18] Sammichmaker: i read about it a while ago. I'm a DevOps engineer and still haven't needed to use RVM in a wile anyway
[09:55:46] Sammichmaker: Docker containers per web app helped sort that out :)
[09:56:39] elomatreb: Docker is probably overkill for the few sinatra scripts I actually run somewhere
[09:57:16] M4dH4TT3r: that reminds me i gotta learn coffeescript too
[09:57:33] M4dH4TT3r: wtf ever that is
[09:57:58] elomatreb: If you want to learn rails, take a look at https://www.railstutorial.org/book
[09:58:20] elomatreb: Only goes over fundamentals, but it's up-to-date and well written
[09:58:48] yeticry: has joined #ruby
[09:59:08] M4dH4TT3r: i actually got "Ruby on Rails Tutorial" 3rd ed - Michael Hartl in front of me
[10:00:07] elomatreb: For what Rails version is that edition? Might want to keep the online version open aswell, as it is one of the few tutorials that is updated for Rails 5
[10:02:03] M4dH4TT3r: has that website addy on the back along with other
[10:02:03] M4dH4TT3r: also have "learn ruby in 24hrs or less" -robert dwight
[10:03:23] daumie: has joined #ruby
[10:04:15] elomatreb: The 3rd edition seems to be from 2014, so probably for Rails 4 (Which is probably what you'll find in production at your place)
[10:05:21] AndrewIsHere: has joined #ruby
[10:05:52] M4dH4TT3r: cause i need to know ruby but i hella need to know rails, also need to brush up on js, coffeescript, RH, postgres, cucumber and haml
[10:06:15] M4dH4TT3r: this is all im doing for next month and a half
[10:06:36] tristanp: has joined #ruby
[10:07:02] elomatreb: Definitely doable. Ruby (and Rails) are designed for programmer comfort more than computer comfort
[10:08:02] karapetyan: has joined #ruby
[10:08:20] benlieb: has joined #ruby
[10:08:43] M4dH4TT3r: yeah i already know java, bash, html5/css3, some js, some py, some c++, so adding another in a month and a half for this internship should be doable
[10:09:51] ghr: has joined #ruby
[10:11:21] karapetyan: has joined #ruby
[10:11:31] M4dH4TT3r: so with rails can you use sensors like with java?
[10:13:31] M4dH4TT3r: yeah used to use robotics sensors in java
[10:14:12] elomatreb: Rails is a web framework, so I don't think it does anything with robotics
[10:14:38] elomatreb: I have no experience with that, but I'd assume that there are some Ruby robotics toolsets
[10:14:49] M4dH4TT3r: sorry, just trying to get an idea of wtf they want me to do in rails once i get there....
[10:14:59] karapetyan: has joined #ruby
[10:16:21] tomphp: has joined #ruby
[10:16:31] elomatreb: You're probably better off asking here directly, I'm not too much of a Rails expert myself
[10:16:58] M4dH4TT3r: no, not openly
[10:17:35] elomatreb: OK, I still have some time for a few quick questions
[10:22:10] sdothum: has joined #ruby
[10:25:34] ElFerna: has joined #ruby
[10:25:35] nankyokusei: has joined #ruby
[10:25:38] jenrzzz: has joined #ruby
[10:25:38] jenrzzz: has joined #ruby
[10:26:00] zeroDi: has joined #ruby
[10:26:52] ghr: has joined #ruby
[10:28:25] yfeldblum: has joined #ruby
[10:33:14] snowy: has joined #ruby
[10:33:23] M4dH4TT3r: has joined #ruby
[10:33:39] M4dH4TT3r: has joined #ruby
[10:34:35] burgestrand: has joined #ruby
[10:35:01] karapetyan: has joined #ruby
[10:36:23] ghr: has joined #ruby
[10:37:09] GodFather: has joined #ruby
[10:38:36] karapetyan: has joined #ruby
[10:38:52] karapetyan: has joined #ruby
[10:41:58] chip_: has joined #ruby
[10:42:19] MrBusiness2: has joined #ruby
[10:42:49] CloCkWeRX: has joined #ruby
[10:45:01] r3klm: has joined #ruby
[10:45:59] AndrewIsHere: has joined #ruby
[10:48:18] kavanagh: has joined #ruby
[10:48:23] ghr: has joined #ruby
[10:50:02] karapetyan: has joined #ruby
[10:50:13] AndChat|24576: has joined #ruby
[10:51:17] last_staff: has joined #ruby
[10:53:07] SCHAAP137: has joined #ruby
[10:54:06] burgestrand: has joined #ruby
[10:57:54] ghr: has joined #ruby
[11:02:54] insured: has joined #ruby
[11:07:24] ghr: has joined #ruby
[11:07:25] benlieb: has joined #ruby
[11:07:26] tristanp: has joined #ruby
[11:09:27] flashpoint9: has joined #ruby
[11:10:40] AndChat|24576: has joined #ruby
[11:13:18] karapetyan: has joined #ruby
[11:13:37] flashpoi_: has joined #ruby
[11:14:52] dc4: has joined #ruby
[11:16:37] mrmortondk: has joined #ruby
[11:17:12] tomphp: has joined #ruby
[11:17:25] ghr: has joined #ruby
[11:24:52] karapetyan: has joined #ruby
[11:25:35] sepp2k: has joined #ruby
[11:26:56] ghr: has joined #ruby
[11:28:57] deecross: has joined #ruby
[11:29:09] insured: has joined #ruby
[11:30:25] Pumukel: has joined #ruby
[11:36:12] karapetyan: has joined #ruby
[11:36:22] karapetyan: has joined #ruby
[11:36:26] ghr: has joined #ruby
[11:37:16] RegulationD: has joined #ruby
[11:38:04] ElFerna: has joined #ruby
[11:39:00] insured: has joined #ruby
[11:42:12] AndChat|24576: has joined #ruby
[11:42:53] dikons: has joined #ruby
[11:43:25] M4dH4TT3r: has joined #ruby
[11:44:25] Hanmac: has joined #ruby
[11:48:27] ghr: has joined #ruby
[11:49:01] xrlabs: has joined #ruby
[11:49:44] binaryplease4: has joined #ruby
[11:51:56] hahuang61: has joined #ruby
[11:52:03] shock_one: has joined #ruby
[11:52:47] tvw: has joined #ruby
[11:54:38] maloik: has joined #ruby
[11:57:46] Dimik--: has joined #ruby
[11:59:58] ghr: has joined #ruby
[12:00:46] allcentury: has joined #ruby
[12:00:47] GodFather: has joined #ruby
[12:01:30] mistermocha: has joined #ruby
[12:02:41] insured: has joined #ruby
[12:04:59] rolandschutz: has joined #ruby
[12:06:44] interki: has joined #ruby
[12:09:41] AndChat|24576: has joined #ruby
[12:10:30] rolandschutz: I have installed ruby via homebrew, works. Now I have installed „gem install bundle“ sucessfully. But the terminal path is not set.
[12:10:34] rolandschutz: What is the path to bundle so I can link it in the terminal?
[12:11:58] ghr: has joined #ruby
[12:12:40] insured: has joined #ruby
[12:13:59] AndChat|24576: has joined #ruby
[12:17:44] Ebok: has joined #ruby
[12:20:31] jaguarmagenta: has joined #ruby
[12:21:59] ghr: has joined #ruby
[12:22:15] finnnnnnnnnnn: has joined #ruby
[12:22:21] hck89: has joined #ruby
[12:22:30] finnnnnnnnnnn: can anyone suggest a more succinct way to make this hash? https://gist.github.com/anonymous/f2f7831fe40e4ec72ac6a584baf91341
[12:22:42] finnnnnnnnnnn: seems a bit verbose for ruby
[12:26:28] nankyokusei: has joined #ruby
[12:28:55] GinoMan2440: has joined #ruby
[12:30:17] blackmesa: has joined #ruby
[12:30:32] rolandschutz: I know it’s a beginners question, but I can’t find anything helpfull on the net
[12:30:38] rolandschutz: how can I locake the bundle file?
[12:30:44] craigp_: has joined #ruby
[12:30:57] rolandschutz: un- and reinstalled stuff many times, it just doesn’t work
[12:31:03] lorenalexm: has joined #ruby
[12:31:29] burgestrand: rolandschutz what do you mean by bundle file?
[12:31:45] rolandschutz: „bundle install"
[12:31:51] rolandschutz: returns command not found
[12:32:00] ghr: has joined #ruby
[12:33:12] workmad3: has joined #ruby
[12:33:15] burgestrand: rolandschutz for one, I'd make sure that bundler is installed: gem list bundler
[12:34:09] burgestrand: rolandschutz secondly I'd make sure it's in the bindir for ruby: ls $(ruby -e 'puts Gem.bindir')
[12:34:14] rolandschutz: bundler (1.12.5, 1.10.6)
[12:35:16] burgestrand: rolandschutz you installed ruby through homebrew?
[12:36:25] burgestrand: rolandschutz could you post the output of: ruby -e 'puts Gem.bindir'? It'd be interesting to see
[12:36:42] insured: has joined #ruby
[12:37:11] burgestrand: (frankly, I have not installed ruby through homebrew before, so I'm not sure if the setup is special)
[12:37:21] rolandschutz: No such file or directory
[12:37:27] Vingador: has joined #ruby
[12:37:27] rolandschutz: puts Gem.bindir: No such file or directory
[12:37:48] insured: has joined #ruby
[12:38:00] burgestrand: rolandschutz you only copied half of the command
[12:38:45] rolandschutz: Oh… this path is still the wrong path to the mac defualr ruby /Users/rolandschutz/.gem/ruby/2.0.0/bin
[12:39:07] rolandschutz: Because with homebrew I’m on 2.3
[12:39:40] burgestrand: It's not necessarily wrong, the default system path is /usr/local/bin
[12:39:58] rolandschutz: My ruby is installed at /usr/local/Cellar/ruby/2.3.0/bin
[12:39:59] burgestrand: But I would have expected it to be within the homebrew prefix
[12:40:09] burgestrand: rolandschutz what about ruby -v?
[12:40:28] rolandschutz: That works, but because I manually created a symlink
[12:40:46] burgestrand: rolandschutz so you hacked your way to make ruby work, its no wonder the gems dont work :P
[12:41:19] rolandschutz: Well, I would loved to just install it and it works… but it didn’t and I didn’t find what to do on the net
[12:41:30] ghr: has joined #ruby
[12:41:37] burgestrand: rolandschutz I see :) I'm looking right now, trying to see if there's an additional step to the install on how it's expected to work
[12:41:42] rolandschutz: Would be very glad, when you let me know how to di it correctly :D
[12:42:50] skalfyfan: has joined #ruby
[12:42:52] burgestrand: rolandschutz to me it looks like it's supposed to end up in /usr/local/bin/ruby, is there one there?
[12:42:55] gizmore: has joined #ruby
[12:45:10] burgestrand: rolandschutz (or, well, to be specific it's supposed to be in $(brew --prefix)/bin/ruby)
[12:45:28] insured: has joined #ruby
[12:46:28] burgestrand: >> "Hello %{ruby}" % Hash.new { |_, k| k.upcase }
[12:46:29] yqt: has joined #ruby
[12:46:29] ruby[bot]: Burgestrand: # => "Hello RUBY" (https://eval.in/602868)
[12:46:42] AndChat|24576: has joined #ruby
[12:47:32] moeabdol: has joined #ruby
[12:48:20] benlieb: has joined #ruby
[12:51:42] Ebok: has joined #ruby
[12:53:31] ghr: has joined #ruby
[12:54:06] insured: has joined #ruby
[12:54:10] JeanCarloMachado: has joined #ruby
[12:54:35] Elvin: has joined #ruby
[12:56:31] rolandschutz: has joined #ruby
[12:57:03] rolandschutz: Burgestrand: I lost my internet connection. I did remove all symlinks and reinstalled ruby with homebrew
[12:57:25] rolandschutz: now ruby was automatically places by brew in the correct folder
[12:57:34] rolandschutz: ruby --version returns correctly 2.3
[12:57:42] burgestrand: rolandschutz nice!
[12:57:51] burgestrand: rolandschutz how about: ruby -e 'p Gem.bindir'?
[12:59:01] rolandschutz: has joined #ruby
[12:59:23] rolandschutz: „gem install bundler“ also worked. but „bundle install“ still returns command not found
[13:00:26] insured: has joined #ruby
[13:03:08] gizmore: rolandschutz: which bundle
[13:05:18] CybrGhost: has joined #ruby
[13:06:59] workmad3: has joined #ruby
[13:07:10] r3klm: rolandschutz: Add the output of "ruby -e 'p Gem.bindir'" to $PATH
[13:07:20] mdw: has joined #ruby
[13:10:02] ghr: has joined #ruby
[13:10:11] burgestrand: rolandschutz are you using sudo when you do the gem install?
[13:10:13] tristanp: has joined #ruby
[13:10:27] burgestrand: rolandschutz (don't, a lot of people do this in error)
[13:11:42] lele: has joined #ruby
[13:12:36] johnmilton: has joined #ruby
[13:12:58] AngryBuzzy: has joined #ruby
[13:13:17] mdw7: has joined #ruby
[13:15:03] jaguarmagenta: has joined #ruby
[13:15:17] Ebok: has joined #ruby
[13:16:18] rolandschutz: Burgestrand: WOHOOOO… work!
[13:16:23] gener1c: has joined #ruby
[13:16:24] rolandschutz: no, I do it without sudo
[13:16:29] burgestrand: rolandschutz good :)
[13:16:39] burgestrand: rolandschutz nice, it works without any other changes? just works from the install alone?
[13:18:22] rolandschutz: I guess only the path were missing.
[13:20:03] ghr: has joined #ruby
[13:21:38] gregf: has joined #ruby
[13:22:16] pilne: has joined #ruby
[13:22:22] rolandschutz: lol, now the bundler can’t install something.
[13:22:44] burgestrand: rolandschutz what *is* your: ruby -e 'p Gem.bindir'?
[13:22:51] rolandschutz: Grmpf. I never ever had a smooth install experience with ruby
[13:23:02] rolandschutz: no, the problem is that some package doesn’t install
[13:23:05] burgestrand: rolandschutz I would expect it to be in your homebrew path, could you show me for my curiosity?
[13:23:23] rolandschutz: is there some cheap and simply ruby hosting?
[13:23:24] al2o3-cr: has joined #ruby
[13:23:47] rolandschutz: I just wanna run a existing app for one night.
[13:25:27] isberg: has joined #ruby
[13:26:22] davedev24: has joined #ruby
[13:28:25] mdw: has joined #ruby
[13:28:26] elle: has joined #ruby
[13:29:21] gregf: has joined #ruby
[13:29:33] ghr: has joined #ruby
[13:30:15] AzureStigma: has joined #ruby
[13:30:39] AzureStigma: is ruby any way similar to haskell for the syntax?
[13:35:26] pontiki: has joined #ruby
[13:35:35] sergey_makagon: has joined #ruby
[13:38:12] RegulationD: has joined #ruby
[13:39:09] Xeago_: has joined #ruby
[13:40:04] ghr: has joined #ruby
[13:41:11] dtzuzu: has joined #ruby
[13:44:55] toretore: has joined #ruby
[13:46:22] moeabdol1: has joined #ruby
[13:47:44] blackmesa: has joined #ruby
[13:50:38] pawnbox: has joined #ruby
[13:51:55] skade: has joined #ruby
[13:52:04] ghr: has joined #ruby
[13:52:42] hahuang61: has joined #ruby
[13:55:48] mattwashere: has joined #ruby
[13:57:50] r3klm: has joined #ruby
[13:57:57] freerobby: has joined #ruby
[13:59:39] sergey_makagon: has joined #ruby
[14:01:58] AngryBuzzy: has joined #ruby
[14:02:05] ghr: has joined #ruby
[14:05:06] SCHAAP137: has joined #ruby
[14:07:14] dionysus69: has joined #ruby
[14:11:36] ghr: has joined #ruby
[14:11:43] kareeoleez: has joined #ruby
[14:11:46] hahuang61: has joined #ruby
[14:12:13] allcentury: has joined #ruby
[14:17:48] charliesome: has joined #ruby
[14:19:10] daumie: has joined #ruby
[14:19:36] pilne: personally i don't think than anything out there is quite like haskelll, other than haskell (and things like purescript/frege
[14:21:13] pontiki: perhaps ocaml, but that's just a quibble
[14:21:46] chipotle: has joined #ruby
[14:22:58] pilne: that is true, very similar there, probably because they are both considered ML-family
[14:23:36] ghr: has joined #ruby
[14:25:11] chip_: has joined #ruby
[14:25:29] flughafen_: has joined #ruby
[14:26:53] cdg: has joined #ruby
[14:27:21] nankyokusei: has joined #ruby
[14:28:12] sergey_makagon: has joined #ruby
[14:31:01] skade: has joined #ruby
[14:31:54] finnnnnnnnnnn: has joined #ruby
[14:32:15] charliesome: has joined #ruby
[14:32:29] z3ndrag0n: has joined #ruby
[14:33:07] ghr: has joined #ruby
[14:34:01] pawnbox: has joined #ruby
[14:34:03] ruby[bot]: -b *!*@unaffiliated/xuin$#ruby-banned
[14:41:51] dtzuzu: has joined #ruby
[14:44:28] vuoto: has joined #ruby
[14:45:07] ghr: has joined #ruby
[14:48:03] jazzonmymind`: has joined #ruby
[14:50:47] blackmesa: has joined #ruby
[14:52:47] johnmilton: has joined #ruby
[14:53:53] jrafanie: has joined #ruby
[14:55:08] ghr: has joined #ruby
[14:56:04] AndyBotwin: has joined #ruby
[14:56:57] karapetyan: has joined #ruby
[15:00:20] burgestrand: has joined #ruby
[15:01:14] davedev24: has joined #ruby
[15:04:34] dionysus69: has joined #ruby
[15:05:59] vjacob: has joined #ruby
[15:07:09] ghr: has joined #ruby
[15:08:09] flashpoint9: has joined #ruby
[15:12:14] tristanp: has joined #ruby
[15:12:44] chihhsin: has joined #ruby
[15:12:45] karapetyan: has joined #ruby
[15:12:50] nofxx: has joined #ruby
[15:14:48] hutch34: has joined #ruby
[15:15:01] davedev24: has joined #ruby
[15:15:52] colegatron: has joined #ruby
[15:17:39] ghr: has joined #ruby
[15:17:51] pawnbox: has joined #ruby
[15:18:20] Jackneill: has joined #ruby
[15:21:56] burgestrand: has joined #ruby
[15:22:05] Xiti: has joined #ruby
[15:22:53] firstdayonthejob: has joined #ruby
[15:25:10] SilverKey: has joined #ruby
[15:27:40] ghr: has joined #ruby
[15:29:51] macsteps: has joined #ruby
[15:32:35] davedev24: has joined #ruby
[15:34:01] karapetyan: has joined #ruby
[15:35:28] freerobby: has joined #ruby
[15:35:33] roamingdog: has joined #ruby
[15:37:10] ghr: has joined #ruby
[15:39:00] RegulationD: has joined #ruby
[15:42:17] davedev24: has joined #ruby
[15:42:41] dtzuzu: has joined #ruby
[15:44:27] davedev24: has joined #ruby
[15:45:52] davedev24: has joined #ruby
[15:46:22] aryaching: has joined #ruby
[15:46:41] ghr: has joined #ruby
[15:47:10] ecnalyr: has joined #ruby
[15:48:05] firstdayonthejob: has joined #ruby
[15:51:22] KrzaQ: I'm not sure how to google this. C++ calls this structured bindings, but google gave me garbage results for ruby. Can I do something like [bar, foo] = { foo: 123, bar: 456 } in ruby?
[15:52:59] marr: has joined #ruby
[15:53:11] adaedra: `bar, foo = { foo: 123, bar: 456 }.values` would be the closest I guess, but you have to respect the order.
[15:53:24] adaedra: like I didn't do.
[15:53:50] blackmesa: has joined #ruby
[15:54:06] KrzaQ: Okay, I can't respect the order
[15:54:09] KrzaQ: thanks though
[15:54:12] Mrgoose: has joined #ruby
[15:55:21] JeanCarloMachado: has joined #ruby
[15:57:49] ddffg: has joined #ruby
[15:58:25] sergey_makagon: has joined #ruby
[15:59:42] ghr: has joined #ruby
[16:00:23] pawnbox: has joined #ruby
[16:01:49] mistermocha: has joined #ruby
[16:03:48] vuoto: has joined #ruby
[16:04:06] macsteps: has joined #ruby
[16:05:06] vuoto: has joined #ruby
[16:06:05] vuoto: has joined #ruby
[16:06:33] vuoto_: has joined #ruby
[16:06:49] davedev24: has joined #ruby
[16:07:51] allcentury: has joined #ruby
[16:09:42] ghr: has joined #ruby
[16:11:39] banisterfiend: has joined #ruby
[16:13:04] ecnalyr: has joined #ruby
[16:14:25] hahuang61: has joined #ruby
[16:19:13] ghr: has joined #ruby
[16:20:29] Es0teric: has joined #ruby
[16:21:12] burgestrand: has joined #ruby
[16:21:39] burgestrand: KrzaQ not sure if anybody mentioned this, but typically they'd be called destructuring assignments
[16:22:18] vuoto: has joined #ruby
[16:22:44] pawnbox: has joined #ruby
[16:25:43] jaguarmagenta: has joined #ruby
[16:25:44] fschuindt1: has joined #ruby
[16:28:23] nankyokusei: has joined #ruby
[16:28:27] sepp2k1: has joined #ruby
[16:28:43] ghr: has joined #ruby
[16:30:24] gregf: has joined #ruby
[16:31:59] RegulationD: has joined #ruby
[16:34:04] fujinuma: has joined #ruby
[16:34:08] yadobujo_: has joined #ruby
[16:34:19] karapetyan: has joined #ruby
[16:34:50] fujinuma: which one is better or concise in a module? self.func or def func; module_function :func?
[16:37:54] GinoMan2440_: has joined #ruby
[16:39:40] miqlas-H: has joined #ruby
[16:41:06] daumie: has joined #ruby
[16:42:16] cdg: has joined #ruby
[16:42:56] Trynemjoel: has joined #ruby
[16:44:14] ghr: has joined #ruby
[16:45:30] pilne: has left #ruby: ("Leaving!")
[16:49:19] tristanp: has joined #ruby
[16:49:37] mustmodify_: has joined #ruby
[16:49:54] mustmodify_: So I used ruby-install to install ruby 2.3.1. I sent to install bundler and it said I needed to use sudo.
[16:50:08] mustmodify_: I kind of remember not having to use sudo with other versions... have I done something wrong?
[16:50:24] jaguarmagenta: has joined #ruby
[16:52:18] eladmeidar: has joined #ruby
[16:52:24] The_Phoenix: has joined #ruby
[16:53:45] ghr: has joined #ruby
[16:54:55] flughafen_: has joined #ruby
[16:55:41] blackmesa: has joined #ruby
[16:59:58] bkxd: has joined #ruby
[17:04:11] dionysus69: has joined #ruby
[17:05:19] ghr: has joined #ruby
[17:07:43] Coldblackice: has joined #ruby
[17:08:02] arlek: has joined #ruby
[17:14:47] blackmesa: has joined #ruby
[17:15:37] QORRiE: has joined #ruby
[17:15:46] ghr: has joined #ruby
[17:16:03] hosttor: has joined #ruby
[17:22:52] jaguarmagenta: has joined #ruby
[17:25:17] ghr: has joined #ruby
[17:27:50] pontiki: has joined #ruby
[17:32:30] gizmore: has joined #ruby
[17:34:28] karapetyan: has joined #ruby
[17:34:47] ghr: has joined #ruby
[17:35:30] mustmodify_: is it odd that I see this error using ruby 2.3.1?
[17:35:31] mustmodify_: ruby1.9.1: symbol lookup error: /home/jw/.gem/ruby/2.3.1/gems/puma-3.4.0/lib/puma/puma_http11.so: undefined symbol: rb_str_new_static
[17:36:17] edwardly: has joined #ruby
[17:36:18] edwardly: has joined #ruby
[17:36:46] adaedra: you do not seem to be calling your 2.3.1 ruby but a 1.9.1 one
[17:37:01] adaedra: what does ruby --version outputs?
[17:37:02] mustmodify_: yeah, that's what I was worried about.
[17:37:27] adaedra: ok, what command gives you an error?
[17:37:36] mustmodify_: I'm using chruby, by the way.
[17:37:44] mustmodify_: bundle exec rspec spec/lib/
[17:37:50] mustmodify_: is the command causing this issue.
[17:37:56] adaedra: what does which bundle outputs?
[17:37:58] mustmodify_: I'm upgrading from rails 3.2 to 4.0
[17:38:26] mustmodify_: home/jw/.gem/ruby/2.3.1/bin/bundle
[17:38:32] mustmodify_: (preceded by a slash)
[17:38:51] pontiki: is ruby mentioned in the Gemfile?
[17:39:09] mustmodify_: I don't think so, let me confirm.
[17:39:36] mustmodify_: https://github.com/ffi/ffi/issues/423
[17:39:47] mustmodify_: suggests I should "delete all my gems and reinstall them."
[17:40:04] hutch34: has joined #ruby
[17:40:06] mustmodify_: I just installed 2.3.1 so I don't see how that would help, but I guess it's an option.
[17:40:22] adaedra: Out of curiosity, what does `head -n1 $(which bundle)` outputs?
[17:40:48] jrafanie: has joined #ruby
[17:40:53] tristanp: has joined #ruby
[17:40:55] mustmodify_: #!/opt/rubies/ruby-2.3.1/bin/ruby
[17:41:12] adaedra: ok, that's weird.
[17:41:19] benlieb: has joined #ruby
[17:42:09] mustmodify_: Perhaps some gem ...
[17:45:34] mustmodify_: This is strange...
[17:45:43] mustmodify_: https://gist.github.com/mustmodify/89c01647c0763d277f2c54b92eb7f0da
[17:45:55] mustmodify_: that's from /home/jw/.gem/ruby/2.3.1/gems/json-1.8.3/ext/json/ext/parser/Makefile
[17:46:01] amclain: has joined #ruby
[17:46:23] colegatron: has joined #ruby
[17:48:05] kirun: has joined #ruby
[17:51:03] dangerousdave: has joined #ruby
[17:51:48] ghr: has joined #ruby
[17:55:27] Xeago_: has joined #ruby
[17:56:26] flashpoint9: has joined #ruby
[18:00:45] tristanp: has joined #ruby
[18:01:18] ghr: has joined #ruby
[18:01:35] ramfjord: has joined #ruby
[18:03:01] karapetyan: has joined #ruby
[18:05:26] Mimorial: has joined #ruby
[18:05:37] QORRiE: has joined #ruby
[18:06:07] macsteps: has joined #ruby
[18:06:23] antgel: has joined #ruby
[18:06:28] Mimorial: has joined #ruby
[18:07:07] davedev24: has joined #ruby
[18:07:16] Xentil: has joined #ruby
[18:07:58] rumia: has joined #ruby
[18:10:23] art-solopov: has joined #ruby
[18:12:49] ghr: has joined #ruby
[18:14:29] zacts: has joined #ruby
[18:14:42] Haaibo: has joined #ruby
[18:14:43] Haaibo: has joined #ruby
[18:15:09] hahuang61: has joined #ruby
[18:16:36] benlieb: has joined #ruby
[18:17:34] karapetyan: has joined #ruby
[18:18:51] SharksAbove: has joined #ruby
[18:20:11] SharksAbove: has joined #ruby
[18:20:28] garethrees: has joined #ruby
[18:20:38] diegoviola: has joined #ruby
[18:21:53] alexherbo2: has joined #ruby
[18:22:00] JoshGlzBrk: has joined #ruby
[18:22:32] tristanp: has joined #ruby
[18:23:42] aryaching: has joined #ruby
[18:24:03] karapetyan: has joined #ruby
[18:29:06] nankyokusei: has joined #ruby
[18:31:50] ghr: has joined #ruby
[18:35:35] symm-: has joined #ruby
[18:36:52] freerobby: has joined #ruby
[18:38:00] dtzuzu: has joined #ruby
[18:39:12] zeroDi: has joined #ruby
[18:40:56] Rodya_: has joined #ruby
[18:41:06] colegatron: has joined #ruby
[18:43:21] ghr: has joined #ruby
[18:43:29] leea: has joined #ruby
[18:45:25] JoshGlzB_: has joined #ruby
[18:46:08] Stazer: has joined #ruby
[18:48:43] Mrgoose: has joined #ruby
[18:49:26] dionysus69: has joined #ruby
[18:50:59] tristanp: has joined #ruby
[18:51:28] Xentil: has joined #ruby
[18:51:32] pjstirling: has left #ruby: ("Ex-Chat")
[18:51:46] nando293921: has joined #ruby
[18:52:52] ghr: has joined #ruby
[18:52:58] Dimik: has joined #ruby
[18:54:21] mustmodify_: adaedra: AH HA.
[18:55:06] mustmodify_: The version of Ruby installed pre-chruby is 1.9.3
[18:55:18] mustmodify_: so at some point someone's doing something that gets past chruby.
[18:57:01] chip_: has joined #ruby
[18:57:30] flashpoint9: has joined #ruby
[18:57:40] JoshGlzBrk: has joined #ruby
[19:01:13] bkxd: has joined #ruby
[19:03:35] flashpoint9: has joined #ruby
[19:05:19] pawnbox_: has joined #ruby
[19:06:56] ghr: has joined #ruby
[19:07:05] blackmesa: has joined #ruby
[19:07:49] enterprisey: has joined #ruby
[19:09:06] SilverKey: has joined #ruby
[19:10:35] sergey_makagon: has joined #ruby
[19:14:52] GinoMan2440: has joined #ruby
[19:14:57] asianMike: has joined #ruby
[19:15:45] tristanp: has joined #ruby
[19:17:23] ghr: has joined #ruby
[19:18:08] TomyLobo: has joined #ruby
[19:18:53] weaksauce: has joined #ruby
[19:20:57] AndChat|24576: has joined #ruby
[19:21:12] LoneHerm_: has joined #ruby
[19:22:18] AndyBotwin: has joined #ruby
[19:24:00] daumie: has joined #ruby
[19:26:30] karapetyan: has joined #ruby
[19:26:52] dgynn: has joined #ruby
[19:27:56] GodFather: has joined #ruby
[19:28:32] JammyHammy: has joined #ruby
[19:29:06] Rodya_: has joined #ruby
[19:31:05] yadobujo: has joined #ruby
[19:32:33] yqt: has joined #ruby
[19:32:46] roamingdog: has joined #ruby
[19:33:59] jrafanie: has joined #ruby
[19:34:17] yfeldblum: has joined #ruby
[19:34:43] bogusdisk: has joined #ruby
[19:34:56] burgestrand: has joined #ruby
[19:35:27] ecnalyr: has joined #ruby
[19:36:30] SilverKey: has joined #ruby
[19:38:54] ghr: has joined #ruby
[19:41:03] GodFather: has joined #ruby
[19:42:39] dc4: has joined #ruby
[19:48:58] ghr: has joined #ruby
[19:49:26] roshanavand: has joined #ruby
[19:50:32] Rodya_: has joined #ruby
[19:51:43] insured: has joined #ruby
[19:52:19] AndChat|24576: has joined #ruby
[19:54:32] Rodya_: has joined #ruby
[19:54:49] ramfjord: has joined #ruby
[19:55:30] jaiks1: has joined #ruby
[19:58:55] ghr: has joined #ruby
[20:00:30] insured: has joined #ruby
[20:00:53] JeanCarloMachado: has joined #ruby
[20:02:27] AndChat|24576: has joined #ruby
[20:02:48] macsteps: has joined #ruby
[20:03:15] roshanavand: has joined #ruby
[20:03:30] JoshGlzBrk: has joined #ruby
[20:04:28] solars: has joined #ruby
[20:05:50] Hobogrammer: has joined #ruby
[20:07:26] havenwood: mustmodify_: Looks like you used `sudo` to install Ruby so it installed to /opt/rubies/ instead of ~/.rubies/ where you'd need sudo with gems.
[20:09:07] havenwood: mustmodify_: https://github.com/postmodern/ruby-insta…
[20:09:24] Papierkorb: havenwood: your link was cut off
[20:09:56] havenwood: https://github.com/postmodern/ruby-install/blob/master/share/ruby-install/ruby-install.sh#L14-L20
[20:09:57] havenwood: Papierkorb: Oops!
[20:10:12] mustmodify_: you're saying I should not have sudo-installed ruby?
[20:10:25] ghr: has joined #ruby
[20:10:38] havenwood: mustmodify_: Not if you want it to install to ~/.rubies, just `ruby-install --latest ruby` instead of `sudo ruby-install --latest ruby`.
[20:10:53] macsteps: has joined #ruby
[20:10:56] havenwood: mustmodify_: rm -rf /opt/rubies/ruby-2.3.1
[20:11:13] mustmodify_: I'm happy for it to live in /opt/rubies
[20:11:26] havenwood: mustmodify_: then you'll just need to use sudo with gems
[20:12:26] bkxd: has joined #ruby
[20:12:29] havenwood: mustmodify_: Or RubyGems' --user-install option to install in the user's home dir instead of GEM_HOME.
[20:12:53] vuoto: has joined #ruby
[20:13:26] havenwood: You could of course change the ownership of the system gem directory but then it seems better to just do a user local install.
[20:13:27] mustmodify_: Right now I'm all turned around with gems. I'm trying to upgrade from Rails 3.2 to 4.0 and I'm getting messages from bundler/gem/something that are baffling.
[20:13:28] Xentil: has joined #ruby
[20:13:33] mustmodify_: So I guess that's the least of my problems.
[20:14:07] LoneHermit: has joined #ruby
[20:14:44] DrCode: has joined #ruby
[20:15:53] hahuang61: has joined #ruby
[20:16:11] JoshGlzBrk: has joined #ruby
[20:17:33] havenwood: mustmodify_: Sanity check that `command -v bundle` and `gem which bundler` are as expected?
[20:18:32] Kaneki: has joined #ruby
[20:19:07] banisterfiend: has joined #ruby
[20:20:11] jottr: has joined #ruby
[20:20:38] dtzuzu: has joined #ruby
[20:20:56] havenwood: mustmodify_: Just that they're both in $rubies_dir/.gem/ruby/2.3.1/
[20:21:04] havenwood: subdirectories of
[20:21:23] pLaToOn: has joined #ruby
[20:22:14] dcunit3d: has joined #ruby
[20:22:37] finnnnnnnnnnn: hello! Can anyone suggest a nicer way of creating this hash? https://gist.github.com/anonymous/127e39a8f7c83d91e40b472575d88138
[20:22:51] finnnnnnnnnnn: seems a bit verbose for ruby
[20:23:29] havenwood: >> {media_id: 123, alt_text: {text: 'foo'}}
[20:23:30] ruby[bot]: havenwood: # => {:media_id=>123, :alt_text=>{:text=>"foo"}} (https://eval.in/602925)
[20:23:42] tristanp: has joined #ruby
[20:23:57] havenwood: finnnnnnnnnnn: ^ create it like that, as literals within literals
[20:24:19] Kaneki: has joined #ruby
[20:25:09] havenwood: finnnnnnnnnnn: You can just assign `hash` to the final result you want directly in this case, and that's the best way.
[20:25:26] ghr: has joined #ruby
[20:25:59] insured: has joined #ruby
[20:26:23] finnnnnnnnnnn: havenwood: awsome, thanks.
[20:26:45] flughafen_: has joined #ruby
[20:26:59] flashpoint9: has joined #ruby
[20:27:31] yadobujo: has joined #ruby
[20:28:56] havenwood: mustmodify_: An aside but if you really do want to restore all gems to pristine condition there's: gem pristine --all
[20:29:08] Madplatypus: has joined #ruby
[20:29:28] hahuang61: has joined #ruby
[20:32:16] ledestin: has joined #ruby
[20:35:49] colegatron_origi: has joined #ruby
[20:36:57] ghr: has joined #ruby
[20:37:58] skade: has joined #ruby
[20:39:04] GodFather: has joined #ruby
[20:45:05] Dimik--: has joined #ruby
[20:45:33] yadobujo: has joined #ruby
[20:47:27] ghr: has joined #ruby
[20:47:38] cdg: has joined #ruby
[20:47:40] karapetyan: has joined #ruby
[20:48:37] zacts: has joined #ruby
[20:49:00] blackmesa: has joined #ruby
[20:51:06] SilverKey: has joined #ruby
[20:54:44] Elvin: has joined #ruby
[20:54:45] whathappens: has joined #ruby
[20:55:29] charliesome: has joined #ruby
[20:56:56] JoshGlzBrk: has joined #ruby
[20:58:13] Azure: has joined #ruby
[20:58:50] shevy: has joined #ruby
[20:59:28] ghr: has joined #ruby
[21:02:27] dcunit3d: has joined #ruby
[21:02:59] Guest18723: has joined #ruby
[21:04:02] yadobujo: has joined #ruby
[21:08:58] ghr: has joined #ruby
[21:09:26] minimalism: has joined #ruby
[21:11:26] tomphp: has joined #ruby
[21:11:35] skade: has joined #ruby
[21:12:46] tristanp: has joined #ruby
[21:16:11] JeanCarl1Machado: has joined #ruby
[21:17:03] tristanp: has joined #ruby
[21:17:42] skade: has joined #ruby
[21:18:07] zacts: has joined #ruby
[21:18:59] ghr: has joined #ruby
[21:19:23] zacts: has joined #ruby
[21:19:40] Elvin: has joined #ruby
[21:19:48] barajasfab: has joined #ruby
[21:20:00] hutch34: has joined #ruby
[21:20:22] whathappens: has joined #ruby
[21:21:18] gregf: has joined #ruby
[21:22:02] yadobujo: has joined #ruby
[21:22:07] svdb64: has joined #ruby
[21:25:54] Xentil: has joined #ruby
[21:26:06] shinnya: has joined #ruby
[21:28:33] hxegon: new to yard here, should I be putting doc folder into vcs?
[21:28:57] roshanavand: has joined #ruby
[21:30:34] tristanp: has joined #ruby
[21:31:12] charliesome: has joined #ruby
[21:31:30] ghr: has joined #ruby
[21:32:59] yadobujo: has joined #ruby
[21:34:39] l4v2: has joined #ruby
[21:35:46] Xeago__: has joined #ruby
[21:36:13] Xeago-: has joined #ruby
[21:36:36] svdb64: has joined #ruby
[21:39:01] BTRE: has joined #ruby
[21:40:07] Elvin: has joined #ruby
[21:40:16] tristanp: has joined #ruby
[21:40:48] crdpink: has joined #ruby
[21:41:00] ghr: has joined #ruby
[21:42:51] Haaibo: has joined #ruby
[21:43:13] bkxd: has joined #ruby
[21:48:51] kavanagh: has joined #ruby
[21:49:04] karapetyan: has joined #ruby
[21:50:07] roshanavand: has joined #ruby
[21:50:31] ghr: has joined #ruby
[21:51:07] yadobujo: has joined #ruby
[21:52:33] DrCode: has joined #ruby
[21:52:45] nando293921: has joined #ruby
[21:53:03] yadobujo_: has joined #ruby
[21:55:39] Dimik--: has joined #ruby
[21:57:31] nando293921: has joined #ruby
[21:58:17] roamingdog: has joined #ruby
[21:58:44] SilverKey: has joined #ruby
[21:59:34] nando293921: has joined #ruby
[22:00:29] Xeago_: has joined #ruby
[22:00:32] blackmesa: has joined #ruby
[22:04:28] naftilos76: has joined #ruby
[22:05:06] djbkd: has joined #ruby
[22:05:07] ghr: has joined #ruby
[22:05:50] tristanp: has joined #ruby
[22:10:06] LoneHerm_: has joined #ruby
[22:11:06] yadobujo: has joined #ruby
[22:11:09] swills: has joined #ruby
[22:12:02] al2o3-cr: has joined #ruby
[22:13:32] ElFerna: has joined #ruby
[22:13:48] pontiki: has joined #ruby
[22:14:01] roshanavand: has joined #ruby
[22:14:05] tristanp: has joined #ruby
[22:15:05] ghr: has joined #ruby
[22:15:26] Kaneki: has joined #ruby
[22:15:48] flashpoint9: has joined #ruby
[22:27:31] kevr: has joined #ruby
[22:28:28] ecnalyr: has joined #ruby
[22:29:18] yadobujo: has joined #ruby
[22:29:33] ghr: has joined #ruby
[22:30:13] hahuang61: has joined #ruby
[22:32:44] kith: has joined #ruby
[22:33:10] David27: has joined #ruby
[22:33:24] swills: has joined #ruby
[22:33:57] zenlot6: has joined #ruby
[22:34:25] postmodern: has joined #ruby
[22:34:45] JoshGlzBrk: has joined #ruby
[22:39:33] ghr: has joined #ruby
[22:40:45] `tim`: has joined #ruby
[22:41:57] dcunit3d: has joined #ruby
[22:42:32] charliesome: has joined #ruby
[22:47:35] diegoviola: has joined #ruby
[22:49:04] ghr: has joined #ruby
[22:50:36] AndChat|24576: has joined #ruby
[22:52:19] Guest18723: has joined #ruby
[22:54:05] AndChat|24576: has joined #ruby
[22:56:44] insured: has joined #ruby
[22:56:46] yadobujo: has joined #ruby
[22:58:07] insured: has joined #ruby
[22:58:34] ghr: has joined #ruby
[22:59:39] charliesome: has joined #ruby
[23:01:36] Elvin: has joined #ruby
[23:04:22] Mimorial: has joined #ruby
[23:04:24] Xeago_: has joined #ruby
[23:06:16] karapetyan: has joined #ruby
[23:07:04] hutch34: has joined #ruby
[23:08:05] ghr: has joined #ruby
[23:08:22] moei: has joined #ruby
[23:15:10] yadobujo: has joined #ruby
[23:15:58] macsteps: has joined #ruby
[23:16:27] pilne: has joined #ruby
[23:17:09] flashpoint9: has joined #ruby
[23:17:41] ghr: has joined #ruby
[23:20:19] fujinuma: has left #ruby: ("WeeChat 1.5")
[23:21:33] hahuang61: has joined #ruby
[23:21:46] Mattx: has joined #ruby
[23:22:48] Mattx: Hey people! Any idea about this? I have a class, and it's divided into multiple files because some methods have nothing to do with some others. so the thing is that I need of a certain instance @variable, but I'm not sure how to initialize it from outside the method /initialize/
[23:23:59] Mattx: if I put @myvar = [] in file2.rb (file1.rb is where I have the method initialize), then I get @myvar is not initialized because that initialization wasn't run inside an instance
[23:24:07] Mattx: Is it clear or should I write an example?
[23:25:37] flashpoint9: has joined #ruby
[23:26:58] Mattx: https://gist.github.com/anonymous/3679e2abf0b4724225cc38126be5a7d2
[23:27:00] yadobujo: has joined #ruby
[23:27:03] Mattx: here is an example
[23:27:36] ghr: has joined #ruby
[23:27:53] Mattx: I forgot the extension so the code is colored, check this instead: https://gist.github.com/anonymous/81c6dd7b662bc9666262848fd3206ed7
[23:30:30] macsteps: has joined #ruby
[23:30:34] hahuang61: has joined #ruby
[23:31:20] Xeago-: has joined #ruby
[23:34:34] brianpWins: has joined #ruby
[23:34:47] yadobujo_: has joined #ruby
[23:35:11] Mattx: maybe I should be using modules and multiple initialize? I don't know...
[23:37:10] ghr: has joined #ruby
[23:37:27] roamingdog: has joined #ruby
[23:37:49] kevr: has joined #ruby
[23:41:17] SShrike: has joined #ruby
[23:43:57] bkxd: has joined #ruby
[23:47:07] ghr: has joined #ruby
[23:47:59] asianMike: has joined #ruby
[23:48:37] zacts: has joined #ruby
[23:50:08] Lord_of_Life: has joined #ruby
[23:51:15] M4dH4TT3r: has joined #ruby
[23:52:49] karapetyan: has joined #ruby
[23:57:50] apeiros: Mattx: you can initialize in ivar in any instance method. initialize is just the sane choice.
[23:58:21] apeiros: also splitting up a class into multiple files doesn't make sense to me.
[23:58:38] nadir: has joined #ruby
[23:58:40] apeiros: if some methods have nothing to do with other methods, then maybe your class has an identity crisis and should really be two classes?