havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 240 seconds]
<impermanence> what ruby ide is most commonly used in the enterprise?
aryaching has quit [Ping timeout: 240 seconds]
<lupine> gedit
<bougyman> impermanence: hard to say
<lupine> DON'T JUDGE ME
<impermanence> lupine: I write Java in vi. No judgement. We're friends now :)
<ThePortWhisperer> lupine, only if you halp with my WARN
<bougyman> I see equal parts vim and emacs, with rubymine a solid 3rd, ime
<bougyman> atom coming up on the outside.
<lupine> nonono, gedit is first
<impermanence> okay. so text editors, really. so at the office...people use Atom...not RubyMine or something like that?
<bougyman> in my office everyone uses vim or emacs.
<bougyman> at the last joint some used rubymine
<ThePortWhisperer> #joint
<ThePortWhisperer> national joint day in t-13 days
gix has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
<impermanence> wow. and I am looking at a survey of 100 rubyists and 74 of them apparently only use an editor.
agent_white has joined #ruby
<impermanence> rubymine is advertised as a rails IDE. does this mean it's not suitable for ruby dev?
<impermanence> or not ideal?
<lupine> "only"
Suslov has quit [Quit: Leaving...]
<lupine> the short of it is that an IDE offers nothing valuable to ruby development
GodFather has joined #ruby
<impermanence> hm. okay.
<lupine> it's not like java, with easy automatic code transforms and refactoringsz
gix has joined #ruby
<impermanence> I downloaded RubyMine anyway!
<lupine> the language is really, really hard to parse, so the useful features an IDE can provide over an editor are minimal
<impermanence> oh, okay.
<lupine> ISTR using rubymine a while ago, but it was java-heavy and just didn't work in my LTSP environmwnt
kobain has joined #ruby
SteenJobs has quit [Quit: peaceee]
SeepingN has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
bodgix has quit [Quit: Leaving.]
t-recx has quit [Quit: t-recx]
biberu has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #ruby
jeffreylevesque has joined #ruby
herbmillerjr has joined #ruby
djbkd has quit [Quit: My people need me...]
<impermanence> Do rubyists use an analog to virtualenv for python or anything like that? just curious.
<lupine> there's rvm, or there's chruby+ruby-install
<lupine> a few other options
<lupine> I tend to use chruby
<impermanence> I thought rvm was just a version manager...can you actually go inside it like virtualenv?
<matthewd> I think bundler covers more of virtualenv's use case
<lupine> I'm not sure what that means, exactly
<lupine> I tend to use a gemset or pkgset per project
<lupine> using bundle exec *as well* is overkill like that
Lord_of_Life has quit [Excess Flood]
lel has quit [Ping timeout: 264 seconds]
Lord_of_Life has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
<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.
<havenwood> impermanence: RVM handles statically linked, precompiled binaries as well.
bkxd has joined #ruby
<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.
hotpancakes has joined #ruby
<havenwood> impermanence: chruby switches between Rubies by setting PATH, GEM_HOME, GEM_PATH etc
<impermanence> When you say "rubies"...what does that mean?
<bougyman> ruby versions
<havenwood> impermanence: There are various Ruby engines and versions.
enterprisey has joined #ruby
raul782 has quit [Remote host closed the connection]
<havenwood> impermanence: JRuby implementing Ruby 2.3.4 or CRuby 2.4.1, etc.
<impermanence> and basically that's the interpreter and libraries
<impermanence> ruby ^
<havenwood> impermanence: Often the CRuby reference implementation (YARV) or JRuby (JVM), but there are others.
<impermanence> so ruby requires an engine to run? I thought it was interpreted...?
Snickers has quit [Quit: Snickers]
<allisio> It's not clear how you got something akin to "compiler" from "engine".
<havenwood> impermanence: The popular implementations these days are VMs.
<impermanence> someone mentioned bytecode earlier
<havenwood> >> RUBY_ENGINE
<ruby[bot]> havenwood: # => "ruby" (https://eval.in/770780)
<havenwood> impermanence: Yes. Ruby has an IR bytecode.
<impermanence> IR?
<havenwood> intermediate representation
<impermanence> oh, okay.
<havenwood> The CRuby intermediate representation bytecode is different than the JRuby IR bytecode or Rubinius IR bytecode but they each produce one.
<impermanence> what's the point of the VM?
<lupine> same as python's, really
<lupine> speeds thing sup
<impermanence> oh.
<lupine> there's even a jython
<allisio> >> RubyVM::InstructionSequence.of(-> { 1 + 1 }).to_a[13]
<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)
<havenwood> impermanence: the VM can do optimizations and just in time compiling, etc
<impermanence> oh, okay.
<allisio> And it does those things by vastly simplifying the massive Ruby language down to a relatively small stack-based virtual machine.
dcluna has quit [Ping timeout: 256 seconds]
<havenwood> it saves time to compile to IR, that's something other implementations have done and the reference implementation might do in Ruby 3
<havenwood> we can end our Elixir-envy
<allisio> It's gonna be kinda weird seeing `.rbc` files after all these years.
<havenwood> (on that front)
<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?
<allisio> !pry
raul782 has joined #ruby
dcluna has joined #ruby
<havenwood> allisio: .yarb
<havenwood> allisio: though i prefer the .ruby_binaries dbm from yomikomu's options: https://github.com/ko1/yomikomu#readme
<allisio> impermanence: The REPL that ships with Ruby is called `irb`, but `pry` is loads better.
<havenwood> i dunno, hard to decide
<havenwood> ?pry
<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
<havenwood> impermanence: gem install pry
<allisio> havenwood: Is `.rbc` taken?
<impermanence> is pry an acronym?
<allisio> No.
<havenwood> allisio: rubinus
<havenwood> rubinius*
<allisio> Oh, right.
<havenwood> that's what they compile their bytecode to
<allisio> How about `.cr` for "compiled Ruby"? ^_^
<allisio> /s, in case not obvious.
<havenwood> allisio: >.>
<allisio> <.<
<havenwood> impermanence: If you're interested in Ruby implementations you should look at truffleruby too: https://github.com/graalvm/truffleruby
<impermanence> why?
nadir has quit [Quit: Connection closed for inactivity]
<havenwood> impermanence: It's an exciting implementation with a very large team and much promise.
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<allisio> They're going the distance. They're going for speed.
raul782 has quit [Ping timeout: 268 seconds]
<havenwood> impermanence: It uses dated terminology, but see jruby-dev-truffle-graal performance here (now truffleruby): http://jruby.org/bench9000/
<impermanence> havenwood: ah...why is there more than one implementation? of ruby...?!
<lupine> because the original one was rubbish
<lupine> don't forget rubinius
<matthewd> Again, for the same reason there's more than one implementation of python
<lupine> (by original, I mean MRI)
<impermanence> I didn't know there was more than one implementation of python, actually :|
<lupine> there is a project that compiles python to go
<lupine> so, you know
<matthewd> If you just want to write some ruby, you don't need to know there's more than one implementation of ruby either
<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.
<lupine> then there's mruby, rbx, probably others
<impermanence> havenwood: makes sense. "Supports Java extensions"...like...writing Java in Ruby? Or...what does that mean? java-based Ruby code?
<havenwood> Some have JITs, some threads without GVL, some fork, etc.
<impermanence> havenwood: okay. so is gem the package installer everyone uses? or is there more than one?
<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
<matthewd> impermanence: Use gem to install bundler. Then use bundler to manage the dependencies within a project.
<havenwood> impermanence: RubyGems ships with Ruby. It provides the `gem` command.
<matthewd> impermanence: (it'll still be installing gems.. but it's project-aware)
cyphase has quit [Ping timeout: 260 seconds]
<havenwood> impermanence: You can install dependencies from a Gemfile and create a Gemfile.lock with: gem install -g
<havenwood> impermanence: Or a more popular way to do the same is to install the bundler gem, `gem install bundler`, then run: bundle
<havenwood> either way it creates a Gemfile.lock and installs the gems
<impermanence> I see. okay. So what's the difference between RubyGems and bundler?
rgtk has quit [Ping timeout: 264 seconds]
<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.
<havenwood> Bundler is merging its way into RubyGems, so the distinction will blur.
<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?
<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=~`.
<havenwood> I mean: export RUBYGEMS_GEMDEPS=-
esObe_ has joined #ruby
<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...
lel has joined #ruby
<havenwood> impermanence: for an entry level job they're not significant in any way
<havenwood> impermanence: if you're making architecture decisions then they'd be significant
<impermanence> makes sense.
<impermanence> okay, I need to start reading and hacking now :)
jenrzzz has quit [Ping timeout: 264 seconds]
<havenwood> happy hacking!
<impermanence> thx. I appreciate all the answers. I'll probably be back tomorrow, lol.
RobertBirnie has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
RobertBirnie has quit [Client Quit]
HoierM has quit [Ping timeout: 256 seconds]
Guest96 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
Guest96 has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
RobertBirnie has joined #ruby
<impermanence> wow. so turns out I needed to upgrade bash (I'm on OSX installing rvm. dang...)
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<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
<Radar> I personally found rvm to be bloated
<impermanence> oh, wow. okay.
<impermanence> what about rbenv?
<impermanence> just reading right now about rvm vs rbenv...
<Verity> but what do I lose out on if I go deep with ruby
hotpancakes has quit [Remote host closed the connection]
<havenwood> impermanence: chruby
<impermanence> chruby it is.
<matthewd> chruby is newer and smaller. rbenv is fine.. avoid rvm.
<impermanence> oh. will do.
<impermanence> apparently rvm implode will remove it from osx?
hotpancakes has joined #ruby
<havenwood> impermanence: Yup: rvm implode --force
<havenwood> impermanence: You may have to manually clean up a dotfile or two.
<impermanence> k
<Radar> Verity: what?
<impermanence> that got it all.
HoierM has joined #ruby
eb0t has joined #ruby
eblip has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
gsilva has quit [Ping timeout: 260 seconds]
eb0t_ has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
tvw has quit [Ping timeout: 240 seconds]
_tk421_ has joined #ruby
def_jam has quit [Ping timeout: 264 seconds]
Puffball has quit [Remote host closed the connection]
hotpanca_ has joined #ruby
Puffball has joined #ruby
SteenJobs has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
__Yiota has joined #ruby
<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?
jeffreylevesque has quit [Ping timeout: 264 seconds]
tmtwd has joined #ruby
charliesome has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
hotpanca_ has quit []
lxsameer has quit [Quit: WeeChat 1.7]
semperfried76 has joined #ruby
<impermanence> regarding chruby: is it necessary to set a default version of Ruby?
<havenwood> postmodern: With Brightbox not having 2.4 at the moment it's not even ahead.
<havenwood> impermanence: It is not necessary. It is a convenience.
<impermanence> is using ruby-2.4.1 to bleeding edge or anything?
<impermanence> p111...
<havenwood> impermanence: 2.4.1 is stable. Report any bugs you encounter. ;-)
<impermanence> heh. will do.
<havenwood> impermanence: But yeah, it's stable. 2.4.1 or 2.3.4 are latest stable releases.
<havenwood> impermanence: We're using 2.4.1 in prod.
<impermanence> oh, that's cool. I'm proud of you all :)
<havenwood> 👍🏻
<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?
<impermanence> we're using Java 8 in prod. that's not as cool.
<impermanence> anyway
Channel6 has joined #ruby
<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?
<havenwood> impermanence: No need to install Rails 'till you go about creating a Rails app.
<impermanence> Rails to Ruby is Django to Python, right?
<semperfried76> impermanence: rails is just a framework
<semperfried76> impermanence: yup
<impermanence> why does it also install mysql and then postgresql?
herbmillerjr has quit [Quit: Konversation terminated!]
<impermanence> is that the rails backend?!
<impermanence> I thought rails was like a db in itself...
<semperfried76> impermanence: sqllite is default for rails
<havenwood> impermanence: Rails is not a db.
<impermanence> oh. idnkt.
<semperfried76> we use Oracle in production
<havenwood> we use Postgres
<semperfried76> also Mongo
<impermanence> okay, cool.
<semperfried76> I've even hooked up Neo4j... it's very flexible
<impermanence> so should I install bundle now?
<havenwood> impermanence: there's a #rubyonrails channel when you get to Rails
<havenwood> impermanence: yes
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> impermanence: gem install bundler
<impermanence> ah.
<impermanence> heh. throws error.
<havenwood> what error?
<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
<impermanence> oh shit.
<impermanence> no pastebin. okay.
<semperfried76> impermanence: what OS are you on?
t-recx has joined #ruby
<impermanence> osx 10.11.6
<havenwood> impermanence: are you using Homebrew?
<impermanence> in general yes.
<impermanence> brew upgrade zlib just throws "I don't know".
<semperfried76> impermanence: try brew tap homebrew/dupes
<impermanence> why?
marcdel has joined #ruby
<semperfried76> impermanence: sorry, that's old, use this instead: xcode-select --install
nanoz has joined #ruby
<semperfried76> that will upgrade your zlib
charliesome has quit [Ping timeout: 260 seconds]
<impermanence> now I'm using xcode? I'm lost, man.
<semperfried76> impermanence: just the libs
<havenwood> impermanence: macOS build tools
<semperfried76> impermanence: yup
etehtsea has quit [Ping timeout: 268 seconds]
<impermanence> so...what do you all write your Ruby on? Is it just *way* better to use Linux?
<semperfried76> impermanence: you need the xcode tools in order to build native binaries for some gems
hndk has joined #ruby
<semperfried76> I use MacOS
<havenwood> impermanence: macOS is fine, just update your build tools and brew update and you should be good to go
hndk has quit [Max SendQ exceeded]
<impermanence> you do? okay then.
<impermanence> k
<havenwood> impermanence: it's one of the steps in Radar's guide above ^
<semperfried76> I like it better than Linux
hndk has joined #ruby
charliesome has joined #ruby
<impermanence> wow. so I've never used this before:
<impermanence> softwareupdate --commands...
<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.
<havenwood> impermanence: softwareupdate -l
<impermanence> bingo.
<havenwood> sofwareupdate -ir # install recommended
<havenwood> softwareupdate**
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has joined #ruby
AndBobsYourUncle has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndBobsYourUncle has quit [Client Quit]
libastral has quit [Ping timeout: 260 seconds]
<impermanence> lame. so cli didn't see it but app store did. the upgrade that is.
libastral has joined #ruby
<havenwood> impermanence: you could use -ia for install all
<impermanence> same.
csk has joined #ruby
_tk421_ has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has quit [Ping timeout: 264 seconds]
<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.
<havenwood> impermanence: best-effort updater
<havenwood> it tried
tmtwd has quit [Remote host closed the connection]
<impermanence> poor softwareupdate. okay then. anyway it's updating. darn it takes a long time.
GodFather has quit [Ping timeout: 240 seconds]
kwekuanase has joined #ruby
kwekuanase has quit [Client Quit]
<impermanence> I didn't know Xcode had *anything* to do with package management...
nadir has joined #ruby
jcao219 has joined #ruby
naprimer_2 has joined #ruby
genpaku has quit [Remote host closed the connection]
naprimer has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
genpaku has joined #ruby
xzhao_ has quit [Remote host closed the connection]
herbmillerjr has joined #ruby
csk has quit [Quit: ZZZzzz…]
<impermanence> so irb is important...
mzo has joined #ruby
hutch34 has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
spicerack has joined #ruby
mazeinmaze_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
aryaching has joined #ruby
Azure|dc is now known as Azure
herbmillerjr has quit [Quit: Konversation terminated!]
charliesome has quit [Ping timeout: 240 seconds]
herbmillerjr has joined #ruby
herbmillerjr has quit [Client Quit]
HoierM has quit [Ping timeout: 240 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spicerack has joined #ruby
spicerack has quit [Client Quit]
spicerack has joined #ruby
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 260 seconds]
RobertBirnie has joined #ruby
hahuang61 has joined #ruby
raspado has quit [Remote host closed the connection]
gix has quit [Ping timeout: 260 seconds]
HoierM has joined #ruby
lagweezle has joined #ruby
gix has joined #ruby
hndk has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 246 seconds]
JoshS has joined #ruby
JeanCarloMachado has quit [Ping timeout: 256 seconds]
JeanCarloMachado has joined #ruby
patarr has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
PorcoRex has joined #ruby
<PorcoRex> Good night!
cyphase has joined #ruby
harfangk has joined #ruby
Sammichmaker has joined #ruby
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
mim1k has joined #ruby
perlnecrohacker has quit [Quit: Leaving.]
xall has joined #ruby
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
mim1k has quit [Ping timeout: 240 seconds]
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
t-recx has quit [Quit: t-recx]
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
RobertBirnie has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
perlnecrohacker has joined #ruby
_aeris_ has joined #ruby
fuzzyhorns has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
perlnecrohacker has joined #ruby
perlnecrohacker has quit [Max SendQ exceeded]
marcdel has joined #ruby
marcdel_ has joined #ruby
<impermanence> fuck bundler and xcode.
fuzzyhorns has quit [Quit: WeeChat 1.5]
marcdel has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
esObe_ has joined #ruby
cfec0b8d has joined #ruby
amclain has quit [Quit: Leaving]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raul782 has quit [Remote host closed the connection]
esObe_ has quit [Ping timeout: 240 seconds]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<PorcoRex> That was constructive...
<baweaver> That was Mac development with Ruby for the first time
<baweaver> I'd hate to see what happens when they try to do that with Windows XD
<PorcoRex> Haha.
<PorcoRex> So that's where xcode comes from.
<baweaver> Anyways, I didn't notice it when they said it or I'd mention something. Too late now.
houhoulis has quit [Remote host closed the connection]
<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.
<PorcoRex> than*
<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.
<PorcoRex> What do you make of this?
duderonomy has quit [Ping timeout: 260 seconds]
duderono_ has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
mazeinmaze_ has quit [Ping timeout: 256 seconds]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
<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.
<PorcoRex> Are there any thoughts on this?
<mzo> ruby is a toy
alxgsv has joined #ruby
<PorcoRex> mzo, a toy language you mean.
<PorcoRex> ?
<elomatreb> There certainly are worse languages to appropriate FP patterns in
<mzo> production software should ideally be written in Standard ML, or failing that, OCaml or Haskell
<mzo> PorcoRex: yes
dcluna has quit [Ping timeout: 268 seconds]
duderono_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kobain has quit [Ping timeout: 252 seconds]
<PorcoRex> mzo, that seems an overly opinionated approach. Are there reasons for all production software to be written in those langs?
<mzo> they are the best languages for functional programming
<mzo> and as we all know functional programming is better than imperative programming
<PorcoRex> mzo, I don't know that. What would be the source for that claim?
* elomatreb is getting a slightly trolly feeling
flopsec has joined #ruby
* PorcoRex taps forehead.
zel has joined #ruby
Satyajit has joined #ruby
zel is now known as Guest52064
<PorcoRex> But I was seriously anyways.
dcluna has joined #ruby
<baweaver> Solid evidence or I _will_ treat it as trolling.
<baweaver> Ruby is a perfectly valid language for production use, as are several other languages
<baweaver> Ruby has a functional faceplate which allows emulation of some functional techniques, but only scratches the surface. For most this is enough.
<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
<baweaver> There are lessons from FP like immutability, referential transparency, and others which are definitely applicable in Ruby
<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
<baweaver> so instead you'd promote that to an argument with a default value of Time.new: def log(message, start = Time.new)
<PorcoRex> Ok, but here's something interesting I'm experiencing.
<baweaver> Also SML : Scala(JVM) :: OCaml : F#(.NET)
<baweaver> I was referring to the grand sweeping claims earlier from mzo in reference to trolling.
<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?
<baweaver> It has a functional faceplate (some support) but is at its core OO
duderonomy has joined #ruby
<baweaver> though you could almost make it fully functional by using Lambda Calculus and a whole lot of lambdas to rebuild the langauge
<baweaver> See: Understanding Computation
<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?
<baweaver> interesting book, super trippy. Also 'Kestrels, Quirky Birds, and Hopeless Egocentricy' by Raganwald
<PorcoRex> Is it time to think computing in a different way?
<baweaver> It's always time for that
<baweaver> but all silver bullets have lead in them somewhere
<PorcoRex> Well, of course, but you know what I mean.
<baweaver> so be careful
Guest96 has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
<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.
<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.
<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).
<baweaver> There's a definite trend towards it, yes, but currently not enough behind it yet.
<PorcoRex> baweaver, you just stole my words.
<totimkopf> baweaver: I never could understand Monads
<baweaver> disaster is a human condition, not OOP
<baweaver> enjoy
kobain has joined #ruby
Guest96 has joined #ruby
<totimkopf> baweaver: thanks
<baweaver> it'll take a while even with that though
<baweaver> Once it clicks it clicks but it's dense stuff otherwise.
enterprisey has quit [Remote host closed the connection]
<totimkopf> yeah, i'm too tired to study it now but i've bookmarked it
<baweaver> Read The Haskell Book or Learn You a Haskell if you want more buildup to it.
<baweaver> but it's dense stuff, don't worry if you can't get it the first (second, third, fo...) time
<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?
<baweaver> Monads don't really work well in Ruby.
syndikate has quit [Ping timeout: 260 seconds]
<baweaver> but that's a really long subject
<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
<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.
<baweaver> but that's all down the road a ways
<baweaver> Because I program Ruby for a living for one.
<baweaver> but I'm in quite a few other channels
<PorcoRex> So you've overtaken the channel, even though you'd be rather programming in, say, Elixir.
sagax has quit [Ping timeout: 240 seconds]
esObe_ has joined #ruby
syndikate has joined #ruby
<baweaver> overtaken?
<PorcoRex> It was just a joke. Sorry, it didn't come through as I intended.
<baweaver> Sometimes I need a hammer
<baweaver> other times a saw
<baweaver> simple as that
<baweaver> Ruby is the first tool I reach for in anything scripting or operations, every time.
<PorcoRex> And, if I may ask, why did you eventually derive from Ruby to other more functional languages?
raul782 has joined #ruby
hahuang61 has joined #ruby
<PorcoRex> Other programmers is a valid answer btw.
<baweaver> I experiment a lot
<baweaver> I'd worked on Hadoop systems in Java, hated it.
<baweaver> then found out Hadoop was based on MapReduce was based on FP
<baweaver> then tangent from there
esObe_ has quit [Ping timeout: 240 seconds]
<PorcoRex> Do you think FP is the future?
jgt1 has joined #ruby
<PorcoRex> I mean in big enterprise apps?
<baweaver> It's a future. I don't tend to subscribe to that particular religion
<baweaver> You know Facebook Chat?
dlitvak has quit [Quit: Connection closed for inactivity]
<PorcoRex> No, I don't have Facebook.
<baweaver> Erlang.
<baweaver> that's a pretty big enterprise app.
chouhoulis has joined #ruby
<baweaver> Banks? Haskell shows up a fair amount. Ericsson invented Erlang and still uses it. It's already out there
<PorcoRex> I think you may have a point.
<baweaver> See that for why I jumped from Java Hadoop.
JoshS has quit [Ping timeout: 268 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
raul782 has quit [Ping timeout: 264 seconds]
<baweaver> of course chances are I don't entirely agree with myself from two years ago, but that's a different matter.
<PorcoRex> I understand. But programming-wise, is it better/worse or just the same in your opinion?
<totimkopf> baweaver: actually I read it anyway and it actually makes a lot more sense now
nowhereman has quit [Ping timeout: 260 seconds]
<totimkopf> \(^_^)/
JoshS has joined #ruby
<baweaver> welcome to the first stage of enlightenment
<baweaver> or hell, depends
chouhoulis has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 256 seconds]
<baweaver> Both are Turing Complete
<baweaver> theoretically they can accomplish the same task, or any task for that matter
<baweaver> See also: The LISP Curse - http://winestockwebdesign.com/Essays/Lisp_Curse.html
<PorcoRex> I can't cram more languages in. I have a list, I assure you...
<baweaver> It's a generic article
<baweaver> substitute LISP with Javascript if it makes it easier
patarr has joined #ruby
<baweaver> they both have some of the same problems, just that one has control of most of the web now because ubiquity is fun
<PorcoRex> In that case, bookmarked! :)
xall has quit [Ping timeout: 246 seconds]
<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.
<PorcoRex> Would you be confortable in implementing it in a FP way?
<PorcoRex> (this is just to give me an idea
<PorcoRex> )*
<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.
<baweaver> I'd do it in Rails because I can be done with it in maybe an hour.
patarr has quit [Ping timeout: 240 seconds]
<PorcoRex> But if they hired you, and you could assemble the base, what would you choose on that particular example?
<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.
<baweaver> Time to market is more important than "getting it right"
ThePortWhisperer has quit [Ping timeout: 264 seconds]
<baweaver> which is why Twitter started Rails, and when they did make it big, hired people to scale it / switch to Scala
<baweaver> read the "Worse is Better" article above
jcao219 has joined #ruby
<PorcoRex> I get you. Let's forget about time. (also not specifically talking about Rails, or even Ruby) just your preference.
mzo has quit [Ping timeout: 240 seconds]
<baweaver> Time is always a concern
AnoHito has quit [Quit: Leaving]
<PorcoRex> It's hypothetical, but, in any case... Wouldn't FP also sweep languages like Java, Python, etc?
<baweaver> depends on what you mean by sweep
<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.
<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.
<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.
<PorcoRex> I think the salesman didn't give the man the proper instructions.
<baweaver> Remember there's a learning curve to the good tool that may far exceed "swing at tree"
<baweaver> and a lot of people learned on Java and friends, so Haskell is a monster jump to them
Channel6 has quit [Quit: Leaving]
<baweaver> I can have a Java programmer effective in Ruby in a week. That won't happen in Haskell, the concepts are too foreign
<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.
SuperLag has joined #ruby
<baweaver> There are more factors to choosing than the superior quality of the language / paradigm of programming
<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
<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?
<baweaver> too broad a question honestly
<havenwood> PorcoRex: Ruby. Next question!
<baweaver> what does the app do, who's the target, how long do I have, etc etc etc
<baweaver> things cannot possibly reduced to a single definitive answer
<PorcoRex> baweaver, fair enough. havenwood you're right.
<baweaver> whether that be language, paradigm, or otherwise
<havenwood> PorcoRex: But yeah, it's a good question. It depends.
<baweaver> havenwood: ohai. Excuse my ranting.
<havenwood> Rant on!
<baweaver> gave you enough backlog to be entertained with XD
bkxd has quit [Ping timeout: 260 seconds]
SeepingN has joined #ruby
<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.
djbkd has joined #ruby
SeepingN has quit [Client Quit]
<baweaver> Then go out and learn one
<PorcoRex> beatdown, no, I mean, I know some, but just not the ones outside my comfort zone.
SeepingN has joined #ruby
<baweaver> Then go forth and learn
<PorcoRex> But I intend to, really dude! You sound like my mom. :(
<baweaver> Tut tut tut, none of the sass
<PorcoRex> Haha.
bkxd has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<nofxx> PorcoRex, apart from web/js anything is better with ruby! and for JS you can write coffeescript which tries to be ruby!
<PorcoRex> nofxx, I think ES6 is better than CS.
AnoHito has joined #ruby
<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?
<baweaver> Opal
<baweaver> modern browsers have some decent support for it
<baweaver> Opal is Ruby->JS compile
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bkxd has joined #ruby
<PorcoRex> It is the next version, so it should be eventually supported by all browsers.
<nofxx> need to try opal someday...es6 too
<PorcoRex> BTW, any opinions on WebAssembly. I do like the concept.
<nofxx> baweaver, yeah, pretty much 99%...
bkxd has quit [Ping timeout: 240 seconds]
<PorcoRex> People, is was a pleasure being here. Have a great weekend!
PorcoRex has left #ruby ["Leaving"]
bkxd has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
Xiti has quit [Quit: Xiti]
csk has joined #ruby
xall has joined #ruby
tristanp has quit [Remote host closed the connection]
_tk421_ has joined #ruby
cam27 has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
jusa has joined #ruby
csk has quit [Quit: ZZZzzz…]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
_tk421_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 246 seconds]
AnoHito has quit [Quit: Leaving]
SeepingN has quit [Ping timeout: 260 seconds]
AnoHito has joined #ruby
aryaching_ has joined #ruby
User458764 has joined #ruby
aryaching_ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 268 seconds]
Silthias1 has joined #ruby
xall has quit [Quit: WeeChat 1.7]
jgnagy has quit [Remote host closed the connection]
AnoHito has quit [Ping timeout: 240 seconds]
Silthias has quit [Ping timeout: 246 seconds]
jgnagy has joined #ruby
toretore has joined #ruby
cam27 has quit [Quit: cam27]
grh has joined #ruby
solocshaw has joined #ruby
SeepingN has joined #ruby
esObe_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
ddffg has joined #ruby
hahuang61 has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
FastJack has quit [Quit: leaving]
FastJack has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
harfangk has joined #ruby
harfangk has quit [Client Quit]
patarr has joined #ruby
renatosilva has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
AnoHito has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
nofxxx has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
rippa has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
bkxd has quit [Ping timeout: 260 seconds]
grh has quit [Ping timeout: 260 seconds]
Qchmqs has joined #ruby
dn` has quit [Quit: dn`]
cseder has joined #ruby
jamesaxl has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dn` has joined #ruby
dionysus69 has joined #ruby
cschneid_ has joined #ruby
esObe_ has joined #ruby
zun has joined #ruby
ahrs has quit [Remote host closed the connection]
lxsameer has joined #ruby
ahrs has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
esObe_ has quit [Ping timeout: 256 seconds]
johnzorn has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
TeddySmoker has joined #ruby
johnzorn has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
esObe_ has joined #ruby
milardovich has joined #ruby
cfec0b8d has joined #ruby
minimalism has quit [Quit: minimalism]
dionysus69 has quit [Ping timeout: 246 seconds]
Arpanet69 has joined #ruby
marcdel_ has quit [Ping timeout: 240 seconds]
armyriad has quit [Ping timeout: 240 seconds]
armyriad has joined #ruby
marr has joined #ruby
marcdel has joined #ruby
AnoHito has quit [Quit: Leaving]
bkxd has joined #ruby
jgt1 has joined #ruby
cschneid_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nofxxx has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
User458764 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
MarcWeber has joined #ruby
BlueDragons has joined #ruby
BlueDragons has quit [Client Quit]
hahuang61 has joined #ruby
raul782 has joined #ruby
agent_white has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
ayonkhan has joined #ruby
patarr has joined #ruby
ohcibi has quit [Remote host closed the connection]
raul782 has quit [Ping timeout: 264 seconds]
ohcibi has joined #ruby
Jackneill has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
milardovich has quit [Ping timeout: 240 seconds]
Pumukel has quit [Read error: No route to host]
Pumukel has joined #ruby
ahrs has quit [Remote host closed the connection]
cats has quit [Quit: BURN HIS HOUSE DOWN]
cats has joined #ruby
ahrs has joined #ruby
jcao219 has joined #ruby
patarr has joined #ruby
ohcibi has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 240 seconds]
xall has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
Pumukel has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
bkxd has joined #ruby
bodgix has joined #ruby
bodgix has left #ruby [#ruby]
bkxd has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
swemoney has joined #ruby
Pumukel has joined #ruby
cseder has joined #ruby
rgtk has joined #ruby
ohcibi has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
jcao219 has joined #ruby
charliesome has joined #ruby
kith has quit [Ping timeout: 268 seconds]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
zun has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
tristanp has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
renatosilva has quit [Quit: http://renatosilva.net]
tristanp has quit [Ping timeout: 240 seconds]
kernelPaniq has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
rgtk has quit [Ping timeout: 260 seconds]
lagweezle is now known as lagweezle_away
jgt1 has quit [Ping timeout: 264 seconds]
esObe_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
esObe_ has quit [Remote host closed the connection]
<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
esObe_ has joined #ruby
sepp2k has joined #ruby
postmodern has quit [Quit: Leaving]
Olipro has quit [Ping timeout: 252 seconds]
Olipro has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
swemoney has quit [Quit: Textual IRC Client: www.textualapp.com]
Arpanet69 has quit [Read error: Connection reset by peer]
_whitelogger has joined #ruby
milardovich has joined #ruby
jgt1 has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
AnoHito has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
gsilva has joined #ruby
raul782 has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
ledestin has joined #ruby
raul782 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
TeddySmoker has quit [Remote host closed the connection]
boz_ has joined #ruby
esObe_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
ayonkhan_ has joined #ruby
ayonkhan has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
Fernando-Basso has joined #ruby
gigetoo has quit [Ping timeout: 268 seconds]
boz_ has quit [Quit: This computer has gone to sleep]
gigetoo has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
blackwind_123 has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
boz_ has joined #ruby
gsilva has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
milardovich has joined #ruby
ph88 has joined #ruby
<ph88> where can i browser all the packages for ruby ?
milardovich has quit [Ping timeout: 264 seconds]
<ph88> what's the go-to two factor authentication library ?
<canton7> https://rubygems.org/gems ? you could be there a while...
xall has joined #ruby
nanoz has quit [Ping timeout: 268 seconds]
boz_ has quit [Ping timeout: 264 seconds]
ayonkhan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
_sfiguser has joined #ruby
Xeago_ has joined #ruby
<Mon_Ouie> You may want to have a look at https://www.ruby-toolbox.com/
xall has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Excess Flood]
blackmesa has joined #ruby
boz_ has joined #ruby
Qchmqs has quit [Ping timeout: 264 seconds]
Lord_of_Life has joined #ruby
JeanCarloMachado has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ddffg has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
hutch34 has joined #ruby
Qchmqs has joined #ruby
blackmesa has joined #ruby
esObe_ has joined #ruby
<Verity> can this be improved?
<Verity> I know its not technically the true algorithm, I wanted to change space char also
<matthewd> I assume String#tr is out?
__Yiota has joined #ruby
milardovich has joined #ruby
<Verity> I'll check the doc, I almost noticed I made a mistake. I'll work on improvments now
loechel has joined #ruby
xenops has joined #ruby
<matthewd> tr makes it a one-liner, and is the right solution for the problem.. but may not be as helpful for general learning
<matthewd> Other than that, my first observation would be that you should be using map
ddffg has joined #ruby
figuresofstick has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
tvw has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 256 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 240 seconds]
<Verity> alright
<Verity> ty
GodFather has joined #ruby
dn` has quit [Quit: dn`]
dn` has joined #ruby
roshanavand has quit [Quit: roshanavand]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
HoierM has joined #ruby
milardovich has joined #ruby
pulkit4tech has joined #ruby
houhoulis has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
User458764 has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
<allisio> Who deletes anonymous Gists?
hutch34 has quit [Ping timeout: 260 seconds]
<jhass> github after some time no?
<jhass> also as long as you have the cookie from creating it you can delete it yourself I think
Olipro has quit [Ping timeout: 252 seconds]
Olipro has joined #ruby
<allisio> I meant only to question the point of the operation.
sepp2k1 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sepp2k has quit [Ping timeout: 260 seconds]
<canton7> avoid paying for the space required to store millions of gists noone cares about any more?
bkxd has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
loechel has quit [Remote host closed the connection]
Pumukel has joined #ruby
loechel has joined #ruby
Pumukel has quit [Read error: No route to host]
boz_ has quit [Quit: This computer has gone to sleep]
theRoUS has quit [Ping timeout: 260 seconds]
ryan_notabot has joined #ruby
theRoUS has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
Travis-42_ has quit []
jespada has joined #ruby
Travis-42 has joined #ruby
<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?
jespada has quit [Client Quit]
GodFather has quit [Read error: No route to host]
GodFather_ has joined #ruby
erlend has quit [Ping timeout: 268 seconds]
tens0r has joined #ruby
nowhereman has joined #ruby
erlend has joined #ruby
grh has joined #ruby
hutch34 has joined #ruby
GodFather_ has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
boz_ has joined #ruby
semperfried76 has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
jeffreylevesque has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
am55 has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
nowhereman has joined #ruby
DLSteve has joined #ruby
tristanp has joined #ruby
herbmillerjr has joined #ruby
roshanavand has quit [Quit: roshanavand]
blackmesa has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
Lord_of_Life has quit [Excess Flood]
am55 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #ruby
cam27 has joined #ruby
blackwind_123 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
blackwind_123 has quit [Ping timeout: 256 seconds]
hutch34 has joined #ruby
dar123 has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
blackwind_123 has joined #ruby
tens0r has quit [Ping timeout: 246 seconds]
tens0r has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Excess Flood]
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
fmcgeough has joined #ruby
Channel6 has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
am55 has joined #ruby
tens0r has quit [Quit: tens0r]
pulkit4tech has quit [Quit: Connection closed for inactivity]
hahuang61 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 264 seconds]
dar123 has quit [Ping timeout: 264 seconds]
loechel has quit [Remote host closed the connection]
cagmz has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
Xiti has joined #ruby
cajone has left #ruby [#ruby]
ddffg has quit [Quit: Leaving]
<ytti> anyone use VSC to edit ruby files, is there way to make '%' jump between def/class/begin/block and end?
Pumukel has joined #ruby
<j416> could just use vim
* j416 runs
cam27 has quit [Quit: cam27]
<j416> hm maybe it doesn't do that out of the box
<j416> was some time since I touched Ruby
Pumukel has quit [Ping timeout: 260 seconds]
cajone has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
herbmillerjr has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 256 seconds]
acalycine has joined #ruby
SteenJobs has joined #ruby
_sfiguser has quit [Quit: Leaving]
pwnd_nsfw` has joined #ruby
Rutix has quit [Ping timeout: 268 seconds]
mzo has joined #ruby
Robtop__ has quit [Ping timeout: 264 seconds]
jusa has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Qchmqs has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
mzo has quit [Ping timeout: 240 seconds]
gizmore|2 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
herbmillerjr has joined #ruby
milardovich has joined #ruby
ltem has joined #ruby
houhoulis has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
oz has quit [Quit: EOF]
milardovich has quit [Ping timeout: 246 seconds]
impermanence has joined #ruby
<impermanence> How can I start using Ruby at my CLI command prompt instead of bash?
<havenwood> impermanence: irb
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<havenwood> impermanence: Or better yet, install the pry gem.
<havenwood> ?pry impermanence
<ruby[bot]> c
<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
<impermanence> havenwood: I would, but I have serious problems with gem (apparently).
<j416> impermanence: why would you want Ruby instead of bash?
<havenwood> impermanence: Solve your gem problem. Gems are important.
<impermanence> yep
<impermanence> havenwood: it keeps complaining about zlib. So I updated Xcode like the internets said to, but it did not fix it.
Ishido has joined #ruby
<impermanence> It's stressing me out :(
<havenwood> impermanence: Did you entirely remove, and reinstall Ruby after installing the build tools?
<havenwood> impermanence: Rebuild Ruby!
<impermanence> havenwood: no
<impermanence> why would i do that?
<havenwood> impermanence: It will statically link against zlib.
<j416> impermanence: use ruby-install + chruby or rvm or something like that; don't mess with the system stuff
<j416> tends to make things easier
<havenwood> impermanence: ruby-install --latest ruby
<impermanence> so...I need to remove ruby-install and chruby...that's how I uninstall ruby...?
<havenwood> impermanence: no
<impermanence> oh. just write over it...
<havenwood> impermanence: cd ~/.rubies
<havenwood> impermanence: you can rm -rf the Ruby you're replacing first, if you'd like
Pumukel has joined #ruby
nankyokusei has quit [Remote host closed the connection]
Pumukel has quit [Ping timeout: 264 seconds]
<impermanence> havenwood: okay so the new ruby has finished installing.
<impermanence> havenwood: so now hypothetically just gem install "stuff" ?
ddffg has joined #ruby
rgtk has joined #ruby
<havenwood> impermanence: yes
oz has joined #ruby
<impermanence> k
<impermanence> still throwing.
<impermanence> k
<impermanence> went to install xcode 8.3.1 last night in attempt to fix
<impermanence> had to install Sierra to do
<impermanence> k, did that
blackmesa has joined #ruby
<impermanence> then bumped up to 8.3.1
<impermanence> now have taken your advice to reinstall ruby
<impermanence> done
raul782 has quit [Ping timeout: 260 seconds]
<impermanence> ERROR: Loading command: install (LoadError) cannot load such file -- zlib
User458764 has joined #ruby
<havenwood> impermanence: ah, did they remove zlib from macOS Sierra?
<havenwood> impermanence: brew install zlib
<impermanence> nah, it's there.
<impermanence> otool confirms.
<impermanence> anyway
<impermanence> I'll come back to this later.
<impermanence> and triumph
<havenwood> impermanence: for whatever reason they moved it from homebrew/dupes to homebrew/core
<havenwood> impermanence: which is suspicious, and bears investigating
<impermanence> should I file a bug report or dependency error report?
<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
<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.
<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!
<havenwood> impermanence: sounds good!
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
impermanence has joined #ruby
impermanence has quit [Client Quit]
nankyokusei has joined #ruby
jusa has quit [Ping timeout: 268 seconds]
jusa has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
BLuEGoD has joined #ruby
impermanence has joined #ruby
impermanence has quit [Client Quit]
marcdel has joined #ruby
hlmjr has joined #ruby
herbmillerjr has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Remote host closed the connection]
hahuang61 has joined #ruby
johnzorn has quit [Quit: Ciao]
marcdel has quit [Ping timeout: 260 seconds]
Mrgoose has quit [Ping timeout: 260 seconds]
Mrgoose has joined #ruby
raspado has joined #ruby
nankyokusei has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
xall has joined #ruby
minimalism has joined #ruby
nankyokusei has quit [Remote host closed the connection]
nofxx has joined #ruby
gix has quit [Quit: Client exiting]
hutch34 has joined #ruby
raspado has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
gix has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
v1_ has joined #ruby
v1_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
siaw23 has joined #ruby
<siaw23> why am i getting “no block given” error here: https://i.gyazo.com/cfc019fb5b3f026b4f190ce1cda2308b.png
<elomatreb> siaw23: Well, you're trying to yield to a block where there is none
<havenwood> siaw23: yield if block_given?
Fernando-Basso has quit [Ping timeout: 256 seconds]
impermanence has joined #ruby
ncthom91 has joined #ruby
<siaw23> havenwood: works. the block_given would in my case be my_method do …. right?
<siaw23> i thought yield will always find the block itself provided the name of the block and method match
<matthewd> siaw23: Please don't use images to show code
Pumukel has joined #ruby
<matthewd> What block?
<elomatreb> siaw23: `block_given?` returns true if the method was called with a block, nothing more
<siaw23> elomatreb: thank you
<siaw23> matthewd: got it
houhoulis has quit [Remote host closed the connection]
User458764 has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
acalycine has quit [Quit: bye]
boombox_ has joined #ruby
hlmjr has quit [Quit: Konversation terminated!]
BLuEGoD has quit [Quit: WeeChat 1.7]
djbkd has joined #ruby
QpQ4 has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
boombox_ has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
semperfried76 has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
QpQ4 has quit [Ping timeout: 240 seconds]
pwnd_nsfw has joined #ruby
semperfried76 has quit [Client Quit]
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
TeddySmoker has joined #ruby
johnzorn has joined #ruby
johnzorn has quit [Client Quit]
johnzorn has joined #ruby
Arpanet69 has joined #ruby
xall has quit [Ping timeout: 246 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure|dc is now known as Azure
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
JeanCarloMachado has joined #ruby
SteenJobs has quit [Quit: peaceee]
houhoulis has joined #ruby
mazeinmaze_ has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.7]
Bob8989 has joined #ruby
johnzorn has quit [Quit: Ciao]
Bob8989 has quit [Client Quit]
RobertBirnie has joined #ruby
Pumukel has joined #ruby
raul782 has joined #ruby
spicerack has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
haraoka has joined #ruby
sagax has joined #ruby
raul782 has quit [Ping timeout: 246 seconds]
Arpanet69 has quit [Read error: Connection reset by peer]
DARPA has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
boz_ has joined #ruby
cfec0b8d has joined #ruby
gusrub has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
gusrub has quit [Ping timeout: 260 seconds]
dn` has quit [Quit: dn`]
dionysus69 has joined #ruby
hahuang61 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
aryaching has joined #ruby
jcao219 has joined #ruby
dn` has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
tristanp has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
RobertBirnie has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 246 seconds]
baweaver is now known as baweaver_away
jusa has quit [Ping timeout: 240 seconds]
jcao219 has quit [Ping timeout: 264 seconds]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
jusa has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Simplicity has joined #ruby
DARPA has quit [Quit: Leaving]
Arpanet69 has joined #ruby
ignarps has joined #ruby
futilegames has joined #ruby
ph88 has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
DARPA has joined #ruby
Arpanet69 has quit [Read error: Connection reset by peer]
baweaver_away is now known as baweaver
Limix has joined #ruby
ncthom91 has joined #ruby
futilegames has quit [Quit: futilegames]
Guest96_ has joined #ruby
Guest96 has quit [Ping timeout: 256 seconds]
pupsicle has joined #ruby
houhoulis has quit [Remote host closed the connection]
siaw23 has quit [Quit: siaw23]
siaw23 has joined #ruby
siaw23 has quit [Client Quit]
esObe_ has quit [Remote host closed the connection]
esObe_ has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
statelesscode has quit [Quit: statelesscode]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 260 seconds]
esObe_ has quit [Ping timeout: 260 seconds]
ozcanesen has joined #ruby
dionysus69 has joined #ruby
tristanp has joined #ruby
ahrs has quit [Remote host closed the connection]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
ahrs has joined #ruby
statelesscode has joined #ruby
tristanp has quit [Ping timeout: 260 seconds]
Limix has quit [Quit: Limix]
pupsicle has quit [Quit: leaving]
Limix has joined #ruby
_whitelogger has joined #ruby
hfp_work has quit [Ping timeout: 260 seconds]
hfp has quit [Ping timeout: 260 seconds]
wopi has quit [Ping timeout: 264 seconds]
hfp has joined #ruby
hfp_work has joined #ruby
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
blackmesa has quit [Quit: WeeChat 1.6]
SteenJobs has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
BSaboia has joined #ruby
govg has quit [Quit: leaving]
Pumukel has quit [Ping timeout: 240 seconds]
herbmillerjr has joined #ruby
esObe_ has joined #ruby
esObe_ has quit [Ping timeout: 246 seconds]
toretore has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
jgt1 has quit [Ping timeout: 260 seconds]
esObe_ has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
FastJack_ has joined #ruby
hahuang61 has joined #ruby
FastJack has quit [Ping timeout: 260 seconds]
FastJack_ is now known as FastJack
pwnd_nsfw has joined #ruby
dionysus69 has joined #ruby
_djbkd has joined #ruby
hahuang61 has quit [Ping timeout: 246 seconds]
_djbkd has quit [Client Quit]
nankyokusei has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has quit [Ping timeout: 260 seconds]
impermanence has joined #ruby
impermanence has quit [Client Quit]
sepp2k1 has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
cseder has joined #ruby
tristanp has quit [Remote host closed the connection]
tens0r has joined #ruby
milardovich has joined #ruby
tens0r has quit [Client Quit]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 252 seconds]
Ishido has quit [Ping timeout: 256 seconds]
rgr_ has quit [Ping timeout: 268 seconds]
Ishido has joined #ruby
ncthom91 has joined #ruby
madsa has joined #ruby
madsa is now known as Guest68448
raul782 has joined #ruby
Pumukel has joined #ruby
workmad3 has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
ltem has quit [Quit: Leaving]
Simplicity has left #ruby ["Leaving"]
grh has quit [Ping timeout: 260 seconds]
Pumukel has quit [Ping timeout: 240 seconds]
nowhereman has joined #ruby
ddffg has quit [Quit: Leaving]
Ishido has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
Ishido has joined #ruby
Jackneill has quit [Remote host closed the connection]
wopi has joined #ruby
Xeago_ has quit []
ozcanesen has joined #ruby
ozcanesen has quit [Client Quit]
milardovich has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
tvw has quit []
tristanp has quit [Ping timeout: 252 seconds]
SCHAPiE has quit [Quit: ZNC - http://znc.in]
tvw has joined #ruby
griff has joined #ruby
hutch34 has joined #ruby
esObe_ has quit [Remote host closed the connection]
SCHAPiE has joined #ruby
houhoulis has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.7]
griff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SCHAPiE has quit [Changing host]
SCHAPiE has joined #ruby
postmodern has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
hahuang61 has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
HoloIRCUser3 has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
nankyokusei has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
nankyokusei has quit [Ping timeout: 255 seconds]
SteenJobs has joined #ruby
jgt1 has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
libastral has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
marr has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 268 seconds]
JoshS has joined #ruby
DARPA has quit [Ping timeout: 246 seconds]