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
kiki_lamb has quit [Quit: leaving]
quobo has joined #ruby
Paraxial has quit [Quit: Ping timeout (120 seconds)]
mooser has joined #ruby
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
esObe has joined #ruby
CloCkWeRX has joined #ruby
nertzy has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
esObe has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
croberts has joined #ruby
Cohedrin has quit [Read error: Connection reset by peer]
icarus has quit [Quit: leaving]
Cohedrin has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
<brent__> been a while since i tried out the meta programming stuff
<brent__> i have 2 methods that do a query with different values, whats the best way to to create some sort of method missing/send to remove duplicate code
outreach_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb> i dont think that i understand. two methods with different values? that is one method with a parameter for me. :)
<brent__> thats what I was thinking initially
<ineb> if only these values differ
<brent__> but then thought about using send or something to try and get keep the method names the same
<brent__> i'll probably just go w/ the variable passed in
<ineb> if you want to keep the methods then change them to use your new parametrized method
<ineb> so their behaviour from the outside does not change and to get rid of code duplication
<brent__> yeah not worried about behaviour, I guess just tryign to avoid having to change where the methods are used
<brent__> being lazy
<ineb> i see
ecksit has quit [Read error: Connection reset by peer]
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
dar123 has joined #ruby
xenops has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
Cyrus has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
LastWhisper____ has joined #ruby
brent__ has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 268 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has joined #ruby
watersoul has quit [Remote host closed the connection]
watersoul has joined #ruby
railswebdev has joined #ruby
SeepingN_ has quit [Quit: The system is going down for reboot NOW!]
ionte has quit [Ping timeout: 240 seconds]
boshhead has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
boshhead has joined #ruby
tripolisenten has quit [Ping timeout: 240 seconds]
ionte has joined #ruby
bmurt has joined #ruby
Gabemo has quit [Ping timeout: 240 seconds]
yasu has quit [Ping timeout: 240 seconds]
tripolisenten has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
gse_ has quit [Ping timeout: 240 seconds]
gse has joined #ruby
Snickers has quit [Quit: Snickers]
syndikate has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 260 seconds]
syndikate has joined #ruby
yasu has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
amclain has quit [Quit: Leaving]
Channel6 has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
patarr has joined #ruby
charliesome has joined #ruby
username1 has quit [Ping timeout: 240 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicolai86 has quit [Quit: ZNC - http://znc.in]
nicolai86 has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has joined #ruby
Tempesta has quit [Quit: See ya!]
skweek has quit [Ping timeout: 258 seconds]
nerglish has quit [Quit: nerglish]
sumobob has quit [Quit: WeeChat 1.7]
nofxxx has joined #ruby
jrafanie has joined #ruby
oliv_____ has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
jcao219 has joined #ruby
mzo has joined #ruby
charliesome has joined #ruby
oliv_____ has quit [Remote host closed the connection]
railswebdev has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jdawgaz has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
enterprisey has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 255 seconds]
mooser has joined #ruby
jameser has joined #ruby
oliv_____ has joined #ruby
latemus has joined #ruby
pilne has quit [Quit: Quitting!]
cpruitt has quit [Quit: cpruitt]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mooser has quit [Remote host closed the connection]
libastral has quit [Ping timeout: 258 seconds]
mooser has joined #ruby
oliv_____ has quit [Remote host closed the connection]
lmc has quit [Remote host closed the connection]
oliv_____ has joined #ruby
lmc has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
dn`_ has joined #ruby
libastral has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
dn` has quit [Ping timeout: 252 seconds]
dn`_ is now known as dn`
HoierM has joined #ruby
oliv_____ has quit [Ping timeout: 258 seconds]
lmc has quit [Remote host closed the connection]
enterprisey has joined #ruby
mooser has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 260 seconds]
t-recx has quit [Quit: t-recx]
bronson has quit [Remote host closed the connection]
genpaku has quit [Remote host closed the connection]
brent__ has joined #ruby
cmhobbs has left #ruby [#ruby]
genpaku has joined #ruby
dasher^0_o has quit [Ping timeout: 255 seconds]
jcao219 has quit [Ping timeout: 268 seconds]
marxarelli is now known as marxarelli|afk
CloCkWeRX has joined #ruby
oli______ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
Channel6 has quit [Quit: Leaving]
duderonomy has quit [Ping timeout: 245 seconds]
oli______ has quit [Ping timeout: 255 seconds]
jcao219 has joined #ruby
DaniG2k has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
petruff has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
HoierM has quit [Ping timeout: 268 seconds]
jdawgaz has joined #ruby
olivi____ has joined #ruby
Guest96 has quit [Remote host closed the connection]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
duderonomy has joined #ruby
Guest96 has joined #ruby
jdawgaz has quit [Client Quit]
ledestin has joined #ruby
PorcoRex has joined #ruby
<PorcoRex> Howdy Ruby.
enterprisey has quit [Remote host closed the connection]
xenops has joined #ruby
xenops has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
DaniG2k has quit [Quit: leaving]
<upen15> PorcoRex: howdy WOP
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<PorcoRex> I'm not familiar with the acronym.
youmu_ has quit [Quit: Connection closed for inactivity]
pifon has joined #ruby
mooser has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
Channel6 has joined #ruby
__Yiota has joined #ruby
upen15 is now known as upenn15
lucas has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
Guest55 has joined #ruby
plujon has joined #ruby
bronson has quit [Remote host closed the connection]
<baweaver> upenn15: you realize what that means, correct?
<upenn15> ?
<upenn15> Everyone in school is saying it
<upenn15> It's the sound of the police
<baweaver> speaking of sound of police....
enterprisey has joined #ruby
benlieb has joined #ruby
<baweaver> you have about 30 seconds to look it up and apologize.
<baweaver> because that's a rather vile slur against Italians
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
houhoulis has quit [Remote host closed the connection]
<baweaver> Very well then, you have an hour to reconcile with it
<baweaver> !rude upenn15
bronson has joined #ruby
gix has quit [Ping timeout: 252 seconds]
upenn15 has left #ruby [#ruby]
upenn15 has joined #ruby
mooser has quit [Remote host closed the connection]
mim1k has joined #ruby
gix has joined #ruby
Guest2400 has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 255 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
xenops has joined #ruby
benlieb has quit [Quit: benlieb]
Channel6 has quit [Quit: Leaving]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xenops has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
mim1k has joined #ruby
esObe has joined #ruby
esObe__ has joined #ruby
upenn15 has left #ruby [#ruby]
jcao219 has quit [Ping timeout: 240 seconds]
mooser has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
esObe has quit [Ping timeout: 258 seconds]
esObe__ has quit [Ping timeout: 258 seconds]
timvisher has quit [Ping timeout: 260 seconds]
ruurd has joined #ruby
ruurd is now known as Guest10418
Guest55 has quit [Quit: Guest55]
quobo has quit [Quit: Connection closed for inactivity]
olivi____ has quit [Remote host closed the connection]
timvisher has joined #ruby
Guest55 has joined #ruby
jdawgaz has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
Guest55 has quit [Quit: Guest55]
loy_aqua has joined #ruby
renchan has joined #ruby
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
jdawgaz has joined #ruby
mzo has quit [Ping timeout: 258 seconds]
jcao219 has quit [Ping timeout: 258 seconds]
mogaj has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
lucas has joined #ruby
<hays> I feel like there is a more compact way to depict this.. or better way https://bpaste.net/show/321818c6f50a
<PorcoRex> What are you trying to do?
<hays> the fact you cant tell makes me worry about my code clarity
cfec0b8d has quit [Ping timeout: 255 seconds]
<hays> the function returns random characters that meet a certain criterion
<hays> the rng spits one out until the criterion is met
<dminuoso> hays: Use Array#sample for easiness.
<dminuoso> hays: i.e. define an array with all possible characters, and then just go n.times.map { charArray.sample }.join
<hays> worried that sample doesn't meet cryptographic requirements
<dminuoso> hays: Good thing that sample accepts an rng as an argument.
<dminuoso> hays: g.
raul782 has joined #ruby
<dminuoso> n.times.map { charArray.sample(rng: SecureRandom) }.join
Vivekananda has quit [Quit: Leaving]
<dminuoso> >> chars = %w{a b c d e f}; puts 5.times.map { chars.sample(rng: SecureRandom) }.join # hays
<ruby[bot]> dminuoso: # => uninitialized constant SecureRandom ...check link for more (https://eval.in/778774)
<dminuoso> >> require 'securerandom'; chars = %w{a b c d e f}; puts 5.times.map { chars.sample(rng: SecureRandom) }.join # hays
<ruby[bot]> dminuoso: # => unknown keyword: rng (ArgumentError) ...check link for more (https://eval.in/778775)
<dminuoso> >> require 'securerandom'; chars = %w{a b c d e f}; puts 5.times.map { chars.sample(random: SecureRandom) }.join # hays
<ruby[bot]> dminuoso: # => fbeba ...check link for more (https://eval.in/778776)
<dminuoso> ugh reading helps. :-)
<hays> ok the magic in that i don't understand is how sample knows how to interface with securerandom
mooser has joined #ruby
loy_aqua has quit [Quit: loy_aqua]
<PorcoRex> But in plain English, what is this supposed to do? It doesn't seem to be too efficient because you're getting a secure random (whatever that is) and then you're looping until it matches something.
loy_aqua has joined #ruby
<PorcoRex> I think what you want to do is probably generate any random number and generate a string that matches your criterion accordingly, without needing the loop.
mooser has quit [Remote host closed the connection]
<dminuoso> PorcoRex: Imagine generating passwords that meet certain criteria
<dminuoso> hays: Gotta run. If you stay around Ill explain in about half an hour
<PorcoRex> dminuoso, yeah, seems a bit of a brute force approach.
<hays> its late here i probably wont make it. maybe catch you later
<PorcoRex> hays, what's your criterion for a secure random?
esObe has joined #ruby
<hays> it is a bit of brute force
<PorcoRex> hays, are you trying to reverse engineer a system?
<hays> no im writing a little throwaway function to generate random password strings for databases
<PorcoRex> Ok, but why do you need a special criterion for the passwords?
howdoi has joined #ruby
<hays> but since its a password, i figure I want something cryptographically secure. like /dev/urandom is probably OK. openssl i trust a bit more I think
<hays> PorcoRex: because the passwords get stored in plaintext config files with syntax limitations usually
<PorcoRex> So it's the actual characters that are bothering you.
<elomatreb> If you're worried about syntax I'd recommend avoiding everything but alphanumerics
<hays> for example including a password with \ in it causes complications sometimes. as does #
<hays> elomatreb: yeah. the thought had crossed my mind to just use base64
<elomatreb> e.g. $ may cause interpolation in some languages
esObe has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
<PorcoRex> hays, how about SecureRandom.hex
<hays> PorcoRex: SecureRandom.base64
<PorcoRex> hays, sure. Why not?
<elomatreb> If you just want typeable passwords that don't break syntax that seems like the best choice honestly
<hays> I'm overthinking it. For the sake of learning something about the language
electrostat has quit [Quit: uwotm8]
jtd has joined #ruby
electrostat has joined #ruby
<hays> the construction I came up with seemed clumsy from a language perspective. kinda repetetive
<elomatreb> >> require "securerandom"; SecureRandom.random_bytes(1).encoding # One thing to watch out for
<ruby[bot]> elomatreb: # => #<Encoding:ASCII-8BIT> (https://eval.in/778777)
<PorcoRex> I think you are hays, because what you are doing is taking a library that already has what you need and you loop on it until it gives you something that matches your regexp. And the regexp may not be that secure anyways.
<hays> im increasing the space of the possible passwords
<PorcoRex> In terms of characters?
<elomatreb> The most ruby-ish way would probably be to generate an Array containg all possible characters, sample and join
<elomatreb> Like described earlier
<hays> in terms of possible passwords given a fixed length
mooser has joined #ruby
<hays> elomatreb: yeah that was nice. i still don't quite understand how .sample knows how to use SecureRandom
<hays> also i do wonder how sample works.. whether it has some wierd bias in it
<PorcoRex> hays, ok, to be honest I think hex or base 64 is definitely the best approach. But if it weren't what I would do is take the random bytes and have a hash where each byte maps to a safe character.
nofxxx has quit [Ping timeout: 260 seconds]
<PorcoRex> Instead of looping, that is.
<elomatreb> IIRC sample uses the same RNG by default rand uses, so it's certainly not cryptographically secure
<hays> PorcoRex: before I did that I would get access to the bitstream and use modulo/division to strip off the bits i needed
<hays> elomatreb: yeah but you can pass it an rng, somehow
esObe has joined #ruby
<PorcoRex> And since we're in the subject, you might want to get a real random number from https://www.random.org/ in order to generate your password.
<hays> despite having somewhat different methods than the Random class
<hays> i am definitely not trusting some website for random numbers
nofxxx has joined #ruby
<PorcoRex> hays, you can add 2 to them! :)
<elomatreb> hays: Both SecureRandom and Random have rand, which is enough to generate an array index from
esObe has quit [Ping timeout: 240 seconds]
<hays> hmm.. SecureRandom.rand tells me its private
jeyraof^mbpr has joined #ruby
<hays> leaves me with a lot of questions to be honest
rakm has joined #ruby
hutch34_ has joined #ruby
electrostat has quit [Quit: uwotm8]
plujon has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
anisha_ has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
electrostat has joined #ruby
hutch34_ has quit [Ping timeout: 258 seconds]
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
cfec0b8d has joined #ruby
anisha has joined #ruby
aufi has joined #ruby
brent__ has joined #ruby
andikr has joined #ruby
brent__ has quit [Ping timeout: 268 seconds]
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
cagmz has quit [Read error: Connection reset by peer]
hays has quit [Remote host closed the connection]
Guest96 has quit [Remote host closed the connection]
Gabemo has joined #ruby
Guest96 has joined #ruby
<foxmask> bonjello
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
esObe has joined #ruby
mogaj has quit [Remote host closed the connection]
Guest96 has quit [Remote host closed the connection]
esObe has quit [Ping timeout: 260 seconds]
alazred has joined #ruby
Guest96 has joined #ruby
mogaj has joined #ruby
jusa has joined #ruby
mogaj has quit [Remote host closed the connection]
bronson has joined #ruby
<kke_> if i have a gem installed, and it looks like lib/foo-gem.rb. then in a another project i do "require 'foo-gem'", i guess it does something else than loads foo-gem.rb from the loadpaths
alazred has left #ruby ["Leaving"]
mogaj has joined #ruby
<kke_> i guess it loads the gemspec and activates load paths from the dependencies
<PorcoRex> kke_, the required paths are part of each gem's gemspec file.
mogaj has quit [Remote host closed the connection]
harfangk has joined #ruby
mogaj has joined #ruby
patarr has joined #ruby
<kke_> i have gem-a and gem-b (with runtime_dependency 'gem-a') when gem-a requires gem-b i get Gem::LoadError : unable to find a version of 'gem-a' to activate (eventhough it's obviously already loaded)
postmodern has quit [Quit: Leaving]
dlitvak has quit [Quit: Connection closed for inactivity]
chichou has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<Radar> Should've used Bundler.
chichou has quit [Client Quit]
<PorcoRex> Did you try installing gem-a with gem install gem-a.gemspec?
<PorcoRex> Or was it build?
patarr has quit [Ping timeout: 255 seconds]
esObe has joined #ruby
pikender has joined #ruby
<pikender> just tried Net::FTP class and it worked to connect and execute basic commands like pwd and chdir
<pikender> but when using `list` or `getbinaryfile` action times out
jcao219 has joined #ruby
<pikender> just wondering why in the first place, Net::FTP not working for list and getbinaryfile :(
esObe has quit [Ping timeout: 260 seconds]
<pikender> to add, I also found suggestions to use ftp.passive=true to make it work but that has no effect too :(
<pikender> going with the above mentioned solution but looks hacky
<pikender> anyone having insights, please help
<pikender> does this qualify to be added as a bug to Net::FTP class ?
mogaj has quit [Remote host closed the connection]
<ytti> i think so
mogaj has joined #ruby
<ytti> but those things are not exactly maintained
<ytti> they dropped telnet entirely from standard lib
<ytti> i wish i never needed tftp, ftp and telnet
<ytti> but alas, i do
<dminuoso> FTP is weird anyway.
nowhere_man has quit [Ping timeout: 240 seconds]
<ytti> agreed
<ytti> what were they thinking
<pikender> looks like patching is the more reliable way then :)
<dminuoso> pikender: I have a patch for you.
<PorcoRex> pikender, I don't remember exactly at this moment, but I was able to use `ls` and `getbinaryfile` without issues (although I think I had some originally). This is a link to some old code using it: https://github.com/gdeoliveira/core_headers/blob/development/tasks/catalog.rb
<dminuoso> But you don't apply it to code.rb but Gemfile, and it includes a sed script.
<dminuoso> It changes all FTP to SSH.
<PorcoRex> I think I needed to do Net::FTP.open(HOST) {|ftp| ftp.passive = true; ftp.login }
<PorcoRex> And then the rest.
<dminuoso> PorcoRex: Agreed. Net::SSH looks good.
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
<pikender> @PorcoRex, I did tried above but to no gain :(
<PorcoRex> pikender, sorry, it's old code. It worked for me back then. What error are you getting?
<pikender> oh my bad, I was referring to your next comment ftp.passive=true :)
<kke_> let's say my gem is called "foo-bar" but it has lib/foo_bar.rb. so i use "require 'foo_bar'", which is not the gem's name. when does the foo-bar.gemspec get loaded?
<PorcoRex> kke_, why not make a file called lib/foo-bar.rb with the content `require "foo_bar"` in it?
<pikender> PorcoRex, I will try your patch and share how did it go .. Thanks for sharing :)
hanmac has quit [Ping timeout: 258 seconds]
<PorcoRex> pikender, sure, hopefully it has something useful still.
<kke_> PorcoRex: yes i can do that but i'm wondering how the heck ruby figures out it needs to load the gemspec (since it seems to do it)
<PorcoRex> For gems Rubygems always takes the gemspec file as a reference for things a particular gem needs.
vali has joined #ruby
<PorcoRex> kke_, you may be looking for this configuration option: http://guides.rubygems.org/specification-reference/#require_paths=
antgel has joined #ruby
flying has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
<kke_> no, i'm looking for what makes ruby to load the gemspec in the first place
Snickers has joined #ruby
<PorcoRex> I'm sorry, I don't think I understand what you're trying to get at.
jcao219 has quit [Ping timeout: 268 seconds]
hanmac has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe has joined #ruby
j2k has joined #ruby
ddffg has joined #ruby
<kke_> i'm trying to figure out what "activates" a gem in such a situation
mark_66 has joined #ruby
nhhc has joined #ruby
mooser has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
brent__ has joined #ruby
loy_aqua has quit [Quit: loy_aqua]
<PorcoRex> Gems are handled by Rubygems. They are installed via the "gem" (or wrapper app like "bundler"). A gem has a unique name and a gemspec file associated with it. The gemspec file contain information like what files are included in the gem and what paths should be added when requiring gems.
loy_aqua has joined #ruby
<ljarvis> kke_: What do you mean "activates" a gem?
mikecmpbll has quit [Client Quit]
Silthias has joined #ruby
marr has joined #ruby
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 258 seconds]
bigkevmcd has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
PorcoRex has quit [Quit: Leaving]
maattdd_ has joined #ruby
mikecmpbll has joined #ruby
Guest88__ has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
kristofferR has joined #ruby
Qchmqs has joined #ruby
mim1k has joined #ruby
scrapy has joined #ruby
<scrapy> Guys I used a module that could get website info had addons like google whois etc.
<scrapy> Can anyone tell me the name of the module
<scrapy> If I remember correctly it's either nodekjs or ruby
<ljarvis> scrapy: that's awfully vague
Cohedrin has joined #ruby
<ljarvis> you can get whois easily, but is that all you want?
mim1k has quit [Ping timeout: 258 seconds]
<scrapy> It's basically a module that gets tons of data about websites like whois, JS libraries used, ngix or not, backend, etc
<scrapy> It has addons for every info
<scrapy> Kinda a grey hat one
<ljarvis> metasploit?
<scrapy> lol no I'm not that stupid.
<ljarvis> :/
<ljarvis> no idea then
<scrapy> It's a module used for gathering information about websites. Almost all the data through multiple sources and addons
mim1k has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<scrapy> Found it. Thanks
<scrapy> I didn't even remember which langauge it was written in
vali has quit [Read error: Connection reset by peer]
vali has joined #ruby
mogaj has quit [Remote host closed the connection]
govg has joined #ruby
mogaj has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
xenops has joined #ruby
armyriad has joined #ruby
quobo has joined #ruby
Beams has joined #ruby
loy_aqua has quit [Quit: loy_aqua]
loy_aqua has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
lxsameer has joined #ruby
starmix has joined #ruby
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
starmix has quit [Quit: WeeChat 1.7]
starmix has joined #ruby
djbkd has quit [Remote host closed the connection]
mooser has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
kent\n has joined #ruby
scrapy has quit [Quit: Page closed]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has joined #ruby
mooser has quit [Ping timeout: 255 seconds]
stoffus has joined #ruby
raul782 has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
TreyG has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
TreyG has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
bruce_lee has joined #ruby
biberu has joined #ruby
Trynemjoel has joined #ruby
rgtk has joined #ruby
elaptics has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
rakm has quit [Ping timeout: 245 seconds]
PaulCape_ has joined #ruby
byte512 has quit [Ping timeout: 260 seconds]
bsartek has joined #ruby
PaulCapestany has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has joined #ruby
p0p0pr37_ has joined #ruby
thebigj has joined #ruby
<pavelz> wonder why can't ruby spawn separate interpreter for a thread if gil is such problem
<thebigj> Hello, I am non ruby programmer. My blog is based on Jekyll plugin. Recently I was trying to add one functionality which was not natively provided by the Jekyll plugin. Can someone review the customization I have written?
p0p0pr37 has quit [Ping timeout: 260 seconds]
p0p0pr37_ is now known as p0p0pr37
SuperLag has quit [Ping timeout: 240 seconds]
<pavelz> dupe AST and way you go
SuperLag has joined #ruby
marxarelli|afk has quit [Ping timeout: 240 seconds]
<thebigj> Above is the link of PR. Please write your comments to the PR. Thanks!
workmad3 has joined #ruby
mogaj has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
mogaj has joined #ruby
jamesaxl has joined #ruby
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
hutch34_ has joined #ruby
astrobunny has joined #ruby
glcx has joined #ruby
astrobunny has quit [Remote host closed the connection]
NL3limin4t0r_afk has joined #ruby
pikender has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Guest14 has joined #ruby
pikender has joined #ruby
astrobunny has joined #ruby
hutch34_ has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
byte512 has joined #ruby
NL3limin4t0r_afk is now known as NL3limin4t0r
ferr has joined #ruby
alfiemax has joined #ruby
<alfiemax> hi all
<alfiemax> what does this line of code do :
<alfiemax> if a = [1,2,3,4,5,6,7]
<alfiemax> a[4, 1] = [11,22,33]
<alfiemax> a is returned as : => [1, 2, 3, 4, 11, 22, 33, 6, 7]
<alfiemax> i think the 4 is for specifying the index from which the elements are to be changed
<alfiemax> but what is the next number passed, changing that to a number greater or less than the size of the array in the RHS gives confusing results
<herwin> try a[4,1] and a[4,2]
jsrn_ has joined #ruby
NL3limin4t0r has quit []
NL3limin4t0r has joined #ruby
alfiemax has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 255 seconds]
Silthias2 has quit [Ping timeout: 255 seconds]
nadir has quit [Quit: Connection closed for inactivity]
NL3limin4t0r has quit []
astrobunny has quit [Remote host closed the connection]
toretore has joined #ruby
dlitvak has joined #ruby
acalycine has joined #ruby
tvw has joined #ruby
arup_r has joined #ruby
Silthias has joined #ruby
NL3limin4t0r has joined #ruby
NL3limin4t0r has quit []
NL3limin4t0r has joined #ruby
arup_r has quit []
NL3limin4t0r has quit []
NL3limin4t0r has joined #ruby
acalycine has quit [Quit: bye]
<manveru> pavelz: fork exists :)
<manveru> speaking of which, i'm a bit annoyed that EventMachine.watch_process doesn't work on linux :(
nowhere_man has joined #ruby
mooser has joined #ruby
hutch34_ has joined #ruby
patarr has joined #ruby
quobo has quit []
jaruga has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
pickle_ has joined #ruby
bmurt has joined #ruby
Puffball has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34_ has quit [Ping timeout: 268 seconds]
bmurt has quit [Client Quit]
patarr has quit [Ping timeout: 260 seconds]
Guest14 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pavelz> hah\
anisha has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cajone has left #ruby [#ruby]
jokester has quit [Quit: rebooting]
cajone has joined #ruby
t-recx has joined #ruby
hutch34_ has joined #ruby
sepp2k has joined #ruby
jokester has joined #ruby
jokester has quit [Client Quit]
jokester has joined #ruby
hutch34_ has quit [Quit: WeeChat 1.5]
hutch34 has joined #ruby
petruff has joined #ruby
Takumo has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
pickle_ has quit [Remote host closed the connection]
pickle_ has joined #ruby
j2k has joined #ruby
pickle_ has quit [Remote host closed the connection]
cek has joined #ruby
<thebigj> Hello, I am non ruby programmer. My blog is based on Jekyll plugin. Recently I was trying to add one functionality which was not natively provided by the Jekyll plugin. Can someone review the customization I have written?
<thebigj> Please help me by reviewing my PR.
<thebigj> Thanks!
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antoniobeyah has joined #ruby
oliv_____ has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
ldnunes has joined #ruby
HoierM has joined #ruby
oliv_____ has quit [Ping timeout: 260 seconds]
Vingador has joined #ruby
charliesome has joined #ruby
nadir has joined #ruby
mooser has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
petruff has quit [Quit: WeeChat 1.7]
mooser has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
MrBusiness3 has quit [Ping timeout: 252 seconds]
oliv_____ has joined #ruby
synthroid has joined #ruby
Verity has quit [Remote host closed the connection]
pifon has quit [Quit: Connection closed for inactivity]
oliv_____ has quit [Client Quit]
pikender has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nertzy has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
t-recx has joined #ruby
petruff has joined #ruby
oli______ has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
Puffball has quit [Remote host closed the connection]
millerti has joined #ruby
nertzy has joined #ruby
Puffball has joined #ruby
Vingador has joined #ruby
vizay has joined #ruby
jameser has joined #ruby
segmond has joined #ruby
surrounder has quit [Ping timeout: 240 seconds]
surrounder has joined #ruby
robert_reilly has joined #ruby
pawandubey has joined #ruby
pratn has joined #ruby
<pratn> hello
pratn has left #ruby [#ruby]
hinbody has joined #ruby
mogaj has quit [Remote host closed the connection]
Guest14 has joined #ruby
igniting has joined #ruby
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogaj has joined #ruby
oli______ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
jcao219 has joined #ruby
mogaj has quit [Remote host closed the connection]
mogaj has joined #ruby
robert_reilly has left #ruby [#ruby]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robert_reilly has joined #ruby
cseder has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
cseder has joined #ruby
cseder has quit [Client Quit]
jphase has quit [Remote host closed the connection]
patarr has joined #ruby
maxirater has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
houhoulis has joined #ruby
ramortegui has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
nofxxx has quit [Ping timeout: 268 seconds]
lmc has joined #ruby
lmc has quit [Remote host closed the connection]
TreyG has quit [Remote host closed the connection]
lmc has joined #ruby
Guest96 has quit [Remote host closed the connection]
yeticry_ has joined #ruby
Guest96 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
yeticry has quit [Ping timeout: 268 seconds]
mogaj has quit [Remote host closed the connection]
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
nofxxx has joined #ruby
mogaj has joined #ruby
agent_white has joined #ruby
pandaant has quit [Remote host closed the connection]
hays has quit [Ping timeout: 240 seconds]
DLSteve has joined #ruby
hays has joined #ruby
maxirater has quit [Quit: Leaving]
j2k has joined #ruby
loy_aqua has quit [Quit: loy_aqua]
CloCkWeRX has quit [Quit: Leaving.]
jdawgaz has joined #ruby
millerti has joined #ruby
oliv_____ has joined #ruby
anisha has quit [Quit: Leaving]
<agent_white> mornin' folks
hays has quit [Ping timeout: 252 seconds]
hays has joined #ruby
mogaj has quit [Remote host closed the connection]
jcao219 has joined #ruby
mogaj has joined #ruby
phoo1234567 has joined #ruby
oliv_____ has quit [Ping timeout: 255 seconds]
<starmix> hello
mogaj has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 1.7]
hays__ has joined #ruby
jrafanie has joined #ruby
hays has quit [Ping timeout: 240 seconds]
Silthias1 has joined #ruby
__Yiota has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mooser has joined #ruby
pawandubey has quit [Quit: ChatZilla 0.9.93 [Firefox 52.0.2/20170329150849]]
TomyLobo3 has joined #ruby
ben______ has joined #ruby
mogaj has joined #ruby
jdawgaz has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
hays has joined #ruby
TomyLobo2 has quit [Ping timeout: 252 seconds]
hays has quit [Remote host closed the connection]
mooser has quit [Ping timeout: 255 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_____ has quit [Ping timeout: 258 seconds]
jphase has joined #ruby
hays__ has quit [Ping timeout: 240 seconds]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
mogaj has quit [Ping timeout: 258 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
oliv_____ has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
oliv_____ has quit [Client Quit]
oliv_____ has joined #ruby
oli______ has joined #ruby
Phrogz has quit [Ping timeout: 260 seconds]
gregf_ has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
alan_w_ has joined #ruby
jcao219 has joined #ruby
maxmanders_ is now known as maxmanders
surrounder has quit [Ping timeout: 260 seconds]
igniting has quit [Ping timeout: 268 seconds]
vali has quit [Ping timeout: 260 seconds]
Paraxial has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
surrounder has joined #ruby
chouhoulis has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
chouhoul_ has joined #ruby
mooser has joined #ruby
AlexRussia has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 255 seconds]
__Yiota has joined #ruby
phreakocious has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
houhoulis has quit [Remote host closed the connection]
esObe_ has joined #ruby
esObe has quit []
esObe has joined #ruby
phreakocious has joined #ruby
nemish has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has quit [Ping timeout: 260 seconds]
Snickers has quit [Quit: Snickers]
pikender has joined #ruby
jrafanie has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 245 seconds]
mim1k has joined #ruby
rakm has joined #ruby
jamesaxl has joined #ruby
rgtk has joined #ruby
esObe has quit []
jaruga has joined #ruby
esObe_ is now known as esObe
aglorei has quit [Remote host closed the connection]
mogaj has joined #ruby
aglorei has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
jrafanie_ has joined #ruby
anisha has joined #ruby
jrafanie has quit [Ping timeout: 240 seconds]
mogaj has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
Snickers has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
jusa has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igniting has joined #ruby
__Yiota has joined #ruby
mikecmpbll has joined #ruby
jusa has quit [Ping timeout: 260 seconds]
gregf_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
alan_w_ has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oli______ has quit [Remote host closed the connection]
olivi____ has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
NL3limin4t0r has quit []
jdawgaz has joined #ruby
nhhc has quit [Quit: Leaving]
hays has joined #ruby
jcao219 has joined #ruby
olivi____ has quit [Ping timeout: 258 seconds]
whiteline has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
whiteline has joined #ruby
synthroi_ has joined #ruby
polishdub has joined #ruby
mogaj has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
tlaxkit has joined #ruby
vizay has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
theunraveler has joined #ruby
Phrogz has joined #ruby
<Phrogz> G'day, all.
theunraveler has quit [Remote host closed the connection]
theunraveler has joined #ruby
olivi____ has joined #ruby
<hxegon> mornin Phrogz
jcao219 has quit [Ping timeout: 252 seconds]
lmc has quit [Remote host closed the connection]
lmc has joined #ruby
dionysus69 has joined #ruby
lmc has quit [Remote host closed the connection]
lmc has joined #ruby
dionysus69 has quit [Client Quit]
psychicist__ has joined #ruby
dyyylan has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
mark_66 has quit [Remote host closed the connection]
<havenwood> g'mornin'
Qchmqs has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
dyyylan has joined #ruby
polysics has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mikecmpbll has joined #ruby
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
cdg has joined #ruby
whiteline has quit [Quit: Leaving]
mzo has joined #ruby
minimalism has joined #ruby
AlexRussia has joined #ruby
shinnya has joined #ruby
whiteline has joined #ruby
swirlsMD_ has joined #ruby
username has joined #ruby
aufi has quit [Quit: Leaving]
hamza_rubyist has joined #ruby
anisha has quit [Quit: Leaving]
hamza_rubyist has left #ruby [#ruby]
jsrn_ has quit [Quit: Leaving]
niftylettuce has joined #ruby
ResidentBiscuit is now known as ResidentBadger
MrBusiness has joined #ruby
niftylettuce has quit [Read error: No route to host]
Guest14 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddffg has quit [Quit: Leaving]
ddffg has joined #ruby
niftylettuce has joined #ruby
polysics has quit [Remote host closed the connection]
<hays> why does this work? [*?a..?z]
flying has quit []
<hays> I understand literally nothing about it other than the fact that its in brackets might make it an array
<adam12> It's a range, expanded to an array
<adam12> and then splatted into the original array
<adam12> I guess
<hays> whats ? about?
<baweaver> Throwback to 1.8
<adam12> character literals
<baweaver> don't use it
<baweaver> same as 'a'
<adam12> ?a == 'a'
<ruby[bot]> adam12: I don't see no ==, whom should I tell about a?
<adam12> ruby[bot]: shush
<baweaver> owned
<hays> so [*'a'..'z']
<hays> is better?
<baweaver> yeah
<hays> what is splatting
TomyLobo3 has quit [Read error: Connection reset by peer]
<hays> I have only a vague understanding of this...
<baweaver> what does splatting normally do to an arguments list?
TomyLobo3 has joined #ruby
alazred has quit [Ping timeout: 240 seconds]
<baweaver> >> def testing(a,b,c) a + b + c end; testing(1,2,3) == testing(*[1,2,3])
<canton7> splatting takes collection of <stuff>, and pretends that each item in the collection is a separate parameter
<ruby[bot]> baweaver: # => true (https://eval.in/779138)
alazred has joined #ruby
alazred has joined #ruby
alazred has quit [Changing host]
TomyLobo3 has quit [Read error: Connection reset by peer]
<baweaver> pretty much
<baweaver> it literally "splats" an array down
<hays> def foo *args seems to do opposite?
chouhoul_ has quit [Remote host closed the connection]
TomyLobo3 has joined #ruby
<baweaver> it treats your list of args as an array instead of as params
olivi____ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<canton7> yeah, 'args' there is being written into, rather than read out of. so the splat operator kinda does the opposite
<baweaver> I'd almost be tempted to call that a gatherer instead of spreader/splat like ES6 does.
<hays> yeah.. alright. so what are valid destinations for a splat?
alan_w_ has joined #ruby
<baweaver> >> first, *rest = [1,2,3,4,5]
<ruby[bot]> baweaver: # => [1, 2, 3, 4, 5] (https://eval.in/779139)
<baweaver> >> first, *rest = [1,2,3,4,5]; rest
<canton7> so you can do things like... that ^
<canton7> beat me to it
<ruby[bot]> baweaver: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> unsplat
<baweaver> odd
<baweaver> >> first, *rest = [1,2,3,4,5]; rest
<ruby[bot]> baweaver: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<baweaver> apeiros save me
<baweaver> I broke it
<hays> foo=[1,2]; add *foo
<baweaver> D:
<hays> that works too.. interesting
<apeiros> baweaver: can't. error on eval.in's part (and an error in handling that error in the bot)
<apeiros> left side of an assignment -> collect, right side of an assignment -> splat
<apeiros> argument passing =~ right side
<apeiros> argument receiving =~ left side
igniting has quit [Quit: Ex-Chat]
jcao219 has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
Derperperd has quit [Ping timeout: 252 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nertzy has quit [Ping timeout: 240 seconds]
mooser has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
kaspergr1bbe has joined #ruby
lmc has quit [Remote host closed the connection]
vizay has joined #ruby
jcao219 has quit [Ping timeout: 255 seconds]
lmc has joined #ruby
oliv_____ has joined #ruby
synthroid has joined #ruby
surrounder has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
lmc has quit [Ping timeout: 240 seconds]
kaspergr1bbe has quit [Quit: leaving]
synthroi_ has quit [Ping timeout: 258 seconds]
oliv_____ has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
surrounder has joined #ruby
cfec0b8d has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
amclain has joined #ruby
blackpajamas has joined #ruby
cfec0b8d has joined #ruby
marxarelli has joined #ruby
gusrub has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lmc has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alazred has quit [Ping timeout: 268 seconds]
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
oliv_____ has joined #ruby
polysics has joined #ruby
lmc__ has joined #ruby
lmc__ has quit [Remote host closed the connection]
polysics has quit [Client Quit]
starmix has quit [Quit: WeeChat 1.7]
rgtk has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
nerglish has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
tlaxkit has quit [Quit: tlaxkit]
__Yiota has joined #ruby
lmc has quit [Ping timeout: 260 seconds]
Guest88 has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
hobodave has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
lmc has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
mjago has joined #ruby
ski7777 has quit [Ping timeout: 258 seconds]
mooser has joined #ruby
nhhc has joined #ruby
jaruga has quit [Quit: jaruga]
j_ is now known as alamar
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjago has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
mooser has quit [Ping timeout: 240 seconds]
rakm has joined #ruby
skweek has joined #ruby
TheShadowBrokers has joined #ruby
alazred has joined #ruby
bmurt has joined #ruby
skweek has quit [Remote host closed the connection]
pmden has quit [Changing host]
pmden has joined #ruby
__Yiota has joined #ruby
outreachdan has joined #ruby
Snickers has quit [Quit: Snickers]
TheShadowBrokers has quit [Quit: Konversation terminated!]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Snickers has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
skweek has joined #ruby
Snickers has joined #ruby
Snickers has quit [Client Quit]
gusrub has joined #ruby
Snickers has joined #ruby
Snickers has quit [Client Quit]
Silthias1 has quit [Ping timeout: 268 seconds]
nerglish has quit [Quit: nerglish]
Silthias has joined #ruby
Beams has quit [Quit: .]
aryaching has joined #ruby
gusrub has quit [Ping timeout: 255 seconds]
mogaj has quit [Remote host closed the connection]
nerglish has joined #ruby
pilne has joined #ruby
mogaj has joined #ruby
sorah___ has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
AndBobsYourUncle has joined #ruby
chouhoulis has quit [Remote host closed the connection]
GodFather has joined #ruby
chouhoulis has joined #ruby
dasher^0_o has joined #ruby
alan_w_ has quit [Ping timeout: 268 seconds]
ferr has quit [Quit: WeeChat 1.7]
mim1k has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: WeeChat 1.5]
AlexRussia has joined #ruby
aglorei has quit [Remote host closed the connection]
cseder has joined #ruby
synthroi_ has joined #ruby
aglorei has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
oliv_____ has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
synthroid has quit [Ping timeout: 252 seconds]
dasher^0_o has quit [Ping timeout: 252 seconds]
__Yiota has joined #ruby
cbyrda has joined #ruby
renchan has quit [Quit: Leaving...]
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd-rum has joined #ruby
cd-rum has quit [Client Quit]
MrBismuth has joined #ruby
cd-rum has joined #ruby
gusrub has joined #ruby
postmodern has joined #ruby
dasher^0_o has joined #ruby
duderonomy has joined #ruby
MrBusiness has quit [Ping timeout: 252 seconds]
webopsx has joined #ruby
lmc has quit [Remote host closed the connection]
webopsx has quit [Max SendQ exceeded]
lmc has joined #ruby
lmc has quit [Read error: Connection reset by peer]
lmc has joined #ruby
lmc has quit [Remote host closed the connection]
lmc has joined #ruby
Cohedrin has joined #ruby
cd-rum has quit [Quit: Textual IRC Client: www.textualapp.com]
ResidentBadger has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hobodave has quit [Quit: Computer has gone to sleep.]
oliv_____ has joined #ruby
jcao219 has joined #ruby
xco has joined #ruby
<xco> is the documentation example of #tap bad or i am? http://ruby-doc.org/core-2.4.1/Object.html#method-i-tap
<xco> i’d like to run a few examples in irb with #tap
ltem has joined #ruby
<hxegon> #tap is a bit confusing at first, the docs are good
<hxegon> xco: ^
<xco> hxegon: i can’t run the examples given :(
<xco> wanted to test it. cause it’s really confusing me
hutch34 has quit [Quit: WeeChat 1.5]
<Phrogz> Although I keep finding people that hate it, I love using .tap when I have to create an object that will be my return value, but I have to operate on it, first.
alazred has quit [Ping timeout: 258 seconds]
<hxegon> Phrogz: yeah, love using it to avoid assigning tmp vars
<hxegon> xco: are you trying to run the doc examples verbatim?
oliv_____ has quit [Ping timeout: 252 seconds]
<xco> hxegon: yes, verbatim :P
alazred has joined #ruby
<Phrogz> xco: You can't paste multiple lines like that in IRB
surrounder has quit [Ping timeout: 240 seconds]
<Phrogz> You'd have to move them all onto the same line.
<xco> nooooo
<xco> not like that
<xco> i’ll show you
<hxegon> also, what error are you getting?
<ljarvis> these 2 methods pretty much sum it up imo https://eval.in/779215
chouhoul_ has joined #ruby
<ljarvis> Phrogz: did you recently change your website design?
<xco> not getting any error
<Phrogz> ? (1..10).tap{ |x| puts "original: #{x}" }.to_a.tap{ |x| puts "array: #{x}" }.select{ |x| x.even? }.tap{ |x| puts "evens: #{x}" }.map{ |x| x*x }.tap{ |x| puts "squares: #{x}" }
mwlang has joined #ruby
<ljarvis> xco: that's working fine
<xco> :o
<ljarvis> what did you expect to see? x is 1..10
<Phrogz> xco: Here's what tap does: 1) pass the receiver of the message as a parameter to the block. 2) Return the value of the receiver
<xco> oh!
<xco> my bad!
<ljarvis> def tap(); yield self; self; end
hobodave has joined #ruby
surrounder has joined #ruby
<xco> i didn’t see the “original: 1..10 :D
<ljarvis> (excluding pedantry)
* baweaver needs to redo his site later
<Phrogz> ljarvis: Is there pedantry?
<xco> yield is confusing on its own already
<ljarvis> Phrogz: isn't there always?
<xco> combined with tap makes me want to go crazy
<Phrogz> heh
<ljarvis> Phrogz: it was a disclaimer mostly, before someone was like "naahhhh it also does x, y, z"
<Phrogz> Like the []= wars.
chouhou__ has joined #ruby
<ljarvis> i've been here too long heh
<havenwood> >> module Kernel; def let; yield self end end; 5.let { |n| n + 42 }
<ruby[bot]> havenwood: # => 47 (https://eval.in/779216)
<havenwood> I want that ^ simple method.
<havenwood> Whatever the name.
<havenwood> I proposed reuse of #itself, and that was frowned upon (fair enough).
<havenwood> What's a good name?
chouhoulis has quit [Ping timeout: 260 seconds]
<ljarvis> havenwood: #wtf
<havenwood> I think #let is pretty good, but folk feel like Rspec has claimed it.
<hxegon> havenwood: excuse my ignorance, what would the practical use of that be?
<baweaver> 1.pipe(&add).pipe(&multiply)
<dminuoso> baweaver: You mean compose() right?
chouhoul_ has quit [Ping timeout: 240 seconds]
<Phrogz> class Object; def me; self; end; end # I want this, for those times that you have to pass a block like { |x| x }
<baweaver> shhh
<havenwood> hxegon: It's like mapping rather than declaring a variable and appending to it. When you're method chaining it's not too uncommon that you want to return a method called directly on the receiver.
<baweaver> you'll scare the children
<dminuoso> Heh.
<havenwood> hxegon: We currently have to use an intermediate local variable.
<havenwood> hxegon: It's nice to be able to just continue on with your chain.
<hxegon> Phrogz: #itself is this pretty sure
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* Phrogz rushes to the docs.
mogaj has quit [Remote host closed the connection]
<ljarvis> havenwood: praiseth the language that shalt not be mentioned
<havenwood> Phrogz: Yeah, they've added that. :-)
mogaj has joined #ruby
<havenwood> ljarvis: :-D
<baweaver> Haskell?
<Phrogz> Hawt! I haven't followed Ruby updates since about 2.1
<ljarvis> baweaver: haha
<baweaver> Wait until 3
<dminuoso> baweaver: I've been hearing this "wait until 3" for like 3 years now.
<hxegon> Phrogz: there's tons of cool (or awful depending on who you ask) stuff lik &.
<baweaver> lonely operator
<havenwood> baweaver: haha, yup, exactly - i want pipe in the stdlib
<dminuoso> baweaver: Ruby 3 will feel like Perl 5 -> 10 years too late.
<ljarvis> a yes, the law of demeter operator
<mzo> >> module Kernel; def under; yield self end end; 22.under { |k| k + 20 }
<ruby[bot]> mzo: # => 42 (https://eval.in/779218)
<havenwood> baweaver: hmm, #pipe as the name...
<Phrogz> Apparently #itself was added in 2.2. Yay! :)
<havenwood> interesting
<baweaver> better that than python's 2 -> 3 jump :D
<ljarvis> you may also enjoy Hash#dig
<dminuoso> I dig that.
<ljarvis> dugged
patarr has joined #ruby
<hxegon> ljarvis: can't read that without eye twitching
<Phrogz> Lonely operator: nice. Terse. I like.
<ljarvis> hxegon: read what?
<hxegon> dugged
hays has quit [Remote host closed the connection]
<ljarvis> aha
Guest88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<hxegon> a 6 letter unholy tense abomination
skweek has quit [Ping timeout: 255 seconds]
<ljarvis> havenwood: they need to sort out method(&:x) before adding that
<havenwood> ljarvis: lower hanging fruit
* ljarvis goes back to wishing ruby had first class methods
<havenwood> baweaver: #pipe hasn't been proposed ^
<Phrogz> Hash#dig: Hrm. Smells like it's tailored to terse JSON communication. I suppose that's acceptable.
<baweaver> Yeah, debating on that
* Phrogz commiserates with ljarvis
<baweaver> I may sign in and propose in a bit
<baweaver> but if you want to go for it feel free havenwood
nobodyzxc has joined #ruby
<ljarvis> .with_itself
<Phrogz> That discovery made me a little more OK with Ruby's methods not being first-class.
sorah___ has joined #ruby
<havenwood> ljarvis: i thought just a block form of #itself was nice
<havenwood> maybe that's too convoluted
<ljarvis> Phrogz: yeah fair comment
<ljarvis> havenwood: yeah i think that'd be fine too tbh
<ljarvis> (for me)
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
lxsameer has joined #ruby
<ljarvis> good job ruby is monkeypatchable eh...
<ljarvis> said nobody sane ever
* Phrogz must be insane
<dminuoso> ljarvis: You know the funny thing is, JS has rooted me back to earth.
<ljarvis> meh, it has its upsides, but creates more problems than it solves imo
<dminuoso> HOFs is all you need to customize magic.
<ljarvis> dminuoso: JS destroys my soul in a similar way I suspect
<Phrogz> ha
<ljarvis> I hate few things more than JS
<dminuoso> ljarvis: JS has been extremely pleasant for me ever since I discovered redux and started writing pure functional code left and right.
<ljarvis> Java brings me down to earth sometimes
<ljarvis> dminuoso: right, I do love me some functional code
synthroid has joined #ruby
<ljarvis> tbh, Elixir comes closest to being the perfect language for me. There's only a few things I'd change if I could
<dminuoso> ljarvis: I really want to change our Rails APIs to Phoenix. :)
<ljarvis> and funnily enough, my own language I'm working on also has some issues I dislike because this stuff is hard :)
<ljarvis> dminuoso: I'm a huge fan myself, and I work at a Rails shop too
niftylettuce has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Quit: Leaving.]
synthroi_ has quit [Ping timeout: 258 seconds]
Cyrus has quit [Quit: WeeChat 1.7]
Guest96_ has joined #ruby
swirlsMD_ has quit [Ping timeout: 240 seconds]
<Phrogz> ljarvis: What are your inspirations and changes for your language?
<Phrogz> changes ~= "things that bugged you about another language that you set out as a goal to change"
anybody307249 has joined #ruby
<dminuoso> ljarvis: The sad thing is, I have implemented a language before with basic optimizations and flow analysis already. But I don't even have a single clue how to tackle pure functional languages.
Guest96 has quit [Ping timeout: 268 seconds]
<baweaver> Phrogz: played with the CSS of your site a bit. Look into: `font-size: 110%; line-height: 175%;` for standard font and `text-shadow: none;` for headers
alazred has quit [Ping timeout: 240 seconds]
<dminuoso> Like, implementing seems like no real issue. But implementing them well is completely opague to mne.
<baweaver> Makes it easier to parse through
<anybody307249> does anybody know if activerecord persistence with save! works within a config/initializers/ devise auth strategy?
<ljarvis> heh, yeah it's really tough
maattdd has joined #ruby
<ljarvis> Phrogz: i want something like elixir but a little more terse and with first class functions
<dminuoso> mzo: Oh wow. That's interesting.
<baweaver> well there goes my weekend mzo
* baweaver bookmarks
<Phrogz> baweaver: Thanks. That site design is circa 1998, with a few patched on changes over the years (like the text shadow when it was new and hot 10 years ago).
<baweaver> Yeah, mine needs some love: baweaver.com
<mzo> :)
<anybody307249> i have the user record that devise is attempting to authenticate with and im trying to persist an attribute in the devise strategy; the output of save! is true yet the data is not persisting in the database, the column is still nil
<baweaver> mainly in form of actually writing stuff
chouhou__ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<dminuoso> mzo: Yeah my weekend is now blocked too.
<dminuoso> :(
maattdd_ has quit [Ping timeout: 240 seconds]
inersha has joined #ruby
SeepingN has joined #ruby
inersha has quit [Remote host closed the connection]
<dminuoso> anybody307249: ?rails
<dminuoso> ?rails anybody307249
<ruby[bot]> anybody307249: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<anybody307249> thanks ruby bot
raul782 has quit [Read error: Connection reset by peer]
anybody307249 has quit [Quit: Page closed]
<Phrogz> ljarvis: Got anything of your language online yet?
raul782 has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
<baweaver> haven't seen much content on it, but there's a lot of interest in funding
<mzo> it would be a shame if it didn't get completed
jcao219 has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
<ljarvis> Phrogz: not yet no, it's been in development for.. well, a long time. I would like to get it online soon-ish, but i've been saying that for a while :)
pwillard has joined #ruby
marr has quit [Ping timeout: 268 seconds]
sepp2k has joined #ruby
<pwillard> New to ruby. What does the "!" mean in this context? --> user_input.downcase!
<dminuoso> pwillard: It's part of the method name.
webopsx has joined #ruby
<dminuoso> pwillard: Such methods are colloquially called "bang methods", and are usually used to imply that it mutates the receiver.
<LastWhisper____> for `def content_thumbnail_url(content, width:, height:)` -- what does the `height:` mean? is it the same as height = nil ?
<dminuoso> pwillard: However, don't assume that if there's no bang at the end that it's not mutated. Likewise some bang methods don't mutate their receiver either.
<ytti> much like downcase? would be understood by ruby programmer to return boolean value
<dminuoso> LastWhisper____: Almost. It's naming a keyword argument.
<ytti> while language itself makes no promises or guarantees, they are just names
<ytti> behaviour is out of convention
<ytti> i.e.
<ytti> def downcase?; end
<pwillard> Ah. ok. that was the answer I was trying to find. quite the noob at this stage but I really like it so far
<dminuoso> LastWhisper____: It may become more obvious if the kwarg has a default, such as def foo(bar: 1)
<ytti> def downcase!; end
<ytti> def downcase; end
<ytti> are three separate methods
<LastWhisper____> pwillard in laymans terms "mutates the receiver" means it saves the original variable/object to what downcase would transform it to be. so string = "Bob"; string.downcase; puts string; "Bob", string.save; puts string; "bob"
<LastWhisper____> plz correct me if i'm wrong there xD
<dminuoso> LastWhisper____: Spot on.
olivi____ has joined #ruby
nerglish has quit [Quit: nerglish]
<dminuoso> LastWhisper____: Though, it may not be the case either.
<LastWhisper____> exactly; but conventionally, and especially in models, that seems to be the case
<dminuoso> LastWhisper____: There are some things that just have destructive or mutatible side-effects.
<pwillard> I'm doing the CodeAcademy online thing as an introduction and they started using the ! without explanation.
<dminuoso> And in Rails a ! often indicates that a method will throw an exception on error.
<dminuoso> (And these are often paired with methods without that ! that dont throw)
<dminuoso> Stress on "often"
<LastWhisper____> ya i forgot this is the ruby channel
<pwillard> I'm not sure I'm headed in the rails direction... though I like the CLI aspect of ruby so far...
<LastWhisper____> they may not even be working with models :)
<dminuoso> pwillard: Likewise a method name may contain a question mark, these are conventionally used as "interrogative methods" that yield a boolean.
<dminuoso> Basically you can view them as a question, and the method will answer "true" or "false" (sometimes nil).
<dminuoso> This concvention you can mostly actually rely onb.
<pwillard> wow... liking this even more now
<dminuoso> For example:
<dminuoso> >> array = []; puts array.empty?
<ruby[bot]> dminuoso: # => true ...check link for more (https://eval.in/779236)
mogaj has quit [Remote host closed the connection]
ski7777 has joined #ruby
<dminuoso> pwillard: But in the end don't use a method without checking its API documentation, which should tell you what it does and what it returns. :-)
olivi____ has quit [Ping timeout: 255 seconds]
tvw has quit []
<pwillard> sounds like a good plan to me
tristanp_ has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
<pwillard> So in a nutshell --> user_input.downcase! is saying modify variable user_input "in place".
<dminuoso> pwillard: Maybe. Or maybe it throws an exception. Or maybe it has some non-obvious side-effects.
<dminuoso> Or maybe it's just a dangerous method.
tristanp has quit [Ping timeout: 240 seconds]
<dminuoso> pwillard: In the standard library I think it always means it modifies the variable in place. I think.
<pwillard> Cool
rgtk has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
yeticry has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
<cseder> I'm working through the ubiquitous PickAxe book (4th edt) and the more I learn the more true the "Easy to learn, difficult to Master" maxim becomes.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has joined #ruby
<cseder> Try wrapping your head around this: https://gist.github.com/cseder/1cdee876a40786e062fb30797631386c
ramfjord has joined #ruby
nerglish has joined #ruby
enterprisey has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petruff has quit [Ping timeout: 240 seconds]
TinkerTyper_ has joined #ruby
TinkerTyper has quit [Ping timeout: 260 seconds]
nerglish has quit [Quit: nerglish]
<dminuoso> cseder: Took me about 6 seconds.
<dminuoso> Now?C
<hxegon> cseder list of all divisible ints with 3 in them?
<hxegon> divisible by 10*
AaronLasseigne has joined #ruby
<cseder> triangular numbers devisable by 10
<cseder> first five triangular numbers that are multiples of 10 and that have the digit 3 in them
<cseder> to be exact
oliv_____ has joined #ruby
jrafanie has joined #ruby
<hxegon> ah. Seems like something that could be done with lazyness elegantly, but I can't seem to get the hang of how ruby handles lazy enumerators
<cseder> It wasn't meant as a quiz, it just demonstrates the compact syntax that makes my head spin, coming from C++ and Java
nerglish has joined #ruby
<hxegon> Just commenting on that "It could be a line shorter" itch :)
skweek has joined #ruby
<hxegon> cseder: actually, messing with that snippet in pry, you don't need to define infinite_select
<hxegon> one sec
<hxegon> cseder: https://eval.in/779245
swirlsMD_ has joined #ruby
<hxegon> lazyness is something I need to practice taking advantage of
<dminuoso> cseder: You can do this with with C++17 though.
<cseder> hxegon something about built-in functionality for infinite sequences / lazy enumerators in Ruby 2.0 +
<dminuoso> cseder: Enumerators are basically coroutines. :-)
<dminuoso> Well sort of.
<dminuoso> They are generators.
<toretore> enumerators use fibers, which are coroutines
marr has joined #ruby
Snickers has joined #ruby
<cseder> "none of the lazy versions of the methods actually consume any data from the collection until that data is requested, and then they only consume enough to satisfy that request"
<cseder> Ruby Magic
<hxegon> How would you idiomatically generate triangular numbers more functionally? Not saying the code is bad, or even non-optimal, but I'm just not sure how.
<hxegon> cseder: Ever since reading why FP matters, I've been finding any excuse I can to write lazy code.
<cseder> hxegon Yes, it's a beautiful thing
<dminuoso> hxegon: I dont write code anymore, I just became lazy instead.
<dminuoso> Adding newlines and committing them to keep the commit quota.
<dminuoso> Also I never break the CI pipeline anymore!
<hxegon> "the functionality will be there when requested by a user, not before that"
username has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
lmc has quit [Quit: Leaving...]
alazred has joined #ruby
alazred has joined #ruby
acalycine has joined #ruby
nhhc has quit [Remote host closed the connection]
hays has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeffreylevesque has joined #ruby
<jeffreylevesque> what does it mean @someVal ! []
<jeffreylevesque> what does it mean @someVal != []
oliv_____ has quit [Remote host closed the connection]
<cseder> hxegon I don't now much about FP, but I learned a little Lisp a couple of ages ago. What did you read about FP causing you to embrace FP?
oliv_____ has joined #ruby
<dminuoso> jeffreylevesque: It means you need to get a
<dminuoso> ?books jeffreylevesque
<ruby[bot]> jeffreylevesque: You can find a list of recommended books at http://ruby-community.com/pages/links
rakm has joined #ruby
jusa has quit [Ping timeout: 252 seconds]
<hxegon> answered my own question about functional triangular numbers cseder https://eval.in/779252
<jeffreylevesque> dminuoso: ah ok just googled it
<hxegon> cseder: Learning to program without side-effects in FP languages has probably halved the amount of terrible code I output
<jeffreylevesque> guess no books
<jeffreylevesque> are books even worth anything these days
<hxegon> although your loop code in that case is really fine
<dminuoso> jeffreylevesque: Yes.
<jeffreylevesque> or is it to humor ppl like you dminuoso
<dminuoso> jeffreylevesque: No, there's folks who thinks that people who just think books are not worth the money and time usually end up becoming horrid programmers.
<dminuoso> But honestly I don't care because these folks don't make it into any interview worth mentioning ever.
<jeffreylevesque> ah ok
<hxegon> jeffreylevesque: is class var someVal not equal to an empty array?
<hxegon> s/class/instance
<cseder> hxegon what FP languages have you used most?
swirlsMD_ has quit [Quit: WeeChat 1.7]
<dminuoso> jeffreylevesque: In fact I believe that books are worth more than ever because it's so easy to publish bad resources online. People with egos larger than mine have a tendency for self-proliferation.
haylon has joined #ruby
<hxegon> cseder: clojure and haskell. I haven't used either of them for anything serious or bigger than a trivial project, but just learning how they work, how idiomatic code is written in them, is worth it for sure
<jeffreylevesque> humans have relative emotions on things
<jeffreylevesque> this is nice
<cseder> hxegon Yeah, guess so. I have the Programming Erlang book from Pragmatic Programmers (Armstrong) that's waiting in my bookshelf
vuoto has joined #ruby
vizay has quit [Quit: WeeChat 0.4.2]
skweek has quit [Ping timeout: 260 seconds]
<cseder> Containers, blocks, and iterators are core concepts in Ruby and I'm still trying to wrap my head around its uses
<hxegon> That's another thing I'm looking forward to; checking out the actor model
<cseder> hxegon Haven't had time to learn Erlang yet, but it sure looks interesting!
<hxegon> cseder: also, check out elixir! To oversimplify it, it's erlang with ruby syntax
<cseder> hxegon Will do
moei has joined #ruby
hays has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
outreachdan has joined #ruby
nerglish has quit [Quit: nerglish]
Vingador has quit [Ping timeout: 252 seconds]
alazred has quit [Ping timeout: 240 seconds]
hinbody has quit [Quit: leaving]
username1 has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
enterprisey has quit [Quit: Leaving]
robert_reilly_ has joined #ruby
__Yiota has joined #ruby
robert_reilly has quit [Ping timeout: 260 seconds]
robert_reilly_ is now known as robert_reilly
hays has joined #ruby
hays has joined #ruby
hays has quit [Changing host]
nerglish has joined #ruby
domgetter has quit [Ping timeout: 268 seconds]
pytuger has quit [Quit: "There is no System but GNU and Linux is one of its Kernals"]
segy has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobodyzxc has quit [Quit: leaving]
mogaj has joined #ruby
kristofferR has quit [Remote host closed the connection]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hays has quit [Remote host closed the connection]
Cohedrin has quit [Read error: Connection reset by peer]
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has joined #ruby
gusrub has quit [Remote host closed the connection]
mogaj has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
rakm has joined #ruby
pikender has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jeffreylevesque has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
Cohedri__ has joined #ruby
Cohedrin has quit [Ping timeout: 260 seconds]
ddffg has quit [Quit: Leaving]
vuoto has quit [Quit: Lost terminal]
jdawgaz has joined #ruby
latemus has quit [Quit: Lost terminal]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
xco has quit [Quit: xco]
rgr has joined #ruby
xco has joined #ruby
xco has quit [Client Quit]
cseder has quit [Read error: Connection reset by peer]
xco has joined #ruby
synthroid has quit []
xco has quit [Client Quit]
rgr_ has quit [Ping timeout: 258 seconds]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
theunraveler has quit []
latemus has joined #ruby
theunraveler has joined #ruby
theunraveler has quit [Client Quit]
theunraveler has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Remote host closed the connection]
ramortegui has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
outreachdan has joined #ruby
gsnedders has joined #ruby
ledestin has joined #ruby
ramortegui has joined #ruby
__Yiota has joined #ruby
gsnedders has left #ruby [#ruby]
stupidsenpai has joined #ruby
stupidsenpai has quit [Client Quit]
spicerack has joined #ruby
raul782 has quit [Ping timeout: 255 seconds]
rhyselsmore has joined #ruby
Guest916 has joined #ruby
millerti has joined #ruby
jenrzzz_ has joined #ruby
JC has joined #ruby
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg_ has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 240 seconds]
outreachdan has joined #ruby
jeffreylevesque has joined #ruby
outreachdan has quit [Client Quit]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sepp2k has quit [Read error: Connection reset by peer]
jcao219 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
jenrzzz_ has quit [Ping timeout: 260 seconds]
ltem has quit [Quit: Leaving]
haylon has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
olivi____ has joined #ruby
raul782 has joined #ruby
theunraveler has quit []
SegFaultAX has joined #ruby
chouhoul_ has joined #ruby
rgtk has quit [Ping timeout: 268 seconds]
enterprisey has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
olivi____ has quit [Ping timeout: 268 seconds]
cbyrda has quit [Quit: leaving]
chouhoul_ has quit [Ping timeout: 268 seconds]
robert_reilly has quit [Quit: Head hit keyboard ZZZzzzZZZzzzz]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
skweek has joined #ruby
raul782 has quit [Remote host closed the connection]
xco has joined #ruby
mim1k has joined #ruby
AaronLasseigne has quit [Ping timeout: 240 seconds]
olivi____ has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
pupsicle has quit [Quit: pupsicle]
mim1k has quit [Ping timeout: 260 seconds]
psychicist__ has quit [Quit: Lost terminal]
ramortegui has quit [Quit: Ex-Chat]
moei has quit [Quit: Leaving...]
hobodave has quit [Ping timeout: 240 seconds]
olivi____ has quit [Ping timeout: 260 seconds]
pupsicle has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
jusa has joined #ruby
raul782 has joined #ruby
outreachdan has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
mooser has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has joined #ruby
jrafanie has joined #ruby
yokel has joined #ruby
ddffg has joined #ruby
jenrzzz has joined #ruby
jasondotstar_ is now known as jasondotstar
mooser has quit [Remote host closed the connection]
raul782 has quit [Remote host closed the connection]
jamesaxl has quit [Quit: WeeChat 1.7]
mooser has joined #ruby
dmarr has left #ruby [#ruby]
riddley has joined #ruby
__Yiota has joined #ruby
riddley has left #ruby ["Leaving"]
AlexRussia has joined #ruby
AndBobsYourUncle has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mooser has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
sonOfRa has quit [Quit: Bye!]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has quit []
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mogaj has joined #ruby
enterprisey has quit [Remote host closed the connection]
helpa-bot has joined #ruby
slima_ has joined #ruby
outreachdan has joined #ruby
helpa has quit [Remote host closed the connection]
slima has quit [Read error: Connection reset by peer]
helpa-bot has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: Textual IRC Client: www.textualapp.com]
helpa has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
kristofferR has joined #ruby
rgr has quit [Ping timeout: 260 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
raul782 has joined #ruby
cdg has joined #ruby
jdawgaz has joined #ruby
olivi____ has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
sonOfRa has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
kristofferR has joined #ruby
pwnd_nsfw has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
AndBobsYourUncle has joined #ruby
olivi____ has quit [Ping timeout: 260 seconds]
pytuger has joined #ruby
pytuger has quit [Client Quit]
workmad3 has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
nemish has quit [Quit: nemish]
cfec0b8d has quit [Ping timeout: 240 seconds]
TomyLobo3 has quit [Ping timeout: 255 seconds]
polishdub has quit [Remote host closed the connection]
raul782 has joined #ruby
mooser has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
petruff has joined #ruby
raul782 has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
outreachdan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
pifon has joined #ruby
outreachdan has joined #ruby
robert_reilly has joined #ruby
outreachdan has quit [Ping timeout: 260 seconds]
outreachdan has joined #ruby
snockerton has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
outreachdan has quit [Client Quit]
jcao219 has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
outreachdan has joined #ruby
outreachdan has quit [Client Quit]
jhack has joined #ruby
outreachdan has joined #ruby
Derperperd has joined #ruby
mooser has quit [Ping timeout: 255 seconds]
mooser has joined #ruby
enterprisey has joined #ruby
JoshS has joined #ruby
jameser has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
Derperperd has quit [Changing host]
Derperperd has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maattdd has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
toretore has quit [Ping timeout: 255 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
oliv_____ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
skweek has joined #ruby
CloCkWeRX has joined #ruby
mim1k has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: minimalism]
Snickers has quit [Quit: Snickers]
olivi____ has joined #ruby
minimalism has joined #ruby
hxegon is now known as hxegon_afk
dasher^0_o has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
mooser has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
olivi____ has quit [Ping timeout: 255 seconds]
olivi____ has joined #ruby
marxarelli is now known as marxarelli|afk
govg has quit [Ping timeout: 260 seconds]
mooser has joined #ruby
naprimer_3 has quit [Ping timeout: 260 seconds]
olivi____ has quit [Ping timeout: 255 seconds]
raul782 has joined #ruby
houhoulis has joined #ruby
chouhoulis has joined #ruby
naprimer_3 has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
jenrzzz has quit [Ping timeout: 258 seconds]
ddffg has quit [Quit: Leaving]
houhoulis has quit [Ping timeout: 260 seconds]