havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
cthulchu| has joined #ruby
karapetyan has quit [Remote host closed the connection]
banisterfiend has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Changing host]
<banisterfiend> !seen weeb1e
<banisterfiend> !seen weeble
cthulchu has quit [Ping timeout: 240 seconds]
Psybur_ has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
netherwolfe has quit [Ping timeout: 255 seconds]
arescorpio has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
x0f has quit [Ping timeout: 276 seconds]
cschneid has quit [Remote host closed the connection]
postmodern has joined #ruby
scrptktty__ has quit [Quit: Connection closed for inactivity]
mroutis has left #ruby [#ruby]
tvw has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Matthew1 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
x0f has joined #ruby
naprimer2 has joined #ruby
marxarelli is now known as marxarelli|afk
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
naprimer has quit [Ping timeout: 256 seconds]
sameerynho has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
gnufied has quit [Ping timeout: 260 seconds]
Psybur_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
eckhardt has joined #ruby
ResidentBiscuit has joined #ruby
Yxhuvud has quit [Ping timeout: 265 seconds]
Psybur_ has quit [Ping timeout: 245 seconds]
Yxhuvud has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
<banisterfiend> anyone here encountered ""warning: failed to load encoding (CP1250); use ASCII-8BIT instead"" on windows before?
kliq has joined #ruby
alfiemax has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang61 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby
ledestin has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hanmac has quit [Ping timeout: 265 seconds]
kliq has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
GinoMan has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
<zenspider> banisterfiend: I have not... but that's eastern european, no? maybe something flubbed during compilation w/ the encoding tables?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Psybur_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
\void has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Vapez has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 240 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
ramfjord has joined #ruby
drewmcmillan has quit [Quit: Textual IRC Client: www.textualapp.com]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<pilne> i haven't used windows outside of locked down machines at work in years, so i'm sorry but I can't help
hahuang61 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jeffreylevesque has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
marxarelli|afk is now known as marxarelli
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 260 seconds]
xco has quit [Quit: xco]
schneider has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
jcarl43 has quit [Quit: WeeChat 2.0.1]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jameser has joined #ruby
Mon_Ouie has joined #ruby
bigblind has quit [Read error: Connection reset by peer]
bigblind has joined #ruby
anjen has quit [Quit: anjen]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
lroca has joined #ruby
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
alfiemax has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
jenrzzz has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
zautomata1 has quit [Quit: WeeChat 1.9.1]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
zautomata has joined #ruby
zautomata has joined #ruby
zautomata has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
bmurt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
psychicist__ has quit [Ping timeout: 248 seconds]
psychicist__ has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
bmurt has quit [Ping timeout: 240 seconds]
Psybur_ has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
PresidentBiscuit has joined #ruby
JaredR has joined #ruby
Resident_ has joined #ruby
pilne has quit [Quit: Leaving]
Residen__ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
ResidentBiscuit has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
PresidentBiscuit has quit [Ping timeout: 245 seconds]
marxarelli is now known as marxarelli|afk
PresidentBiscuit has joined #ruby
JaredR has quit [Ping timeout: 240 seconds]
dinfuehr has joined #ruby
JaredR has joined #ruby
Resident_ has quit [Ping timeout: 252 seconds]
gnufied has joined #ruby
Resident_ has joined #ruby
Residen__ has quit [Ping timeout: 240 seconds]
Residen__ has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
nadir has joined #ruby
ResidentBiscuit has joined #ruby
PresidentBiscuit has quit [Ping timeout: 240 seconds]
PresidentBiscuit has joined #ruby
JaredR has quit [Ping timeout: 252 seconds]
gizmore has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 276 seconds]
gizmore has joined #ruby
JaredR has joined #ruby
Resident_ has quit [Ping timeout: 252 seconds]
d^sh has joined #ruby
Resident_ has joined #ruby
Residen__ has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
Residen__ has joined #ruby
PresidentBiscuit has quit [Ping timeout: 240 seconds]
JaredR has quit [Ping timeout: 240 seconds]
Resident_ has quit [Ping timeout: 240 seconds]
Residen__ has quit [Ping timeout: 252 seconds]
unreal_ has joined #ruby
unreal has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
stairmast0r has quit [Quit: bye]
stairmast0r has joined #ruby
ResidentBiscuit has joined #ruby
stairmast0r has quit [Remote host closed the connection]
gizmore|2 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
gizmore has quit [Ping timeout: 240 seconds]
stairmast0r has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
alfiemax has joined #ruby
netherwolfe has joined #ruby
darkhanb has joined #ruby
netherwolfe has quit [Ping timeout: 252 seconds]
lroca has quit [Quit: lroca]
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
arescorpio has quit [Read error: Connection reset by peer]
cstrahan has quit [Quit: Connection closed for inactivity]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
gnufied has quit [Ping timeout: 260 seconds]
cthulchu| has quit [Ping timeout: 268 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Remote host closed the connection]
jrm has quit [Quit: ciao]
alfiemax has joined #ruby
jrm has joined #ruby
cthulchu has joined #ruby
govg has quit [Ping timeout: 268 seconds]
alfiemax has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
cthulchu has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
che_ has quit [Remote host closed the connection]
iMadper` has quit [Remote host closed the connection]
linuxdaemon has quit [Ping timeout: 240 seconds]
robot is now known as uptime
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
alfiemax_ has joined #ruby
dstrunk has joined #ruby
mooser has joined #ruby
mooser has quit [Remote host closed the connection]
linuxdaemon has joined #ruby
cschneid has joined #ruby
hahuang61 has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
mooser has joined #ruby
dstrunk has quit [Quit: Textual IRC Client: www.textualapp.com]
mooser has quit [Ping timeout: 256 seconds]
cthulchu has joined #ruby
Puffball has joined #ruby
rippa has joined #ruby
anisha has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby
nielsk has quit [Quit: So Long, and Thanks for All the Fish]
nielsk has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
cthulchu has quit [Ping timeout: 240 seconds]
Puffball has quit [Remote host closed the connection]
ghormoon has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
ghormoon has joined #ruby
AJA4350 has joined #ruby
willmichael has quit [Read error: Connection reset by peer]
Puffball has joined #ruby
garyserj has joined #ruby
<garyserj> what's the difference between doing require 'pry' vs require 'byebug', and then doing binding.pry ?
<havenwood> garyserj: You have to require pry either directly or through something that has it as a dependency in order to `binding.pry`.
<havenwood> garyserj: Byebug doesn't have Pry as a dep, so you'd have to require Pry if you aren't already.
<havenwood> garyserj: There's a pry-byebug gem: https://github.com/deivid-rodriguez/pry-byebug
willmichael has joined #ruby
<garyserj> thanks, i see the installation of gem pry-byebug adds some commands to pry.
conta has joined #ruby
oleo has quit [Quit: Leaving]
chmurifree is now known as chmuri
MarcWeber has joined #ruby
<MarcWeber> When assigning a hash, how does ruby detertmine equality? I mean h[obj] -> is there a obj.to_hash like function to tell ruby when it overwrite existing entry?
cthulchu has joined #ruby
edwardly has quit [Ping timeout: 256 seconds]
Phate has quit [Remote host closed the connection]
<caoraivoso> I like using binding.irb but I wish I had a way to add breakpoints and step/next/continue, etc
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
sidx64 has joined #ruby
aufi has joined #ruby
nowhereman_ has joined #ruby
aufi has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
cschneid has quit [Remote host closed the connection]
<garyserj> caoraivoso: so why don't you use binding.pry ?
alfiemax_ has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 256 seconds]
<caoraivoso> I'm writing simple scripts and I'm a bit lazy to install pry
<caoraivoso> but I guess I'll do it
AJA4350 has quit [Remote host closed the connection]
<garyserj> what about byebug , that might come as default?
alfiemax has joined #ruby
AJA4350 has joined #ruby
<caoraivoso> it's the default in rails, not ruby
<caoraivoso> I'm not using rails
cschneid has joined #ruby
<garyserj> ah ok
cthulchu has quit [Ping timeout: 245 seconds]
PhoenixMage has left #ruby [#ruby]
troys has quit [Quit: Bye]
cschneid has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
kapil___ has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 268 seconds]
edwardly has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
Puffball has quit [Ping timeout: 256 seconds]
LocaMocha has joined #ruby
sidx64_ has joined #ruby
sidx64 has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
sidx64 has joined #ruby
aufi has quit [Remote host closed the connection]
LocaMocha has quit [Remote host closed the connection]
jenrzzz has joined #ruby
sidx64_ has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has joined #ruby
ryzokuken has joined #ruby
cthulchu has joined #ruby
claudiuinberlin has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Remote host closed the connection]
kapil___ has joined #ruby
* dminuoso calls havenwood by name
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> You are not quite normal yet.
eckhardt has joined #ruby
sidx64 has joined #ruby
darkhanb has joined #ruby
hahuang61 has joined #ruby
jamesaxl has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
cthulchu has quit [Ping timeout: 248 seconds]
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4350 has joined #ruby
solocshaw has joined #ruby
ramfjord has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
guardianx has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
mtkd has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
dionysus69 has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
alfiemax_ has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
jameser has joined #ruby
govg has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
GinoMan has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
anisha has quit [Read error: Connection reset by peer]
anisha has joined #ruby
cthulchu has joined #ruby
andikr has joined #ruby
chmuri has quit [Excess Flood]
chmurifree has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has joined #ruby
jameser has quit [Remote host closed the connection]
jameser has joined #ruby
phaul has joined #ruby
hahuang61 has joined #ruby
vondruch has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
tvw has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
vutral|kali has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
Burgestrand has joined #ruby
guardianx has quit [Remote host closed the connection]
cthulchu has quit [Ping timeout: 256 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
yohji has joined #ruby
Matthew1 has quit []
willmichael has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
willmichael has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
willmichael has joined #ruby
karapetyan has joined #ruby
alfiemax has quit [Remote host closed the connection]
ams__ has joined #ruby
alfiemax has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
amatas has joined #ruby
aupadhye has joined #ruby
Beams has joined #ruby
sidx64 has joined #ruby
cthulchu has joined #ruby
ltt has joined #ruby
ltt has quit [Client Quit]
hahuang61 has joined #ruby
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
garyserj has quit []
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
<caoraivoso> are there any specific cases when I should be using procs/lambdas/blocks instead of methods?
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
ltt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has quit [Read error: Connection reset by peer]
<dminuoso> caoraivoso: procs/lambdas/blocks are a bit cleaner when doing HOFs.
<dminuoso> say
alfiemax has quit [Remote host closed the connection]
<dminuoso> caoraivoso: Actually, no it kind of depends.
<dminuoso> For example
<dminuoso> >> [1,2,3,4,5,6].select(&:even)
<ruby[bot]> dminuoso: # => undefined method `even' for 1:Fixnum ...check link for more (https://eval.in/969158)
<dminuoso> >> [1,2,3,4,5,6].select(&:even?)
<ruby[bot]> dminuoso: # => [2, 4, 6] (https://eval.in/969159)
<dminuoso> caoraivoso: Semantically this passes a method (name), though you use a block if you look close enough.
alfiemax has joined #ruby
<dminuoso> caoraivoso: Also I frequently like to use lambdas when I just need a combinator
<dminuoso> for example this has become a common idiom for me:
sanscoeur has quit [Ping timeout: 256 seconds]
<caoraivoso> HOF?
<dminuoso> at -> i, e { e[i] }; foo.map(&at["blah"])
<dminuoso> err
<dminuoso> at -> i, e { e[i] }.curry; foo.map(&at["blah"])
sanscoeur has joined #ruby
willmichael has joined #ruby
<dminuoso> (I usually tuck that `at` away, so I dont need to redefine it all over the place)
<caoraivoso> I see, makes sense
<dminuoso> agent_white: https://eval.in/969165
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<dminuoso> caoraivoso: There's lots of cool tricks you can do if you simply use lambda and curry.
MatrixBridge has joined #ruby
MatrixBridge has left #ruby ["User left"]
<dminuoso> Whole "design patterns" disappear into simple functions.
nowhereman_ has quit [Ping timeout: 240 seconds]
<dminuoso> *caoraivoso
klaas has joined #ruby
sanscoeur has quit [Ping timeout: 256 seconds]
<caoraivoso> nice
<caoraivoso> I'll look more into it, thanks
<caoraivoso> what does HOF stands for?
<dminuoso> caoraivoso: higher order function. its a function that itself either takes a function (i.e. proc/lambda/block) as an argument and/or returns a function as a result.
jenrzzz has quit [Ping timeout: 248 seconds]
<dminuoso> basically it admits that functions themselves are values.
Burgestrand has quit [Quit: Good bye and have a nice day!]
<caoraivoso> that makes sense, most functions return a value quite often
marr has joined #ruby
<dminuoso> caoraivoso: No.
<dminuoso> caoraivoso: A function that returns a function as a value!
<dminuoso> caoraivoso: For example with currying _every_ function with more than one argument is a higher order function.
<dminuoso> caoraivoso: my `at` is a higher order function.
<dminuoso> why? if you invoke it with `at[:name]`, it returns a function that takes one argument and produces some result.
<dminuoso> so `at` is a function that returns a function.
<caoraivoso> interesting
<dminuoso> and conversely a function that takes a function as an argument is also a HOF
<dminuoso> (in Ruby this usually means any method that takes a block)
<dminuoso> caoraivoso: so there's some cool perspectives
<dminuoso> like
<dminuoso> add = -> a, b { a + b }.curry
<dminuoso> if `add` is a function that returns a function, then what does it do?
<dminuoso> well `add` creates adders. add[5] creates an "adder, that simply adds 5 to any value"
guille-moe has joined #ruby
<dminuoso> caoraivoso: Then you can have a fun HOF: ap = -> f, v { f[v] }.curry
<kke> could there be some clever way to make unknown_local_variable_or_method || "hello" to return hello instead of raising NameError?
<caoraivoso> dminuoso: nice
nadir has quit [Quit: Connection closed for inactivity]
<caoraivoso> I'll play a bit more with lambdas
<dminuoso> caoraivoso: Be sure to curry them, you gain so much more power with no costs..
<caoraivoso> ok
mtkd has quit [Ping timeout: 240 seconds]
Beams_ has joined #ruby
xco has joined #ruby
<dminuoso> caoraivoso: (if currying makes sense to you, if not I recommend it)
<dminuoso> caoraivoso: Its not idiomatic ruby, but with things like `at` you can write so much more concise code.
<dminuoso> I think foo.map(&at[:name]) tells me much better what this does, compared to `foo.map { |e| e[:name }` because it forces you to think in terms of operations, rather than denotation.
Beams has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
<caoraivoso> I'm not familiar with curry yet, but I'll check it out
nowhereman_ has joined #ruby
<dminuoso> caoraivoso: https://eval.in/969183
<dminuoso> so many shenanigans you can do.
cthulchu has joined #ruby
<dminuoso> https://eval.in/969187 slightly rewritten
DTZUZO has quit [Ping timeout: 260 seconds]
xco has quit [Quit: xco]
<caoraivoso> nice
jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
gix has joined #ruby
xco has joined #ruby
Beams_ has quit [Remote host closed the connection]
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kke> hmm actually i just want an instance of NilClass that has to_s that raises
<kke> and i know there's several things wrong in the whole concept of that :D
solocshaw has joined #ruby
<kke> but is this doable? could i do the equivalent of foo = nil; foo.extend(NotStringable)
<dminuoso> kke: Can you explain the context?
<dminuoso> kke: You could generally check for responds_to? first, but it could be an anti pattern depending on what you are doing
<kke> dminuoso: i'm trying to create a sort of a Namespace for erb binding. I would like to have something like <%= some_var || "default_value" %> and <% some_var ||= 'default_value' %> working, but raise a NameError, "unknown local variable or method X" for something like <%= some_var %> if it's not defined
ryzokuken has quit [Quit: Connection closed for inactivity]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<kke> so in essence, i think, having a nil that is not to_s:able
<kke> currently i have something like def method_missing(meth, *args) NilObject.new(meth) end and that works for everything except for the <%= some_var || "default_value" %> (of course there may be some other non working cases i haven't thought of yet)
<kke> where nilobject is a class that has def nil? { true } and def to_s { raise NameError }
fribmendes has joined #ruby
<kke> and the namespace thing is kind of derived from the answer in https://stackoverflow.com/a/5462069/681520
hahuang61 has joined #ruby
schneider has joined #ruby
cthulchu has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
sanscoeur has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
sanscoeur has quit [Ping timeout: 276 seconds]
cadillac_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
Burgestrand has joined #ruby
postmodern has quit [Quit: Leaving]
xco has quit [Quit: xco]
camilasan is now known as camilasan_
za1b1tsu has quit [Quit: Leaving]
cthulchu has joined #ruby
camilasan_ is now known as camilasan
xco has joined #ruby
kliq has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
lenci has joined #ruby
* lenci KLIKONI http://beratilive.com hyni ne chat me djem dhe takime klikoni direkt START dhe kerkoni ne privat jo main se ju presin djem te bukur
* lenci KLIKONI http://beratilive.com hyni ne chat me djem dhe takime klikoni direkt START dhe kerkoni ne privat jo main se ju presin djem te bukur
lenci has left #ruby [#ruby]
<dminuoso> kke | and i know there's several things wrong in the whole concept of that :D
<dminuoso> kke: No I think that's a very sane thing.
<dminuoso> kke: nil should make things explode left and right.
claudiuinberlin has joined #ruby
apeiros has joined #ruby
sylario has joined #ruby
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
ltt has joined #ruby
shinnya has joined #ruby
hahuang61 has joined #ruby
cthulchu has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
mtkd has quit []
mtkd has joined #ruby
devil_tux has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
<kke> mostly refering to things like "an instance of NilClass"
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
vutral|kali has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has joined #ruby
ltt has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
Psybur_ has joined #ruby
cadillac_ has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
fribmendes is now known as fribmendes_afk
fribmendes_afk has quit [Quit: Zzzz...]
anisha has quit [Ping timeout: 255 seconds]
fribmendes has joined #ruby
willmichael has joined #ruby
anisha has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
Psybur_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devil_tux has quit [Ping timeout: 256 seconds]
vutral|kali has quit [Quit: ZNC 1.6.5 - http://znc.in]
nowhereman_ has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
tcopeland has quit [Quit: tcopeland]
workmad3_ is now known as workmad3
suukim has joined #ruby
hahuang61 has joined #ruby
luminous has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
hahuang61 has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
alex`` has joined #ruby
wojnar has joined #ruby
Burgestrand has quit [Quit: Closing time!]
ferr1 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
meadmoon has joined #ruby
kliq has quit [Ping timeout: 248 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has joined #ruby
ferr1 has left #ruby ["WeeChat 2.0.1"]
alex`` has quit [Quit: WeeChat 2.0.1]
cschneid has joined #ruby
Psybur_ has joined #ruby
ltt has joined #ruby
\void has joined #ruby
Puffball has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 256 seconds]
fribmendes has quit [Quit: Zzzz...]
cschneid has quit [Ping timeout: 256 seconds]
xco has quit [Quit: xco]
milardovich has joined #ruby
schneider has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
DTZUZO has joined #ruby
schneider has joined #ruby
fribmendes has joined #ruby
cthulchu has joined #ruby
tcopeland has joined #ruby
rikkipitt has joined #ruby
fribmendes has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
adlerdias has joined #ruby
jcalla has joined #ruby
jeffreylevesque has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
gnufied has joined #ruby
synthroid has joined #ruby
Psybur_ has quit [Ping timeout: 255 seconds]
psychicist__ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
rikkipitt has quit [Quit: Leaving...]
psychicist__ has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
aufi has quit [Quit: Leaving]
karapetyan has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
cthulchu has quit [Ping timeout: 268 seconds]
cschneid has quit [Ping timeout: 240 seconds]
kliq has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pyther has joined #ruby
<pyther> Hi. I'm hacking on some puppet code and I'm trynig to figure out what the significance of the underscore in the following line of code? raise Puppet::ParseError, _("modular_file: unable to lookup module_path.")
nowhereman_ has joined #ruby
rrutkowski has joined #ruby
Psybur_ has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
Papierkorb has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
wojnar has quit [Quit: Leaving]
milardovich has joined #ruby
cschneid has joined #ruby
aufi has joined #ruby
aufi_ has joined #ruby
memo1 has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
oleo has joined #ruby
Psybur_ has quit [Ping timeout: 240 seconds]
cthulchu has joined #ruby
ramfjord has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
johnny56 has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 256 seconds]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
desperek has joined #ruby
karapetyan has quit [Remote host closed the connection]
larissa has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
larissa has joined #ruby
workmad3 has joined #ruby
Bhootrk has joined #ruby
wojnar has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
guille-moe has quit [Quit: guille-moe]
hahuang61 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
chouhoulis has joined #ruby
cthulchu has quit [Ping timeout: 245 seconds]
conta has quit [Ping timeout: 248 seconds]
conta has joined #ruby
<apeiros> pyther: quite likely localization
<apeiros> also: #puppet
Papierkorb has left #ruby ["Konversation terminated!"]
Burgestrand has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
gnufied has quit [Ping timeout: 256 seconds]
hinbody has quit [Quit: leaving]
bmurt has joined #ruby
bmurt has quit [Client Quit]
sanscoeur has joined #ruby
bmurt has joined #ruby
DLSteve_ has joined #ruby
sanscoeur has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
<desperek> so well..
<desperek> umh
<desperek> how do i format array nicely in 1 liner
conta has quit [Ping timeout: 240 seconds]
<apeiros> desperek: got an example?
<desperek> apeiros, i do, but i guess that's not a thing here. array_from_assoc.each or .map
<desperek> dunno, were there map!?
ixti has joined #ruby
<desperek> apeiros, i guess thats more ERB question
<apeiros> I have no idea what you're asking for then
dionysus70 has joined #ruby
aufi_ has quit [Quit: Leaving]
roshanavand has joined #ruby
<desperek> eh, i need to escape array somehow apeiros
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> for some reason it makes even less sense now
dionysus69 has quit [Ping timeout: 268 seconds]
dionysus70 is now known as dionysus69
<apeiros> maybe think for a minute what information might be relevant to understand your question.
<apeiros> (and then provide it)
<desperek> mhm i brb anyways
hinbody has joined #ruby
ltt has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
gnufied has quit [Ping timeout: 268 seconds]
Ltem has joined #ruby
unreal_ has quit [Ping timeout: 265 seconds]
larcara has joined #ruby
howdoi has joined #ruby
cthulchu has joined #ruby
gnufied has joined #ruby
cthulchu has quit [Ping timeout: 260 seconds]
Ethan has quit [Quit: ZNC 1.6.5 - http://znc.in]
nekomune has quit [Ping timeout: 256 seconds]
totalsecond has joined #ruby
chouhoulis has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cavallari has quit [Quit: Cavallari]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
totalsecond is now known as Ethan
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Rapture has joined #ruby
<desperek> apeiros, so, first things first. i have a view in html.erb. i have for each loop on some array and in this loop i want to proccess array with each/map!
<desperek> but it doesnt seem to work
<desperek> instead of executing for each loop it prints the information, like there would be no .each in the first place
<desperek> u.roles.where(division: @division).each {|n| ',@!!@321'}
<desperek> lets say this is the piece of code
hahuang61 has joined #ruby
<apeiros> yeah, example please. ideally reproducible.
<apeiros> s/ideally/mandatory/ :-p
<desperek> apeiros, basically the line i pasted up there (u.roles...) is the example
<desperek> actual code :p
<desperek> let me launch pry
ltt has joined #ruby
<apeiros> desperek: no, the code above is *not* an example.
<apeiros> there is zero erb in your example. it's not reproducible.
<desperek> i suppose it is whatever?
<apeiros> I don't know what you want to say by that
<desperek> apeiros, i mean, ERB executes ruby code, doesnt it?
<apeiros> yes
<desperek> hence i guess we can ommit ERB part
<apeiros> you guess wrong
<apeiros> if you write bad erb, there's no point in looking even at the ruby code
<desperek> apeiros, ruby does what erb does there tho
fribmendes has joined #ruby
<apeiros> ok. lets see. reduce your example to where erb does not come into play.
<desperek> apeiros, u.each {|n| n.something} where u is ActiveRecord_Associations_CollectionProxy
<apeiros> ok, you don't understand reproducible.
hahuang61 has quit [Ping timeout: 256 seconds]
<apeiros> reproducible means I can copy your code and run it
<apeiros> ping me when you have a reproducible example
willmichael has quit [Ping timeout: 265 seconds]
mcr1 has quit [Ping timeout: 245 seconds]
cschneid has joined #ruby
<desperek> apeiros, i still have no idea how to pass it to you :/
netherwolfe has joined #ruby
Puffball has joined #ruby
<apeiros> remove all the parts which don't matter. replace them with things which have no dependencies.
<apeiros> instead of `u.roles.where(division: @division).each { |role| role.some_attribute }` provide `["some", "attribute", "values"].each { |attr| attr }`
<apeiros> all the code has to do is still exhibit your problem
roshanavand has quit [Ping timeout: 256 seconds]
<desperek> apeiros, okay, whatever. i have an array now, how can i make it print with the style i want in ERB?
cschneid has quit [Ping timeout: 240 seconds]
<apeiros> seriously, you lack like *all* relevant information. let me give you a similarly detailed answer:
<apeiros> by applying the style you want to the array and emitting it in the erb
<apeiros> there. did that help you?
cagmz has joined #ruby
<desperek> apeiros, okay okay... here is reproductible example: <%= ["0","1"] %>
nadir has joined #ruby
<apeiros> and what would you like your erb to emit? the "style" part…
<desperek> how do i display these 0, 1 instead of ["0","1"] apeiros
<desperek> like "0, 1"
<desperek> here
<apeiros> you convert it to a string. with this example, join is a good choice.
roshanavand has joined #ruby
<apeiros> <%= ["0", "1"].join(", ") %>
<desperek> ...oh.... didn't think about it that way...
<apeiros> <%= (expression) %> calls to_s on the value (expression) evaluates to. and Array#to_s gives you '["0","1"]'
<desperek> thanks a lot apeir0s
willmichael has joined #ruby
<apeiros> ?tabnick desperek
<ruby[bot]> desperek: pro-tip - use tab completion for nicks. avoids typos in nicks.
<desperek> apeiros, i've done it on purpose
<apeiros> why?
<desperek> apeiros, of not pinging you, well, nevermind
Gnut_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
willmichael has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
willmichael has joined #ruby
willmichael has quit [Ping timeout: 260 seconds]
milardovich has quit [Remote host closed the connection]
fribmendes has quit [Quit: Zzzz...]
milardovich has joined #ruby
fribmendes has joined #ruby
willmichael has joined #ruby
cschneid has joined #ruby
yokel has quit [Remote host closed the connection]
ixti has quit [Quit: WeeChat 2.0.1]
vyorkin has joined #ruby
dionysus70 has joined #ruby
karapetyan has quit []
yokel has joined #ruby
AJA4350 has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
vyorkin has quit [Client Quit]
zacts has quit [Quit: WeeChat 1.9.1]
zacts has joined #ruby
[Butch] has joined #ruby
ldnunes has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
bmurt has quit [Ping timeout: 256 seconds]
<darix> apeiros: you dont want to know how often i screwed up even with tabcompletion :P
<apeiros> no :-p
<darix> also your nick would look better with the 0 instead of the o
<darix> please fix
<apeiros> no!
raynold has quit [Quit: Connection closed for inactivity]
gizmore|2 is now known as gizmore
andikr has quit [Remote host closed the connection]
hahuang61 has joined #ruby
alfiemax has joined #ruby
sanscoeur has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
sanscoeur has quit [Ping timeout: 240 seconds]
willmichael has quit [Ping timeout: 256 seconds]
willmichael has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
mtkd has joined #ruby
troys has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
larcara has quit []
n008f4g_ has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pyther> apeiros: thanks, I think it appears to be localization. I didn't realize you could define a function as '_'. I thought the underscore had some special meaning in ruby.
Puffball has quit [Remote host closed the connection]
ltt has joined #ruby
<apeiros> pyther: it doesn't. it works like a lowercase character.
yokel has quit [Ping timeout: 260 seconds]
GinoMan has joined #ruby
synthroid has joined #ruby
mtkd has quit []
ramfjord has joined #ruby
yokel has joined #ruby
Cavallari has joined #ruby
bmurt has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
cthulchu has joined #ruby
mtkd has joined #ruby
jenrzzz has joined #ruby
Zaab1t has joined #ruby
cdg has quit [Remote host closed the connection]
aguestuser has quit [Remote host closed the connection]
Greasy-Gappers_ has quit [Quit: ZNC 1.7.x-git-876-42939c9 - https://znc.in]
cdg has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
cdg has quit [Ping timeout: 265 seconds]
tubbo has joined #ruby
kliq has quit [Ping timeout: 256 seconds]
<cout> wow, instance_variable_set is really slow
jcarl43 has joined #ruby
<havenwood> cout: They just added it to things that MJIT can optimize.
hahuang61 has joined #ruby
<cout> havenwood: oh cool
aufi has joined #ruby
<cout> I wouldn't expect it to be optimizable in MRI since it's just a method call to C
alfiemax has quit [Remote host closed the connection]
aufi has quit [Remote host closed the connection]
tubbo has quit [Quit: WeeChat 2.0.1]
tubbo has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
RougeR has quit [Ping timeout: 260 seconds]
tubbo has quit [Quit: WeeChat 2.0.1]
apeiros has quit []
clemens3 has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
aupadhye has quit [Quit: Leaving]
Xiti has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wojnar has quit [Remote host closed the connection]
yohji has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
ldnunes has joined #ruby
alfiemax has quit [Remote host closed the connection]
sanscoeur has joined #ruby
Bhootrk has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
mrush has joined #ruby
marxarelli|afk is now known as marxarelli
<mrush> anyone know of a ruby alternative to pandoc? i want to convert html -> md
kanobt61 has joined #ruby
<mrush> i dont think i can justify the 13G of haskel libs required to use pandoc, lol
alfiemax has quit [Ping timeout: 260 seconds]
mtkd has quit []
mtkd has joined #ruby
fribmendes has quit [Quit: Zzzz...]
schneider has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
<havenwood> mrush: it looks like reverse_markdown or upmark are options - i've used neither
rgiscard has joined #ruby
vondruch has quit [Quit: vondruch]
<havenwood> mmm, upmark uses parslet
alfiemax has joined #ruby
bigblind has joined #ruby
luminous has quit []
schneider has quit [Ping timeout: 252 seconds]
nowhereman_ has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
nowhere_man has quit [Ping timeout: 245 seconds]
TomyWork has quit [Remote host closed the connection]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
alfiemax has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 240 seconds]
dwcraig has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
psychicist__ has quit [Read error: Connection reset by peer]
psychicist__ has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
mtkd has quit []
tolerablyjake has joined #ruby
jeffreylevesque has joined #ruby
tolerablyjake has quit [Client Quit]
eckhardt_ has joined #ruby
tolerablyjake has joined #ruby
kies has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 240 seconds]
tolerablyjake has quit [Client Quit]
tolerablyjake has joined #ruby
claudiuinberlin has joined #ruby
pilne has joined #ruby
marr has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
drewmcmillan has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
kliq has joined #ruby
mooser has joined #ruby
Dimik has joined #ruby
psychicist__ has quit [Ping timeout: 240 seconds]
Ltem has quit [Quit: bbl]
clemens3 has joined #ruby
alfiemax has joined #ruby
ramfjord has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
ltt has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
suukim has quit [Remote host closed the connection]
gnufied has quit [Remote host closed the connection]
kies has joined #ruby
mooser has quit [Remote host closed the connection]
ldepandis has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
gnufied has joined #ruby
segy_ has joined #ruby
rrutkowski has joined #ruby
orbyt_ has joined #ruby
segy has quit [Ping timeout: 245 seconds]
segy_ is now known as segy
mooser has joined #ruby
shinnya has joined #ruby
Ltem has joined #ruby
ryandv has joined #ruby
alfiemax has joined #ruby
tolerablyjake has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 256 seconds]
amatas has quit [Quit: amatas]
amatas has joined #ruby
amatas has quit [Client Quit]
amatas has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
adlerdias has quit [Ping timeout: 268 seconds]
speakingcode has joined #ruby
willmichael has quit [Ping timeout: 252 seconds]
segy has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
ramfjord has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
segy has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tubbo has joined #ruby
willmichael has joined #ruby
claudiuinberlin has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
tvw has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
rrutkowski has quit [Quit: rrutkowski]
CalimeroTeknik has joined #ruby
tubbo` has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
memo1 has joined #ruby
tubbo has quit [Read error: Connection reset by peer]
ams__ has quit [Quit: Connection closed for inactivity]
Code4Dopamine has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
riotjoe has joined #ruby
tvw has joined #ruby
<CalimeroTeknik> `puts foo` outputs {:bar=>"baz"} in some program. how to access the field foo.bar? `puts foo.bar` says Listener error: undefined method `bar' for #<Hash:0x007f80636e33f0>
tubbo has joined #ruby
marxarelli is now known as marxarelli|afk
<phaul> CalimeroTeknik: catch call with method_missing, check if name is key, return value
<phaul> it's all dirty hacking, but I guess it's fine here
milardovich has joined #ruby
tubbo` has quit [Ping timeout: 268 seconds]
<CalimeroTeknik> uh, how do I access a "key"?
<CalimeroTeknik> foo["bar"] produced the same effect
riotjones has quit [Ping timeout: 252 seconds]
<phaul> you need to open up the Hash class for monkey patching. define a method_missing function in there
speakingcode has quit [Quit: Lost terminal]
alfiemax has joined #ruby
<CalimeroTeknik> I stand corrected, foo["bar"] seems to output an empty string instead
riotjoe has quit [Ping timeout: 260 seconds]
memo1 has quit [Ping timeout: 240 seconds]
<CalimeroTeknik> I don't think I need any hacking, just how to access fields in parsed yaml
<CalimeroTeknik> super basic basics but I don't even know the syntax
memo1 has joined #ruby
<phaul> I read too much into your question sorry. Ingore what I said
dviola has joined #ruby
<CalimeroTeknik> no worries, I understand it, I just lack syntax basics in ruby; how could I access a key?
<phaul> to access :foo in h = { :foo => "bar" } use h[:foo]
<CalimeroTeknik> oh! thanks
<phaul> >> h = { :foo => "bar"} ; h[:foo]
<ruby[bot]> phaul: # => "bar" (https://eval.in/969545)
<CalimeroTeknik> I was becoming afraid of having a bad case of https://xkcd.com/1912/
alfiemax has quit [Ping timeout: 256 seconds]
<CalimeroTeknik> when I ask for a field in a data structure and it errors out saying undefined method, you gotta admit…
<phaul> "." in ruby always denotes a method call
<phaul> that's what lead the interpreter ( and me :D ) on the wrong path
rrutkowski has joined #ruby
marxarelli|afk is now known as marxarelli
tvw has quit [Ping timeout: 256 seconds]
memo1 has quit [Ping timeout: 268 seconds]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
alfiemax has joined #ruby
GinoMan has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
memo1 has joined #ruby
imode has joined #ruby
sidx64 has joined #ruby
Psybur has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
tvw has joined #ruby
tubbo` has joined #ruby
mcr1 has joined #ruby
tubbo has quit [Ping timeout: 268 seconds]
sidx64_ has joined #ruby
eckhardt_ has joined #ruby
caoraivoso has left #ruby [#ruby]
workmad3 has joined #ruby
sidx64 has quit [Ping timeout: 265 seconds]
tvw has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
bigblind has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
segy_ has joined #ruby
mooser has quit [Ping timeout: 260 seconds]
zapata has quit [Read error: Connection reset by peer]
segy has quit [Ping timeout: 240 seconds]
segy_ is now known as segy
nowhere_man has joined #ruby
zapata has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tcopeland has quit [Quit: tcopeland]
nowhereman_ has quit [Ping timeout: 265 seconds]
troulouliou_dev has joined #ruby
Cavallari has quit [Quit: Cavallari]
tcopeland has joined #ruby
ramfjord has joined #ruby
kliq has quit [Ping timeout: 256 seconds]
milardovich has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
eckhardt_ has joined #ruby
SeepingN has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
ldnunes has quit [Quit: Leaving]
darkhanb has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore is now known as giz|work
giz|work is now known as gizmore
alfiemax has joined #ruby
<gizmore> why everyone is copying active record... and rails .... it sucks
<gizmore> i made way better DBA in a couple of hours
bmurt has joined #ruby
<gizmore> Rule of thumb: everything is a string
lytol has joined #ruby
bmurt has quit [Client Quit]
ramfjord has joined #ruby
segy_ has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
eckhardt_ has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
segy has quit [Ping timeout: 240 seconds]
segy_ is now known as segy
milardovich has quit [Ping timeout: 256 seconds]
schneider has joined #ruby
<darix> gizmore: using DB datatypes instead of strings can have many advantages
<gizmore> yeah
<gizmore> in my GDO DBA
<gizmore> i have own types
<gizmore> like GDT_Timestamp, GDT_Date, GDT_DateTime, GDT_GeoPosition
<gizmore> all make use of the mysql below/up
<gizmore> they know how to behave
<gizmore> the DBA, the html, the json, all is handled by each GDT
eckhardt_ has quit [Ping timeout: 268 seconds]
darkhanb has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
darkhanb has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
jeffreylevesque has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
pyther has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
jcalla has quit [Quit: Leaving]
aufi has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
synthroid has quit []
tcopeland has quit [Quit: tcopeland]
alex`` has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
ryandv has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
segy_ has joined #ruby
tcopeland has joined #ruby
bmurt has quit [Client Quit]
segy has quit [Ping timeout: 268 seconds]
segy_ is now known as segy
tcopeland has quit [Client Quit]
tubbo` has quit [Ping timeout: 245 seconds]
icarus has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
guardianx has joined #ruby
bigblind has quit [Ping timeout: 252 seconds]
donkey_boy has joined #ruby
<donkey_boy> ?
<donkey_boy> urine is pillaging innocent children
darkhanb_ has joined #ruby
bigblind has joined #ruby
thinkpad has quit [Ping timeout: 240 seconds]
darkhanb has quit [Ping timeout: 264 seconds]
coderphive has joined #ruby
segy_ has joined #ruby
segy has quit [Ping timeout: 240 seconds]
segy_ is now known as segy
thinkpad has joined #ruby
alfiemax has joined #ruby
drakko has joined #ruby
sidx64_ has quit [Ping timeout: 268 seconds]
schneider has quit [Ping timeout: 260 seconds]
erlend has quit [Ping timeout: 256 seconds]
redondos has quit [Ping timeout: 256 seconds]
wnd has quit [Quit: Disconnecting from stoned server.]
wnd has joined #ruby
desperek has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
donkey_boy has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
marr has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
ryandv has joined #ruby
<pilne> would anyone in here happen to know what is going on with ruboto? or would that be more of a jruby thing?
fmccann has quit [Ping timeout: 256 seconds]
Ltem has quit [Quit: good night]
foamz has quit [Ping timeout: 256 seconds]
<gizmore> pilne: just ask
<pilne> it it still being maintained?
zacts has quit [Ping timeout: 256 seconds]
stephenh has quit [Ping timeout: 256 seconds]
dwcraig_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
AndyWojo has quit [Ping timeout: 256 seconds]
jmhmccr has quit [Ping timeout: 256 seconds]
pwillard_ has joined #ruby
AndyWojo has joined #ruby
justinweiss has quit [Ping timeout: 256 seconds]
jabreity has quit [Ping timeout: 256 seconds]
fmccann has joined #ruby
jmhmccr has joined #ruby
maciuszek has quit [Ping timeout: 256 seconds]
pwillard has quit [Ping timeout: 256 seconds]
pwillard_ is now known as pwillard
justinweiss has joined #ruby
foamz has joined #ruby
stephenh has joined #ruby
jabreity has joined #ruby
maciuszek has joined #ruby
dwcraig has quit [Ping timeout: 256 seconds]
icarus has quit [Quit: leaving]
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt_ has joined #ruby
eckhardt_ has quit [Client Quit]
redondos has joined #ruby
aufi has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
mooser has joined #ruby
mniip has quit [Ping timeout: 240 seconds]
jcarl43 has quit [Max SendQ exceeded]
dmitriy_ has joined #ruby
jcarl43 has joined #ruby
ryandv has quit [Ping timeout: 256 seconds]
mniip has joined #ruby
ryandv has joined #ruby
minimalism has quit [Quit: minimalism]
mooser has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mlehrer has quit [Ping timeout: 260 seconds]
ryzokuken has quit [Quit: Connection closed for inactivity]
Dimik has joined #ruby
alfiemax has joined #ruby
ryandv has quit [Ping timeout: 264 seconds]
bigblind has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
mlehrer has joined #ruby
zacts has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 264 seconds]
chouhoul_ has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
segy has quit [Max SendQ exceeded]
<zenspider_> rawr
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
darkhanb_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
paraxial has quit [Quit: The Lounge - https://thelounge.github.io]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
paraxial has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
drakko has quit [Quit: xoxo]
<miah> ahoy
alfiemax has joined #ruby
<baweaver> ohai miah, zenspider
slde_track has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah> whats up?
alfiemax has quit [Ping timeout: 264 seconds]
netherwolfe has quit [Ping timeout: 240 seconds]
Vapez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
willmichael has quit [Ping timeout: 240 seconds]
willmichael has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
kapil___ has joined #ruby
<baweaver> Making popovers in JS
shinnya has joined #ruby
sanscoeu_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Quit: Leaving]
wlarip has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<miah> fun
darkhanb has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanscoeur has quit [Ping timeout: 256 seconds]
sanscoeu_ has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
memo1 has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Ping timeout: 252 seconds]
cadillac_ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
rgiscard has quit [Quit: Cheers]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
wlarip has quit [Quit: wlarip]
jcarl43 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
segy has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 256 seconds]
amatas has quit [Quit: amatas]