havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
nullFxn has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
ravishankarjha has joined #ruby
sp4rrow has joined #ruby
whathappens has quit [Quit: Leaving...]
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
jaguarmagenta has quit []
cpup has quit [Ping timeout: 276 seconds]
melbu has quit [Quit: Page closed]
cpup has joined #ruby
greves has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
Gasher has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
gnufied has quit [Ping timeout: 260 seconds]
xlegoman has joined #ruby
zacstewart has joined #ruby
ferr has quit [Ping timeout: 276 seconds]
drptbl_ has quit [Quit: My MAC has gone to sleep. zZz..]
diegoaguilar has quit [Remote host closed the connection]
text1 has quit [Quit: Leaving]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
rbennacer has joined #ruby
domgetter has joined #ruby
<domgetter> >> "JARJAR".gsub(/(JAR)*/, "j")
<ruby[bot]> domgetter: # => "jj" (https://eval.in/566772)
<domgetter> why is that not being greedy?
mariano has joined #ruby
FooMunki has joined #ruby
<mariano> howdy
htmldrum has joined #ruby
<bazz_> if you include a module that has only self methods .. is that include effective in any way?
<bazz_> ...only regular self methods - no included magic or anything like that ...
<mariano> you mean def.self methods?
<mariano> def self.something
<mariano> ?
crdpink has joined #ruby
<bazz_> yeah
jenrzzz has quit [Ping timeout: 276 seconds]
<mariano> as far as i know, include will only mix-in methods that were defined on the module
kobain has joined #ruby
<Ox0dea> domgetter: Weird.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
grenierm has joined #ruby
<mariano> check this out
maxiu has quit [Quit: leaving]
crdpink2 has quit [Ping timeout: 276 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<Ox0dea> bazz_: If "effective" means the introduction of any new methods onto the includee, no.
htmldrum has quit [Ping timeout: 250 seconds]
<Ox0dea> It still has the "effect" of polluting the ancestor chain.
<mariano> was that of help?
swills has quit [Remote host closed the connection]
<mariano> bazz_
nanoyak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grenierm has quit [Client Quit]
sp4rrow has quit [Ping timeout: 260 seconds]
<bazz_> Ox0dea, OK, so no new methods into the includee. Got it, that's what I expected .. But what exactly is polluting the ancestor chain
twe4ked has quit [Ping timeout: 250 seconds]
<Ox0dea> >> C = Class.new; M = Module.new; C.include M; C.ancestors # bazz_
<ruby[bot]> Ox0dea: # => [C, M, Object, Kernel, BasicObject] (https://eval.in/566773)
<Ox0dea> M is going to participate in method resolution for C.
<bazz_> OK.. thanks for that last sentence in particular
<bazz_> That was helpful, thank you!
<Ox0dea> Glad that was the case. :)
smathy is now known as smathy_afk
kirun has quit [Quit: Client exiting]
nrd_pxs has quit [Quit: leaving]
pawnbox has joined #ruby
<domgetter> >> "JARJAR".sub(/(JAR)*/, "j")
<ruby[bot]> domgetter: # => "j" (https://eval.in/566774)
<domgetter> >> "AJARJAR".sub(/(JAR)*/, "j")
<ruby[bot]> domgetter: # => "jAJARJAR" (https://eval.in/566775)
SCHAAP137 has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
<Ox0dea> Well, I understand the #gsub weirdness now, but this last one is still confusing.
<domgetter> oh right it will match the nothing at the beginning. but sub is correctly greedy, and gsub is never greedy?
sp4rrow has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> >> "JARJARJAR".gsub(/(JAR)+/, "j")
chouhoulis has joined #ruby
<apeiros> both are greedy
<ruby[bot]> Ox0dea: # => "j" (https://eval.in/566776)
<apeiros> but first match matters, not longest
<Ox0dea> Then what happened just now?
<apeiros> i.e. greedy != "go search for the longest match"
<domgetter> ah so in my first example, it was greedily matching nothing
<apeiros> the match at position 0 satisfied the condition, and it was able to match it from start to end
<apeiros> domgetter: correct
northrup has joined #ruby
kies has quit [Ping timeout: 276 seconds]
twe4ked has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
TomyLobo has quit [Ping timeout: 244 seconds]
dikaio has joined #ruby
marr has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 250 seconds]
<bazz_> it's not really a Ruby question, but is there a term for "/foo" of a URL portion?
<bazz_> relative URL?
<bazz_> no..
davedev24 has joined #ruby
<apeiros> the path iirc
blur3d has joined #ruby
<apeiros> but the http spec should have it
<bazz_> ah yes relative URL is applicable.. path is good too
<havenwood> bazz_: just path
<apeiros> http rfc status codes
<apeiros> damn safari
<apeiros> I really hate its copy & paste behavior
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SCHAAP137 has joined #ruby
gomix has joined #ruby
Elvin has joined #ruby
drewo has quit [Ping timeout: 276 seconds]
northrup has joined #ruby
minimalism has quit [Quit: minimalism]
RegulationD has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
stardiviner has joined #ruby
benlieb has quit [Quit: benlieb]
RegulationD has quit [Ping timeout: 276 seconds]
thesheff17 has joined #ruby
ftj has joined #ruby
devbug has joined #ruby
rehat has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
SCHAAP137 has quit [Quit: Leaving]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hehe
<shevy> come to linux!
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
kies has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
_orangejuice has quit [Quit: Connection closed for inactivity]
kratos2511 has quit [Ping timeout: 250 seconds]
hahuang65 has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
dikaio has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sneakerhax has quit [Ping timeout: 260 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swills has joined #ruby
mariano has quit [Quit: leaving]
<shevy> hmm... if we have a string "abcdefghiabcaa" is there a simple way to obtain all positions of "a"? e. g. in an array.. [0,8,11,12] or whatever there
mariano has joined #ruby
GriffinHeart has joined #ruby
<mariano> hi dudes. I'm implementing a gem to parse proxy servers from many listing websites, and i'm having a hard time when trying to dynamically load classes. If anyone can give me some directions, please message me. Thank you all
mwlang has quit [Quit: mwlang]
<mariano> I already iterated over all files in the folder, requiring them. But the classes those modules contain can't be reached.
<Ox0dea> mariano: How do you mean?
<Ox0dea> If they're namespaced within a module, you'll have to access them with the fully qualified name: `YourModule::YourClass`
htmldrum has joined #ruby
<mariano> well, i have this folder with several .rb files. Each one of them contains a class. When i open a pry session , I try to access those classes with a fully qualified name, but the most inner namespace (the one that contains the classes) can't be reached
<Ox0dea> Then it must be the case that you've not loaded the file which introduces that name.
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<mariano> i can send you the code to clarify. The module that introduces the classes is named SpecificParsers
<Ox0dea> Post as much of the code as you figure is relevant to https://gist.github.com/ and share the link here.
<Ox0dea> You won't be able to recreate your directory structure, though. :/
<mariano> yes.. would it help more if i share the link to the repo?
<mariano> or would it bee TMI?
ravishankarjha has quit [Ping timeout: 260 seconds]
<Ox0dea> That's entirely your prerogative, I suppose.
ravishankarjha has joined #ruby
bruce_lee has joined #ruby
pawnbox has joined #ruby
domgetter has joined #ruby
justin_pdx has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ravishan_ has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
ravishankarjha has quit [Ping timeout: 250 seconds]
GinoMan2440 has quit [Read error: Connection reset by peer]
GinoMan2440 has joined #ruby
ur5us has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 265 seconds]
krobzaur has joined #ruby
ftj has joined #ruby
FooMunki has quit [Quit: FooMunki]
aeterne has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 244 seconds]
cd83x has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Ispira is now known as DANK_VIEWPORTS
DANK_VIEWPORTS is now known as AyyMDed
pawnbox has joined #ruby
greves has quit [Ping timeout: 265 seconds]
northrup has joined #ruby
saneax is now known as saneax_AFK
htmldrum has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
minimalism has joined #ruby
kristofferR has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravishankarjha has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
ravishan_ has quit [Ping timeout: 260 seconds]
dopamean_ has quit [Client Quit]
dopamean_ has joined #ruby
GriffinHeart has quit []
swills has quit [Remote host closed the connection]
dopamean_ has quit [Client Quit]
dopamean_ has joined #ruby
AyyMDed is now known as Ispira
dopamean_ has quit [Client Quit]
dopamean_ has joined #ruby
swills has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
drewo has joined #ruby
jenrzzz has joined #ruby
CloCkWeRX has joined #ruby
<bazz_> if I have a module providing library functions (they are all `def self.` methods) .. and calling them in absolute scope is painful for every invocation .. is there a simple way of reducing the "scope-overhead" ? I'd rather not simply include the parent module out of concern of possible including non-class functions that *could* be there (although it is likely not a possibility)
SenpaiSilver has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 246 seconds]
MrSamuel has joined #ruby
SenpaiSilver has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bazz_> Is my library design alright? I like doing "Library.func" .. but with scoping this can sometimes be "Library::Feature::func" or more
<bazz_> !s/Feature::/Feature\./
<Kuukunen> < bazz_> Is my library design alright? I like doing "Library.func" .. but with scoping this can sometimes be "Library::Feature::func" or more
<bazz_> ..
<bazz_> !s/Feature\:\:/Feature\./
<Kuukunen> < bazz_> ..
<bazz_> lol ..
swills has quit [Remote host closed the connection]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has joined #ruby
ramfjord has joined #ruby
ledestin has joined #ruby
devbug has quit [Quit: ZZZzzz…]
justin_pdx has quit [Quit: justin_pdx]
symm- has quit [Ping timeout: 260 seconds]
stardiviner has quit [Ping timeout: 252 seconds]
<postmodern> for CI solutions besides Travis, what do people recommend? CircleCI? Semaphore?
pawnbox has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
SenpaiSilver has joined #ruby
SenpaiSilver has quit [Client Quit]
SenpaiSilver has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
moeabdol has joined #ruby
weemsledeux has joined #ruby
theery has quit []
RegulationD has joined #ruby
stardiviner has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
<pipework> postmodern Do you mean CI-as-a-service solutions or just any CI?
<pipework> Public and open source friendly CI services only?
devbug has joined #ruby
krobzaur has quit [Ping timeout: 246 seconds]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
SenpaiSilver has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
<postmodern> pipework, hosted, and for private repos
SenpaiSilver has quit [Remote host closed the connection]
<pipework> postmodern: cloudbees, bamboo, maybe shippable?
justin_pdx has joined #ruby
<pipework> postmodern Also, I might have a couple PR's inc to chruby and ruby-install. I'm using them in an env where it's not just user install, the user has no access to sudo but has brew.
<postmodern> pipework, ah weird
<pipework> postmodern: basically, my user is not an admin on this machine (I have the admin user password, but these should work without sudo)
<pipework> my brew is also installed under these conditions. I've been fixing stuff all day!
hahuang65 has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
braincrash has quit [Quit: bye bye]
tildes_ has joined #ruby
jud has quit [Quit: Leaving]
justin_pdx has quit [Quit: justin_pdx]
hahuang65 has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
xcesariox has joined #ruby
cdg has joined #ruby
braincrash has joined #ruby
twe4ked has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
twe4ked has joined #ruby
Lycaonian has quit [Quit: Leaving]
gix has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
devbug has quit [Quit: ZZZzzz…]
gix has joined #ruby
krobzaur has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
devbug has joined #ruby
devbug has quit [Client Quit]
xxneolithicxx has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Azure has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ule> shevy: are u there?
<ule> shevy: I'm trying to understand the reason for that ? on the method definition
<ule> since ? on the end of methods returns booleans
<baweaver> ule: it has no real significance as a language feature, only as a pattern most people follow
scottschecter has quit [Remote host closed the connection]
<baweaver> >> def see?; 1 end; see?
<ruby[bot]> baweaver: # => 1 (https://eval.in/566785)
scottschecter has joined #ruby
<baweaver> the same as bang is an agreed upon standard for mutation or potentially dangerous behaviors
dikaio has joined #ruby
<ule> baweaver: I'll show you what happened with me today
<ule> this was my problem this afternooon
<ule> so.. I posted a question here and shevy solved my problem with this code:
htmldrum has quit [Ping timeout: 260 seconds]
<ule> so.. I'm now trying to understand better what shevy did on this code
<ule> why he defined that method as ?
htmldrum has joined #ruby
<baweaver> no reason it seems
nanoz has joined #ruby
<baweaver> ? has no actual significance to the parser, only the user/programmer
<baweaver> *in the case of methods
benlieb has joined #ruby
<ule> I'll try to replicate the same code without ?
<ule> let's see what happens
<ule> baweaver: you're right
<ule> the code works without ?
<ule> '?'
<ule> shevy: why did u do that though?
<ule> :/
sneakerhax has joined #ruby
hahuang65 has joined #ruby
rkazak has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tax has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
mariano has quit [Quit: leaving]
twe4ked has quit [Ping timeout: 250 seconds]
xlegoman has quit [Quit: xlegoman]
pawnbox has joined #ruby
zacstewart has joined #ruby
dh64 has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Rickmasta has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
zacstewart has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
grenierm has joined #ruby
darix has quit [Read error: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number]
Channel6 has joined #ruby
darix has joined #ruby
slackbotgz has joined #ruby
hahuang65 has joined #ruby
krobzaur has quit [Quit: WeeChat 1.4]
Caerus|Away is now known as Caerus
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Caerus> hello #ruby
The_Phoenix has joined #ruby
bronson has quit [Remote host closed the connection]
dopie has joined #ruby
tmtwd has joined #ruby
dopie has quit [Remote host closed the connection]
I has joined #ruby
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
I is now known as Guest43764
tildes_ has quit [Ping timeout: 240 seconds]
cd83x has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
davedev24 has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 265 seconds]
greves has joined #ruby
johnmilton has quit [Ping timeout: 246 seconds]
moeabdol has quit [Ping timeout: 276 seconds]
greves has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
rkazak has joined #ruby
UserInNeed has quit [Changing host]
UserInNeed has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
rbennacer has quit [Remote host closed the connection]
saneax_AFK is now known as saneax
johnmilton has joined #ruby
Rickmasta has joined #ruby
slackbotgz has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.5]
Guest43764 has left #ruby ["Leaving"]
rkazak has quit [Quit: Sleep.....ing....]
ramfjord has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
Devalo has joined #ruby
arescorpio has quit [Quit: Leaving.]
ramfjord has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
hk238 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Anderson69s has joined #ruby
<bazz_> are there any good learning resources for building an API in Ruby? Google shows a lot of results for "Web APIs / API wrappers / Rails API" but I just mean .. it more simply.. how to best use the Ruby language when creating my own API abstractions
kareeoleez has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 276 seconds]
ravishankarjha has quit [Remote host closed the connection]
bluOxigen_ has joined #ruby
ravishankarjha has joined #ruby
eljimmy has joined #ruby
lkba has quit [Remote host closed the connection]
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
bluOxigen has quit [Ping timeout: 276 seconds]
Anderson69s has joined #ruby
pawnbox has joined #ruby
Anderson69s has quit [Client Quit]
Anderson69s has joined #ruby
SilverKey has quit [Quit: Halted.]
Anderson69s has quit [Client Quit]
rubie has quit [Remote host closed the connection]
greves has joined #ruby
Anderson69s has joined #ruby
Anderson69s has quit [Client Quit]
pawnbox has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
bronson has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
cdg_ has joined #ruby
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sauvin has joined #ruby
greves has quit [Ping timeout: 246 seconds]
tk__ has joined #ruby
<nofxx> bazz_, get a ORM/ODM for your db of choice, add a serializer thing and just use rack..
<nofxx> padrino/sinatra... there's a new one only for this kind of stuff iirc
bronson has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
cdg_ has quit [Ping timeout: 276 seconds]
<bazz_> nofxx, I don't why you would assume I need a DB ... writing API abstractions is much broader a topic .. and I'm more focused on the language charactertics .. for example a proper strategy to create API functions and override them in Ruby .. I already do it successfully but I feel my method is a little dirty
<bazz_> so in my world I'm talking about a set of general functions ... with other classes/modules that "override" those general API funcs with implementation details
<nofxx> well, ruby does that, don't need a fw
<bazz_> but I'm having trouble properly organizing the material for some reason, hence I'm interested in learning material
<bazz_> don't need a 'fw' ?
<nofxx> framework
davedev24 has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
<bazz_> Well I already expressed I'm interested in how to best use the Ruby language to write clean APIs ...
yfeldblum has quit [Ping timeout: 276 seconds]
<bazz_> someone please :3 ^
rehat has quit [Read error: Connection reset by peer]
azor has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
d0lph1n98 has quit [Ping timeout: 240 seconds]
nando293921 has quit [Remote host closed the connection]
tildes_ has joined #ruby
ravishankarjha has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
dikaio has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
cd83x has quit []
<azor> How is everyone doing?
<bazz_> I'm wondering how to write clean interfaces (API) .. in general and in Ruby language
<bazz_> clean Library interfaces - if that narrowing helps
crameth has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
<baweaver> not something that's within the scope of IRC by a long shot
MrSamuel has quit [Quit: MrSamuel]
ramfjord has quit [Ping timeout: 252 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
moeabdol has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
ledestin has quit [Max SendQ exceeded]
Channel6 has quit [Read error: Connection reset by peer]
<baweaver> Essentially distilled Software Architecture practices
idefine has joined #ruby
cdg has joined #ruby
<baweaver> problem with distilled information is that it's meant to be brief, not an in detail guide.
moeabdol has quit [Ping timeout: 246 seconds]
<bazz_> Yeah but this is activating the right parts of my brain
<baweaver> Also, as with alcohol, the lighter weight you are the harder distilled information is going to hit you
<baweaver> focus on one thing at a time
tildes_ has quit [Ping timeout: 250 seconds]
cdg has quit [Ping timeout: 276 seconds]
<bazz_> I do agree with you -- multi-pass over my API with this document is better than a single-digest and attempt
ur5us has joined #ruby
droptone has joined #ruby
tmtwd has joined #ruby
<droptone> Question: What's a better way to write if !(provider == "service1" || provider == "test2" || provider == "internal3" )
<droptone> Isn't there a way to leverage .include?
<droptone> like if !provider.includes?("service1", "test2", "internal3")
<droptone> The thing is, I want it to match, not just see if the string exists within provider
Yeomra has joined #ruby
bruno- has joined #ruby
<droptone> If I write ["service1", "test2", "internal3"].any? { |name| provider.include? name } that matches even if part of the string is present in provider
<droptone> Disregard, I got it by switching .include? with ==
<bazz_> >> ["service1", "service2", "service3"].include? "service3"
<ruby[bot]> bazz_: # => true (https://eval.in/566790)
rkazak has quit [Quit: Sleep.....ing....]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
jgrevich_ has quit [Quit: leaving]
sami has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
lukeholder has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
djbkd has quit []
pawnbox has joined #ruby
aeontech has quit [Quit: aeontech]
ur5us has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has joined #ruby
Moosashi has joined #ruby
bluOxigen_ has quit [Ping timeout: 260 seconds]
dikaio has joined #ruby
rippa has joined #ruby
ur5us has joined #ruby
Pupp3tm4st3r has quit [Quit: Leaving...]
idefine has quit [Remote host closed the connection]
Yeomra has quit [Quit: WeeChat 1.4]
Devalo has quit [Remote host closed the connection]
solars has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
benlieb has quit [Quit: benlieb]
moeabdol has joined #ruby
benlieb has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
benlieb has quit [Ping timeout: 276 seconds]
rkazak has joined #ruby
tax has quit [Ping timeout: 260 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
bruno- has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
nando293921 has joined #ruby
Dimik has joined #ruby
yfeldblum has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
ta_ has quit [Read error: Connection reset by peer]
Bmw-01 has joined #ruby
ta_ has joined #ruby
akem_ has joined #ruby
Bmw-01 has quit [K-Lined]
astrobunny has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
greves has joined #ruby
bronson has joined #ruby
astrobunny has quit [Ping timeout: 276 seconds]
toretore has joined #ruby
dn` has quit [Quit: dn`]
dn` has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
neanderslob_ has quit [Remote host closed the connection]
vdamewood has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
neanderslob has joined #ruby
greves has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
Moosashi has quit [Quit: Moosashi]
Chunlea has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
Ispira has quit [Quit: Connection closed for inactivity]
Devalo has joined #ruby
greves has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
nando293921 has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
Jackneill has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
ctp has joined #ruby
firstdayonthejob has joined #ruby
greves has quit [Ping timeout: 252 seconds]
Chunlea has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.5]
saneax is now known as saneax_AFK
lxsameer has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
wldcordeiro has quit [Ping timeout: 244 seconds]
ur5us has joined #ruby
Moosashi has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
bruno- has joined #ruby
Es0teric has joined #ruby
_orangejuice has joined #ruby
zacstewart has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
ctp has quit [Client Quit]
Es0teric has quit [Client Quit]
zacstewart has quit [Ping timeout: 260 seconds]
wldcordeiro has joined #ruby
Moosashi has quit [Quit: Moosashi]
Moosashi has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
dreinull has left #ruby ["undefined"]
tens0r has joined #ruby
CloCkWeRX has joined #ruby
Lomex has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
Moosashi has quit [Quit: Moosashi]
moeabdol has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
<al2o3-cr> >> "abcdefghiabcaa".enum_for(:scan, /a/).map { $~.begin(0) } # shevy
<ruby[bot]> al2o3-cr: # => [0, 9, 12, 13] (https://eval.in/566828)
hahuang65 has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
neanderslob_ has joined #ruby
neanderslob has quit [Disconnected by services]
kareeoleez has quit [Remote host closed the connection]
d0nn1e has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
kareeoleez has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
ravishankarjha has joined #ruby
PaulCapestany has quit [Ping timeout: 260 seconds]
Moosashi has quit [Quit: Moosashi]
akem_ has quit [Quit: Quitte]
drewo has quit [Ping timeout: 276 seconds]
DevastatingDave has joined #ruby
tens0r has quit [Ping timeout: 265 seconds]
lxsameer has joined #ruby
araujo has quit [Ping timeout: 276 seconds]
tens0r has joined #ruby
blackmes1 has joined #ruby
kareeole_ has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 276 seconds]
PaulCapestany has joined #ruby
gchaos has joined #ruby
PaulCape_ has quit [Ping timeout: 240 seconds]
htmldrum has joined #ruby
ixti has joined #ruby
PaulCapestany has quit [Quit: .]
senayar has joined #ruby
PaulCapestany has joined #ruby
codecop has joined #ruby
senayar has quit [Ping timeout: 260 seconds]
kareeole_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
drewo has joined #ruby
blackmes1 has joined #ruby
kareeoleez has joined #ruby
TomyLobo has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
madgen has quit [Ping timeout: 244 seconds]
ixti has quit [Quit: WeeChat 1.5]
LoneHerm_ has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
pandaant has joined #ruby
madgen has joined #ruby
bronson has joined #ruby
kareeoleez has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
tens0r has quit [Quit: tens0r]
bronson has quit [Ping timeout: 252 seconds]
Moosashi has joined #ruby
pandaant has quit [Remote host closed the connection]
Anderson69s has joined #ruby
Anderson69s has quit [Client Quit]
akem has joined #ruby
Moosashi has quit [Quit: Moosashi]
codecop has quit [Remote host closed the connection]
Tempesta has quit [Quit: AdiIRC is updating to v2.4 Beta Build (2016/05/05-1) 32 Bit]
nadir has quit [Quit: Connection closed for inactivity]
Tempesta has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
Chunlea has quit [Ping timeout: 260 seconds]
twe4ked has joined #ruby
SCHAAP137 has joined #ruby
Musashi007 has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
QORRiE has joined #ruby
nanoz has quit [Quit: <3]
dionysus69 has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
QORRiE has quit [Client Quit]
last_staff has joined #ruby
last_staff has quit [Client Quit]
drptbl has joined #ruby
zacstewart has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
senayar has joined #ruby
drewo has joined #ruby
zacstewart has quit [Ping timeout: 240 seconds]
bigkevmcd has quit [Quit: Outta here...]
CloCkWeRX has quit [Ping timeout: 252 seconds]
minimalism has quit [Quit: minimalism]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
senayar has quit [Ping timeout: 244 seconds]
drewo has quit [Ping timeout: 276 seconds]
SCHAAP137 has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 252 seconds]
naftilos76 has joined #ruby
tildes has joined #ruby
ravishankarjha has quit []
dantevergil has joined #ruby
dantevergil has quit [Max SendQ exceeded]
dionysus69 has joined #ruby
spk has quit [Quit: ZNC - http://znc.in]
dantevergil has joined #ruby
dantevergil has quit [Max SendQ exceeded]
dantevergil has joined #ruby
dantevergil has quit [Max SendQ exceeded]
DevastatingDave has quit [Remote host closed the connection]
dantevergil has joined #ruby
dantevergil has quit [Max SendQ exceeded]
dantevergil has joined #ruby
GBrawl has joined #ruby
flashpoint9 has joined #ruby
ruid has joined #ruby
twe4ked has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
spk has joined #ruby
twe4ked has joined #ruby
elifoster has quit [Quit: sleep]
spk has quit [Client Quit]
ur5us has quit [Remote host closed the connection]
spk has joined #ruby
ruid has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
banister has joined #ruby
_orangejuice has quit [Quit: Connection closed for inactivity]
duncannz has quit [Remote host closed the connection]
CloCkWeRX has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
PedramT has joined #ruby
PedramT has quit [Client Quit]
rafadc has joined #ruby
rafadc has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
GBrawl has quit [Quit: (null)]
rafadc has joined #ruby
skade has joined #ruby
ctp has joined #ruby
millerti has joined #ruby
rafadc has quit [Remote host closed the connection]
drewo has joined #ruby
LoneHerm_ has joined #ruby
Mia has quit [Read error: Connection reset by peer]
steve has quit [Ping timeout: 252 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drewo has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
sdothum has joined #ruby
steve has joined #ruby
blackmes1 has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Gasher has joined #ruby
nisstyre has quit [Ping timeout: 260 seconds]
Bilge- is now known as Bilge
stardiviner has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
hahuang65 has joined #ruby
Bilge has quit [Quit: B]
CausaMortis has joined #ruby
bronson has joined #ruby
twintail has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Remote host closed the connection]
peterc_ has joined #ruby
peterc_ has quit [Client Quit]
Bilge has joined #ruby
symm- has joined #ruby
hosttor has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
kristofferR has joined #ruby
hosttor has joined #ruby
dantevergil has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
grenierm has quit [Quit: grenierm]
hanmac has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
hosttor has quit [Remote host closed the connection]
hosttor` has joined #ruby
|2701 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
CloCkWeRX has joined #ruby
yaw has joined #ruby
futilegames has joined #ruby
yaw has quit [Max SendQ exceeded]
stardiviner has joined #ruby
nisstyre has joined #ruby
yaw has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
sepp2k has joined #ruby
mdw has joined #ruby
zapata has quit [Quit: WeeChat 1.5]
stardiviner has quit [Ping timeout: 240 seconds]
zapata has joined #ruby
Gasher has quit [Quit: Leaving]
hanmac has joined #ruby
drewo has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
wof has quit [Ping timeout: 276 seconds]
drewo has quit [Ping timeout: 276 seconds]
rafadc has joined #ruby
symm- has quit [Quit: Leaving...]
chipotle has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
rafadc has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
lkba has joined #ruby
senayar has joined #ruby
bruno- has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
banister has joined #ruby
araujo has quit [Max SendQ exceeded]
zotherstupidguy has joined #ruby
symm- has joined #ruby
araujo has joined #ruby
senayar has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
araujo has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
auxbuss has joined #ruby
bronson has joined #ruby
flashpoint9 has joined #ruby
nando293921 has joined #ruby
yos7ph has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Ping timeout: 276 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
flashpoint9 has joined #ruby
stannard has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
_orangejuice has joined #ruby
karapetyan has joined #ruby
Emmanuel_Chanel has joined #ruby
<_orangejuice> Hi! New here. Why does `price = (10055/100).to_f` return differently than `price = 10055/100.to_f`?
davedev24 has joined #ruby
<Ox0dea> _orangejuice: Because explicit method calls bind more tightly than the division "operator".
<_orangejuice> Ox0dea: Sorry simpler for non-programmer?
blackmes1 has joined #ruby
<Ox0dea> _orangejuice: The latter does The Right Thing because it's `10055 / (100.to_f)`, but the parentheses are superfluous.
<Ox0dea> Ruby does integral division by default.
<Ox0dea> >> 5 / 2
<ruby[bot]> Ox0dea: # => 2 (https://eval.in/566869)
<_orangejuice> ahh. so I could do 10055/100.00
<Ox0dea> Oui.
<_orangejuice> if i want a float output
<_orangejuice> thanks Ox0dea
<Ox0dea> And `10055/100r` if you want a Rational result.
<Ox0dea> _orangejuice: Sure thing.
symm- has quit [Quit: Leaving...]
<Caerus> se yaa later #ruby :)
Devalo has joined #ruby
weemsledeux has joined #ruby
matp has quit [Remote host closed the connection]
Caerus is now known as Caerus|Away
moeabdol has quit [Ping timeout: 252 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
drewo has joined #ruby
auxbuss has quit [Quit: ZZZzzz…]
blackmes1 has quit [Ping timeout: 246 seconds]
Devalo has quit [Ping timeout: 250 seconds]
skweek has joined #ruby
karapetyan has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 260 seconds]
auxbuss has joined #ruby
karapetyan has joined #ruby
stannard has joined #ruby
karapetyan has quit [Remote host closed the connection]
Lomex has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
flashpoint9 has quit [Remote host closed the connection]
karapetyan has joined #ruby
GodFather has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
symm- has joined #ruby
karapetyan has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
senayar has joined #ruby
ramfjord has joined #ruby
saneax_AFK is now known as saneax
dionysus69 has joined #ruby
senayar has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
adgtl has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
ur5us has joined #ruby
hahuang65 has joined #ruby
rbennacer has joined #ruby
last_staff has joined #ruby
GodFather has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
banister has joined #ruby
bronson has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
bluOxigen has joined #ruby
dantevergil has joined #ruby
dantevergil has quit [Max SendQ exceeded]
bluOxigen_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
Emmanuel_Chanel has quit [Ping timeout: 276 seconds]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yos7ph has quit [Quit: Leaving]
pawnbox has joined #ruby
ftj has joined #ruby
cdg has joined #ruby
karapetyan has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Emmanuel_Chanel has joined #ruby
stannard has joined #ruby
adgtl has joined #ruby
drewo has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
drewo has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
Gasher has joined #ruby
blackmes1 has quit [Ping timeout: 244 seconds]
stannard has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 246 seconds]
d0lph1n98 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
LoneHermit has joined #ruby
karapetyan has quit [Remote host closed the connection]
stannard has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
karapetyan has joined #ruby
greg has joined #ruby
greg has quit [Remote host closed the connection]
skade has joined #ruby
zacstewart has joined #ruby
senayar has joined #ruby
rodfersou has joined #ruby
zacstewart has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 246 seconds]
yaw has joined #ruby
mostlybadfly has joined #ruby
htmldrum has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
auxbuss has quit [Quit: ZZZzzz…]
CausaMortis has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
User458764 has joined #ruby
zotherstupidguy has quit [Ping timeout: 240 seconds]
akem has quit [Ping timeout: 260 seconds]
<User458764> Hi, in foo[5].bar, how do you prevent a NoMethodError for nil Object?
pawnbox has quit [Remote host closed the connection]
<User458764> I know I can do a unless div[5] end but is it exists a one line code which return ""
pawnbox has joined #ruby
auxbuss has joined #ruby
akem has joined #ruby
DoubleMalt has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
wof has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
<shevy> User458764 perhaps via .try or the lonely operator &. - I would however had check first whether I would have a nil object there, nil objects do not respond to [] method
<User458764> shevy thanks I didn't .try method I solved my problem with a ternary operator but I will also check your solution
<User458764> *know
<shevy> here is one stackoverflow discussion about the lonely operator http://stackoverflow.com/questions/34583168/safe-navigation-operator-for-nil
drewo has joined #ruby
Ispira has joined #ruby
TheBigNorwegian has joined #ruby
TheBigNorwegian has quit [Quit: Page closed]
bluOxigen_ has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
nanoz has joined #ruby
tmtwd has joined #ruby
davedev24 has joined #ruby
drewo has quit [Ping timeout: 276 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bluOxigen_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 260 seconds]
ftj has joined #ruby
idletask has quit [Quit: .]
Pupeno has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 276 seconds]
blackmes1 has joined #ruby
rubie has joined #ruby
Emmanuel_Chanel_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
rubie has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
blackmes1 has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
naftilos76 has joined #ruby
Chachi has joined #ruby
stannard has quit [Remote host closed the connection]
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
auxbuss has quit [Quit: ZZZzzz…]
yos7ph has joined #ruby
stannard has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
yos7ph has quit [Client Quit]
CloCkWeRX has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
stannard has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 276 seconds]
akem has quit [Quit: Quitte]
stannard has joined #ruby
tk__ has quit [Quit: ばいばい]
auxbuss has joined #ruby
idefine has joined #ruby
blackmes1 has joined #ruby
senayar has joined #ruby
jhack has joined #ruby
crameth has joined #ruby
nicoulaj has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
zacstewart has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
<_orangejuice> I have a Customer class with :name, etc. instance variables and a Order class with :id, :customer_name. How do I let the new_order = Order.new grab the customer from the Customer class?
senayar has quit [Ping timeout: 244 seconds]
<_orangejuice> Usually this is done with foreign keys in a DB. I'm trying to learn by building a standalone ruby program.
dmr8 has joined #ruby
<apeiros> _orangejuice: :foo is a symbol, not an instance variable. @foo is an instance variable.
<_orangejuice> I meant attr_accessor :name, :email
<apeiros> "the customer from the Customer class" makes no sense to me. did you mean the name?
<apeiros> otherwise: Customer.new gives you a customer instance.
zacstewart has quit [Ping timeout: 260 seconds]
<_orangejuice> Yes a reference of the who the customer is for that order.
<apeiros> not sure where the db comes in either - unless you leave out massive amounts of context…
auxbuss has quit [Quit: I'm gone.]
<apeiros> well, you'd probably either pass it in in the constructor, or you'd have an accessor
yos7ph has joined #ruby
<apeiros> class Order; def initialize(customer); @customer = customer; end; end; order = Order.new(Customer.new)
hahuang65 has joined #ruby
<_orangejuice> Thats what I was trying to understand.
Chachi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_orangejuice> That makes sense. For Order.new can I already access instance variables for an existing Customer instance?
<_orangejuice> *from an existing customer instance
<_orangejuice> Sorry If I'm not articulating correctly.
<apeiros> you can access their accessors (methods)
<apeiros> you can't access ivars from "outside" in ruby (which is why you have to define accessors, or write that kind of methods yourself)
stannard has quit [Remote host closed the connection]
<apeiros> nb, `attr_accessor :foo` is equivalent to `def foo; return @foo; end; def foo=(value); @foo = value; end`
yos7ph has quit [Client Quit]
<apeiros> i.e., it just defines two methods for you.
rodferso1 has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
codecop has joined #ruby
bronson has joined #ruby
mariano has joined #ruby
<_orangejuice> Ok. I misunderstood them as variables. That makes sense. So how does one create a bunch of customers (objects). Then later if one wants to create an order from the existing customers.
rodfersou has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
<apeiros> customer = Customer.new; order = Order.new(customer)
<_orangejuice> I understand attr_accessor :name, :email are getter and setter methods
<apeiros> yes, defines #name(), #name=(value), #email and #email=(value) methods which set and read @name and @email
<_orangejuice> That seems straightforward. What memory is that customer stored it? Thats why I bought up databases.
<_orangejuice> Thank you apeiros. I appreciate you mapping your answer to my problem.
bronson has quit [Ping timeout: 252 seconds]
<apeiros> variables are ram
drewo has joined #ruby
<apeiros> if you want to persist the data, you need some kind of serialization in order to store your objects to a file or a db (which in the end will be a file / files too)
bruno- has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
<_orangejuice> I see. Very cool. This makes a lot of sense. So in a typical web form, I'll collect/parse customer data, store it in a local variable, then database. For a order, grab customer data stuff from the database, since my local variables are clueless?
drewo has quit [Ping timeout: 246 seconds]
<apeiros> yes, in a typical web-app you'll use a db for persistency and populate your variables from that and/or from the form input
<_orangejuice> :) Thank you apeiros
duderonomy has joined #ruby
hck89 has joined #ruby
<mariano> hi all. I'm having an odd problem with pry and requiring many files by iterating them. When I start pry and run the require line manually, the require is made correctly. But if i comment out the pry call and just run the code, the require doesn't seem to work. If anyone can give me a hand, i will provide a gist. Thank you all in advance.
senayar has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
Lomex has joined #ruby
<mariano> is it possible that pry is making the require statement work when it normally would not?
tax has joined #ruby
User458764 has joined #ruby
Yiota_ has joined #ruby
User458764 has quit [Client Quit]
kareeoleez has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 276 seconds]
GodFather has joined #ruby
Lomex has quit [Ping timeout: 260 seconds]
sarbs_ has joined #ruby
sarbs has quit [Ping timeout: 252 seconds]
sarbs_ is now known as sarbs
Yiota_ has quit [Client Quit]
kareeoleez has joined #ruby
rafadc has joined #ruby
kareeoleez has quit [Remote host closed the connection]
kareeoleez has joined #ruby
yaw has quit [Read error: Connection reset by peer]
Yiota_ has joined #ruby
LoneHermit has joined #ruby
htmldrum has joined #ruby
karapetyan has joined #ruby
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
rafadc has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
rafadc has joined #ruby
karapetyan has joined #ruby
wldcordeiro has quit [Ping timeout: 252 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
yaw has joined #ruby
LoneHermit has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
hosttor` has quit [Read error: Connection reset by peer]
Caerus|Away has quit [Ping timeout: 276 seconds]
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmes1 has quit [Ping timeout: 260 seconds]
Yiota_ has joined #ruby
fedexo has joined #ruby
Caerus|Away has joined #ruby
GodFather has joined #ruby
the_drow has joined #ruby
felltir has joined #ruby
elifoster has joined #ruby
lukeholder has joined #ruby
wldcordeiro has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<KrzaQ> Is there a way to use the return value of a block in string.scan?
Ishido has joined #ruby
<KrzaQ> 'cruel world 123'.scan(/[a-z]+/){|w| w.reverse }.join(' ') <-- I'd like it to become 'leurc dlrow'
yaw has joined #ruby
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
blur3d has quit [Quit: blur3d]
sepp2k has quit [Ping timeout: 265 seconds]
sepp2k1 has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Quit: Leaving]
nanoz has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
<shevy> hmm
<shevy> was that not the use case of itself or tap or something along those lines?
Yiota_ has joined #ruby
drewo has joined #ruby
htmldrum has quit [Ping timeout: 260 seconds]
krobzaur has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
BTRE has quit [Ping timeout: 260 seconds]
<KrzaQ> I don't understand
lxsameer has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
<KrzaQ> the docs only show examples with printing
haxrbyte has joined #ruby
LoneHerm_ has joined #ruby
<KrzaQ> I have another question, hopefully not stupid: I have a list of filenames, I want only those that exist. I can use the clunky block version, but I'd much rather use .select(&:File.exists?) <-- is there a way to make it work?
P4Titan has joined #ruby
<shevy> not with the & when you require arguments
stannard has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<Ox0dea> KrzaQ: select(&File.method(:exists?))
GodFather has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
<KrzaQ> thanks!
SilverKey has joined #ruby
<Ox0dea> Sure thing.
nerium has joined #ruby
Rodya_ has joined #ruby
<Ox0dea> We might have sugar for that some day: https://bugs.ruby-lang.org/issues/12125
the_drow has quit [Read error: Connection reset by peer]
stannard has quit [Remote host closed the connection]
null__ has quit [*.net *.split]
Nanuq has quit [*.net *.split]
Kim^J has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
ddv has quit [*.net *.split]
stannard has joined #ruby
<KrzaQ> it's already okay :)
null__ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
<KrzaQ> the one thing I find annoying about ruby is |, because editors rarely know to autocomplete it and it's out of the way on the keyboard
<Ox0dea> UltiSnips has a few block snippets; I don't explicitly type | very often.
marsjaninzmarsa has joined #ruby
bronson has joined #ruby
Kim^J has joined #ruby
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* KrzaQ is not a vim user, usually
<Ox0dea> I don't understand.
<KrzaQ> but it lokos nice
* KrzaQ comes from the forbidden windows land, where ST is often used
the_drow has joined #ruby
weemsledeux has joined #ruby
GodFather has joined #ruby
BTRE has joined #ruby
rkazak has joined #ruby
Ocratech has joined #ruby
mdw_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tax has quit [Ping timeout: 260 seconds]
swills_ has joined #ruby
<P4Titan> Hello all. Is there a way of printing an instance class's ID or hash within its code ... for debuging purposes.
SenpaiSilver has joined #ruby
<zacts> hi rubyists
<Ox0dea> &ri object_id P4Titan
<P4Titan> ay, thanks
swills_ has quit [Client Quit]
the_drow has quit [Ping timeout: 252 seconds]
chipotle has quit [Quit: cheerio]
the_drow has joined #ruby
Cohedrin has joined #ruby
Lomex has joined #ruby
pawnbox has quit [Remote host closed the connection]
dikaio has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
nadav has joined #ruby
bruno- has joined #ruby
<shevy> $cover.file=$smallcover.file=$covername=nil
<shevy> I can't decide whether that is deliberate obfuscation or just a weird writing style
krobzaur has quit [Ping timeout: 252 seconds]
johnny56_ has joined #ruby
nando293921 has quit [Remote host closed the connection]
nanoyak has joined #ruby
Vingador has joined #ruby
benlieb has joined #ruby
ffgghhj has joined #ruby
krobzaur has joined #ruby
pawnbox has joined #ruby
krobzaur has left #ruby [#ruby]
johnny56 has quit [Ping timeout: 264 seconds]
rafadc has quit [Remote host closed the connection]
nando293921 has joined #ruby
drewo has quit [Ping timeout: 276 seconds]
Trynemjoel has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
mdw_ has quit [Quit: Sleeping Zzzzz]
pabs has quit [Ping timeout: 260 seconds]
sdothum has quit [Read error: Connection reset by peer]
drewo has joined #ruby
sdothum has joined #ruby
<mariano> hi people. I have this Dir[File.dirname(__FILE__) + '/lib/proxy_finder/specific_parsers/*.rb'].each { |file| require file }
<mariano> is it possible that it only works if i call it from pry?
<mariano> when i run the code without pry, the require isn't made
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
pabs has joined #ruby
drewo has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
<_orangejuice> Syntax help needed initially a class with a hash http://pastie.org/10828232
idletask has joined #ruby
hck89 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_orangejuice> initializing
<Ox0dea> _orangejuice: You have to make them keyword arguments.
the_drow has joined #ruby
P4Titan has left #ruby ["party"]
Coldblackice has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
minimalism has joined #ruby
Rodya_ has quit [Remote host closed the connection]
lkba has quit [Remote host closed the connection]
<_orangejuice> Ox0dea: I tried initialize (args), each block, instance_variable_set k, v.
zacstewart has joined #ruby
<Ox0dea> _orangejuice: Now you should try making `name` and `email` keyword arguments.
drewo has joined #ruby
Ocratech has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
Ocratech has joined #ruby
felltir has quit [Remote host closed the connection]
Vingador has quit [Ping timeout: 246 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has joined #ruby
rafadc has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 250 seconds]
felltir has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
felltir has quit [Client Quit]
Rodya_ has joined #ruby
<shevy> mariano one simple explanation can be that Dir[] there returns an empty array
Nanuq has joined #ruby
cdg has joined #ruby
<mariano> oh yes, but strangely, it doesn't when i run it from the pry session
hahuang65 has joined #ruby
lukeholder has joined #ruby
<mariano> if i copy/paste the line while in the pry session, it returns a list of required files
<mariano> but when i run the whole .rb file it doesn not get executed.
<mariano> really odd
rafadc has joined #ruby
yude_ has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
<shevy> probably because you rely on __FILE__ there
Azure has joined #ruby
yude has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
<shevy> if you have it installed and lay out as a gem-structured project, what I often do is to just ask the project where it is like... if your project is called foobar ... Dir[Foobar.base_dir?+'specific_parsers/*.rb'].each or something like that (when I have such a method
<mariano> oh then maybe when im on pry the base dir changes, so that makes it work!
<_orangejuice> Ox0dea: Tried. I think it works on a regular method not initialize :( http://pastie.org/10828260
<shevy> yeah... I am not sure what path is passed there exactly, but if you supply the proper path it will work
<mariano> is it Foobar.base_dir? or Foobar.base_dir
<mariano> ?
<mariano> i mean, should it return a path name ?
The_Phoenix has quit [Read error: Connection reset by peer]
<mariano> i do have a gem structure
<shevy> well that is just a method that I tend to have for my larger gems
<shevy> you can skip it and just supply the right path :D
<mariano> ooh i see
<mariano> i'll take a look at the gemfile
SilverKey has quit [Quit: Halted.]
<mariano> and make sure that's evaluating to the right path. Now that you say it, it looks like the current dir must change when on pry
<mariano> thanks!
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yaw has quit [Quit: Textual IRC Client: www.textualapp.com]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> _orangejuice: You misspelled `initialize` there.
rafadc has quit [Remote host closed the connection]
mdw has joined #ruby
<_orangejuice> Wow! Thats 2 hours of my life that won't come back. Thanks Ox0dea
<Ox0dea> mariano: Be advised that on 2.0+, you can use Kernel#__dir__ as an easy way to get hold of the directory in which the currently executing file lives.
<Ox0dea> _orangejuice: Use pain as a teacher.
<Ox0dea> Sorry about missing that in your first paste. :/
<_orangejuice> I've been at it for a while. Thanks :((
<_orangejuice> Much before that
<_orangejuice> Thanks for noticing.
rafadc has joined #ruby
<shevy> hah I can relate to it
<shevy> my typo was "def intialize"
dikaio has joined #ruby
tax has joined #ruby
stannard has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
<_orangejuice> :) thanks shevy!
<mariano> thanks Ox0dea!
<Ox0dea> \o/
<Ox0dea> All this gratitude is making me feel tingly.
bronson has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
rashmirathi has joined #ruby
ddv has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
Es0teric has joined #ruby
the_drow has joined #ruby
Caerus|Away has quit [Ping timeout: 250 seconds]
scepticulous has joined #ruby
ftj has joined #ruby
Mia has joined #ruby
nanoyak has quit [Read error: No route to host]
swills has quit [Quit: Leaving]
Caerus|Away has joined #ruby
bronson has joined #ruby
arlek has joined #ruby
Dimik has joined #ruby
spider-mario has quit [Ping timeout: 265 seconds]
spider-mario has joined #ruby
bruno- has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PaulePanter> Hi. wher can I find http://ruby-doc.org/docs/keywords/1.9/Object.html#method-i-rescue for current Ruby versions?
<PaulePanter> *Where
<PaulePanter> I am especially interested in the definition of `rescue`.
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
LoneHerm_ has joined #ruby
drewo has quit [Ping timeout: 250 seconds]
drewo has joined #ruby
nando293921 has quit [Quit: Lost terminal]
araujo has quit [Read error: Connection timed out]
nando293921 has joined #ruby
nofxx has joined #ruby
araujo has joined #ruby
<Ox0dea> `rescue` is a keyword, so it doesn't have a "definition" in the sense you're thinking.
the_drow has quit [Read error: Connection reset by peer]
araujo has quit [Max SendQ exceeded]
rafadc has quit [Remote host closed the connection]
araujo has joined #ruby
rafadc has joined #ruby
<Ox0dea> Here's where the magic happens in the bytecode compiler: https://git.io/vwh0A
cdg has joined #ruby
Yiota_ has joined #ruby
houhoulis has joined #ruby
the_drow has joined #ruby
Lomex has quit [Remote host closed the connection]
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
htmldrum has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
codelurker has joined #ruby
Caerus|Away has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
d0lph1n98 has quit [Ping timeout: 244 seconds]
<PaulePanter> Ox0dea: Thank you.
<Ox0dea> PaulePanter: Sure thing. I suspect I ended up answering a different question than the one you asked, though.
<Ox0dea> This is probably the document you seek: http://ruby-doc.org/core-2.3.1/doc/syntax/exceptions_rdoc.html
elifoster has quit [Quit: going out]
<PaulePanter> … why can’t I find it for Ruby 2.1?
the_drow has joined #ruby
<Ox0dea> ¯\_(ツ)_/¯
yfeldblum has joined #ruby
the_drow has quit [Max SendQ exceeded]
GodFather has joined #ruby
the_drow has joined #ruby
<PaulePanter> Ox0dea: But nice to be pointed to C code. Very interesting.
Rodya_ has joined #ruby
Caerus|Away has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Ocratech has quit [Ping timeout: 240 seconds]
j2k has quit [Quit: bai]
Rodya_ has quit [Ping timeout: 252 seconds]
j2k has joined #ruby
flashpoint9 has joined #ruby
dumdedum has joined #ruby
dumdedum has quit [Client Quit]
joaumg has quit [Quit: WeeChat 0.4.2]
SenpaiSilver has quit [Quit: Leaving]
scepticulous has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 276 seconds]
the_drow has joined #ruby
fedexo has quit [Ping timeout: 250 seconds]
Ocratech has joined #ruby
diegoaguilar has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
mariano has quit [Quit: leaving]
Lomex has joined #ruby
drewo has quit [Ping timeout: 244 seconds]
stannard has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
hack_fish has joined #ruby
drewo has joined #ruby
Gasher has quit [Ping timeout: 246 seconds]
GodFather has quit [Ping timeout: 246 seconds]
Gasher has joined #ruby
Coldblackice has joined #ruby
bronson has quit [Remote host closed the connection]
northrup has joined #ruby
rafadc has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
GinoMan2440 has quit [Ping timeout: 276 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
arlek has quit [Ping timeout: 265 seconds]
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
<zacts> ix
LoneHerm_ has quit [Remote host closed the connection]
justin_pdx has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
nofxx has quit [Ping timeout: 246 seconds]
Coldblackice has joined #ruby
codelurker has quit [Quit: Leaving]
zero7 has joined #ruby
idefine has joined #ruby
Ocratech has quit [Ping timeout: 240 seconds]
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 244 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 246 seconds]
idletask has quit [Remote host closed the connection]
idletask has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
vdamewood has quit [Quit: Life beckons.]
baweaver is now known as baweaver_away
htmldrum has joined #ruby
dumdedum has joined #ruby
idefine has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
dumdedum has quit [Client Quit]
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has joined #ruby
arlek has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
nando293921 has quit [Ping timeout: 252 seconds]
<zacts> (oops... typo)
<zacts> anyway, hello #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<zacts> I'm reading this Head First Ruby book, it's actually not too bad for me
<zacts> I needed to review some basic OOP concepts before the Well Grounded Rubyist
drewo has quit [Ping timeout: 246 seconds]
<zacts> I've been out of the loop a bit
SenpaiSilver has joined #ruby
zacstewart has joined #ruby
rubie has joined #ruby
Yiota_ has joined #ruby
LoneHerm_ has joined #ruby
Cohedrin_ has joined #ruby
<shevy> yo zacts
<shevy> are you sure you haven't yet half-mastered ruby yet with all those books
skade has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
drewo has joined #ruby
Cohedrin has quit [Ping timeout: 244 seconds]
rubie has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
hahuang65 has joined #ruby
goodroot has joined #ruby
idefine has joined #ruby
ctp has joined #ruby
rashmirathi has quit [Remote host closed the connection]
tax has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
Caerus|Away has quit [Ping timeout: 276 seconds]
dikaio has joined #ruby
drewo has quit [Ping timeout: 240 seconds]
Phagus has joined #ruby
SilverKey has quit [Quit: Halted.]
yfeldblum has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
justin_pdx has joined #ruby
Phagus has quit [Client Quit]
nando293921 has joined #ruby
Cohedrin has joined #ruby
SilverKey has joined #ruby
htmldrum has joined #ruby
Cohedrin_ has quit [Ping timeout: 250 seconds]
diegoaguilar has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
early90spants has joined #ruby
the_drow has joined #ruby
rafadc has joined #ruby
bruno- has joined #ruby
<shevy> oh yes
<shevy> you have all waited for it! :)
<adaedra> ugh.
<Ox0dea> Knew that was coming.
<shevy> hahaha
<shevy> <3 reactions
htmldrum has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
skade has quit [Quit: Computer has gone to sleep.]
CausaMortis has joined #ruby
senayar has quit [Remote host closed the connection]
Gasher has quit [Ping timeout: 250 seconds]
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Read error: Connection reset by peer]
rafadc has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
idefine has quit [Remote host closed the connection]
yqt has joined #ruby
Es0teric has joined #ruby
idefine has joined #ruby
Devalo has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
justin_pdx has quit [Quit: justin_pdx]
millerti has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
baweaver_away is now known as baweaver
toretore has quit [Ping timeout: 252 seconds]
azor has quit [Quit: WeeChat 1.4]
justin_pdx has joined #ruby
Regulati_ has joined #ruby
Gasher has joined #ruby
azor has joined #ruby
Lomex has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
skweek has joined #ruby
<shevy> for a (ruby) commandline script, how many help options would you say should be mentioned at maximum when one invokes it via a --help switch?
dionysus69 has quit [Ping timeout: 260 seconds]
azor has quit [Quit: WeeChat 1.4]
arlek has quit [Ping timeout: 244 seconds]
naftilos76 has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
Lomex has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
zacstewart has joined #ruby
Pupeno has quit [Remote host closed the connection]
blackmes1 has joined #ruby
azor has joined #ruby
aeterne has joined #ruby
finisherr has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
htmldrum has joined #ruby
idefine has quit [Remote host closed the connection]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
dikaio has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has joined #ruby
the_drow has joined #ruby
SilverKey has quit [Quit: Halted.]
bruce_lee has quit [Ping timeout: 252 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
Caerus|Away has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
Nahra has quit [Ping timeout: 276 seconds]
jhack has quit [Quit: jhack]
mostlybadfly has quit [Quit: Connection closed for inactivity]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
theery has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
justin_pdx has quit [Quit: justin_pdx]
dikaio has joined #ruby
dmr8 has quit [Quit: Leaving]
iamvery has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
idefine has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 276 seconds]
bluOxigen_ has quit [Ping timeout: 250 seconds]
rafadc has joined #ruby
idefine has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
ramfjord has joined #ruby
the_drow has quit [Ping timeout: 250 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
<zacts> lol
<zacts> shevy: exactly 314159 options
<zacts> anyway, back to #ruby
<zacts> I'm like totally learning ruby man, totally
<zacts> I'll have pastebins in a week or so, and git pushes. I know it
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit []
senayar has quit [Ping timeout: 260 seconds]
<shevy> ya well one project has 87 options... another one has 63 ... and even I forget what some of the options do
<shevy> you learn ruby AND git at the same time?
<zacts> indeed shevy
<zacts> Ry's git tutorial and Pro Git
<zacts> are great ebooks
<zacts> I'm pretty snazzy shevy
millerti has joined #ruby
bobbycvi has joined #ruby
<shevy> I don't know these
chouhoulis has joined #ruby
kareeoleez has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
LoneHermit has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
duderonomy has quit [Ping timeout: 252 seconds]
GinoMan2440 has joined #ruby
Sammichmaker has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
kirun has joined #ruby
<zacts> shevy: Pro Git is the 'official' community git book linked from the official git homepage
<zacts> Ry's git tutorial is just a really good tutorial I found for git
kareeoleez has joined #ruby
CausaMortis has quit [Ping timeout: 260 seconds]
dikaio has quit [Ping timeout: 252 seconds]
scepticulous has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
dumdedum has joined #ruby
baweaver is now known as baweaver_away
terminalrecluse has joined #ruby
the_drow has quit [Ping timeout: 276 seconds]
baweaver_away is now known as baweaver
the_drow has joined #ruby
zacstewart has joined #ruby
the_drow has quit [Max SendQ exceeded]
the_drow has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Azure|dc has joined #ruby
Devalo has joined #ruby
JoshGlzBrk has joined #ruby
Azure has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
weemsledeux has joined #ruby
hahuang65 has joined #ruby
Rodya_ has joined #ruby
JoshGlzBrk has quit [Client Quit]
JoshGlzBrk has joined #ruby
northrup has joined #ruby
millerti has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 276 seconds]
djbkd has joined #ruby
sp4rrow has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
SilverKey has quit [Quit: Halted.]
dumdedum has quit [Quit: foo]
griffindy has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Quit: Client exiting]
brent__ has joined #ruby
gooodroot has joined #ruby
the_drow has joined #ruby
sp4rrow has quit [Ping timeout: 246 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
SilverKey has joined #ruby
kareeoleez has quit [Remote host closed the connection]
<brent__> hello, was given this codwars challenge and pretty lost
goodroot has quit [Ping timeout: 252 seconds]
<brent__> it's the instructions and the 2 lines of code they give you to start
idefine has quit [Remote host closed the connection]
gix has joined #ruby
blackmes1 has joined #ruby
_orangejuice has quit [Quit: Connection closed for inactivity]
sp4rrow has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
d0nn1e has quit [Ping timeout: 276 seconds]
millerti has joined #ruby
d0nn1e has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
drewo has joined #ruby
sepp2k has joined #ruby
nicoulaj has quit [Remote host closed the connection]
rafadc has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
idefine has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
scepticulous has quit [Ping timeout: 246 seconds]
ddffg has joined #ruby
cbetta_ has quit [Read error: Connection reset by peer]
imanc has quit [Read error: Connection reset by peer]
spastorino has quit [Read error: Connection reset by peer]
spastorino has joined #ruby
imanc has joined #ruby
jmhmccr has quit [Read error: Connection reset by peer]
angiebadillo has quit [Read error: Connection reset by peer]
rafadc has quit [Ping timeout: 246 seconds]
iamdevnul has quit [Ping timeout: 250 seconds]
Guest56933 has quit [Ping timeout: 264 seconds]
cbetta_ has joined #ruby
daxroc has quit [Read error: Connection reset by peer]
prab97 has joined #ruby
cbetta_ is now known as cbetta
iamdevnul has joined #ruby
cbetta has quit [Changing host]
cbetta has joined #ruby
cbetta has joined #ruby
angiebadillo has joined #ruby
jmhmccr has joined #ruby
daxroc has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<theery> 0, 0 should be at the top left, not the bottom left
drptbl has joined #ruby
<Ox0dea> &ri global_variables brent__
senayar has quit [Ping timeout: 260 seconds]
C0deMaver1ck has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
C0deMaver1ck is now known as Guest65950
<brent__> Ox0dea: any chance you could explain how that works?, the doc is pretty minimal
<Ox0dea> brent__: It gives you back an Array of Symbols representing all of the global variables in the system.
<Ox0dea> The one you need to solve the kata is hiding in there somewhere.
sp4rrow_ has joined #ruby
ctp has joined #ruby
<brent__> global_variables.grep /wireCode/
gooodroot has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Ping timeout: 246 seconds]
the_drow has joined #ruby
<Ox0dea> Not quite.
<Ox0dea> Debug-print the result and scan around a bit.
kareeoleez has joined #ruby
millerti has joined #ruby
<brent__> i'm seeing $boom2 and $wireCode that stand out
<Ox0dea> $wireCode is just the one they pre-declared for whatever reason.
ta_ has quit [Read error: Connection reset by peer]
<Ox0dea> You don't need it, and it certainly didn't need to be a global.
ta_ has joined #ruby
theery has quit []
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<brent__> right, looking at the $vars it gives, wondering which one is needed
nerium has quit [Quit: nerium]
chouhoulis has quit [Remote host closed the connection]
<Ox0dea> Why?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yude_ has quit [Read error: Connection timed out]
djbkd has quit [Remote host closed the connection]
last_staff has quit [Quit: aaanyways~ - I'm going to bed]
prab97 has left #ruby ["WeeChat 1.5"]
crameth has quit [Quit: crameth]
ddffg has quit [Ping timeout: 252 seconds]
ffgghhj has quit [Ping timeout: 252 seconds]
Azure|dc is now known as Azure
the_drow has quit [Quit: This computer has gone to sleep]
n_blownapart has joined #ruby
yude has joined #ruby
<brent__> Ox0dea: https://gist.github.com/brentluna/10568af4933102e794d41ff7249304ef here's what global variables gives me
<Ox0dea> brent__: It used to be $boom2; now it's $boom6.
<Ox0dea> Mystery solved.
<brent__> when i use $SAFE, it passes the first test and fails
rbennacer has quit [Remote host closed the connection]
<Ox0dea> ?!
<brent__> the 2nd
<Ox0dea> brent__: Maybe step away from the keyboard a bit.
<Ox0dea> Clear your head.
johnny56 has joined #ruby
<brent__> lol
Pupeno has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has left #ruby [#ruby]
<Ox0dea> I realize that $SAFE is a vaguely relevant identifier here, but it's pretty obvious that $boom<x> is the one you're after.
<brent__> yeah that was my initial though
<brent__> since it's changing
<brent__> however it failed all the tests
<Ox0dea> You have to extract the value stored in the global.
<Ox0dea> The answer won't be 2; it'll be whatever's in $boom2.
<brent__> i understand that
nando293921 has quit [Ping timeout: 276 seconds]
johnny56_ has quit [Ping timeout: 264 seconds]
UserInNeed is now known as [-__-]
moeabdol has joined #ruby
<brent__> had to learn eval
chouhoulis has joined #ruby
Pupeno has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
zenlot has joined #ruby
<brent__> i was using global_variables.grep/boom/ to find it and then pass it, but didn't realize i was passing it as a symbol the firs ttime
<Ox0dea> Ah, right.
<Ox0dea> There really ought to be Kernel#global_variable_get.
ur5us has joined #ruby
zenlot6 has quit [Ping timeout: 246 seconds]
Rodya_ has joined #ruby
SilverKey has quit [Quit: Halted.]
Pupeno has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
kareeoleez has quit [Remote host closed the connection]
<brent__> is there another way to have turned that symbol into a it's var name, or extract the value from ti?
<brent__> x = global_variables.grep /boom/ $wireCode = eval(x.first.to_s) is what i did
chouhoulis has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
CloCkWeRX has joined #ruby
ddffg has joined #ruby
Devalo has joined #ruby
<Ox0dea> None of which I'm aware. I suspect you could use Fiddle to get a pointer into the global variable table and seek around for the matching VALUE, but that's overkill.
Rodya_ has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 264 seconds]
skweek has joined #ruby
idefine has quit [Remote host closed the connection]
johnny56 has quit [Read error: Connection reset by peer]
rubie has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
choke has joined #ruby
johnny56 has joined #ruby
Rodya_ has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
rubie has quit [Ping timeout: 252 seconds]
codecop has quit [Remote host closed the connection]
<brent__> well thanks for your help Ox0dea, must of thought iw as crazy not trying boom
<Ox0dea> brent__: Only for a second or two. :P
<Ox0dea> (Okay, ten-ish.)
Jackneill has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Read error: No route to host]
Rodya_ has joined #ruby
blackmes1 has joined #ruby
rafadc has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<brent__> lol
<Ox0dea> At any rate, treat that kata as having taught you some things to never do. :P
<brent__> uggh, been struggling w/ some of the 3/4 kyu katas
Rodya_ has quit [Remote host closed the connection]
senayar has joined #ruby
rafadc has quit [Ping timeout: 252 seconds]
nando293921 has joined #ruby
<brent__> Ox0dea: what is your favorite place for practice problems?
blackmes1 has quit [Ping timeout: 246 seconds]
<Ox0dea> brent__: I enjoyed Ruby Quiz when it was a thing.
hahuang65 has joined #ruby
duncannz has joined #ruby
senayar has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
houhoulis has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
houhoulis has joined #ruby
houhouli_ has joined #ruby
spider-mario has quit [Remote host closed the connection]
houhouli_ has quit [Remote host closed the connection]
rafadc has joined #ruby
houhouli_ has joined #ruby
<brent__> what about now?
millerti has joined #ruby
houhoulis has quit [Ping timeout: 265 seconds]
houhoulis has joined #ruby
_blizzy_ has joined #ruby
<Ox0dea> I had ~120 Project Euler solutions, but then they went down for a while and I forgot my credentials.
flashpoint9 has joined #ruby
_blizzy_ has quit [Remote host closed the connection]
<brent__> can you see other peoples solutions on project eueler?
<Ox0dea> If they post them in the forum, sure.
choke has quit [Ping timeout: 276 seconds]
firstdayonthejob has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
houhouli_ has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gchaos has quit [Ping timeout: 260 seconds]
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
prab97 has joined #ruby
gchaos has joined #ruby
stardiviner has joined #ruby
ledestin has joined #ruby
sp4rrow_ has quit [Ping timeout: 260 seconds]
sp4rrow has joined #ruby
solocshaw has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
sp4rrow has quit [Client Quit]
flashpoint9 has joined #ruby
yude has quit [Read error: Connection timed out]
biberu has quit [Read error: Connection reset by peer]
millerti has joined #ruby
rbennacer has joined #ruby
yude has joined #ruby
yude has quit [Max SendQ exceeded]
SilverKey has quit [Remote host closed the connection]
SilverKey has joined #ruby
pibby has quit [Quit: leaving]
dsuper7 has joined #ruby
Ebok has joined #ruby
kirun has quit [Quit: Client exiting]
rbennacer has quit [Remote host closed the connection]
Gasher has quit [Quit: Leaving]
dsuper7 has quit [Client Quit]
n_blownapart has quit []
kam270 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
serp3nt has joined #ruby
stannard has joined #ruby