<parzydeuko>
not seeing anything related to fp there :<
<apeiros>
yeah, I was looking for baweaver's online book
<parzydeuko>
oh that's the guy who posted some blog posts on it a couple of days ago. i actually went through them and wanted to study it in a structured manner
minimalism has quit [Ping timeout: 265 seconds]
<quuxman>
There must be a shorter way to accomplish `l.each do |x| foo x end`
sytherax has quit [Ping timeout: 264 seconds]
elphe has joined #ruby
caleBOT_ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
sytherax has joined #ruby
bayprogrammer has quit [Quit: WeeChat 2.0.1]
bmurt has joined #ruby
AJA4350 has quit [Quit: AJA4350]
caleBOT_ has quit [Ping timeout: 255 seconds]
caleBOT has quit [Ping timeout: 255 seconds]
lytol has quit [Remote host closed the connection]
coderphive has joined #ruby
<baweaver>
ohai
<baweaver>
parzydeuko: The fastest way currently is to go through Javascript I'd say.
<baweaver>
A lot of similar language concepts, but if you combine with some of my posts from earlier you can apply them directly to Ruby
minimalism has joined #ruby
<baweaver>
apeiros: also that book specifically will be very n00b oriented
<baweaver>
I do have plans on an FP style one and a black magic style one later though
<baweaver>
Ruby has a Ramda, so this one carries over fairly well.
<baweaver>
Learning some Scala goes a bit deeper on the pool, and Haskell is basically the standard for most FP.
Cyrum has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
<baweaver>
Ruby and Javascript are both more of LISP descendants. Scala and Haskell can both be considered more of ML descendants than direct LISP.
<baweaver>
F# is basically OCaml on .NET
dinfuehr has joined #ruby
<baweaver>
Raganwald's Kestrel book is pretty great though for Ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_antares_ has joined #ruby
elphe has quit [Ping timeout: 255 seconds]
<parzydeuko>
thanks, I'll look into all that
<parzydeuko>
I was hoping to find a whole book on fp in ruby. It's the only language I have experience with that offers some degree of fp so I wanted start there and maybe then move on to something like Haskell
_antares_ has quit [Remote host closed the connection]
ryzokuken has joined #ruby
_antares_ has joined #ruby
ccrow has joined #ruby
ccrow has quit [Client Quit]
elphe has joined #ruby
_antares_ has quit [Ping timeout: 248 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
coderphive has quit [Quit: coderphive]
alfiemax has joined #ruby
caleBOT_ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
amar has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
joro_ has quit [Remote host closed the connection]
alfiemax_ has joined #ruby
parzydeuko has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
kapil___ has joined #ruby
Andrevan has quit [Quit: WeeChat 2.1]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
_antares_ has joined #ruby
Cyrum has joined #ruby
Cyrum has quit [Max SendQ exceeded]
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
cadillac_ has joined #ruby
parzydeuko has joined #ruby
dc1 has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
dc1 has quit [Client Quit]
za1b1tsu_ has joined #ruby
tjbp has quit [Remote host closed the connection]
tjbp has joined #ruby
za1b1tsu_ has quit [Ping timeout: 260 seconds]
dbugger_ has joined #ruby
Dbugger has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
_antares_ has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 248 seconds]
segy has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
darkhanb has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
segy has joined #ruby
ropeney has quit [Remote host closed the connection]
chocoelho has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
chocoelho has quit [Ping timeout: 260 seconds]
chocoelho has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
nickjj_ has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
donofrio has quit [Remote host closed the connection]
nickjj has quit [Ping timeout: 240 seconds]
nythalcrow has joined #ruby
nythalcrow has quit [Client Quit]
nythalcrow has joined #ruby
caleBOT has quit [Remote host closed the connection]
caleBOT_ has quit [Remote host closed the connection]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
nythalcrow_ has joined #ruby
caleBOT_ has quit [Ping timeout: 260 seconds]
caleBOT has quit [Ping timeout: 260 seconds]
nythalcrow has quit [Remote host closed the connection]
nythalcrow_ has quit [Remote host closed the connection]
shinnya has joined #ruby
alfiemax has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
alfiemax_ has quit [Ping timeout: 265 seconds]
cadillac_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
nythalcrow has joined #ruby
cadillac_ has joined #ruby
elphe has joined #ruby
za1b1tsu_ has joined #ruby
alfiemax_ has joined #ruby
za1b1tsu_ has quit [Ping timeout: 248 seconds]
jnollette has quit [Ping timeout: 255 seconds]
alfiemax has quit [Ping timeout: 255 seconds]
ryzokuken has quit [Remote host closed the connection]
ramfjord has joined #ruby
sytherax has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
sytherax has joined #ruby
ramfjord has joined #ruby
ta_ has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
caleBOT has joined #ruby
sytherax has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
chocoelho has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
howdoi has joined #ruby
cschneid_ has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 240 seconds]
soniya29 has joined #ruby
reber has joined #ruby
sytherax has joined #ruby
shinnya has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
Rush has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
ciscam has quit [Ping timeout: 240 seconds]
ciscam has joined #ruby
sauvin_ has joined #ruby
tvw has joined #ruby
caleBOT has joined #ruby
caleBOT_ has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 268 seconds]
parzydeuko has quit [Ping timeout: 255 seconds]
clemens3 has joined #ruby
caleBOT_ has quit [Ping timeout: 240 seconds]
caleBOT has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
za1b1tsu_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
ta_ has joined #ruby
nicesignal has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 265 seconds]
nicesignal has joined #ruby
elphe has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
parzydeuko has joined #ruby
sytherax has quit [Remote host closed the connection]
MXfive has joined #ruby
mtkd has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
elphe has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
alfiemax has quit [Remote host closed the connection]
schleppel has joined #ruby
tuskkk___ has quit [Quit: Connection closed for inactivity]
ciscam has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
sauvin_ has quit [Quit: Leaving]
ciscam has joined #ruby
sauvin_ has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
elphe has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
tvw has quit [Remote host closed the connection]
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
parzydeuko has quit [Ping timeout: 265 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
sytherax has joined #ruby
mohsen_1 has joined #ruby
sytherax has quit [Ping timeout: 260 seconds]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
white_lilies has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
alfiemax has quit [Remote host closed the connection]
suukim has joined #ruby
sauvin_ is now known as Bocaneri
alfiemax has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
reber has quit [Remote host closed the connection]
Puffball has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
marr has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
plexigras has joined #ruby
venmx has joined #ruby
sytherax has joined #ruby
white_lilies has quit [Ping timeout: 260 seconds]
reber has joined #ruby
plexigras has quit [Ping timeout: 240 seconds]
caleBOT_ has joined #ruby
caleBOT has joined #ruby
c0ncealed1 has quit [Remote host closed the connection]
Silthias1 has joined #ruby
c0ncealed1 has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
Silthias has quit [Ping timeout: 265 seconds]
caleBOT has quit [Ping timeout: 248 seconds]
caleBOT_ has quit [Ping timeout: 248 seconds]
venmx has joined #ruby
plexigras has joined #ruby
amar has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 240 seconds]
elphe has joined #ruby
alfiemax has joined #ruby
elphe has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
mlkkk has joined #ruby
mtkd has quit []
parzydeuko has joined #ruby
karapetyan has quit [Ping timeout: 276 seconds]
kapil___ has joined #ruby
sytherax has quit [Remote host closed the connection]
mlkkk has quit [Remote host closed the connection]
ropeney has joined #ruby
lxsameer has joined #ruby
sytherax has joined #ruby
mtkd has joined #ruby
nickjj_ is now known as nickjj
elphe has joined #ruby
parzydeuko has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
Zaab1t has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
biberu has joined #ruby
ramfjord has joined #ruby
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
ldepandis has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
amelliaa has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
amar has quit [Remote host closed the connection]
joro_ has joined #ruby
sytherax has quit [Remote host closed the connection]
mtkd has quit []
sytherax has joined #ruby
mtkd has joined #ruby
parzydeuko has joined #ruby
amar has joined #ruby
jamesaxl has joined #ruby
t0xik has joined #ruby
ur5us has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
soniya29 has quit [Remote host closed the connection]
mtkd has quit []
Mike11 has joined #ruby
za1b1tsu_ has quit [Ping timeout: 256 seconds]
chouhoulis has joined #ruby
sytherax has quit [Read error: Connection timed out]
chouhoulis has quit [Ping timeout: 240 seconds]
sytherax has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
karapetyan has joined #ruby
ciscam has joined #ruby
amar has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
ur5us has quit [Remote host closed the connection]
AJA4350 has joined #ruby
sytherax has quit [Read error: Connection timed out]
Silthias1 has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 268 seconds]
parzydeuko has quit [Ping timeout: 260 seconds]
BaroMeter has joined #ruby
Silthias has joined #ruby
amar has joined #ruby
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
weird_error has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
alfiemax has joined #ruby
sytherax has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
elphe has joined #ruby
alfiemax has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
sytherax has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 265 seconds]
inukshuk has quit [Ping timeout: 240 seconds]
ohcibi has quit [Remote host closed the connection]
marr has quit [Ping timeout: 276 seconds]
n13z has quit [Ping timeout: 240 seconds]
za1b1tsu_ has joined #ruby
joro_ has quit [Remote host closed the connection]
ur5us has joined #ruby
amar has quit [Read error: Connection reset by peer]
inukshuk has joined #ruby
BaroMeter has quit [Remote host closed the connection]
<ineb>
ok, friend is me. i have a lots of those traits in my classes. encryptable.. signable.. parseable and so one
<ineb>
i dont like the fact that Foo already needs to declare upfront if its encryptable and is getting this eventually by later modules
<ineb>
*overwritten
<ineb>
but i cant think of any other solution
<apeiros>
tell your friend that this looks fine. IMO Foo should have `def decrypt!; raise "#{self.class} should implement #{__method__}"; end`
<ineb>
i could avoit it if i would write it like: a = new Foo, a.respond_to?(:encryptable?) but idk
<ineb>
a = Foo.new, sorry.
chouhoulis has quit [Remote host closed the connection]
<apeiros>
though I wonder whether it makes much sense. You could just test for `respond_to?(:decrypt!)` instead of this. seems much simpler.
<ineb>
err yes, thats what i mean
craysiii has joined #ruby
<ineb>
asking the duck if it can swim
<apeiros>
ah, I was still typing while you already sent it
mikecmpbll has joined #ruby
<ineb>
ok, cool. thanks for your suggestion
reber has joined #ruby
n13z has quit [Ping timeout: 240 seconds]
n13z has joined #ruby
<apeiros>
yw
cagomez has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
<cagomez>
what does this do? `bills.sum("0.00".to_d, &:amount)`
<apeiros>
&ri sum
<apeiros>
darn, that bot still not here again :(
<apeiros>
cagomez: what parts do you understand?
<cagomez>
still sleeping, hehe
<apeiros>
na I think it fell out of the channel in a netsplit and its owner has been offline for a while
<cagomez>
apeiros, I think it is calling `amount` on all items in the collection. but I've only ever seen `.sum` called like so: `bills.map(&:amount)` . Is `"0.00".to_d` being used as the "starting" value before summing?
parzydeuko has joined #ruby
<apeiros>
correct
<cagomez>
sorry, `bills.sum(&:amount)`
<apeiros>
do you know `ri`, the command line tool?
<cagomez>
no. does it need to be installed separately from my Ruby installation?
sytherax has quit [Ping timeout: 248 seconds]
<cagomez>
I work with Rails so a lot of times I'm not sure if I'm calling a Ruby or Rails method. So I generally Google
<apeiros>
usually not
<apeiros>
though with rvm (and maybe other ways of installing ruby), you have to generate the docs manually
<apeiros>
google is about the worst replacement for the api docs.
<apeiros>
and `ri some_method` / `ri SomeClass#some_instance_method` / `ri SomeClass::some_class_method` in your console (if you've properly installed ruby & generated docs)
<apeiros>
ri has the advantage of being exactly the version you installed.
Esa_ has joined #ruby
<cagomez>
ah nice
mohsen_1 has quit [Quit: Connection closed for inactivity]
<cagomez>
if `bills.sum("0.00".to_d, &:amount)` is called repeatedly, would this execute N database queries?
<cagomez>
(assuming the collection is an AR relation and not an Array)
<apeiros>
it'd raise
<apeiros>
because AR's sum does not take params like that
<apeiros>
but if you'd do relation.sum(:col) repeatedly, then yes, it'd repeatedly execute queries.
<apeiros>
AR does some caching, though. so it might not hit the database. you can see that in the logs.
shinnya has quit [Ping timeout: 240 seconds]
<cagomez>
true. would you agree that making caching explicit through memorization is better than relying on AR?
<cagomez>
*memoization
dionysus69 has quit [Ping timeout: 265 seconds]
<apeiros>
I have no generic opinion on that
caleBOT_ has joined #ruby
caleBOT has joined #ruby
<cagomez>
I think it's better, at least semantically, to let others know that the collection is an AR relation and that `.sum` is executing a DB query that we don't want to repeat
<apeiros>
in a language like ruby? I don't share that opinion, no. if you want that, you should use a typed language.
mn3m has joined #ruby
<apeiros>
but I'm not sure that's even necessary. at some point, you just don't know whether something is expensive or not by just looking at a piece of text.
za1b1tsu_ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
za1b1tsu_ has quit [Ping timeout: 256 seconds]
mjolnird has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
KnownSyntax has quit [Remote host closed the connection]
peteretep has quit [Remote host closed the connection]
shwouchk has quit [Remote host closed the connection]
kireevco has quit [Remote host closed the connection]
podman has quit [Remote host closed the connection]
cjs226 has quit [Remote host closed the connection]
boxrick has quit [Remote host closed the connection]
jabreity has quit [Remote host closed the connection]
jxf has quit [Remote host closed the connection]
andersh has quit [Remote host closed the connection]
epochwolf has quit [Remote host closed the connection]
kspencer has quit [Remote host closed the connection]
AndyWojo has quit [Remote host closed the connection]
solidsnack has quit [Remote host closed the connection]
Tony-St4rk has quit [Remote host closed the connection]
craysiii has quit [Remote host closed the connection]
rann has quit [Remote host closed the connection]
cttttt has quit [Remote host closed the connection]
pwillard has quit [Remote host closed the connection]
Guest52280 has quit [Ping timeout: 257 seconds]
fuxx has joined #ruby
fuxx is now known as Guest59221
mjolnird has joined #ruby
ciscam has quit [Ping timeout: 240 seconds]
cjs226 has joined #ruby
podman has joined #ruby
jxf has joined #ruby
rann has joined #ruby
Tony-St4rk has joined #ruby
craysiii has joined #ruby
kireevco has joined #ruby
jabreity has joined #ruby
andersh has joined #ruby
KnownSyntax has joined #ruby
solidsnack has joined #ruby
boxrick has joined #ruby
cttttt has joined #ruby
peteretep has joined #ruby
pwillard has joined #ruby
kspencer has joined #ruby
epochwolf has joined #ruby
AndyWojo has joined #ruby
jottr has joined #ruby
karapetyan has quit [Remote host closed the connection]
ciscam has joined #ruby
FrostCandy has joined #ruby
shwouchk has joined #ruby
Ishido has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
coderphive has joined #ruby
nowhere_man has joined #ruby
karapetyan has joined #ruby
mtkd has joined #ruby
orbyt_ has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
TinkerT has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
nopolitica has quit [Ping timeout: 240 seconds]
suukim has joined #ruby
apparition has quit [Quit: Bye]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
dionysus69 has quit [Ping timeout: 240 seconds]
houhoulis has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
coderphive has quit [Quit: coderphive]
za1b1tsu_ has joined #ruby
alex`` has quit [Quit: WeeChat 2.1]
jottr has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
za1b1tsu_ has quit [Ping timeout: 256 seconds]
Xiti` has joined #ruby
nertzy has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 256 seconds]
sepp2k has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
cadillac_ has quit [Ping timeout: 260 seconds]
cadillac_ has joined #ruby
nopolitica has joined #ruby
sytherax has joined #ruby
lunarkitty7 has joined #ruby
segy has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
segy has joined #ruby
nopoliti1 has joined #ruby
nopolitica has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
mikecmpbll has joined #ruby
n0m4d1c has joined #ruby
n13z has quit [Ping timeout: 256 seconds]
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
Silthias has joined #ruby
lele has joined #ruby
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT has quit [Ping timeout: 264 seconds]
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
nopoliti1 has quit [Ping timeout: 256 seconds]
parzydeuko has quit [Ping timeout: 256 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
n13z has joined #ruby
TinkerT has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Silthias2 has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
TinkerT has joined #ruby
ryzokuken__ has joined #ruby
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
ryzokuke- has quit [Quit: See you on the other side]
Silthias has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
Silthias has joined #ruby
Silthias2 has quit [Ping timeout: 256 seconds]
erlend has quit [Ping timeout: 256 seconds]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
<cagomez>
I have an array of objects respond to .call . is there a way to .call them all and accumulate their results?
Silthias has joined #ruby
mtkd has quit []
<dminuoso>
cagomez, map
<dminuoso>
cagomez, [a,b,c].map(&:call)
<apeiros>
array of objects is redundant ;-)
<apeiros>
oh
<apeiros>
my
<apeiros>
I should read the full sentence :D
Silthias2 has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
Silthias has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
parzydeuko has joined #ruby
Silthias2 has quit [Ping timeout: 256 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
nopoliti1 has joined #ruby
Silthias1 has joined #ruby
n0m4d1c has joined #ruby
mtkd has joined #ruby
SuperLag has quit [Remote host closed the connection]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu_ has joined #ruby
Immune has joined #ruby
mtkd has quit []
Immune has left #ruby [#ruby]
za1b1tsu_ has quit [Ping timeout: 248 seconds]
weird_error has quit [Quit: weird_error]
sytherax has quit [Ping timeout: 268 seconds]
rawste has joined #ruby
ciscam has quit [Ping timeout: 260 seconds]
ciscam has joined #ruby
caleBOT__ has quit [Remote host closed the connection]
caleBO___ has quit [Remote host closed the connection]
weird_error has joined #ruby
caleBOT_ has joined #ruby
caleBOT has joined #ruby
nowhere_man has joined #ruby
suukim has quit [Quit: Konversation terminated!]
cagomez has quit [Remote host closed the connection]
sytherax has joined #ruby
caleBOT has quit [Ping timeout: 264 seconds]
caleBOT_ has quit [Ping timeout: 264 seconds]
caleBOT__ has joined #ruby
caleBO___ has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
MXfive has quit [Quit: Sleep Quit.]
segy has quit [Ping timeout: 264 seconds]
tacoboy has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
Bonjourm8 has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
Silthias1 has joined #ruby
sytherax has quit [Ping timeout: 268 seconds]
ryzokuken has joined #ruby
weaksauce has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 256 seconds]
weird_error has quit [Quit: weird_error]
segy has joined #ruby
sytherax has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
harrycs has joined #ruby
SuperLag has joined #ruby
Bonjourm8 has quit [Quit: Leaving]
Silthias has joined #ruby
Dimik has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
nopoliti1 has joined #ruby
Bonjourm8 has joined #ruby
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 264 seconds]
<apeiros>
how'd you name a method which tells you that a value passes validation, but is probably still wrong, e.g. email_address.value # => "foo@gmial.com"; email_address.XXXXX? # => true
<apeiros>
I currently go with email_address.suspicious?, but I'm not sure I like it
houhoulis has quit [Remote host closed the connection]
Bonjourm8 has quit [Remote host closed the connection]
houhoulis has joined #ruby
sytherax has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
memo1 has quit [Quit: WeeChat 1.4]
houhoulis has quit [Ping timeout: 240 seconds]
<baweaver>
apeiros: a value may be a number, but it may be out of range. Those would be two distinct validations. In the case of typo'd emails though, that's tough.
nopoliti1 has quit [Ping timeout: 256 seconds]
<apeiros>
it's about plausibility
<baweaver>
because then you run the risk of correcting something that's not really bad
<apeiros>
i.e. there's a formal validation, if the value doesn't pass that, it's #invalid?
alfiemax has joined #ruby
<apeiros>
but a value may be formally valid, but improbable
<baweaver>
You might make an orange / yellow UI state
rawste has quit [Quit: zzZZzzZZZ……]
<apeiros>
yes, that's the visual cue
<baweaver>
"You sure about that one mate?"
<apeiros>
along with a text
<baweaver>
You could also make it a vector instead
<apeiros>
i.e. you are allowed to save that value, but the system tells you to be careful and check again
<apeiros>
o0
<baweaver>
Something is x% to be invalid, so trigger partial warning
<apeiros>
oh, a 1 dimensional vector :D
<baweaver>
Something based off of Levenshtein distance or the like of known good values.
<apeiros>
ok, yes, it could be done via scoring + threshold
<apeiros>
but that doesn't rid me of the question how I should call the method which you use to query whether that threshold has been crossed
<baweaver>
that way you don't need to hardcode it, and if there's enough overlap on domains you can do a "did you mean X?"
<apeiros>
suspicious? is one, improbable? is another
<apeiros>
yeah, not really my question baweaver ;-)
<baweaver>
Do you really need one though?
<baweaver>
if form.email.typo_score > 2
<apeiros>
I think form.email.improbable? is much better than form.email.score > 2. magic numbers and stuff, putting values where they belong etc. ;-)
<apeiros>
(also readability)
caleBOT__ has quit [Remote host closed the connection]
caleBO___ has quit [Remote host closed the connection]
<apeiros>
also probable/improbable may well be binary
* baweaver
wanders back to sketching Lemurs
caleBOT_ has joined #ruby
caleBOT has joined #ruby
<apeiros>
hm, I think I'll go with probable?/improbable?, it's got clear opposite methods
<apeiros>
.suspicious?/.unsuspicious? somehow feels like carrying a connotation I don't want
<tbuehlmann>
baweaver: keep that going, I like them lemurs
<apeiros>
thanks baweaver
<baweaver>
Ah good, because I have some very fun news
<apeiros>
if there are other opinions, be my guest :)
<baweaver>
news which I'll PM people for now ;)
Silthias has joined #ruby
nowhere_man has joined #ruby
Silthias1 has quit [Ping timeout: 256 seconds]
caleBOT has quit [Ping timeout: 248 seconds]
caleBOT_ has quit [Ping timeout: 248 seconds]
caleBOT has joined #ruby
caleBOT_ has joined #ruby
nopoliti1 has joined #ruby
Xiti` is now known as Xiti
caleBOT has quit [Ping timeout: 260 seconds]
caleBOT_ has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
nopoliti1 has quit [Ping timeout: 256 seconds]
caleBOT has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
caleBOT__ has joined #ruby
caleBOT_ has joined #ruby
dionysus69 has joined #ruby
Silthias has joined #ruby
Silthias1 has joined #ruby
caleBOT has quit [Ping timeout: 260 seconds]
arand has quit [Remote host closed the connection]
arand has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Silthias2 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
Silthias2 has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 240 seconds]
coderphive has joined #ruby
Silthias has joined #ruby
alex`` has joined #ruby
Silthias1 has joined #ruby
plexigras has quit [Ping timeout: 240 seconds]
Silthias2 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
alex`` has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 256 seconds]
alex`` has joined #ruby
ur5us has joined #ruby
ramfjord has joined #ruby
Silthias2 has quit [Ping timeout: 256 seconds]
Silthias1 has joined #ruby
sidx64 has joined #ruby
Silthias2 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby
Silthias has joined #ruby
sidx64_ has joined #ruby
cagomez has joined #ruby
ur5us has quit [Ping timeout: 265 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
ropeney has quit [Ping timeout: 268 seconds]
Silthias1 has joined #ruby
Bonjourm8 has joined #ruby
Silthias2 has quit [Ping timeout: 256 seconds]
Silthias2 has joined #ruby
sidx64 has quit [Ping timeout: 256 seconds]
kliq has quit [Ping timeout: 260 seconds]
danguita has quit [Quit: WeeChat 2.0.1]
nowhere_man has quit [Ping timeout: 268 seconds]
Silthias has quit [Ping timeout: 256 seconds]
Silthias1 has quit [Ping timeout: 256 seconds]
Silthias2 has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Silthias has joined #ruby
Silthias1 has joined #ruby
za1b1tsu_ has joined #ruby
Silthias2 has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
Silthias has joined #ruby
sytherax has joined #ruby
cagomez has quit [Remote host closed the connection]
RougeR has quit [Ping timeout: 264 seconds]
za1b1tsu_ has quit [Ping timeout: 248 seconds]
coderphive has quit [Quit: coderphive]
Silthias1 has quit [Ping timeout: 256 seconds]
Silthias2 has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
sytherax has quit [Ping timeout: 248 seconds]
chef_byd has quit [Quit: Leaving]
biberu has quit []
ciscam has quit [Ping timeout: 264 seconds]
ciscam has joined #ruby
pskosinski has quit [Ping timeout: 260 seconds]
hfp_work has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
coderphive has joined #ruby
hfp_work has joined #ruby
redlegion has quit [Remote host closed the connection]
redlegion has joined #ruby
sytherax has joined #ruby
schleppel has quit [Quit: Konversation terminated!]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nythalcrow has quit [Quit: Ex-Chat]
kliq has joined #ruby
pskosinski has joined #ruby
caleBOT has joined #ruby
caleBO___ has joined #ruby
pskosinski has quit [Ping timeout: 276 seconds]
caleBOT__ has quit [Ping timeout: 276 seconds]
caleBOT_ has quit [Ping timeout: 276 seconds]
arand has quit [Ping timeout: 256 seconds]
arand has joined #ruby
sytherax has quit [Ping timeout: 240 seconds]
pskosinski has joined #ruby
karapetyan has joined #ruby
coderphive has quit [Quit: coderphive]
hfp_work has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
dbugger_ has quit [Ping timeout: 255 seconds]
Puffball has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 255 seconds]
hfp_work has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
caleBO___ has quit [Remote host closed the connection]
caleBOT has quit [Remote host closed the connection]
marr has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
duderonomy has joined #ruby
nowhere_man has joined #ruby
mikecmpbll has joined #ruby
chocoelho has joined #ruby
sytherax has joined #ruby
jrafanie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
FrostCandy has quit []
duderonomy has joined #ruby
sphenxes has quit [Quit: Leaving]
mlkkk has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
sidx64_ has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
mtkd has quit []
za1b1tsu_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu_ has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
reber has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimalism has quit [Quit: minimalism]
tdy has quit [Ping timeout: 240 seconds]
BTRE has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: Oops.]
jrafanie has joined #ruby
hfp_work has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
herbmillerjr has joined #ruby
minimalism has joined #ruby
hfp_work has joined #ruby
Puffball has joined #ruby
RougeR has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hfp_work has quit [Ping timeout: 260 seconds]
sytherax has quit [Remote host closed the connection]
sytherax has joined #ruby
fyrril2 has joined #ruby
hfp_work has joined #ruby
harrycs has quit [Ping timeout: 248 seconds]
fyrril has quit [Ping timeout: 255 seconds]
cschneid_ has joined #ruby
amar has quit [Remote host closed the connection]
Azure has joined #ruby
darthThorik has quit [Ping timeout: 255 seconds]
ircmaxell has quit [Ping timeout: 255 seconds]
justache has quit [Ping timeout: 255 seconds]
Meow-J___ has quit [Ping timeout: 240 seconds]
darthThorik has joined #ruby
arand has quit [Ping timeout: 256 seconds]
ircmaxell has joined #ruby
justache has joined #ruby
Meow-J___ has joined #ruby
arand has joined #ruby
harrycs has joined #ruby
houhoulis has joined #ruby
kapil___ has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
minimalism has quit [Quit: minimalism]
minimalism has joined #ruby
karapetyan has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cagomez has quit [Remote host closed the connection]
shinnya has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
BTRE has joined #ruby
<arooni>
having trouble getting my ruby script command that works fine within my bash/fish shell over ssh; but when its run via cron; it fails. i tried following; http://g14n.info/2016/05/crontab-best-practices/ ;; still running into the same issue ;; throwing a Bundler couldn't find some gems. (RuntimeError)
GodFather has joined #ruby
<apeiros>
arooni: your cron and bash/fish probably run a) under a different user and b) have different envs
mn3m has quit [Ping timeout: 264 seconds]
<dviola>
please don't crosspost (asking in #ruby and ##linux at the same time)
ur5us has quit [Remote host closed the connection]
sytherax has quit [Remote host closed the connection]
ur5us has joined #ruby
<arooni>
wasnt really sure if it was a ruby/linux issue to be honest
<apeiros>
arooni: it's basic decency to at least inform channels that you're cross-posting.
<apeiros>
experience shows that most people who get help in one channel then become unresponsive in all other channels they posted. that's annoying AF.
<arooni>
apeiros: noted. learned something new today
ur5us has quit [Ping timeout: 240 seconds]
za1b1tsu_ has joined #ruby
tacoboy has joined #ruby
tacoboy has quit [Client Quit]
Azure|dc has joined #ruby
Azure has quit [Read error: Connection reset by peer]