havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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
jrabe has quit []
Cohedrin_ has joined #ruby
jrabe has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
nickjj has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Technodrome has joined #ruby
QualityAddict has joined #ruby
pilne has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
phlebas_ has quit [Ping timeout: 260 seconds]
lagweezle is now known as lagweezle_away
ramfjord has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nickjj has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fizzycola> baweaver: because Module#===
<fizzycola> same as kind_of?
<fizzycola> and important, because BasicObject#kind_of? doesn't exist.
<fizzycola> so if you want to know if.. foo is_a? BasicObject, then BasicObject === foo.
_sfiguser has quit [Quit: Leaving]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fizzycola> i prefer Module#=== over is_a? for this reason.
jenrzzz has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has joined #ruby
thejamespinto has quit []
nickjj has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
workmad3 has joined #ruby
marr has quit [Ping timeout: 240 seconds]
swirlsMD has quit [Ping timeout: 240 seconds]
nickjj has joined #ruby
QualityAddict is now known as Guest68997
qualityaddict has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
<havenwood> >> ObjectSpace.each_object.all? { |obj| BasicObject === obj }
<havenwood> fizzycola: What's not a BasicObject?
<ruby[bot]> havenwood: # => true (https://eval.in/881842)
<fizzycola> havenwood: in sense if you have: a = BasicObject.new; a.is_a?(BasicObject)
<havenwood> #instance_of?
<fizzycola> doesn't cut it
<fizzycola> class Foo < BasicObject; end
<fizzycola> now what?
<havenwood> right, just pseudocode nit
<fizzycola> sure
<havenwood> But... why? Show me something that isn't.
<havenwood> I get it doesn't play nice, but why?
<fizzycola> problem in repl's.
<havenwood> ah
<fizzycola> you cannot rely on 'a' having is_a?
<havenwood> gotcha
pwnd_nsfw has joined #ruby
<havenwood> fizzycola: I guess BasicObject is just too primitive for the REPL use in question.
<havenwood> It's not an object-proper. It's too basic.
<havenwood> fizzycola: BasicObject is really, really basic.
<fizzycola> yeah. "sure" wasn't meant to be snarky btw. it was "sure valid". but sometimes you need to say "give me anything, and tell me if it is a anything".
<havenwood> fizzycola: Yeah, totally fair. BasicObject was added later as a primordial primitive.
<fizzycola> yep.
gizmore|2 has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
gizmore has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
apparition has joined #ruby
dinfuehr has quit [Ping timeout: 246 seconds]
yCrazyEdd has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
loxxibot has joined #ruby
dinfuehr has joined #ruby
loxxibot is now known as Intaler
jphase has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
Intaler has quit [Client Quit]
enterprisey has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
imode has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has joined #ruby
ule has quit [Quit: reboot]
orbyt_ has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
jameser has joined #ruby
CrazyEddy has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has joined #ruby
enterprisey has quit [Remote host closed the connection]
qualityaddict has quit [Quit: Leaving]
Guest68997 has quit [Remote host closed the connection]
enterprisey has joined #ruby
alnewkirk has joined #ruby
cschneid_ has joined #ruby
dkam has quit [Quit: Be back later ...]
dkam has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dkam_ has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
Freshnuts has joined #ruby
mim1k has joined #ruby
d^sh has joined #ruby
dkam has quit [Read error: Connection reset by peer]
badrsahla has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 240 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
duderonomy has joined #ruby
dkam__ has joined #ruby
John__ has quit [Read error: Connection reset by peer]
mson has joined #ruby
dkam_ has quit [Read error: Connection reset by peer]
duper has joined #ruby
alnewkirk has joined #ruby
Cohedrin_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
alnewkirk has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
badrsahla has joined #ruby
elcontrastador has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Remote host closed the connection]
alnewkirk has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
tenakoe has joined #ruby
Technodrome has joined #ruby
dc3 has quit [Ping timeout: 240 seconds]
gusrub has quit []
tenakoe has quit [Client Quit]
cschneid_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 252 seconds]
alnewkirk has joined #ruby
zapata has quit [Ping timeout: 255 seconds]
mjolnird has quit [Quit: Leaving]
Ropeney has joined #ruby
alnewkirk has quit [Ping timeout: 260 seconds]
fullstack has quit [Ping timeout: 240 seconds]
badrsahla has joined #ruby
CrazyEddy has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
fullstack has joined #ruby
CrazyEddy has joined #ruby
badrsahla has quit [Ping timeout: 255 seconds]
zapata has joined #ruby
workmad3 has joined #ruby
jrafanie has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
swirlsMD has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
jrafanie has quit [Client Quit]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
ap4y has joined #ruby
knight33 has joined #ruby
swirlsMD has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jenrzzz_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz_ has quit [Ping timeout: 240 seconds]
whippythellama has quit [Ping timeout: 255 seconds]
uZiel has joined #ruby
orbyt_ has joined #ruby
badrsahla has joined #ruby
swirlsMD has joined #ruby
whippythellama has joined #ruby
swirlsMD has quit [Read error: Connection reset by peer]
jgt has joined #ruby
badrsahla has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
elcontrastador has quit [Ping timeout: 252 seconds]
stilbruch has joined #ruby
lektrik has joined #ruby
rhyselsmore has joined #ruby
alnewkirk has joined #ruby
CrazyEddy has quit [Ping timeout: 248 seconds]
ek926m has joined #ruby
DEac- has quit [Ping timeout: 240 seconds]
RushPL has quit [Ping timeout: 255 seconds]
ablackack has quit [Ping timeout: 276 seconds]
contradictioned_ has quit [Ping timeout: 264 seconds]
S007 has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
gix has quit [Ping timeout: 240 seconds]
dc3 has joined #ruby
ek926m has quit [Ping timeout: 260 seconds]
ablackack has joined #ruby
RushPL has joined #ruby
contradictioned has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
gix has joined #ruby
ramfjord has joined #ruby
DEac- has joined #ruby
mim1k has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 240 seconds]
helapu has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
code_zombie has quit [Ping timeout: 252 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
moei has joined #ruby
__Yiota has joined #ruby
pilne has quit [Quit: Quitting!]
impermanence has joined #ruby
<impermanence> silly question. If I'm using bundler...does that I mean I can forego "requires" in my code?
<impermanence> seems like not
mson has quit [Quit: Connection closed for inactivity]
badrsahla has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> impermanence: nope
<impermanence> havenwood: k.
__Yiota has quit [Client Quit]
<havenwood> impermanence: Rails gets some autorequire with: Bundler.require(*Rails.groups)
<havenwood> It's best practice to just `require` when applicable at the top of your files.
<basket> impermanence: Bundler helps make sure that whatever gems you want to use are installed where your app can find them, for example if you wanted to install it on another computer. It's still up to your app code to actually load them.
<impermanence> ah, I see. makes sense.
badrsahla has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
Kuukunen has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
cdg has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dkam__ has quit [Quit: Be back later ...]
whippythellama has quit [Ping timeout: 246 seconds]
dc3 has quit [Ping timeout: 252 seconds]
dkam__ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
dkam__ has quit [Read error: Connection reset by peer]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
Kuukunen has joined #ruby
jamesaxl has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
helapu has quit [Remote host closed the connection]
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
lockdown has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
jphase has quit [Remote host closed the connection]
nopoliti1 has joined #ruby
jphase has joined #ruby
whippythellama has joined #ruby
mim1k has joined #ruby
enterprisey has quit [Remote host closed the connection]
ledestin has joined #ruby
nopoliti1 has quit [Client Quit]
nopoliti1 has joined #ruby
nopolitica has quit [Ping timeout: 240 seconds]
lockdown has quit [Quit: leaving]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
jphase has quit [Ping timeout: 252 seconds]
badrsahla has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Remote host closed the connection]
badrsahla has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
jgt has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
mgorbach has quit [Ping timeout: 255 seconds]
xuanrui has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
nopoliti1 has quit [Ping timeout: 258 seconds]
mgorbach has joined #ruby
jaruga has joined #ruby
enterprisey has joined #ruby
govg has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jamesaxl has joined #ruby
alex`` has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
badrsahla has joined #ruby
cschneid_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 246 seconds]
cschneid_ has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
uneeb has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
fullstack has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
CrazyEddy has joined #ruby
dc3 has joined #ruby
orbyt_ has joined #ruby
anisha has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
dn` has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
tvw has joined #ruby
jaruga has quit [Quit: jaruga]
jaruga has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
cschneid_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 252 seconds]
b100s has joined #ruby
<b100s> hi2all; what is :foo is? where i can get brief info about it?
<b100s> kind of constant?
djbkd has quit [Remote host closed the connection]
SeepingN has joined #ruby
conta has joined #ruby
djbkd has joined #ruby
mjolnird has joined #ruby
<basket> b100s: It's a symbol; a kind of constant, yes
uZiel has quit [Remote host closed the connection]
Bock has joined #ruby
jgt has joined #ruby
uZiel has joined #ruby
megamos has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
<b100s> basket, are there some doc with usefull usecases of symbols?
Qiong``` is now known as Qiong
dionysus69 has joined #ruby
Dimik has joined #ruby
cschneid_ has joined #ruby
<basket> b100s: I'm not sure of one offhand. They're useful whenever you need a constant 'tag' for something. Like you might have a Card class and create an instance like Card.new(rank: :queen, suit: :clubs). That actually uses four symbols, :rank, :ace, :suit, and :clubs. 'x: 1' in a hash means ':x => 1', they're very commonly used as hash keys so they even got special syntax
lacour has quit [Quit: Leaving]
dc3 has quit [Ping timeout: 255 seconds]
badrsahla has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
<b100s> basket, thank you
<basket> b100s: They're also used for 'names' of things in Ruby, like for example when you say 'attr_accessor :x', you use a symbol for the name x, or if you wanted to know if you could call f on some object o, you would do o.respond_to?(:f)
arvindsaik has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
gil_ has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
rhyselsmore has joined #ruby
arvindsaik has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
gil_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<baweaver> b100s / basket: Think of them as code-only labels
<b100s> baweaver, do you have link to good article axplaining it with good usefull examples?
<baweaver> I'll see if I can find one
<baweaver> If not I'll just write one
<baweaver> You could also think of them as just values like integers: 1, 2, 3
<baweaver> It just _is_, and doesn't need to be instantiated
<baweaver> Though the secret is that pretty well every single place you use a symbol you could use a string
<dminuoso> baweaver: Regarding your question about Array#===, is it possible that #include? is not the only reasonable thing to do?
<baweaver> Honestly most of us do it for saving a few characters
<baweaver> dminuoso: Considering the way all the other ===s work, it kinda is the only reasonable thing
<dminuoso> baweaver: But isn't #| also a reasonable implementation?
<baweaver> Consider: range#=== (include?) : Proc#=== (call, or map -> domain member) : IPAddr#=== (includes?) : String#=== (is_a?)
<baweaver> All of which denote membership of a set, domain, or category
<dminuoso> baweaver: That's my point. For an orderet set, "being a subset of" is the more general notion than "is element of". You could argue that "is element of" is the same as "the singleton set containing `e` is subset of"
<baweaver> ok, fork it
<baweaver> Array#=== : if v.is_a?(Array) self | other else self.include?(other)
<dminuoso> You just made me click `fork` on github :|
<baweaver> conditional fork
<dminuoso> Heh.
<baweaver> Oh! Oh!
<baweaver> Remember Proc#=== ?
<baweaver> ...and how case uses it in the background?
basket has quit [Read error: Connection reset by peer]
<baweaver> ...and how Ruby Ramda is a thing? https://github.com/lazebny/ramda-ruby
<dminuoso> baweaver: well for Proc#=== its just assuming that the proc is a predicate right?
<baweaver> Mapping from A to B, but not the point of that statement
<baweaver> You can use Ramda in Ruby Case statements to do some pretty interesting things
<baweaver> ...or put it in a query method abusing ===
arquebus has joined #ruby
<matthewd> Yeah, I like the integer comparison... 100 : "100" :: :foo : "foo"
ferr has joined #ruby
Bish has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
Bish has joined #ruby
cschneid_ has joined #ruby
neuraload has joined #ruby
basket has joined #ruby
linduxed has quit [Ping timeout: 248 seconds]
hs366 has joined #ruby
megamos has quit [Ping timeout: 255 seconds]
<fizzycola> oh in that case Array#=== makes sense. i had the logic backwards anyway. it makes no difference for Module#===.
cschneid_ has quit [Ping timeout: 252 seconds]
<dminuoso> baweaver: In the end Im starting to dislike this magic of #=== because it has no specific notion attached to it.
<fizzycola> Keep Ruby Weird.
<fizzycola> to_proc is also strange.
mtkd has quit [Read error: Connection reset by peer]
<matthewd> "matches in a case-like way"
mtkd has joined #ruby
<dminuoso> matthewd: And that's very non-specific. I mean if case allowed me to actually pick the method being used, such as: case a, :include? -> then it would feel cleaner.
<matthewd> I think I could mount a defensible argument that Array#===(v) should be `any? {|el| el === v }`
<fizzycola> that'd be cool, but case is a keyword - so probablly.. case a :include?
kernelPaniq has joined #ruby
<dminuoso> fizzycola: It could even use #to_proc, allowing you to stuff an arbitrary lambda in there.
kernelPaniq has quit [Remote host closed the connection]
* baweaver whistles innocently
kernelPaniq has joined #ruby
<matthewd> dminuoso: I won't disagree... occasionally I'd really like to be able to use case with ==, e.g. when deciding between classes. But at a certain point the visual complexity looks very close to "just use `if`"
ur5us has joined #ruby
<baweaver> It uses Procs
<baweaver> and what do Procs respond to?
<fizzycola> sounds like a syntax cluster fuck to support optional arg to case
<fizzycola> case when then end
rajno has joined #ruby
<fizzycola> case a :foo when then end
<fizzycola> dunno
<fizzycola> not that bad visually
<matthewd> fizzycola: Yes, it's impossible
arquebus has quit [Quit: Konversation disconnected]
<fizzycola> too bad. it'd be nice.
<fizzycola> but then. rust-like match would be nicer if you go that far.
Bish has quit [Ping timeout: 248 seconds]
claudiuinberlin has joined #ruby
<matthewd> I take that back.. you could probably do `case == in expr; when .. etc`
<fizzycola> really like that lang
Bish has joined #ruby
cschneid_ has joined #ruby
imode has quit [Ping timeout: 248 seconds]
<fizzycola> nice
<fizzycola> looks good
sysvalve has joined #ruby
simmaniac has joined #ruby
badrsahla has joined #ruby
agimenez has joined #ruby
<matthewd> I'm not sure `in` makes a *lot* of sense, but there aren't exactly a plethora of keywords to choose from
TomyWork has joined #ruby
CrazyEddy has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
simmaniac has quit [Ping timeout: 248 seconds]
sysvalve has quit [Ping timeout: 248 seconds]
agimenez has quit [Client Quit]
badrsahla has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
ana_ has joined #ruby
milardovich has joined #ruby
<fizzycola> not sure. i like it.
<fizzycola> but just.. def foo.===(other); end.
<fizzycola> if you really want to
jenrzzz has quit [Ping timeout: 240 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fizzycola> baweaver: rescue keyword uses it too
<fizzycola> exceptional ruby mentions it
<dminuoso> matthewd: Oh yeah, I'd love to see ruby picking a new keyword `in`. Im sure there's only a handful of gems that use identifiers such as `in`/`out` :o
mark_66 has joined #ruby
<dminuoso> 09:05 matthewd | I think I could mount a defensible argument that Array#===(v) should be `any? {|el| el === v }`
<dminuoso> matthewd: What exactly is your line of reasoning?
<dminuoso> Why would it be any? rather than all?
<dminuoso> Interestingly Ox0dea pushed for any?/all? actually accepting a non-proc argument, which would do that exactly.
<dminuoso> So you could do: ary.all?(Integer) for example
<basket> dminuoso: in is already a keyword
<dminuoso> o.o
<dminuoso> oh, for/in
workmad3 has joined #ruby
S007 has joined #ruby
<matthewd> dminuoso: hah, if I was picking a word, it would've been a better fit for the purpose :P
<matthewd> dminuoso: `when a, b` == [a,b].any?.
<fizzycola> dminuoso: you seem a bit unhappy with ruby cos most the time your reasoning seems to be based around 'i wish ruby was more like X' (usually elixir)
alfiemax has joined #ruby
<fizzycola> or haskell
<fizzycola> but ruby is ruby
quobo has joined #ruby
<fizzycola> some things in ruby are just awesome. especially that you can go anything at runtime (almost i guess) with no boundaries or rules.
<fizzycola> do*
workmad3 has quit [Ping timeout: 248 seconds]
aclark has quit [Quit: Ping timeout (120 seconds)]
<fizzycola> no pun intended
TheMoonMaster has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
<fizzycola> the closer to haskell or elixir you go, the less of that is true, and that's not good imo
guille-moe has joined #ruby
Muz has quit [Ping timeout: 260 seconds]
Muz has joined #ruby
<fizzycola> so borrowed ideas adapted to the ruby model are best i think
<dminuoso> fizzycola: The thing you get to realize when you work in an ML influenced language, is how non-intrusive static typing can be. In fact I would argue, that type correctness is something you implicitly assume anyway.
jgt has quit [Ping timeout: 240 seconds]
<dminuoso> fizzycola: Ruby has lots of neat ideas, but when you dig deep enough, the language has some really bizarre quirks.
<fizzycola> won't ruby3 have that optionally
<dminuoso> I mean just take super/super() for example.
<fizzycola> static types
<fizzycola> sure. full of them. full of bizarre quirks
<fizzycola> that's where 'Keep Ruby Weird' came from, i thought
FooMunki has quit [Quit: FooMunki]
TheMoonMaster has joined #ruby
cschneid_ has joined #ruby
<fizzycola> prob less than perl tho =]
guardianx has joined #ruby
jaruga has quit [Quit: jaruga]
cschneid_ has quit [Ping timeout: 258 seconds]
alfiemax has quit [Remote host closed the connection]
badrsahla has joined #ruby
rhyselsmore has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has quit [Ping timeout: 255 seconds]
Immune has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
Burgestrand has joined #ruby
jidar has quit [Quit: WeeChat 1.9.1]
sysvalve has joined #ruby
neuraload has quit [Read error: Connection reset by peer]
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
cdg has quit [Read error: Connection reset by peer]
neuraload has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jolamb has quit [Ping timeout: 240 seconds]
theRoUS has joined #ruby
Silthias1 has joined #ruby
Qiong has quit [Ping timeout: 252 seconds]
jolamb has joined #ruby
Silthias2 has joined #ruby
foxxx0 has quit [Quit: WeeChat 1.9.1]
Silthias has quit [Ping timeout: 255 seconds]
Silthias1 has quit [Ping timeout: 240 seconds]
uneeb has quit [Read error: Connection reset by peer]
Qiong` has joined #ruby
ferr has quit [Quit: WeeChat 1.9.1]
uneeb has joined #ruby
mim1k has joined #ruby
foxxx0 has joined #ruby
claudiuinberlin has joined #ruby
FooMunki has joined #ruby
FooMunki has quit [Client Quit]
Mia has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
bronson_ has joined #ruby
fumck has joined #ruby
sunrunner20_ has joined #ruby
Cyrus1 has joined #ruby
agit0 has joined #ruby
b10s_ has joined #ruby
b10s_ has left #ruby [#ruby]
ironcame1 has joined #ruby
ammar_ has joined #ruby
techn1cs_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
b100s has quit [Read error: Connection reset by peer]
aufi_ has joined #ruby
bigkevmcd has joined #ruby
Zarthus_ has joined #ruby
WebDawgII has joined #ruby
kitallisii has joined #ruby
gf3_ has joined #ruby
TvL2386_ has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
biox_ has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
fumk has quit [Read error: Connection reset by peer]
sunrunner20 has quit [Read error: Connection reset by peer]
bronson has quit [Read error: Connection reset by peer]
Cyrus has quit [Read error: Connection reset by peer]
WebDawg has quit [Ping timeout: 248 seconds]
ujjain has quit [Ping timeout: 248 seconds]
Exagone313 has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Quit: ZNC 1.7.x-nightly-20170908-e86efb08 - https://znc.in]
Lyubo1 has quit [Ping timeout: 248 seconds]
SCHAPiE has quit [Ping timeout: 248 seconds]
irick has quit [Ping timeout: 248 seconds]
gf3 has quit [Ping timeout: 248 seconds]
Zarthus has quit [Ping timeout: 248 seconds]
jnollette has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
irick has joined #ruby
ineb has quit [Ping timeout: 248 seconds]
cgfbee has quit [Ping timeout: 248 seconds]
TvL2386 has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 248 seconds]
ap4y has quit [Ping timeout: 248 seconds]
bauruine has quit [Ping timeout: 248 seconds]
ammar has quit [Ping timeout: 248 seconds]
mattp_ has quit [Ping timeout: 248 seconds]
techn1cs has quit [Ping timeout: 248 seconds]
bitemyapp has quit [Ping timeout: 248 seconds]
ironcamel has quit [Ping timeout: 248 seconds]
kitallis has quit [Ping timeout: 248 seconds]
biox has quit [Ping timeout: 248 seconds]
jan4 has quit [Ping timeout: 248 seconds]
jnollette has joined #ruby
bitemyapp has joined #ruby
ineb has joined #ruby
uneeb has quit [Ping timeout: 248 seconds]
Zarthus_ is now known as Zarthus
kitallisii is now known as kitallis
jnollette has quit [Changing host]
jnollette has joined #ruby
sunrunner20_ is now known as sunrunner20
gf3_ is now known as gf3
mattp_ has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
Exagone313 has joined #ruby
cgfbee has joined #ruby
workmad3 has joined #ruby
SCHAPiE has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
bauruine has joined #ruby
cschneid_ has joined #ruby
baweaver has joined #ruby
baweaver is now known as Guest66309
milardovich has quit [Remote host closed the connection]
Tempesta has quit [Quit: See ya!]
fullstack has quit [Ping timeout: 255 seconds]
Papierkorb has quit [Ping timeout: 255 seconds]
bigkevmcd has quit [Ping timeout: 246 seconds]
mtkd has quit [Ping timeout: 246 seconds]
jaruga has joined #ruby
rcs has quit [Ping timeout: 255 seconds]
ErhardtMundt has quit [Ping timeout: 255 seconds]
fullstack has joined #ruby
bigkevmcd has joined #ruby
Papierkorb has joined #ruby
mtkd has joined #ruby
ErhardtMundt has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
nikivi has quit [Ping timeout: 255 seconds]
rcs has joined #ruby
rgr has joined #ruby
Tempesta has joined #ruby
guardianxx has joined #ruby
nikivi has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
alnewkirk has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Quit: dionysus69]
lxsameer has joined #ruby
dionysus69 has joined #ruby
jan4 has joined #ruby
mkroman has joined #ruby
bruno- has joined #ruby
Pierreb|home has joined #ruby
cdg has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
cdg has joined #ruby
ap4y has joined #ruby
cschneid_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
Pierreb has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
biberu has joined #ruby
InfinityFye has joined #ruby
guardianxx has quit [Remote host closed the connection]
guardianxx has joined #ruby
cschneid_ has joined #ruby
impermanence has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
impermanence has quit [Client Quit]
cschneid_ has quit [Ping timeout: 255 seconds]
bw__ has quit [Ping timeout: 260 seconds]
ams__ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Read error: No route to host]
ur5us_ has joined #ruby
konos5 has joined #ruby
konos5 has quit [Client Quit]
cschneid_ has quit [Ping timeout: 258 seconds]
konos5 has joined #ruby
<Bish> dminuoso: we will see wen i learned some of that shit (regarding fpure programming)
alfiemax has joined #ruby
<konos5> Hi, I'am wondering how is it possible that methods defined inside Kernel module as available as Object class methods.
<dminuoso> Bish: https://www.youtube.com/watch?v=h_tkIpwbsxY is a great introduction :D
workmad3 has quit [Read error: Connection reset by peer]
CrazyEddy has joined #ruby
n13z has joined #ruby
<dminuoso> konos5: It's got to do with the ancestory.
<dminuoso> >> Object.ancestors
<ruby[bot]> dminuoso: # => [Object, Kernel, BasicObject] (https://eval.in/882044)
<dminuoso> konos5: I believe the utility comes from the fact that at top level, the receiver is a special "top-level" object of type Object.
workmad3 has joined #ruby
<dminuoso> konos5: so when you do something like `puts "Foo"`, that method puts needs to be in the ancestory of that top-level objects class.
<dminuoso> >> self.class
<ruby[bot]> dminuoso: # => Object (https://eval.in/882045)
<dminuoso> >> self.class.ancestors
<ruby[bot]> dminuoso: # => [Object, Kernel, BasicObject] (https://eval.in/882046)
n13z has quit [Client Quit]
<dminuoso> So in effect, `puts "Foo"` is equivalent to `self.puts "Foo"`, self being the `main` object, an object of class Object.
alfiemax has quit [Ping timeout: 260 seconds]
<konos5> Since Object includes which makes sense since main is an instance of Object
<dminuoso> Exactly.
<konos5> sorry I meant it makes sense since main is an instance
<dminuoso> I gathered as much. ;-)
<konos5> However Object is not and shouldn't be used as a class method
<konos5> only by its instances
<dminuoso> konos5: technically Ruby has no class methods in that sense.
<konos5> singleton class then
duckpuppy has joined #ruby
<konos5> in order to do Object.say_hello, say_hello should be defined in #Object
<dminuoso> If by #Object you mean Object.singleton_class, then yes.
<konos5> yes that's what I mean
<dminuoso> Or Object.class ;-)
<dminuoso> But in most cases that is too general.
<konos5> exactly
<konos5> but Object just includes Kernel
<konos5> it doesn't extend it...
<konos5> thus only Object instances should get the method
<matthewd> konos5: Object is an instance of Class, which inherits Object, which includes Kernel
<konos5> not Object itself...
<Burgestrand> >> self.class.class.ancestors
<ruby[bot]> Burgestrand: # => [Class, Module, Object, Kernel, BasicObject] (https://eval.in/882047)
<dminuoso> konos5: Yes.
<Bish> dminuoso: the, fuck
<Bish> how is js pure :D
<dminuoso> konos5: Note that this diagram only considers real honest classes, modules are injected in between - so Kernel appears between Object and BasicObject.
<dminuoso> Bish: By carefully picking functions and relying on a support library like Ramda.
<dminuoso> konos5: As you can see the super of Module is Object.
<konos5> omg, self-referencial logic
<konos5> I think matthewd's comment helped clean the air
n13z has joined #ruby
<konos5> dminuoso thanks I think I get it now
Serpent7776 has joined #ruby
tastytf has joined #ruby
<matthewd> IIRC, https://engineers.sg/video/all-i-d-wanted-to-know-about-ruby-s-object-model-starting-out-and-mooar-reddotrubyconf-2017--1831 is a good 30 minute version of that sentence / diagram, if you'd like a bit more depth
<konos5> Object, at any given time seems to have a dual role; instance of Class (which inherits from Object) and simple Object just including Kernel
<dminuoso> konos5: If you think about it makes sense. Anything is an object, a class too.
<dminuoso> konos5: Or my way of phrasing: Anything you can call a method on, is an object.
bvcosta has joined #ruby
<dminuoso> And if its an object, it implies its class must have Object in its ancestory.
<konos5> Thanks for all the help! Cheers!
<matthewd> I should note I skipped Module in there -- Class inherits Module inherits Object
uZiel has quit [Ping timeout: 248 seconds]
<matthewd> Singleton classes and module-inclusions start to get deeper, but you can form a pretty coherent mental model with just that loop
<dminuoso> matthewd: I often tell people that modules are just classes (in disguise). :)
jameser has joined #ruby
<dminuoso> But that requires understanding that include/prepend is just inserting that RClass into the super chain at certain points.
<matthewd> s/that/a new/
cdg has quit [Remote host closed the connection]
<matthewd> Oops, that replaces the wrong 'that'.. but you know what I meant :P
<Bish> dminuoso: a language should have those features natively or not at all imo
<dminuoso> Actually I'm still playing manual sed :D
lxsameer has quit [Quit: WeeChat 1.7]
cschneid_ has joined #ruby
<Bish> if thousands Ramda or Rs "decorate" the code it will make it worse. if u ask me
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
matcouto has joined #ruby
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
mim1k_ has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Remote host closed the connection]
bvcosta has quit [Remote host closed the connection]
kapil___ has joined #ruby
bvcosta has joined #ruby
n13z has left #ruby [#ruby]
ur5us_ has quit [Ping timeout: 260 seconds]
stan_ has quit [Ping timeout: 246 seconds]
guardianxx has quit [Read error: Connection reset by peer]
guardianxx has joined #ruby
alnewkirk has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
bvcosta_ has joined #ruby
bvcosta has quit [Read error: Connection reset by peer]
uZiel has joined #ruby
Burgestrand has quit [Quit: Closing time!]
badrsahla has quit [Ping timeout: 255 seconds]
jinie has quit [Ping timeout: 258 seconds]
jinie has joined #ruby
alnewkirk has quit [Ping timeout: 258 seconds]
guardianxx has quit [Ping timeout: 248 seconds]
marr has joined #ruby
dasher00 has joined #ruby
cschneid_ has joined #ruby
mostlybadfly has joined #ruby
drcode has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
n13z has joined #ruby
alfiemax has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
CrazyEddy has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
tvw has quit [Remote host closed the connection]
anisha has quit [Read error: Connection reset by peer]
<dminuoso> Bish: The `R` itself is a small issue honestly.
<dminuoso> Bish: What is sometimes annoying is the lack of concise operators. For example R.compose(foo, bar, quux) is ugly compared to say foo * bar * quux in Ruby, or foo . bar . quux in Haskell.
GodFather has joined #ruby
<dminuoso> But the R you get used to pretty quickly.
cdg has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
fmcgeough has joined #ruby
rgr has quit [Ping timeout: 246 seconds]
cdg has quit [Ping timeout: 252 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
anisha_ has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
d^sh has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
d^sh has joined #ruby
stamina has joined #ruby
anisha_ has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
rgr has joined #ruby
kahra has joined #ruby
jxv has quit [Quit: Connection closed for inactivity]
kahra has quit [Client Quit]
fmcgeough has quit [Quit: fmcgeough]
GodFather has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
tastytf has quit [Read error: Connection reset by peer]
tastytf has joined #ruby
badrsahla has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
dasher00 has joined #ruby
chmurifree has joined #ruby
leah2 has quit [Ping timeout: 255 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
charliesome_ has joined #ruby
a--- has joined #ruby
cschneid_ has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
a--- has quit [Client Quit]
a--- has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
a--- has quit [Client Quit]
tmm88 has joined #ruby
tmm88 has quit [Changing host]
tmm88 has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
nofxx has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
leah2 has joined #ruby
drbrain has quit [Ping timeout: 258 seconds]
sepp2k has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
cschneid_ has joined #ruby
charliesome has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
charliesome_ has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
anisha_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
tmm88 has quit [Quit: leaving]
tmm88 has joined #ruby
tmm88 has quit [Client Quit]
tmm88 has joined #ruby
Dimik has quit [Remote host closed the connection]
alfiemax has joined #ruby
anisha_ has joined #ruby
synthroid has joined #ruby
synthroid has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
sleetdrop has joined #ruby
stilbruch has quit [Quit: WeeChat 1.9.1]
anisha_ has quit [Quit: This computer has gone to sleep]
shinnya has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
ap4y has quit [Quit: WeeChat 1.9.1]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
badrsahla has quit [Ping timeout: 255 seconds]
apparition has joined #ruby
Quentinius has joined #ruby
ShalokShalom_ has joined #ruby
paranoicsan has joined #ruby
ShalokShalom has quit [Ping timeout: 246 seconds]
cschneid_ has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jaruga has quit [Quit: jaruga]
cschneid_ has quit [Ping timeout: 252 seconds]
hgost has left #ruby [#ruby]
Quentinius has quit [Ping timeout: 258 seconds]
uneeb has joined #ruby
ShekharReddy has joined #ruby
vidj has joined #ruby
<vidj> I'm familiar with programming, but I'm clueless when it comes to ruby. I need a good resource to learn ruby from (and build on it with rails), with as less possible pages of what's a variable and similar stuff :D
tmm88 has quit [Quit: leaving]
tmm88 has joined #ruby
tmm88 has quit [Changing host]
tmm88 has joined #ruby
<TheBrayn> I think I used ruby koans when I first learned the language
<TheBrayn> not sure which
matcouto has quit [Remote host closed the connection]
uneeb has quit [Ping timeout: 255 seconds]
<vidj> TheBrayn: I'll give it a look, thanks.
<TheBrayn> might have been this: http://rubykoans.com/ but I'm not sure
nfsnobody- has joined #ruby
<vidj> TheBrayn: mm i was thinking more something of a book format, but I'll try it out
sleetdrop has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
kua[m] has quit [*.net *.split]
torarne has quit [*.net *.split]
voxxit has quit [*.net *.split]
cschneid_ has joined #ruby
alfiemax has joined #ruby
cosimou has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
workmad3 has joined #ruby
badrsahla has joined #ruby
ujjain has quit [Ping timeout: 240 seconds]
WebDawgII has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
peitur has joined #ruby
cgfbee has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
cosimo_ has joined #ruby
WebDawg has joined #ruby
havenwood has joined #ruby
havenwood has quit [Changing host]
havenwood has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
pilne has joined #ruby
<elomatreb> vidj: There is a list of books linked in the topic, with a range of required skill levels
<vidj> ye noticed it, alreadychecking out
synthroid has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
badrsahla has quit [Ping timeout: 264 seconds]
badrsahla has joined #ruby
synthroid has quit [Client Quit]
peitur has quit []
cgfbee has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
kua[m] has joined #ruby
dc3 has joined #ruby
jphase has joined #ruby
truenito has joined #ruby
John__ has joined #ruby
torarne has joined #ruby
<nickjj> vidj, i would just dive in and start writing code
<vidj> nickjj: can't really do that when I don't know the syntax or how ruby works overall :D
bmurt has joined #ruby
<nickjj> you could glance a quick reference
<vidj> Learned php that way, think it turned out to be a lot harder than just going step by step
synthroid has joined #ruby
dc3 has quit [Ping timeout: 248 seconds]
<nickjj> or google for things like "how does ruby compare to xyz"
<nickjj> so you can see a side by side on how looks vs your known language
tcopeland has quit [Quit: tcopeland]
matcouto has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
nopoliti1 has joined #ruby
<vidj> will check
<nickjj> ruby is one of those languages where you can write something 85 different ways and all of the solutions will work
raynold has joined #ruby
creat has quit [Ping timeout: 264 seconds]
stamina has quit [Quit: WeeChat 1.9.1]
sundhell_away has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
matcouto has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
Defenestrate has quit [Quit: Leaving]
impermanence has joined #ruby
creat has joined #ruby
<Burgestrand> vidj check the ruby-community link in the /topic
<Burgestrand> vidj under "Resources" there's some useful stuff
<vidj> oki, thanks a lot guys
impermanence has quit [Client Quit]
<Burgestrand> vidj (including links to books)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sundhell_away has joined #ruby
mson has joined #ruby
__Yiota has joined #ruby
charliesome has joined #ruby
jamesaxl_05 has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
alnewkirk has joined #ruby
bkxd has joined #ruby
cschneid_ has joined #ruby
cdg has joined #ruby
Nexer has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
<dminuoso> vidj: !books
<dminuoso> !books vidj
<dminuoso> ?books vidj
<ruby[bot]> vidj: You can find a list of recommended books at http://ruby-community.com/pages/links
<vidj> dminuoso: ye thanks, ive already started reading
<dminuoso> vidj: Particularly the book "The Well-Grounded Rubyist" is the most recommended book in this channel.
<dminuoso> Especially if you already have a programming background.
<vidj> thanks, will do that one
DLSteve has joined #ruby
bvcosta_ has quit [Remote host closed the connection]
Xiti has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
chouhoulis has joined #ruby
jgt has joined #ruby
bkxd_ has joined #ruby
bvcosta has joined #ruby
Quentinius has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
rgr_ has joined #ruby
bruno- has joined #ruby
cschneid_ has joined #ruby
matcouto has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
jrafanie has joined #ruby
rgr has quit [Ping timeout: 246 seconds]
Quentinius has quit [Client Quit]
bmurt has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 255 seconds]
matcouto has quit [Ping timeout: 248 seconds]
hs366 has quit [Quit: Leaving]
simmaniac has joined #ruby
tastytf has quit [Ping timeout: 240 seconds]
dc3 has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
sysvalve has quit [Disconnected by services]
simmaniac is now known as sysvalve
Xiti` has joined #ruby
Pixi_ has joined #ruby
cschneid_ has joined #ruby
Xiti has quit [Ping timeout: 260 seconds]
minimalism has quit [Quit: minimalism]
Burgestrand has quit [Quit: Closing time!]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Xiti` has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Ping timeout: 246 seconds]
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
vidj has quit [Quit: Page closed]
fmcgeough has joined #ruby
tcopeland has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
cdg has quit [Remote host closed the connection]
ozcanesen has joined #ruby
ozcanesen has quit [Client Quit]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
leah2 has quit [Ping timeout: 248 seconds]
Rapture has joined #ruby
cschneid_ has joined #ruby
matcouto has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
matcouto has quit [Ping timeout: 255 seconds]
code_zombie has joined #ruby
synthroid has quit [Remote host closed the connection]
leah2 has joined #ruby
rabajaj has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
xuanrui has quit [Ping timeout: 260 seconds]
tomaw has quit [Quit: Quitting]
konos5 has quit [Quit: Connection closed for inactivity]
tomaw_ has joined #ruby
synthroid has joined #ruby
ana_ has quit [Ping timeout: 258 seconds]
dc3 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
jrheaton has joined #ruby
tomaw_ is now known as tomaw
uZiel has joined #ruby
kobain has joined #ruby
pilne has quit [Quit: Quitting!]
badrsahla has quit [Remote host closed the connection]
polishdub has joined #ruby
ineb has quit [Quit: WeeChat 1.9.1]
mostlybadfly has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
neuraload has quit [Quit: This computer has gone to sleep]
GodFather has quit [Quit: Ex-Chat]
GodFather has joined #ruby
matcouto has joined #ruby
rgr_ has quit [Ping timeout: 255 seconds]
slaterson has joined #ruby
slaterson has quit [Client Quit]
mjuszczak has joined #ruby
dc3 has joined #ruby
guacamole has joined #ruby
biberu has quit []
zehbax has joined #ruby
badrsahla has joined #ruby
conta has quit [Remote host closed the connection]
jamesaxl_05 has quit [Ping timeout: 260 seconds]
<zehbax> cagomez I don`t think so, cuz procs objs are block to a set of local vars
<zehbax> cagomez: I don`t think so, cuz procs objs are block to a set of local vars
<zehbax> blocks*
jeffreylevesque_ has joined #ruby
<jeffreylevesque_> anyone know of a shortest syntax to list only files, recursively in a directory?
<zehbax> I guess the best way is : Dir.entries("your/folder").select {|f| !File.directory? f}
conta has joined #ruby
<cosimo_> Dir.glob("*")
<cosimo_> ?
<leah2> **
<leah2> but yes, you need the test
conta has quit [Client Quit]
<jeffreylevesque_> Dir.entries("your/folder").select {|f| !File.directory? f}, seems pretty nice
<leah2> unless you count `find . -type -d print0`.split("\0") ;)
<jeffreylevesque_> i can specify where to do the searching
<leah2> Dir.entries wont be recursive tho
guille-moe has quit [Quit: guille-moe]
<jeffreylevesque_> ah shoot
<havenwood> &ri Find
guille-moe has joined #ruby
<zehbax> oh yeah Thanks leah2
<havenwood> jeffreylevesque_: See Find in the stdlib.
<leah2> yeah, Find.find. will need another stat call tho
<jeffreylevesque_> ok
<jeffreylevesque_> there isn't an alternate to Dir[ File.join(dir, '**', '*') ].reject { |p| File.directory? p }, for files?
<leah2> File.file?
<leah2> will work too
<jeffreylevesque_> Dir[ File.join(dir, '**', '*') ].reject { |p| File.file? p }
down has joined #ruby
<jeffreylevesque_> for some `dir`?
<havenwood> jeffreylevesque_: #select
rgr_ has joined #ruby
<jeffreylevesque_> will that work
<leah2> find_all
<jeffreylevesque_> Dir[ File.join(dir, '**', '*') ].find_all { |p| File.file? p }
<jeffreylevesque_> is that better?
TheDracle has joined #ruby
TheDracle has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
synthroid has quit [Remote host closed the connection]
troys has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swirlsMD has joined #ruby
ResidentBiscuit has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
synthroid has joined #ruby
kapil___ has joined #ruby
elsevero has joined #ruby
bmurt has joined #ruby
aufi_ has quit [Quit: Leaving]
ResidentBiscuit has joined #ruby
synthroi_ has joined #ruby
andikr has quit [Remote host closed the connection]
synthroid has quit [Ping timeout: 240 seconds]
Beams has quit [Quit: .]
bruno- has quit [Ping timeout: 248 seconds]
jphase has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
code_zombie has quit [Read error: Connection reset by peer]
code_zombie has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
cosimo_ is now known as cosimou
canton7 has joined #ruby
bmurt has joined #ruby
alfiemax has joined #ruby
zehbax has quit [Remote host closed the connection]
swirlsMD has quit [Quit: WeeChat 1.9]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
swirlsMD has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc3 has quit [Ping timeout: 255 seconds]
badrsahla has quit [Remote host closed the connection]
mjuszczak has quit []
badrsahla has joined #ruby
jrafanie has joined #ruby
[Butch] has joined #ruby
vstemen has joined #ruby
orbyt_ has joined #ruby
uZiel has quit [Remote host closed the connection]
badrsahla has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
guille-moe has quit [Remote host closed the connection]
guille-moe has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
charliesome has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
lagweezle_away is now known as lagweezle
swirlsMD has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
dionysus69 has joined #ruby
elsevero_ has joined #ruby
elsevero has quit [Ping timeout: 246 seconds]
elsevero_ is now known as elsevero
bruno- has joined #ruby
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
swirlsMD has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elsevero has quit [Client Quit]
badrsahla has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
troys is now known as troys_
marxarelli has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: Leaving]
ta has quit [Remote host closed the connection]
Technodrome has joined #ruby
cschneid_ has joined #ruby
<haylon> in the CSV library, can i do `CSV.foreach('/path/to/file.csv') do |row, index|` ?
uZiel has joined #ruby
rgr_ has quit [Remote host closed the connection]
paranoicsan has joined #ruby
irated has quit [Ping timeout: 240 seconds]
<haylon> I'm tryign to avoid slurping the file into memeory
<haylon> memory*
badrsahla has joined #ruby
<haylon> unless that function is doing that behind the scenes and I don't know it.
alfiemax has quit [Ping timeout: 248 seconds]
chouhoulis has quit [Remote host closed the connection]
badrsahla has quit [Ping timeout: 240 seconds]
swirlsMD has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
duckpupp1 has joined #ruby
uptime has quit [Ping timeout: 255 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 252 seconds]
badrsahla has joined #ruby
uptime has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
<elomatreb> I think it does, at least it looks like that skimming the source code
badrsahla has quit [Ping timeout: 258 seconds]
irated has joined #ruby
nopolitica has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nopoliti1 has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
troys_ is now known as troys
heyimwill has quit [Ping timeout: 255 seconds]
garyserj has quit []
sundhell_away has quit [Ping timeout: 248 seconds]
krasnus has quit [Ping timeout: 264 seconds]
ta has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
badrsahla has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Ping timeout: 248 seconds]
nomasprime has joined #ruby
bmurt has joined #ruby
<nomasprime> How would you search and array with regex and break on first match?
<nomasprime> *an
<basket> nomasprime: What do you want to do when you find the match?
badrsahla has quit [Ping timeout: 264 seconds]
heyimwill has joined #ruby
<nomasprime> basket: so an array of strings, when first regex matches a string/element break
<nomasprime> basket: I know I can search and then do take but presumably that still goes through the entire array to collect matches
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
<elomatreb> Enumerable#find will stop after finding the first matching element
<nomasprime> basket: thanks :)
nomasprime has quit [Quit: WeeChat 1.9]
ResidentBiscuit has quit [Ping timeout: 264 seconds]
badrsahla has joined #ruby
badrsahla has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
raynold has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
down has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
down_ has joined #ruby
eckhardt has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
AndBobsYourUncle has joined #ruby
djbkd has joined #ruby
Pixi_ has quit [Quit: Pixi_]
Xiti has joined #ruby
ta has joined #ruby
alveric1 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
sundhell_away has joined #ruby
ta has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
alfiemax has joined #ruby
John__ has quit [Read error: Connection reset by peer]
simmaniac has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
phoo1234567 has joined #ruby
streblo has joined #ruby
govg has quit [Ping timeout: 248 seconds]
MyMind has joined #ruby
claudiuinberlin has joined #ruby
sysvalve has quit [Ping timeout: 240 seconds]
<streblo> i have a file glob that recursively includes all files, like this: "Project/**/*". how would i change this glob if i wanted to recursively include all files, except for one directory at the top level, e.g. Project/DontIncludeMe/
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sembei has quit [Ping timeout: 240 seconds]
govg has joined #ruby
badrsahla has joined #ruby
selim_ has joined #ruby
<jeffreylevesque_> apparently Dir[ File.join(dir, '**', '*') ].find_all { |p| File.file? p }, seems identical to Dir[ File.join(dir, '**', '*') ].find_all { |p| File.file? p }
selim has quit [Ping timeout: 240 seconds]
krasnus has joined #ruby
<jeffreylevesque_> i mean the above is identical to `Dir[ File.join(dir, '**', '*') ].reject { |p| File.directory? p }`
uZiel has quit [Ping timeout: 248 seconds]
<jeffreylevesque_> i want to recursively list only directories under dir/
elsevero has joined #ruby
<jeffreylevesque_> then recursively list only files (not subdirectories) under dir/
paranoicsan has quit [Quit: paranoicsan]
<jeffreylevesque_> maybe `.find_all` is not restrictive enough
badrsahla has quit [Ping timeout: 255 seconds]
down_ has quit [Remote host closed the connection]
down has joined #ruby
<streblo> jeffreylevesque_ that gives me a starting point, thanks
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
down has quit [Remote host closed the connection]
<jeffreylevesque_> ha, it seems we're working on similar things
<jeffreylevesque_> i didn't even notice
down has joined #ruby
matcouto has quit [Ping timeout: 248 seconds]
ShalokShalom_ has quit [Ping timeout: 248 seconds]
ShalokShalom has joined #ruby
PaulCapestany has quit [Quit: .]
govg has quit [Ping timeout: 255 seconds]
<basket> streblo: Maybe something like Dir['Project/*'].grep_v('DontIncludeMe').flat_map {|f| Dir[File.join(f, '**', '*')].concat([f])}
badrsahla has joined #ruby
<basket> There might be a better way but that should work I think
govg has joined #ruby
kies has joined #ruby
jgt has joined #ruby
down_ has joined #ruby
<basket> er, grep_v('Project/DontIncludeMe')
ShalokShalom has quit [Remote host closed the connection]
badrsahla has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
bvcosta has quit []
down has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
simmaniac is now known as sysvalve
jamesaxl has joined #ruby
govg has quit [Ping timeout: 240 seconds]
charliesome has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Quit: Gotta go]
govg has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Connection reset by peer]
badrsahla has joined #ruby
jrafanie has joined #ruby
uZiel has joined #ruby
dviola has joined #ruby
InfinityFye has quit [Quit: Leaving]
ramfjord has joined #ruby
alfiemax has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
matcouto has joined #ruby
jamesaxl has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
<patrick99e99> so, when an integer variable is passed into a function, is it copied? I was a little confused by this behavior: x=0; foo(x); def foo(num); num |= 256; end ... x will still eq 0, where I would expect it to be 256....
<patrick99e99> oh nvermind.. i see |= is reassignment..
dasher00 has joined #ruby
<patrick99e99> forgive me for the dumb question
John__ has joined #ruby
Guest66309 is now known as baweaver
orbyt_ has joined #ruby
guacamole has joined #ruby
baweaver is now known as Guest40909
matcouto has quit [Ping timeout: 248 seconds]
Cohedrin_ has joined #ruby
dc3 has joined #ruby
<elomatreb> And even so, integers are never copied (You can't dupe an Integer)
n13z has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby
Guest40909 is now known as baweaver_2
<elomatreb> And finally, x in your example is a local variable, the outer x and the inner x are different local variables, reassigning in the function won't change the value of the outer one
jamesaxl has quit [Read error: Connection reset by peer]
n13z has joined #ruby
jamesaxl has joined #ruby
badrsahla has joined #ruby
anisha_ has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
mjuszczak has joined #ruby
streblo has left #ruby [#ruby]
ur5us has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
badrsahla has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
elcontrastador has joined #ruby
jamesaxl has joined #ruby
Immune has joined #ruby
goyox86 has quit [Quit: goyox86]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
ozcanesen has joined #ruby
goyox86 has joined #ruby
Freshnuts has quit [Quit: Leaving]
alfiemax has joined #ruby
badrsahla has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 252 seconds]
vee__ has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 240 seconds]
dasher00 has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
cdg has joined #ruby
goyox86 has quit [Quit: goyox86]
jgt has quit [Quit: WeeChat 1.4]
down_ has quit [Remote host closed the connection]
badrsahla has joined #ruby
down has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jinie has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
matcouto has joined #ruby
ta has joined #ruby
mtkd has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
mark_66 has quit [Remote host closed the connection]
down has quit [Ping timeout: 255 seconds]
matcouto has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 248 seconds]
down has joined #ruby
gheegh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher has quit [Quit: Leaving.]
swirlsMD has joined #ruby
Bock has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
badrsahla has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
xuanrui has joined #ruby
Technodrome has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
FooMunki has joined #ruby
chouhoulis has joined #ruby
mostlybadfly has joined #ruby
gusrub has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
gusrub has joined #ruby
badrsahla has joined #ruby
nopolitica has quit [Quit: WeeChat 1.9]
ta has joined #ruby
jidar has joined #ruby
<swirlsMD> haylon: You can try: File.readlines('foo').each do |line|
mjuszcza_ has joined #ruby
rabajaj has quit [Quit: Leaving]
<haylon> swirlsMD: #readlines automatically makes it an array, or would I have to split on the ','
mjuszczak has quit [Ping timeout: 252 seconds]
goyox86 has joined #ruby
ta has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 240 seconds]
irated has quit [Ping timeout: 240 seconds]
<swirlsMD> haylon: It will be a array, each item in the array is the read line.
megamos has quit [Ping timeout: 240 seconds]
<haylon> Got ya, could monkey patch it so that the CSV.foreach would do the index too I guess
seth_ has joined #ruby
gusrub has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 248 seconds]
gusrub has joined #ruby
<swirlsMD> haylon: Yar, you could do a for each, with a split, and if position is consistent, call the position in the array
SeepingN has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjuszcza_ has quit []
badrsahla has joined #ruby
<swirlsMD> [5] pry(main)> File.readlines('test_file.txt').each do |line|
<swirlsMD> [5] pry(main)* l = line.split(',')
<swirlsMD> [5] pry(main)* p l[0]
<swirlsMD> [5] pry(main)* p l[1]
<swirlsMD> [5] pry(main)* end
<swirlsMD> smth like that
<haylon> schwing. I'll give it a whirl.
<swirlsMD> :thumbsup
mjuszczak has joined #ruby
simmaniac has joined #ruby
jidar has quit [Quit: WeeChat 1.9.1]
gusrub has quit [Remote host closed the connection]
jidar has joined #ruby
gusrub has joined #ruby
mjuszczak has quit [Client Quit]
seth_ has quit [Quit: Leaving]
badrsahla has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has joined #ruby
sysvalve has quit [Ping timeout: 255 seconds]
matcouto has joined #ruby
mjuszczak has joined #ruby
irated has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
ta has joined #ruby
guille-moe has quit [Ping timeout: 240 seconds]
matcouto has quit [Ping timeout: 255 seconds]
goyox86 has quit [Quit: goyox86]
troys is now known as troys_
gusrub has quit [Remote host closed the connection]
ta has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
bmurt has joined #ruby
chouhoulis has quit [Remote host closed the connection]
John__ has quit [Ping timeout: 248 seconds]
fmcgeough has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
chouhoul_ has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
mjuszcza_ has joined #ruby
swirlsMD has quit [Ping timeout: 248 seconds]
badrsahla has quit [Ping timeout: 255 seconds]
ta has joined #ruby
mjuszczak has quit [Ping timeout: 255 seconds]
elsevero has quit [Quit: elsevero]
fmcgeough has joined #ruby
goyox86_ has joined #ruby
ta has quit [Remote host closed the connection]
synthroi_ has quit []
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
workmad3 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has joined #ruby
John__ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
down has quit [Remote host closed the connection]
swirlsMD has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
badrsahla has joined #ruby
down_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
truenito has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 248 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
govg has joined #ruby
matcouto has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
badrsahla has quit [Ping timeout: 255 seconds]
claudiuinberlin has joined #ruby
down has joined #ruby
bmurt has joined #ruby
matcouto has quit [Ping timeout: 252 seconds]
down_ has quit [Ping timeout: 255 seconds]
mjuszcza_ has quit []
badrsahla has joined #ruby
mjuszczak has joined #ruby
truenito has joined #ruby
knight33 has joined #ruby
simmaniac has quit [Quit: Leaving]
badrsahla has quit [Ping timeout: 255 seconds]
chouhoulis has joined #ruby
down has quit [Ping timeout: 255 seconds]
down has joined #ruby
leah2 has quit [Ping timeout: 248 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 260 seconds]
eugenmayer has joined #ruby
down has quit [Remote host closed the connection]
<eugenmayer> is there any way to define the arguments in thor so they are listed when the command executed without those? instead of " was called with no arguments"
down has joined #ruby
xuanrui has joined #ruby
mjuszczak has quit [Ping timeout: 252 seconds]
goyox86_ has quit [Quit: goyox86_]
duckpupp1 has joined #ruby
ur5us has joined #ruby
badrsahla has joined #ruby
down has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
down has joined #ruby
mjuszczak has joined #ruby
goyox86_ has quit [Client Quit]
goyox86_ has joined #ruby
goyox86_ is now known as goyox86
cdg has joined #ruby
bmurt has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
swirlsMD has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
bmurt has quit [Client Quit]
gusrub has joined #ruby
chouhoulis has quit [Remote host closed the connection]
matcouto has joined #ruby
<matthewd> haylon: CSV.foreach(...).with_index do |row, idx|
cdg_ has joined #ruby
leah2 has joined #ruby
eckhardt has quit [Ping timeout: 260 seconds]
rhyselsmore has joined #ruby
badrsahla has joined #ruby
gusrub has quit [Ping timeout: 260 seconds]
matcouto has quit [Ping timeout: 240 seconds]
weaksauce has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
eckhardt has joined #ruby
Asher has joined #ruby
badrsahla has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
badrsahla has joined #ruby
jeffreylevesque_ has quit [Ping timeout: 240 seconds]
cleankicks11 has joined #ruby
down has quit [Remote host closed the connection]
jeffreylevesque has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
down has joined #ruby
<cleankicks11> Hey, im trying to setup a ruby database in heroku and can't connect with mysql or pg
Psybur has quit [Ping timeout: 260 seconds]
dali_ has joined #ruby
<dali_> hi
dali_ has left #ruby [#ruby]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
down has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mjuszczak has quit []
enterprisey has quit [Read error: Connection reset by peer]
montyboy has quit [Ping timeout: 252 seconds]
mjuszcza_ has joined #ruby
down has joined #ruby
noodle has quit [Quit: /quit]
<haylon> matthewd: Thank you! That's ane ven better idea.
truenito has joined #ruby
mjuszcza_ has quit [Client Quit]
lagweezle has quit [Ping timeout: 260 seconds]
Flonk has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
mjuszczak has joined #ruby
gusrub has joined #ruby
tmm88 has quit [Quit: Lost terminal]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 260 seconds]
<haylon> that's an even better...
<ivanskie> does 'return' end the flow of a function?
<ivanskie> can i use it like: "return "Site: No match found" unless locFromIP(params[:ip])" in the beginning of a function.
<ivanskie> or is 'try' better
noodle has joined #ruby
mjuszczak has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
<ivanskie> nevermind try isn't even a thing in ruby
<ivanskie> i guess catch
Flonk has joined #ruby
marxarelli is now known as marxarelli|afk
uZiel has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver_2 is now known as baweaver
baweaver has quit [Changing host]
baweaver has joined #ruby
goyox86 has quit [Quit: goyox86]
marxarelli|afk is now known as marxarelli
tvw has joined #ruby
<cleankicks11> having a problem with my database.yml file any help?
Flonk has quit [Ping timeout: 255 seconds]
<havenwood> ivanskie: yes, you can just `return` early from a method
<havenwood> cleankicks11: what's the problem?
matcouto has joined #ruby
<ivanskie> ah thank you. i just started writing begin/rescue block lol
dionysus69 has quit [Ping timeout: 255 seconds]
<cleankicks11> havenwood: I can't connect to mysql, sqllite or pg. I have atempted to put in my password and I get an error active_record/connection_adapters/mysql_adapter
<havenwood> ?rails cleankicks11
<ruby[bot]> cleankicks11: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<havenwood> cleankicks11: What is the full error?
<cleankicks11> havenwood: im a complete newb should I put the error log in pastebin?
<havenwood> cleankicks11: yeah, a gist that has two files, one for your database.yml and one for the full error would be ideal
<havenwood> ?gist
<ruby[bot]> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<cleankicks11> havenwood: not sure how to access gist
matcouto has quit [Ping timeout: 248 seconds]
<havenwood> cleankicks11: https://gist.github.com
Flonk has joined #ruby
<havenwood> cleankicks11: could you add your database.yml to that gist?
<cleankicks11> ok
alnewkirk has quit [Ping timeout: 264 seconds]
hahuang65 has quit [Quit: WeeChat 1.9.1]
Technodrome has joined #ruby
mjuszczak has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ap4y has joined #ruby
matcouto has joined #ruby
jrafanie has joined #ruby
Puffball_ has quit [Remote host closed the connection]
matcouto has quit [Remote host closed the connection]
matcouto has joined #ruby
Flonk has quit [Ping timeout: 240 seconds]
<cleankicks11> havenwood: hows it looking
Puffball has joined #ruby
<havenwood> cleankicks11: got tied up at work, it's going to take me a few
<havenwood> cleankicks11: you might have more bites in the Rails channel
<cleankicks11> ok
imode has joined #ruby
tvw has quit [Read error: Connection reset by peer]
Flonk has joined #ruby
<guacamole> cleankicks11 what happens if you don't put in a password/blank password?
<cleankicks11> I guess it doesn't recognize the account, since I set it up with a password
<cleankicks11> Ill try though
hahuang65 has joined #ruby
jeffreylevesque has quit [Ping timeout: 264 seconds]
dc3 has quit [Ping timeout: 240 seconds]
xuanrui has joined #ruby
jrafanie has quit [Ping timeout: 258 seconds]
<cleankicks11> guacamole: I tried to run it with an empty password field and I get the same error, Im trying to do the rake with heroku
mjuszczak has quit []
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
troys_ is now known as troys
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
thomasv314 has joined #ruby
mjuszczak has joined #ruby
<guacamole> hmmm
<guacamole> do you still have the mysql gem in your gemfile cleankicks11 ?
<cleankicks11> I haven't changed it since I uploaded the gist
<guacamole> your gist doesn't show your whole gemfile
<guacamole> i see where you've added the 'pg' gem but do you still have the mysql one in there?
<cleankicks11> ok it doesn't, your right. I have pg on the gemfile
<guacamole> pg only? my concern is that its assuming you want to use mysql because you have that in your gemfile, thats what i'm getting from your error trace
<guacamole> its looking for mysql adapter, if you comment out the mysql gem and bundle it might stop looking for it and look for pg instead
badrsahla has quit [Remote host closed the connection]
duckpupp1 has quit [Ping timeout: 248 seconds]
shinnya has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
AustinMatherne has quit [Quit: leaving]
voiceftp has joined #ruby
mim1k has joined #ruby
sepp2k has quit [Quit: Leaving.]
varymr has joined #ruby
eugenmayer has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
tcopeland has quit [Quit: tcopeland]
Azure has joined #ruby
chouhoulis has joined #ruby
badrsahla has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
badrsahla has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
John__ has quit [Ping timeout: 248 seconds]
jeffreylevesque has joined #ruby
enterprisey has joined #ruby
jphase has quit [Ping timeout: 248 seconds]
gusrub has quit [Remote host closed the connection]
Freshnuts has joined #ruby
<latemus> is there a method to convert array values into hash values, ideally by specifying another array of strings as the corresponding hash keys?
<al2o3-cr> latemus: example?
enterprisey has quit [Remote host closed the connection]
gusrub has joined #ruby
<al2o3-cr> latemus: maybe zip & toH
<al2o3-cr> *to_h
<latemus> al2o3-cr: i want [2,'michael','student'] to become {'id' => 2, 'name' => 'michael', 'label' => 'student'}
<basket> latemus: Like keys, values = ['a', 'b', 'c'], [1,2,3]; keys.zip(values).to_h ?
<latemus> basket: i think so, yeah!
<latemus> thanks al2o3-cr and basket
mjuszczak has quit []
varymr has quit [Ping timeout: 260 seconds]
<al2o3-cr> latemus: sweet :#0#)
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
elsevero has joined #ruby
John__ has joined #ruby
<al2o3-cr> yw :) latemus
ShekharReddy has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 255 seconds]
<al2o3-cr> >> [*2..15].map { |n| [n**n, Math.log(n**n, n)] }
<ruby[bot]> al2o3-cr: # => [[4, 2.0], [27, 3.0], [256, 4.0], [3125, 5.0], [46656, 6.000000000000001], [823543, 7.0], [16777216, ...check link for more (https://eval.in/882380)
John__ has quit [Ping timeout: 255 seconds]
polishdub has quit [Quit: leaving]
<al2o3-cr> so does this mean the logarithm is the inverse of expo?
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<al2o3-cr> or is it an illusion?
<basket> al2o3-cr: (Math.log b ** e, b) == e by definition, that's what a logarithm is
<basket> Modulo floating point errors
xuanrui has quit [Quit: Leaving]
cagomez has joined #ruby
<al2o3-cr> basket: so it logarithm inverse of exponentation?
<al2o3-cr> basket: what is e?
<basket> al2o3-cr: Exponent
<al2o3-cr> basket: so it logarithm inverse of exponentation?
<al2o3-cr> ??
elsevero has quit [Quit: elsevero]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
<al2o3-cr> basket: is the log inverse of expo?
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
<basket> al2o3-cr: Given a fixed base b, f(x) = log_b(x), and g(x) = b ** x, then f(g(x)) = x, so I guess?
<al2o3-cr> basket: is the natural logarithm inverse of exponentation?
<basket> al2o3-cr: Why do you ask?
<al2o3-cr> just graphin'
cagomez has quit [Remote host closed the connection]
hahuang65 has quit [Quit: WeeChat 1.9.1]
cagomez has joined #ruby
jphase has joined #ruby
imode has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
imode has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
thinkpad has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
tcopeland has joined #ruby
cagomez has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 258 seconds]
cschneid_ has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
troys is now known as troys_
troys_ is now known as troys
workmad3 has joined #ruby
impermanence has joined #ruby
<impermanence> ne one have an exp with the aws ruby sdk?
<Radar> ?used impermanence
<ruby[bot]> impermanence: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
Freshnuts has quit [Quit: Leaving]
code_zombie has quit [Quit: Leaving]
weaksauce has quit [Read error: Connection reset by peer]
down has quit [Remote host closed the connection]
5EXAALCIP has joined #ruby
down has joined #ruby
fnord_ has joined #ruby
<impermanence> lol
<Radar> srs
<impermanence> but I'm confused about the client instantiation
<impermanence> my accesskey already exists...and that is what I am wanting to check status on
<Radar> Now was that so hard to ask?
<impermanence> but the docs make it seem like I am supposed to instantiate an instance of Aws::IAM::AccessKey to use #status...
<impermanence> Radar: I was trying to not be #aws up in #ruby
cagomez has quit [Remote host closed the connection]
down has quit [Ping timeout: 258 seconds]
cagomez has joined #ruby
matcouto has quit []
marxarelli is now known as marxarelli|afk
<Radar> One Gist, coming right up.
<impermanence> I would of done that myself but I have like three lines at this point...
<Radar> I have two
<Radar> You have to make a request to get the keys from IAM first, which you'd use the client for.;
cagomez has quit [Remote host closed the connection]
<impermanence> Radar: That makes sense. What I was trying to do was take an accesskey on my box and throw it into some call and then call status against it...as a check before I make a call...
cagomez has joined #ruby
<Radar> I think my code might be from version 2 (2.10.30) of the SDK. It might be different in v3.
jrheaton has quit [Quit: Textual IRC Client: www.textualapp.com]
imode has joined #ruby
dc3 has joined #ruby
<Radar> Looks like it would work in v3 too.
<impermanence> seems like that to me bc that's what i'm using
<impermanence> here's what I was thinking
<impermanence> I'm just messing around, basically, but here's what I was thinking
<impermanence> Right now I have my creds stored in this yaml file. And then they get loaded into some SDK data structure...I can't remember which one, doesn't matter. then...
Technodrome has joined #ruby
cleankicks11 has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
<impermanence> I wanted to make a call against the accesskey in that data structure and basically run a #status against it and say, "hey. if this passes...continue...else don't"
nofxx has joined #ruby
<impermanence> I guess I have misunderstood the point of #status
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<impermanence> yeah, I messed up on how #status is used...cuz it doesn't even take any parameters so my approach was not the greatest
bruno- has quit [Ping timeout: 248 seconds]
alveric2 has joined #ruby
cdg has joined #ruby
alex`` has quit [Ping timeout: 252 seconds]
alveric1 has quit [Ping timeout: 240 seconds]
cdg_ has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
chouhoulis has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
fnord_ has quit [Ping timeout: 252 seconds]
mim1k has joined #ruby
jphase has quit [Ping timeout: 252 seconds]
nymous has joined #ruby
<nymous> hey folks
<nymous> anyone alive? :)
brent__ has joined #ruby
<basket> Hi nymous
<nymous> again and again, i have a question about ruby concurrency
<nymous> i just need an advice
<nymous> am i doing something weird?