« Back to channel list

#ruby - 08 April 2017

« Back 1 day Forward 1 day »
[00:05:13] impermanence: what ruby ide is most commonly used in the enterprise?
[00:06:11] bougyman: impermanence: hard to say
[00:06:17] lupine: DON'T JUDGE ME
[00:06:40] impermanence: lupine: I write Java in vi. No judgement. We're friends now :)
[00:06:41] ThePortWhisperer: lupine, only if you halp with my WARN
[00:06:41] bougyman: I see equal parts vim and emacs, with rubymine a solid 3rd, ime
[00:06:55] bougyman: atom coming up on the outside.
[00:07:03] lupine: nonono, gedit is first
[00:07:38] impermanence: okay. so text editors, really. so at the office...people use Atom...not RubyMine or something like that?
[00:07:53] bougyman: in my office everyone uses vim or emacs.
[00:07:58] bougyman: at the last joint some used rubymine
[00:08:53] ThePortWhisperer: national joint day in t-13 days
[00:09:40] impermanence: wow. and I am looking at a survey of 100 rubyists and 74 of them apparently only use an editor.
[00:11:43] agent_white: has joined #ruby
[00:11:57] impermanence: rubymine is advertised as a rails IDE. does this mean it's not suitable for ruby dev?
[00:12:02] impermanence: or not ideal?
[00:12:48] lupine: the short of it is that an IDE offers nothing valuable to ruby development
[00:13:04] GodFather: has joined #ruby
[00:13:20] lupine: it's not like java, with easy automatic code transforms and refactoringsz
[00:13:24] gix: has joined #ruby
[00:13:44] impermanence: I downloaded RubyMine anyway!
[00:13:45] lupine: the language is really, really hard to parse, so the useful features an IDE can provide over an editor are minimal
[00:14:02] lupine: ISTR using rubymine a while ago, but it was java-heavy and just didn't work in my LTSP environmwnt
[00:15:42] kobain: has joined #ruby
[00:20:57] Lord_of_Life: has joined #ruby
[00:22:47] jeffreylevesque: has joined #ruby
[00:24:35] herbmillerjr: has joined #ruby
[00:26:52] impermanence: Do rubyists use an analog to virtualenv for python or anything like that? just curious.
[00:27:18] lupine: there's rvm, or there's chruby+ruby-install
[00:27:23] lupine: a few other options
[00:27:26] lupine: I tend to use chruby
[00:27:57] impermanence: I thought rvm was just a version manager...can you actually go inside it like virtualenv?
[00:29:06] matthewd: I think bundler covers more of virtualenv's use case
[00:29:10] lupine: I'm not sure what that means, exactly
[00:29:16] lupine: I tend to use a gemset or pkgset per project
[00:29:46] lupine: using bundle exec *as well* is overkill like that
[00:31:27] Lord_of_Life: has joined #ruby
[00:33:27] havenwood: impermanence: RVM is over twenty thousand lines of code. It patches old Rubies to be installable on old systems, manages project-specific gemsets, switches between Rubies, etc. It even ships chruby support. It's more of a superset of virtualenv.
[00:33:53] havenwood: impermanence: RVM handles statically linked, precompiled binaries as well.
[00:34:33] bkxd: has joined #ruby
[00:35:08] havenwood: impermanence: ruby-install just builds Ruby from source. you can specify --system for a single Ruby installed to /usr/local or you can install it in a default location or wherever you like.
[00:35:10] hotpancakes: has joined #ruby
[00:35:35] havenwood: impermanence: chruby switches between Rubies by setting PATH, GEM_HOME, GEM_PATH etc
[00:36:39] impermanence: When you say "rubies"...what does that mean?
[00:37:00] bougyman: ruby versions
[00:37:06] havenwood: impermanence: There are various Ruby engines and versions.
[00:37:18] enterprisey: has joined #ruby
[00:37:24] havenwood: impermanence: JRuby implementing Ruby 2.3.4 or CRuby 2.4.1, etc.
[00:37:28] impermanence: and basically that's the interpreter and libraries
[00:37:57] havenwood: impermanence: Often the CRuby reference implementation (YARV) or JRuby (JVM), but there are others.
[00:38:56] impermanence: so ruby requires an engine to run? I thought it was interpreted...?
[00:39:19] allisio: It's not clear how you got something akin to "compiler" from "engine".
[00:39:32] havenwood: impermanence: The popular implementations these days are VMs.
[00:39:41] impermanence: someone mentioned bytecode earlier
[00:39:43] havenwood: >> RUBY_ENGINE
[00:39:45] ruby[bot]: havenwood: # => "ruby" (https://eval.in/770780)
[00:40:14] havenwood: impermanence: Yes. Ruby has an IR bytecode.
[00:40:26] havenwood: intermediate representation
[00:41:17] havenwood: The CRuby intermediate representation bytecode is different than the JRuby IR bytecode or Rubinius IR bytecode but they each produce one.
[00:41:17] impermanence: what's the point of the VM?
[00:41:39] lupine: same as python's, really
[00:41:41] lupine: speeds thing sup
[00:42:00] lupine: there's even a jython
[00:42:02] allisio: >> RubyVM::InstructionSequence.of(-> { 1 + 1 }).to_a[13]
[00:42:03] ruby[bot]: allisio: # => [2, [:trace, 256], :label_2, [:trace, 1], [:putobject_OP_INT2FIX_O_1_C_], [:putobject_OP_INT2FIX_O_1 ...check link for more (https://eval.in/770782)
[00:42:06] havenwood: impermanence: the VM can do optimizations and just in time compiling, etc
[00:42:59] allisio: And it does those things by vastly simplifying the massive Ruby language down to a relatively small stack-based virtual machine.
[00:43:35] havenwood: it saves time to compile to IR, that's something other implementations have done and the reference implementation might do in Ruby 3
[00:44:04] havenwood: we can end our Elixir-envy
[00:44:08] allisio: It's gonna be kinda weird seeing `.rbc` files after all these years.
[00:44:10] havenwood: (on that front)
[00:44:14] impermanence: so is there a thing where, like python, I can type "ruby" at the command prompt and like enter an interpreter or something? And just write code on the fly?
[00:44:43] raul782: has joined #ruby
[00:44:46] dcluna: has joined #ruby
[00:44:50] havenwood: allisio: .yarb
[00:44:53] havenwood: allisio: though i prefer the .ruby_binaries dbm from yomikomu's options: https://github.com/ko1/yomikomu#readme
[00:45:06] allisio: impermanence: The REPL that ships with Ruby is called `irb`, but `pry` is loads better.
[00:45:09] havenwood: i dunno, hard to decide
[00:45:12] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[00:45:25] havenwood: impermanence: gem install pry
[00:45:32] allisio: havenwood: Is `.rbc` taken?
[00:45:36] impermanence: is pry an acronym?
[00:45:40] havenwood: allisio: rubinus
[00:45:51] allisio: Oh, right.
[00:45:54] havenwood: that's what they compile their bytecode to
[00:46:18] allisio: How about `.cr` for "compiled Ruby"? ^_^
[00:46:36] allisio: /s, in case not obvious.
[00:46:50] havenwood: allisio: >.>
[00:47:39] havenwood: impermanence: If you're interested in Ruby implementations you should look at truffleruby too: https://github.com/graalvm/truffleruby
[00:49:05] havenwood: impermanence: It's an exciting implementation with a very large team and much promise.
[00:49:18] allisio: They're going the distance. They're going for speed.
[00:49:40] havenwood: impermanence: It uses dated terminology, but see jruby-dev-truffle-graal performance here (now truffleruby): http://jruby.org/bench9000/
[00:49:56] impermanence: havenwood: ah...why is there more than one implementation? of ruby...?!
[00:50:16] lupine: because the original one was rubbish
[00:50:19] lupine: don't forget rubinius
[00:50:20] matthewd: Again, for the same reason there's more than one implementation of python
[00:50:28] lupine: (by original, I mean MRI)
[00:50:48] impermanence: I didn't know there was more than one implementation of python, actually :|
[00:51:49] lupine: there is a project that compiles python to go
[00:51:53] lupine: so, you know
[00:52:27] matthewd: If you just want to write some ruby, you don't need to know there's more than one implementation of ruby either
[00:53:03] havenwood: impermanence: CRuby is the reference implementation and supports C extensions. JRuby is the flagship JVM implementation and supports Java extensions. TruffleRuby runs on the GraalVM and supports C extensions. They're all Ruby. They have different memory and performance characteristics.
[00:53:49] lupine: then there's mruby, rbx, probably others
[00:53:54] impermanence: havenwood: makes sense. "Supports Java extensions"...like...writing Java in Ruby? Or...what does that mean? java-based Ruby code?
[00:54:13] havenwood: Some have JITs, some threads without GVL, some fork, etc.
[00:55:01] impermanence: havenwood: okay. so is gem the package installer everyone uses? or is there more than one?
[00:55:48] havenwood: impermanence: one gem can have C extensions for when it's run on CRuby and Java extensions for when it's run on JRuby and pure Ruby fallback, it depends
[00:55:51] matthewd: impermanence: Use gem to install bundler. Then use bundler to manage the dependencies within a project.
[00:56:06] havenwood: impermanence: RubyGems ships with Ruby. It provides the `gem` command.
[00:56:11] matthewd: impermanence: (it'll still be installing gems.. but it's project-aware)
[00:56:51] havenwood: impermanence: You can install dependencies from a Gemfile and create a Gemfile.lock with: gem install -g
[00:57:04] havenwood: impermanence: Or a more popular way to do the same is to install the bundler gem, `gem install bundler`, then run: bundle
[00:57:19] havenwood: either way it creates a Gemfile.lock and installs the gems
[00:57:32] impermanence: I see. okay. So what's the difference between RubyGems and bundler?
[00:58:15] havenwood: Bundler resolved dependencies and created a Gemfile.lock before RubyGems supported the same. Bundler still has more features and is a hard-coded dependency of some Ruby software like Rails.
[00:58:50] havenwood: Bundler is merging its way into RubyGems, so the distinction will blur.
[01:00:40] impermanence: okay. So...regarding CRuby vs JRuby...are those the type of things that like if a Ruby developer goes into a Ruby interview knowing or not knowing the differences might mean getting a job or not? In other words...are the different implementations *that* significant?
[01:00:51] havenwood: impermanence: Most folk use Bundler for resolving gem dependencies. If you're not using Rails you can probably get by just fine with `gem install -g` and `export RUBYGEMS_GEMDEPS=~`.
[01:01:24] havenwood: I mean: export RUBYGEMS_GEMDEPS=-
[01:01:26] esObe_: has joined #ruby
[01:01:43] impermanence: For example...a Java dev would be expected to know the differences between Java 7 and Java 8 and would definitely be asked questions about Java 8, but it probably would not mean not getting the job if one did not know a ton about Java 8's finer details...
[01:02:34] lel: has joined #ruby
[01:02:50] havenwood: impermanence: for an entry level job they're not significant in any way
[01:02:51] havenwood: impermanence: if you're making architecture decisions then they'd be significant
[01:03:21] impermanence: okay, I need to start reading and hacking now :)
[01:03:26] havenwood: happy hacking!
[01:03:48] impermanence: thx. I appreciate all the answers. I'll probably be back tomorrow, lol.
[01:04:09] RobertBirnie: has joined #ruby
[01:06:48] hahuang61: has joined #ruby
[01:10:51] JeanCarloMachado: has joined #ruby
[01:11:02] Guest96: has joined #ruby
[01:12:45] houhoulis: has joined #ruby
[01:12:59] RobertBirnie: has joined #ruby
[01:15:38] impermanence: wow. so turns out I needed to upgrade bash (I'm on OSX installing rvm. dang...)
[01:18:15] helpa: has joined #ruby
[01:18:59] Radar: impermanence: rvm? You might have better luck with chruby + ruby-install: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
[01:19:06] Radar: I personally found rvm to be bloated
[01:19:13] impermanence: oh, wow. okay.
[01:19:19] impermanence: what about rbenv?
[01:19:30] impermanence: just reading right now about rvm vs rbenv...
[01:19:45] Verity: but what do I lose out on if I go deep with ruby
[01:20:05] havenwood: impermanence: chruby
[01:20:27] impermanence: chruby it is.
[01:20:29] matthewd: chruby is newer and smaller. rbenv is fine.. avoid rvm.
[01:21:48] impermanence: apparently rvm implode will remove it from osx?
[01:21:49] hotpancakes: has joined #ruby
[01:21:58] havenwood: impermanence: Yup: rvm implode --force
[01:22:07] havenwood: impermanence: You may have to manually clean up a dotfile or two.
[01:25:22] Radar: Verity: what?
[01:25:23] impermanence: that got it all.
[01:26:05] HoierM: has joined #ruby
[01:26:28] eb0t: has joined #ruby
[01:26:42] eblip: has joined #ruby
[01:29:00] _tk421_: has joined #ruby
[01:31:40] hotpanca_: has joined #ruby
[01:32:23] Puffball: has joined #ruby
[01:32:56] SteenJobs: has joined #ruby
[01:34:06] mim1k: has joined #ruby
[01:34:45] __Yiota: has joined #ruby
[01:37:24] postmodern: appears that both debian (unstable and testing) and ubuntu now have ruby2.3 packages in their official repos. I'm wondering if it's still relevant to use BrightBox's ruby-ng PPA for deploying apps to Ubuntu environments?
[01:38:14] tmtwd: has joined #ruby
[01:38:49] charliesome: has joined #ruby
[01:41:06] semperfried76: has joined #ruby
[01:41:53] impermanence: regarding chruby: is it necessary to set a default version of Ruby?
[01:42:54] havenwood: postmodern: With Brightbox not having 2.4 at the moment it's not even ahead.
[01:43:03] havenwood: impermanence: It is not necessary. It is a convenience.
[01:43:43] impermanence: is using ruby-2.4.1 to bleeding edge or anything?
[01:44:10] havenwood: impermanence: 2.4.1 is stable. Report any bugs you encounter. ;-)
[01:44:22] impermanence: heh. will do.
[01:44:27] havenwood: impermanence: But yeah, it's stable. 2.4.1 or 2.3.4 are latest stable releases.
[01:44:47] havenwood: impermanence: We're using 2.4.1 in prod.
[01:45:05] impermanence: oh, that's cool. I'm proud of you all :)
[01:45:12] semperfried76: re rspec: having an issue right now where tests complete, but then won't kill db connection, causing a stall. Anyone run into anythin similar?
[01:45:16] impermanence: we're using Java 8 in prod. that's not as cool.
[01:45:29] Channel6: has joined #ruby
[01:45:47] impermanence: So the article goes on to install Rails, etc. I plan to learn Ruby. Should I just go ahead and install Rails, too, or does that not matter right now?
[01:46:08] havenwood: impermanence: No need to install Rails 'till you go about creating a Rails app.
[01:46:32] impermanence: Rails to Ruby is Django to Python, right?
[01:46:33] semperfried76: impermanence: rails is just a framework
[01:46:45] semperfried76: impermanence: yup
[01:46:57] impermanence: why does it also install mysql and then postgresql?
[01:47:06] impermanence: is that the rails backend?!
[01:47:17] impermanence: I thought rails was like a db in itself...
[01:47:21] semperfried76: impermanence: sqllite is default for rails
[01:47:34] havenwood: impermanence: Rails is not a db.
[01:47:36] semperfried76: we use Oracle in production
[01:47:42] havenwood: we use Postgres
[01:48:21] semperfried76: I've even hooked up Neo4j... it's very flexible
[01:49:28] impermanence: so should I install bundle now?
[01:49:34] havenwood: impermanence: there's a #rubyonrails channel when you get to Rails
[01:49:35] havenwood: impermanence: yes
[01:49:59] havenwood: impermanence: gem install bundler
[01:51:28] impermanence: heh. throws error.
[01:52:13] havenwood: what error?
[01:52:13] impermanence: wee. https://pastebin.com/raw/mchB1X8K
[01:52:13] ruby[bot]: impermanence: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[01:52:26] impermanence: no pastebin. okay.
[01:53:05] semperfried76: impermanence: what OS are you on?
[01:53:16] t-recx: has joined #ruby
[01:54:01] havenwood: impermanence: are you using Homebrew?
[01:54:18] impermanence: in general yes.
[01:54:38] impermanence: brew upgrade zlib just throws "I don't know".
[01:55:20] semperfried76: impermanence: try brew tap homebrew/dupes
[01:55:44] marcdel: has joined #ruby
[01:56:38] semperfried76: impermanence: sorry, that's old, use this instead: xcode-select --install
[01:56:45] nanoz: has joined #ruby
[01:56:47] semperfried76: that will upgrade your zlib
[01:57:54] impermanence: now I'm using xcode? I'm lost, man.
[01:58:11] semperfried76: impermanence: just the libs
[01:58:17] havenwood: impermanence: macOS build tools
[01:58:27] semperfried76: impermanence: yup
[01:58:54] impermanence: so...what do you all write your Ruby on? Is it just *way* better to use Linux?
[01:59:11] semperfried76: impermanence: you need the xcode tools in order to build native binaries for some gems
[01:59:12] hndk: has joined #ruby
[01:59:33] havenwood: impermanence: macOS is fine, just update your build tools and brew update and you should be good to go
[01:59:41] impermanence: you do? okay then.
[01:59:44] havenwood: impermanence: it's one of the steps in Radar's guide above ^
[01:59:45] semperfried76: I like it better than Linux
[02:00:10] hndk: has joined #ruby
[02:00:42] charliesome: has joined #ruby
[02:01:28] impermanence: wow. so I've never used this before:
[02:01:33] impermanence: softwareupdate --commands...
[02:01:34] havenwood: impermanence: If you already have command line tools installed, then `xcode-select --install` will tell you to use the software updater to keep them updated.
[02:01:40] havenwood: impermanence: softwareupdate -l
[02:01:55] havenwood: sofwareupdate -ir # install recommended
[02:02:21] havenwood: softwareupdate**
[02:02:43] esObe_: has joined #ruby
[02:02:51] AndBobsYourUncle: has joined #ruby
[02:04:34] impermanence: lame. so cli didn't see it but app store did. the upgrade that is.
[02:04:40] libastral: has joined #ruby
[02:04:52] havenwood: impermanence: you could use -ia for install all
[02:05:36] csk: has joined #ruby
[02:07:10] duderonomy: has joined #ruby
[02:08:53] impermanence: I'm apparently not the only one that has had this failure regarding softwareupdate --list, --install --all, etc. and there being an update available via the app store.
[02:11:34] havenwood: impermanence: best-effort updater
[02:12:04] impermanence: poor softwareupdate. okay then. anyway it's updating. darn it takes a long time.
[02:13:17] kwekuanase: has joined #ruby
[02:14:25] impermanence: I didn't know Xcode had *anything* to do with package management...
[02:14:55] nadir: has joined #ruby
[02:17:11] jcao219: has joined #ruby
[02:18:19] naprimer_2: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:22:50] herbmillerjr: has joined #ruby
[02:24:43] impermanence: so irb is important...
[02:25:33] mzo: has joined #ruby
[02:30:17] hutch34: has joined #ruby
[02:33:32] gdonald: has joined #ruby
[02:36:12] spicerack: has joined #ruby
[02:37:48] mazeinmaze_: has joined #ruby
[02:39:23] charliesome: has joined #ruby
[02:40:24] aryaching: has joined #ruby
[02:47:41] herbmillerjr: has joined #ruby
[03:00:01] spicerack: has joined #ruby
[03:03:48] spicerack: has joined #ruby
[03:03:48] vondruch_: has joined #ruby
[03:07:30] RobertBirnie: has joined #ruby
[03:07:37] hahuang61: has joined #ruby
[03:10:34] HoierM: has joined #ruby
[03:10:57] lagweezle: has joined #ruby
[03:12:01] gix: has joined #ruby
[03:14:21] JoshS: has joined #ruby
[03:16:32] JeanCarloMachado: has joined #ruby
[03:16:57] patarr: has joined #ruby
[03:18:49] Pumukel: has joined #ruby
[03:20:33] bkxd: has joined #ruby
[03:22:12] PorcoRex: has joined #ruby
[03:22:34] PorcoRex: Good night!
[03:23:48] cyphase: has joined #ruby
[03:25:09] harfangk: has joined #ruby
[03:26:51] Sammichmaker: has joined #ruby
[03:34:33] mim1k: has joined #ruby
[03:36:57] xall: has joined #ruby
[03:38:35] perlnecrohacker: has joined #ruby
[03:40:00] perlnecrohacker: has joined #ruby
[03:41:06] perlnecrohacker: has joined #ruby
[03:43:25] perlnecrohacker: has joined #ruby
[03:43:34] RobertBirnie: has joined #ruby
[03:45:40] perlnecrohacker: has joined #ruby
[03:46:41] perlnecrohacker: has joined #ruby
[03:46:42] _aeris_: has joined #ruby
[03:46:46] fuzzyhorns: has joined #ruby
[03:47:55] perlnecrohacker: has joined #ruby
[03:50:26] marcdel: has joined #ruby
[03:51:44] marcdel_: has joined #ruby
[03:52:42] impermanence: fuck bundler and xcode.
[04:03:49] raul782: has joined #ruby
[04:04:19] esObe_: has joined #ruby
[04:05:06] cfec0b8d: has joined #ruby
[04:14:36] PorcoRex: That was constructive...
[04:16:39] baweaver: That was Mac development with Ruby for the first time
[04:17:00] baweaver: I'd hate to see what happens when they try to do that with Windows XD
[04:18:36] PorcoRex: So that's where xcode comes from.
[04:18:53] baweaver: Anyways, I didn't notice it when they said it or I'd mention something. Too late now.
[04:20:30] PorcoRex: Yeah, me too. But it seems rather bitter to come to say something like that, stand less than 20 minutes, and just log out. What kind of a grievance is that? I have greater grievances with Ruby that that.
[04:24:21] PorcoRex: baweaver, so, remember when we were discussing a couple of days ago about TCO? And how my friend would like it? Turns out he's a bit disappointed on Ruby for large scale applications. He's seriously considering Scala and/or other functional approaches.
[04:24:31] PorcoRex: What do you make of this?
[04:25:35] duderono_: has joined #ruby
[04:26:41] gdonald: has joined #ruby
[04:33:39] mim1k: has joined #ruby
[04:38:34] PorcoRex: I don't want to be controversial or anything, but many people seem to think a functional approach is the way to go, and, as previously discussed, Ruby is not specially apt for that paradigm.
[04:38:55] PorcoRex: Are there any thoughts on this?
[04:39:59] mzo: ruby is a toy
[04:40:20] alxgsv: has joined #ruby
[04:40:30] PorcoRex: mzo, a toy language you mean.
[04:40:39] elomatreb: There certainly are worse languages to appropriate FP patterns in
[04:40:41] mzo: production software should ideally be written in Standard ML, or failing that, OCaml or Haskell
[04:40:56] mzo: PorcoRex: yes
[04:42:06] PorcoRex: mzo, that seems an overly opinionated approach. Are there reasons for all production software to be written in those langs?
[04:42:43] mzo: they are the best languages for functional programming
[04:42:55] mzo: and as we all know functional programming is better than imperative programming
[04:43:45] PorcoRex: mzo, I don't know that. What would be the source for that claim?
[04:44:44] elomatreb: ACTION is getting a slightly trolly feeling
[04:45:31] flopsec: has joined #ruby
[04:45:38] PorcoRex: ACTION taps forehead.
[04:45:41] zel: has joined #ruby
[04:45:46] Satyajit: has joined #ruby
[04:46:07] PorcoRex: But I was seriously anyways.
[04:46:33] dcluna: has joined #ruby
[04:47:03] baweaver: Solid evidence or I _will_ treat it as trolling.
[04:47:32] baweaver: Ruby is a perfectly valid language for production use, as are several other languages
[04:48:16] baweaver: Ruby has a functional faceplate which allows emulation of some functional techniques, but only scratches the surface. For most this is enough.
[04:48:17] elomatreb: What I meant earlier: You can get some/many benefits of the advantages of FP in Ruby if you appropriate the patterns, but it won't enforce them, so you have to be discplined
[04:49:00] baweaver: There are lessons from FP like immutability, referential transparency, and others which are definitely applicable in Ruby
[04:49:37] baweaver: An example from the other day: someone had a log function that they wanted to test, but the function called Time.new inside it. That's not referentially transparent as it has a hidden input: Time.new
[04:49:58] baweaver: so instead you'd promote that to an argument with a default value of Time.new: def log(message, start = Time.new)
[04:51:27] PorcoRex: Ok, but here's something interesting I'm experiencing.
[04:51:32] baweaver: Also SML : Scala(JVM) :: OCaml : F#(.NET)
[04:52:18] baweaver: I was referring to the grand sweeping claims earlier from mzo in reference to trolling.
[04:52:32] PorcoRex: I don't see Ruby as a functional friendly language, but I do see it as a very good OOP language. Are there still any takers on that?
[04:53:09] baweaver: It has a functional faceplate (some support) but is at its core OO
[04:53:47] duderonomy: has joined #ruby
[04:53:50] baweaver: though you could almost make it fully functional by using Lambda Calculus and a whole lot of lambdas to rebuild the langauge
[04:54:01] baweaver: See: Understanding Computation
[04:54:56] PorcoRex: baweaver, what I mean is, forgetting all functional paradigms and constructs. Do you think that OO/OOP have outrun their lives in a sense?
[04:54:58] baweaver: interesting book, super trippy. Also 'Kestrels, Quirky Birds, and Hopeless Egocentricy' by Raganwald
[04:55:11] PorcoRex: Is it time to think computing in a different way?
[04:55:19] baweaver: It's always time for that
[04:55:33] baweaver: but all silver bullets have lead in them somewhere
[04:55:35] PorcoRex: Well, of course, but you know what I mean.
[04:55:38] baweaver: so be careful
[04:57:11] jeffreylevesque: has joined #ruby
[04:57:27] baweaver: The best product doesn't always win, remember. Beta was beat by VHS because of marketing. LISP suffered the AI winter and C++/Java took the crown.
[04:57:52] baweaver: Haskell can be the best language in the world, but that'll count for nothing if you can't get good programmers in it.
[04:58:10] PorcoRex: To be completely hones I know nothing about functional programming, but I'm quite comfortable with OOP. It is true that in bit apps maintained by a lot of people disasters happen (and big ones at that).
[04:58:16] baweaver: There's a definite trend towards it, yes, but currently not enough behind it yet.
[04:58:29] PorcoRex: baweaver, you just stole my words.
[04:58:30] totimkopf: baweaver: I never could understand Monads
[04:58:33] baweaver: disaster is a human condition, not OOP
[04:58:52] baweaver: totimkopf: http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html
[04:59:09] kobain: has joined #ruby
[04:59:32] Guest96: has joined #ruby
[05:00:05] totimkopf: baweaver: thanks
[05:00:16] baweaver: it'll take a while even with that though
[05:00:26] baweaver: Once it clicks it clicks but it's dense stuff otherwise.
[05:00:33] totimkopf: yeah, i'm too tired to study it now but i've bookmarked it
[05:01:12] baweaver: Read The Haskell Book or Learn You a Haskell if you want more buildup to it.
[05:01:39] baweaver: but it's dense stuff, don't worry if you can't get it the first (second, third, fo...) time
[05:01:57] PorcoRex: I think my friend would like Ruby again if he heard of monads. But, how come, is Ruby becoming a more functional language in the future?
[05:02:48] baweaver: Monads don't really work well in Ruby.
[05:02:56] baweaver: but that's a really long subject
[05:03:42] baweaver: Ruby 3 is doing some interesting things. Last I heard they involved a message concurrency system like Erlang and type annotations as well as some huge performance boosts
[05:03:48] PorcoRex: No, I know (or I think I know but actually don't) but what I mean is... why are we in Ruby instead of in some other IRC channel.
[05:03:49] baweaver: but that's all down the road a ways
[05:04:16] baweaver: Because I program Ruby for a living for one.
[05:04:26] baweaver: but I'm in quite a few other channels
[05:05:14] PorcoRex: So you've overtaken the channel, even though you'd be rather programming in, say, Elixir.
[05:05:36] esObe_: has joined #ruby
[05:05:36] syndikate: has joined #ruby
[05:06:01] PorcoRex: It was just a joke. Sorry, it didn't come through as I intended.
[05:06:16] baweaver: Sometimes I need a hammer
[05:06:17] baweaver: other times a saw
[05:06:25] baweaver: simple as that
[05:06:57] baweaver: Ruby is the first tool I reach for in anything scripting or operations, every time.
[05:08:27] PorcoRex: And, if I may ask, why did you eventually derive from Ruby to other more functional languages?
[05:08:30] raul782: has joined #ruby
[05:08:43] hahuang61: has joined #ruby
[05:08:48] PorcoRex: Other programmers is a valid answer btw.
[05:08:54] baweaver: I experiment a lot
[05:09:06] baweaver: I'd worked on Hadoop systems in Java, hated it.
[05:09:18] baweaver: then found out Hadoop was based on MapReduce was based on FP
[05:09:26] baweaver: then tangent from there
[05:09:51] PorcoRex: Do you think FP is the future?
[05:09:56] jgt1: has joined #ruby
[05:10:06] PorcoRex: I mean in big enterprise apps?
[05:10:11] baweaver: It's a future. I don't tend to subscribe to that particular religion
[05:10:30] baweaver: You know Facebook Chat?
[05:10:45] PorcoRex: No, I don't have Facebook.
[05:10:57] baweaver: that's a pretty big enterprise app.
[05:11:05] chouhoulis: has joined #ruby
[05:11:35] baweaver: Banks? Haskell shows up a fair amount. Ericsson invented Erlang and still uses it. It's already out there
[05:11:52] PorcoRex: I think you may have a point.
[05:12:21] baweaver: http://baweaver.com/blog/2015/06/20/a-functional-programming-primer-for-spark/
[05:12:35] baweaver: See that for why I jumped from Java Hadoop.
[05:13:36] baweaver: of course chances are I don't entirely agree with myself from two years ago, but that's a different matter.
[05:14:53] PorcoRex: I understand. But programming-wise, is it better/worse or just the same in your opinion?
[05:15:00] totimkopf: baweaver: actually I read it anyway and it actually makes a lot more sense now
[05:15:06] JoshS: has joined #ruby
[05:15:17] baweaver: welcome to the first stage of enlightenment
[05:15:30] baweaver: or hell, depends
[05:15:48] baweaver: Both are Turing Complete
[05:16:05] baweaver: theoretically they can accomplish the same task, or any task for that matter
[05:16:46] baweaver: See also: The LISP Curse - http://winestockwebdesign.com/Essays/Lisp_Curse.html
[05:17:19] PorcoRex: I can't cram more languages in. I have a list, I assure you...
[05:17:30] baweaver: It's a generic article
[05:17:42] baweaver: substitute LISP with Javascript if it makes it easier
[05:17:45] patarr: has joined #ruby
[05:18:02] baweaver: they both have some of the same problems, just that one has control of most of the web now because ubiquity is fun
[05:18:19] PorcoRex: In that case, bookmarked! :)
[05:20:10] baweaver: Also: https://www.jwz.org/doc/worse-is-better.html
[05:21:10] PorcoRex: beatdown, by the way, I think I asked you before, but say you had to do like a CMS for movies and that it was used (partially or totally) by cinemas all over the country.
[05:21:31] PorcoRex: Would you be confortable in implementing it in a FP way?
[05:21:43] PorcoRex: (this is just to give me an idea
[05:22:00] baweaver: TL;DR of everything I've said: If someone knocks on your door selling an ultimate solution, you'd be instantly skeptical. Same with programming. Be skeptical.
[05:22:21] baweaver: I'd do it in Rails because I can be done with it in maybe an hour.
[05:22:52] PorcoRex: But if they hired you, and you could assemble the base, what would you choose on that particular example?
[05:23:00] baweaver: I wouldn't have to screw with type signatures, purity, composition, or any of it. I could just be done and let Rails decide the architectural concerns for me.
[05:23:19] baweaver: Time to market is more important than "getting it right"
[05:23:48] baweaver: which is why Twitter started Rails, and when they did make it big, hired people to scale it / switch to Scala
[05:24:09] baweaver: read the "Worse is Better" article above
[05:24:11] jcao219: has joined #ruby
[05:24:14] PorcoRex: I get you. Let's forget about time. (also not specifically talking about Rails, or even Ruby) just your preference.
[05:24:40] baweaver: Time is always a concern
[05:25:51] PorcoRex: It's hypothetical, but, in any case... Wouldn't FP also sweep languages like Java, Python, etc?
[05:26:09] baweaver: depends on what you mean by sweep
[05:26:59] PorcoRex: I mean like say C. It can't be erased, but, if it can be avoided noone will be pressured to write in it.
[05:27:36] baweaver: A salesman finds a lumberjack cutting redwoods with an axe, and sells him a chainsaw. Comes back after a few days to check on him, and not a single tree is down. Lumberjack hates the chainsaw, calls it worthless. Why do you suppose that is? It's obviously more efficient and better suited for the task.
[05:29:19] baweaver: The salesman asks the lumberjack to show him how he uses the chainsaw, and the lumberjack proceeds to slam it against the tree like his axe. A good tool is worthless in the hands of the untrained, but a familiar tool will always beat it until they learn the good tool.
[05:29:23] PorcoRex: I think the salesman didn't give the man the proper instructions.
[05:30:06] baweaver: Remember there's a learning curve to the good tool that may far exceed "swing at tree"
[05:30:28] baweaver: and a lot of people learned on Java and friends, so Haskell is a monster jump to them
[05:31:35] baweaver: I can have a Java programmer effective in Ruby in a week. That won't happen in Haskell, the concepts are too foreign
[05:32:00] PorcoRex: baweaver, no no, I understand that. I think I need a bit of it before I can make the conversation interesting, but actually my discussion was a bit on the "I don't know" side.
[05:32:27] SuperLag: has joined #ruby
[05:32:39] baweaver: There are more factors to choosing than the superior quality of the language / paradigm of programming
[05:33:35] baweaver: Market pool (how many programmers are available), effectiveness (how fast they are, does 1xHaskell == 10xJava?), libraries (how much community support), docs, and a lot more
[05:33:46] PorcoRex: baweaver, I guess my question was, if you had to make a big app, would you choose X language? And what would X be?
[05:34:00] baweaver: too broad a question honestly
[05:34:12] havenwood: PorcoRex: Ruby. Next question!
[05:34:18] baweaver: what does the app do, who's the target, how long do I have, etc etc etc
[05:34:28] baweaver: things cannot possibly reduced to a single definitive answer
[05:34:33] PorcoRex: baweaver, fair enough. havenwood you're right.
[05:34:41] baweaver: whether that be language, paradigm, or otherwise
[05:34:53] havenwood: PorcoRex: But yeah, it's a good question. It depends.
[05:34:57] baweaver: havenwood: ohai. Excuse my ranting.
[05:35:10] baweaver: gave you enough backlog to be entertained with XD
[05:36:35] SeepingN: has joined #ruby
[05:37:12] PorcoRex: I must confess, it is only confusing because I don't know these languages well myself, otherwise it would be a matter of making a choice.
[05:37:19] djbkd: has joined #ruby
[05:38:01] baweaver: Then go out and learn one
[05:38:57] PorcoRex: beatdown, no, I mean, I know some, but just not the ones outside my comfort zone.
[05:39:20] SeepingN: has joined #ruby
[05:39:46] baweaver: Then go forth and learn
[05:40:26] PorcoRex: But I intend to, really dude! You sound like my mom. :(
[05:40:43] baweaver: Tut tut tut, none of the sass
[05:43:56] bkxd: has joined #ruby
[05:46:34] Guest96: has joined #ruby
[05:52:46] nofxx: PorcoRex, apart from web/js anything is better with ruby! and for JS you can write coffeescript which tries to be ruby!
[05:54:26] PorcoRex: nofxx, I think ES6 is better than CS.
[05:54:40] AnoHito: has joined #ruby
[05:55:43] nofxx: PorcoRex, can't say... never did anything with ES6. If I got it right it compiles to normal JS but eventually will run w/o compile in modern browsers?
[05:56:16] baweaver: https://kangax.github.io/compat-table/es6/
[05:56:33] baweaver: modern browsers have some decent support for it
[05:57:41] baweaver: Opal is Ruby->JS compile
[05:58:54] bkxd: has joined #ruby
[05:59:07] PorcoRex: It is the next version, so it should be eventually supported by all browsers.
[05:59:09] nofxx: need to try opal someday...es6 too
[05:59:43] PorcoRex: BTW, any opinions on WebAssembly. I do like the concept.
[05:59:44] nofxx: baweaver, yeah, pretty much 99%...
[06:10:03] PorcoRex: People, is was a pleasure being here. Have a great weekend!
[06:10:46] PorcoRex: has left #ruby: ("Leaving")
[06:13:52] bkxd: has joined #ruby
[06:15:28] csk: has joined #ruby
[06:16:31] xall: has joined #ruby
[06:16:55] _tk421_: has joined #ruby
[06:18:16] cam27: has joined #ruby
[06:21:50] JeanCarloMachado: has joined #ruby
[06:28:55] bkxd: has joined #ruby
[06:34:26] jusa: has joined #ruby
[06:41:51] bkxd: has joined #ruby
[06:51:49] AnoHito: has joined #ruby
[06:52:57] aryaching_: has joined #ruby
[06:55:58] User458764: has joined #ruby
[06:57:38] Silthias1: has joined #ruby
[07:00:59] jgnagy: has joined #ruby
[07:03:40] toretore: has joined #ruby
[07:05:35] grh: has joined #ruby
[07:05:49] solocshaw: has joined #ruby
[07:05:53] SeepingN: has joined #ruby
[07:06:52] esObe_: has joined #ruby
[07:08:47] ddffg: has joined #ruby
[07:09:31] hahuang61: has joined #ruby
[07:13:34] FastJack: has joined #ruby
[07:16:25] harfangk: has joined #ruby
[07:18:38] patarr: has joined #ruby
[07:19:16] RenatoSilva: has joined #ruby
[07:32:23] hutch34: has joined #ruby
[07:32:36] AnoHito: has joined #ruby
[07:39:38] solocshaw: has joined #ruby
[07:39:41] nofxxx: has joined #ruby
[07:44:01] bkxd: has joined #ruby
[07:47:35] rippa: has joined #ruby
[07:50:16] Qchmqs: has joined #ruby
[07:50:47] cseder: has joined #ruby
[07:52:15] jamesaxl: has joined #ruby
[07:54:56] dn`: has joined #ruby
[07:56:13] dionysus69: has joined #ruby
[08:07:06] cschneid_: has joined #ruby
[08:08:26] esObe_: has joined #ruby
[08:09:07] zun: has joined #ruby
[08:11:02] lxsameer: has joined #ruby
[08:11:24] ahrs: has joined #ruby
[08:20:06] snickers: has joined #ruby
[08:20:24] teddysmoker: has joined #ruby
[08:28:12] johnzorn: has joined #ruby
[08:29:12] esObe_: has joined #ruby
[08:31:31] milardovich: has joined #ruby
[08:33:15] cfec0b8d: has joined #ruby
[08:38:59] Arpanet69: has joined #ruby
[08:43:08] armyriad: has joined #ruby
[08:43:42] marr: has joined #ruby
[08:44:03] marcdel: has joined #ruby
[08:44:52] bkxd: has joined #ruby
[08:45:11] jgt1: has joined #ruby
[08:46:30] cschneid_: has joined #ruby
[08:54:17] milardovich: has joined #ruby
[08:58:53] mikecmpbll: has joined #ruby
[09:00:38] User458764: has joined #ruby
[09:03:17] MarcWeber: has joined #ruby
[09:05:46] BlueDragons: has joined #ruby
[09:10:22] hahuang61: has joined #ruby
[09:12:35] raul782: has joined #ruby
[09:16:06] blackmesa: has joined #ruby
[09:17:23] ayonkhan: has joined #ruby
[09:19:32] patarr: has joined #ruby
[09:21:13] ohcibi: has joined #ruby
[09:21:24] Jackneill: has joined #ruby
[09:24:26] milardovich: has joined #ruby
[09:32:55] Pumukel: has joined #ruby
[09:35:00] cats: has joined #ruby
[09:35:26] ahrs: has joined #ruby
[09:36:29] jcao219: has joined #ruby
[09:39:27] patarr: has joined #ruby
[09:42:39] xall: has joined #ruby
[09:45:04] Pumukel: has joined #ruby
[09:45:26] bkxd: has joined #ruby
[09:48:08] bodgix: has joined #ruby
[09:50:01] bodgix: has left #ruby: ()
[09:54:15] tvw: has joined #ruby
[09:55:05] swemoney: has joined #ruby
[09:55:13] Pumukel: has joined #ruby
[09:56:36] cseder: has joined #ruby
[10:00:01] rgtk: has joined #ruby
[10:00:21] ohcibi: has joined #ruby
[10:07:52] jcao219: has joined #ruby
[10:08:32] charliesome: has joined #ruby
[10:16:10] esObe_: has joined #ruby
[10:18:24] nadir: has joined #ruby
[10:18:32] tristanp: has joined #ruby
[10:29:47] jenrzzz: has joined #ruby
[10:34:35] esObe_: has joined #ruby
[10:36:51] galtgendo: in Psych, how does init_with method account for yaml anchors ? I'm getting '`*': nil can't be coerced into Fixnum (TypeError)' in such cases with a method that works when no anchors are present
[10:37:34] esObe_: has joined #ruby
[10:38:40] sepp2k: has joined #ruby
[10:42:07] Olipro: has joined #ruby
[10:51:11] _whitelogger: has joined #ruby
[10:52:59] milardovich: has joined #ruby
[10:56:35] jgt1: has joined #ruby
[10:59:13] AnoHito: has joined #ruby
[11:01:12] bkxd: has joined #ruby
[11:12:47] hahuang61: has joined #ruby
[11:14:42] GSilva: has joined #ruby
[11:16:25] raul782: has joined #ruby
[11:17:49] ledestin: has joined #ruby
[11:23:13] bkxd: has joined #ruby
[11:35:04] Bozo: has joined #ruby
[11:38:45] esObe_: has joined #ruby
[11:41:04] ayonkhan_: has joined #ruby
[11:44:28] Lord_of_Life: has joined #ruby
[11:52:16] Fernando-Basso: has joined #ruby
[11:54:36] gigetoo: has joined #ruby
[11:55:50] AnoHito: has joined #ruby
[11:57:08] blackwind_123: has joined #ruby
[11:58:23] Bozo: has joined #ruby
[12:02:02] charliesome: has joined #ruby
[12:02:07] milardovich: has joined #ruby
[12:06:45] ph88: has joined #ruby
[12:06:52] ph88: where can i browser all the packages for ruby ?
[12:07:06] ph88: what's the go-to two factor authentication library ?
[12:07:25] canton7: https://rubygems.org/gems ? you could be there a while...
[12:08:29] xall: has joined #ruby
[12:13:34] _sfiguser: has joined #ruby
[12:14:40] Xeago_: has joined #ruby
[12:16:58] Mon_Ouie: You may want to have a look at https://www.ruby-toolbox.com/
[12:18:35] blackmesa: has joined #ruby
[12:19:40] Bozo: has joined #ruby
[12:20:58] Lord_of_Life: has joined #ruby
[12:21:30] JeanCarloMachado: has joined #ruby
[12:33:26] roshanavand: has joined #ruby
[12:33:42] hutch34: has joined #ruby
[12:34:57] Qchmqs: has joined #ruby
[12:36:10] blackmesa: has joined #ruby
[12:36:45] esObe_: has joined #ruby
[12:37:07] Verity: https://gist.github.com/anonymous/6ed0d967550f9531d3bbcaa83210d20b
[12:37:10] Verity: can this be improved?
[12:37:39] Verity: I know its not technically the true algorithm, I wanted to change space char also
[12:40:05] matthewd: I assume String#tr is out?
[12:40:36] __Yiota: has joined #ruby
[12:41:37] milardovich: has joined #ruby
[12:42:03] Verity: I'll check the doc, I almost noticed I made a mistake. I'll work on improvments now
[12:42:35] loechel: has joined #ruby
[12:42:38] xenops: has joined #ruby
[12:42:51] matthewd: tr makes it a one-liner, and is the right solution for the problem.. but may not be as helpful for general learning
[12:43:19] matthewd: Other than that, my first observation would be that you should be using map
[12:43:20] ddffg: has joined #ruby
[12:43:59] figuresofstick: has joined #ruby
[12:49:49] GodFather: has joined #ruby
[12:51:37] dn`: has joined #ruby
[12:57:14] HoierM: has joined #ruby
[13:01:26] milardovich: has joined #ruby
[13:02:27] pulkit4tech: has joined #ruby
[13:03:11] houhoulis: has joined #ruby
[13:09:36] Azure|dc: has joined #ruby
[13:13:35] hahuang61: has joined #ruby
[13:14:05] User458764: has joined #ruby
[13:19:07] allisio: Who deletes anonymous Gists?
[13:19:36] jhass: github after some time no?
[13:19:53] jhass: also as long as you have the cookie from creating it you can delete it yourself I think
[13:22:49] Olipro: has joined #ruby
[13:23:31] allisio: I meant only to question the point of the operation.
[13:23:55] sepp2k1: has joined #ruby
[13:27:29] canton7: avoid paying for the space required to store millions of gists noone cares about any more?
[13:28:37] mikecmpbll: has joined #ruby
[13:30:28] Pumukel: has joined #ruby
[13:32:09] loechel: has joined #ruby
[13:36:30] ryan_notabot: has joined #ruby
[13:39:16] theRoUS: has joined #ruby
[13:40:07] roshanavand: has joined #ruby
[13:41:04] roshanavand: has joined #ruby
[13:42:23] jespada: has joined #ruby
[13:42:45] Travis-42: has joined #ruby
[13:43:41] Travis-42: Every time I try to use ruby with the watir gem, I get the mac os popup about allowing incoming network connections. Regardless of what I choose, it happens again the next time. It seems like Mac OS is not recognizing the ruby executable each time. Is there any way to fix this?
[13:44:55] GodFather_: has joined #ruby
[13:48:32] tens0r: has joined #ruby
[13:49:20] nowhereman: has joined #ruby
[13:49:54] erlend: has joined #ruby
[13:50:05] grh: has joined #ruby
[13:50:42] hutch34: has joined #ruby
[13:51:06] millerti: has joined #ruby
[13:51:23] Bozo: has joined #ruby
[13:54:47] User458764: has joined #ruby
[13:55:21] User458764: has joined #ruby
[14:07:35] am55: has joined #ruby
[14:11:00] JeanCarloMachado: has joined #ruby
[14:12:16] nowhereman: has joined #ruby
[14:15:41] DLSteve: has joined #ruby
[14:21:11] tristanp: has joined #ruby
[14:23:55] herbmillerjr: has joined #ruby
[14:24:53] blackmesa: has joined #ruby
[14:27:38] nankyokusei: has joined #ruby
[14:30:58] Lord_of_Life: has joined #ruby
[14:31:15] cam27: has joined #ruby
[14:33:13] blackwind_123: has joined #ruby
[14:41:16] hutch34: has joined #ruby
[14:41:23] dar123: has joined #ruby
[14:43:58] Lord_of_Life: has joined #ruby
[14:44:31] blackwind_123: has joined #ruby
[14:46:19] tens0r: has joined #ruby
[14:48:59] fmcgeough: has joined #ruby
[14:50:31] fmcgeough: has joined #ruby
[14:58:44] Channel6: has joined #ruby
[15:00:10] jgnagy: has joined #ruby
[15:04:07] am55: has joined #ruby
[15:09:37] lupine: http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-mac-8.7.1-amd64-netinst.iso
[15:14:30] hahuang61: has joined #ruby
[15:29:10] cagmz: has joined #ruby
[15:31:38] JeanCarloMachado: has joined #ruby
[15:33:33] Xiti: has joined #ruby
[15:33:42] cajone: has left #ruby: ()
[15:36:15] ytti: anyone use VSC to edit ruby files, is there way to make '%' jump between def/class/begin/block and end?
[15:37:50] Pumukel: has joined #ruby
[15:38:00] j416: could just use vim
[15:38:05] j416: ACTION runs
[15:40:10] j416: hm maybe it doesn't do that out of the box
[15:40:23] j416: was some time since I touched Ruby
[15:44:12] cajone: has joined #ruby
[16:05:53] acalycine: has joined #ruby
[16:15:41] SteenJobs: has joined #ruby
[16:17:03] pwnd_nsfw`: has joined #ruby
[16:19:44] mzo: has joined #ruby
[16:22:40] jusa: has joined #ruby
[16:23:29] raul782: has joined #ruby
[16:26:32] herbmillerjr: has joined #ruby
[16:28:30] milardovich: has joined #ruby
[16:28:58] ltem: has joined #ruby
[16:29:52] houhoulis: has joined #ruby
[16:34:26] impermanence: has joined #ruby
[16:35:00] impermanence: How can I start using Ruby at my CLI command prompt instead of bash?
[16:35:32] havenwood: impermanence: irb
[16:35:44] havenwood: impermanence: Or better yet, install the pry gem.
[16:35:48] havenwood: ?pry impermanence
[16:35:48] ruby[bot]: impermanence: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-do
[16:36:05] impermanence: havenwood: I would, but I have serious problems with gem (apparently).
[16:36:08] j416: impermanence: why would you want Ruby instead of bash?
[16:36:22] havenwood: impermanence: Solve your gem problem. Gems are important.
[16:36:56] impermanence: havenwood: it keeps complaining about zlib. So I updated Xcode like the internets said to, but it did not fix it.
[16:37:03] Ishido: has joined #ruby
[16:37:04] impermanence: It's stressing me out :(
[16:37:29] havenwood: impermanence: Did you entirely remove, and reinstall Ruby after installing the build tools?
[16:37:39] havenwood: impermanence: Rebuild Ruby!
[16:37:41] impermanence: havenwood: no
[16:37:46] impermanence: why would i do that?
[16:37:55] havenwood: impermanence: It will statically link against zlib.
[16:38:00] j416: impermanence: use ruby-install + chruby or rvm or something like that; don't mess with the system stuff
[16:38:07] j416: tends to make things easier
[16:38:47] havenwood: impermanence: ruby-install --latest ruby
[16:38:47] impermanence: so...I need to remove ruby-install and chruby...that's how I uninstall ruby...?
[16:38:52] havenwood: impermanence: no
[16:38:55] impermanence: oh. just write over it...
[16:38:57] havenwood: impermanence: cd ~/.rubies
[16:39:09] havenwood: impermanence: you can rm -rf the Ruby you're replacing first, if you'd like
[16:40:17] Pumukel: has joined #ruby
[16:49:27] impermanence: havenwood: okay so the new ruby has finished installing.
[16:49:43] impermanence: havenwood: so now hypothetically just gem install "stuff" ?
[16:49:47] ddffg: has joined #ruby
[16:50:04] rgtk: has joined #ruby
[16:51:10] havenwood: impermanence: yes
[16:51:13] oz: has joined #ruby
[16:51:45] impermanence: still throwing.
[16:52:04] impermanence: went to install xcode 8.3.1 last night in attempt to fix
[16:52:10] impermanence: had to install Sierra to do
[16:52:15] blackmesa: has joined #ruby
[16:52:19] impermanence: then bumped up to 8.3.1
[16:52:39] impermanence: now have taken your advice to reinstall ruby
[16:53:43] impermanence: ERROR: Loading command: install (LoadError) cannot load such file -- zlib
[16:53:49] User458764: has joined #ruby
[16:54:56] havenwood: impermanence: ah, did they remove zlib from macOS Sierra?
[16:55:02] havenwood: impermanence: brew install zlib
[16:55:07] impermanence: nah, it's there.
[16:55:12] impermanence: otool confirms.
[16:55:24] impermanence: I'll come back to this later.
[16:55:29] havenwood: impermanence: for whatever reason they moved it from homebrew/dupes to homebrew/core
[16:55:41] havenwood: impermanence: which is suspicious, and bears investigating
[16:56:02] impermanence: should I file a bug report or dependency error report?
[16:56:41] havenwood: impermanence: you could file a dep report with ruby-install - or stop by the #chruby channel any time and I'd be happy to try to debug and PR the fix
[16:57:44] impermanence: havenwood: you Sir are a Sir. I will do that. I can't now because I've already been scripting for like three hours (had to wet the ol' beak despite the gems debacle) and I need to go run some errands.
[16:58:26] impermanence: havenwood: see you over in #chruby on Monday. We'll do this and then maybe I'll write a blog post about it. thanks for the insight!
[16:58:55] havenwood: impermanence: sounds good!
[17:00:20] impermanence: has joined #ruby
[17:01:28] nankyokusei: has joined #ruby
[17:05:25] jusa: has joined #ruby
[17:11:43] BLuEGoD: has joined #ruby
[17:11:54] impermanence: has joined #ruby
[17:12:59] marcdel: has joined #ruby
[17:14:04] hlmjr: has joined #ruby
[17:15:32] hahuang61: has joined #ruby
[17:18:01] Mrgoose: has joined #ruby
[17:19:00] raspado: has joined #ruby
[17:19:44] nankyokusei: has joined #ruby
[17:20:47] xall: has joined #ruby
[17:21:02] minimalism: has joined #ruby
[17:22:27] nofxx: has joined #ruby
[17:23:36] hutch34: has joined #ruby
[17:27:28] milardovich: has joined #ruby
[17:27:45] milardovich: has joined #ruby
[17:27:46] gix: has joined #ruby
[17:31:41] v1n: has joined #ruby
[17:33:39] t-recx: has joined #ruby
[17:35:25] siaw23: has joined #ruby
[17:36:24] siaw23: why am i getting “no block given” error here: https://i.gyazo.com/cfc019fb5b3f026b4f190ce1cda2308b.png
[17:38:16] elomatreb: siaw23: Well, you're trying to yield to a block where there is none
[17:38:19] havenwood: siaw23: yield if block_given?
[17:40:34] impermanence: has joined #ruby
[17:42:18] ncthom91: has joined #ruby
[17:42:29] siaw23: havenwood: works. the block_given would in my case be my_method do …. right?
[17:43:20] siaw23: i thought yield will always find the block itself provided the name of the block and method match
[17:43:25] matthewd: siaw23: Please don't use images to show code
[17:43:39] Pumukel: has joined #ruby
[17:43:43] matthewd: What block?
[17:44:49] elomatreb: siaw23: `block_given?` returns true if the method was called with a block, nothing more
[17:45:14] siaw23: elomatreb: thank you
[17:45:29] siaw23: matthewd: got it
[17:49:14] User458764: has joined #ruby
[17:59:09] boombox_: has joined #ruby
[18:01:06] djbkd: has joined #ruby
[18:01:34] QpQ4: has joined #ruby
[18:03:32] Guest96: has joined #ruby
[18:06:00] Fernando-Basso: has joined #ruby
[18:07:10] semperfried76: has joined #ruby
[18:10:24] pwnd_nsfw: has joined #ruby
[18:13:12] teddysmoker: has joined #ruby
[18:14:28] johnzorn: has joined #ruby
[18:15:25] johnzorn: has joined #ruby
[18:20:41] Arpanet69: has joined #ruby
[18:32:00] JeanCarloMachado: has joined #ruby
[18:32:17] houhoulis: has joined #ruby
[18:35:28] mazeinmaze_: has joined #ruby
[18:42:46] Bob8989: has joined #ruby
[18:47:04] RobertBirnie: has joined #ruby
[18:47:08] Pumukel: has joined #ruby
[18:50:49] raul782: has joined #ruby
[18:52:31] spicerack: has joined #ruby
[18:53:27] haraoka: has joined #ruby
[18:54:54] sagax: has joined #ruby
[18:55:27] DARPA: has joined #ruby
[18:55:45] blackmesa: has joined #ruby
[18:59:29] Bozo: has joined #ruby
[19:03:20] cfec0b8d: has joined #ruby
[19:05:38] gusrub: has joined #ruby
[19:12:48] dionysus69: has joined #ruby
[19:16:22] hahuang61: has joined #ruby
[19:17:15] milardovich: has joined #ruby
[19:18:45] aryaching: has joined #ruby
[19:19:27] jcao219: has joined #ruby
[19:20:11] dn`: has joined #ruby
[19:22:46] nankyokusei: has joined #ruby
[19:23:55] tristanp: has joined #ruby
[19:24:51] Mia: has joined #ruby
[19:24:51] Mia: has joined #ruby
[19:26:45] RobertBirnie: has joined #ruby
[19:36:03] jusa: has joined #ruby
[19:36:03] kent\n: has joined #ruby
[19:39:57] Simplicity: has joined #ruby
[19:41:12] Arpanet69: has joined #ruby
[19:42:00] ignarps: has joined #ruby
[19:42:57] futilegames: has joined #ruby
[19:46:12] blackmesa: has joined #ruby
[19:48:10] DARPA: has joined #ruby
[19:48:55] Limix: has joined #ruby
[19:49:33] ncthom91: has joined #ruby
[19:51:56] Guest96_: has joined #ruby
[19:57:01] pupsicle: has joined #ruby
[20:01:00] siaw23: has joined #ruby
[20:05:47] esObe_: has joined #ruby
[20:10:58] ozcanesen: has joined #ruby
[20:12:57] dionysus69: has joined #ruby
[20:18:36] tristanp: has joined #ruby
[20:21:58] ahrs: has joined #ruby
[20:22:05] statelesscode: has joined #ruby
[20:29:12] Limix: has joined #ruby
[20:36:10] _whitelogger: has joined #ruby
[20:39:19] hfp: has joined #ruby
[20:39:49] hfp_work: has joined #ruby
[20:40:18] __Yiota: has joined #ruby
[20:44:36] milardovich: has joined #ruby
[20:50:27] Pumukel: has joined #ruby
[20:54:38] SteenJobs: has joined #ruby
[20:56:04] BSaboia: has joined #ruby
[20:56:36] herbmillerjr: has joined #ruby
[20:56:38] esObe_: has joined #ruby
[21:06:04] tvw: has joined #ruby
[21:06:47] esObe_: has joined #ruby
[21:15:59] FastJack_: has joined #ruby
[21:17:13] hahuang61: has joined #ruby
[21:19:11] pwnd_nsfw: has joined #ruby
[21:19:26] dionysus69: has joined #ruby
[21:20:30] _djbkd: has joined #ruby
[21:23:37] nankyokusei: has joined #ruby
[21:30:07] impermanence: has joined #ruby
[21:32:12] tristanp: has joined #ruby
[21:38:20] cseder: has joined #ruby
[21:39:49] tens0r: has joined #ruby
[21:40:17] milardovich: has joined #ruby
[21:40:35] hutch34: has joined #ruby
[21:46:18] Ishido: has joined #ruby
[21:48:11] ncthom91: has joined #ruby
[21:51:22] madsa: has joined #ruby
[21:53:21] raul782: has joined #ruby
[21:54:25] Pumukel: has joined #ruby
[21:57:53] workmad3: has joined #ruby
[21:59:16] Simplicity: has left #ruby: ("Leaving")
[22:01:47] nowhereman: has joined #ruby
[22:06:48] tristanp: has joined #ruby
[22:13:54] CloCkWeRX: has joined #ruby
[22:14:12] Ishido: has joined #ruby
[22:21:01] wopi: has joined #ruby
[22:29:05] ozcanesen: has joined #ruby
[22:30:56] milardovich: has joined #ruby
[22:32:21] tristanp: has joined #ruby
[22:44:59] tvw: has joined #ruby
[22:49:09] griff: has joined #ruby
[22:50:19] hutch34: has joined #ruby
[23:00:37] SCHAPiE: has joined #ruby
[23:02:58] houhoulis: has joined #ruby
[23:06:13] SCHAPiE: has joined #ruby
[23:07:18] postmodern: has joined #ruby
[23:13:54] milardovich: has joined #ruby
[23:18:15] hahuang61: has joined #ruby
[23:21:42] HoloIRCUser3: has joined #ruby
[23:24:32] nankyokusei: has joined #ruby
[23:29:06] SteenJobs: has joined #ruby
[23:36:57] jgt1: has joined #ruby
[23:55:03] JoshS: has joined #ruby