baojg has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink>
eh what
<leftylink>
there's a ruby-pro channel
<leftylink>
or am I being trolled
baojg has joined #ruby
<leftylink>
no it exists
<leftylink>
what the
AndyC has quit [Ping timeout: 265 seconds]
stryek has quit [Quit: Connection closed for inactivity]
ur5us has joined #ruby
drincruz_ has quit [Ping timeout: 256 seconds]
<adam12>
lol
queip has quit [Ping timeout: 256 seconds]
Technodrome has joined #ruby
roshanavand has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
Swyper has quit [Remote host closed the connection]
greengriminal has quit [Quit: Leaving]
lucasb has quit [Quit: Connection closed for inactivity]
crankharder has quit [Ping timeout: 260 seconds]
Swyper has joined #ruby
dfucci has joined #ruby
Swyper has quit [Ping timeout: 240 seconds]
<havenwood>
prion: When you look at Array methods you might want to carry on and look at Enumerable too, since it's what Array and other important collections mix in.
<havenwood>
prion: Great idea to study String, Array, and Enumerable methods. That'll get you a long way.
dfucci has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
Rudd0 has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
crankharder has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
crankharder has joined #ruby
roshanavand has joined #ruby
crankharder has quit [Ping timeout: 246 seconds]
aremaref has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
queip has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
meinside has joined #ruby
bambanx has quit [Remote host closed the connection]
AndyC has joined #ruby
bambanx has joined #ruby
kurko_ has quit [Quit: kurko_]
bambanx has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 258 seconds]
gix has quit [Ping timeout: 246 seconds]
drincruz_ has joined #ruby
crankharder has joined #ruby
kurko_ has joined #ruby
aremaref has joined #ruby
aremaref has quit [Ping timeout: 256 seconds]
weaksauce has joined #ruby
cthu| has quit [Ping timeout: 260 seconds]
icarus has quit [Ping timeout: 260 seconds]
yokel has joined #ruby
kurko_ has quit [Quit: kurko_]
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
crankharder has quit [Ping timeout: 265 seconds]
dfucci has joined #ruby
AndyC has quit [Ping timeout: 260 seconds]
dfucci has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
aremaref has joined #ruby
crankharder has quit [Ping timeout: 258 seconds]
aremaref has quit [Ping timeout: 258 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 256 seconds]
aremaref has joined #ruby
crankharder has joined #ruby
aremaref has quit [Ping timeout: 264 seconds]
nicolas_ is now known as vk
crankharder has quit [Ping timeout: 256 seconds]
aremaref has joined #ruby
crankharder has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 272 seconds]
ChmEarl has quit [Quit: Leaving]
crankharder has joined #ruby
Rudd0 has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
Eiam_ has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
elcuervo has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
crankharder has quit [Ping timeout: 260 seconds]
cuerbot has quit [Ping timeout: 256 seconds]
crankharder has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<jhass>
ah yes, because it would indeed become ambigous otherwise, in this case for the block. Imagine 3 is not a literal but a method call/local variable. then you could have .each_cons(foo) {} vs .each_cons foo {}. Both are valid but the latter would parse to .each_cons(foo {}), because {} binds to the closest call. OTOH .each_cons foo do/end would be .each_cons(foo) {}
BTRE has joined #ruby
<prion>
al2o3-cr: just here or always?
<al2o3-cr>
prion: jhass explained why.
<prion>
i don't quite get why using do/end makes it unambiguous to the parser
royo25 has joined #ruby
Swyper has joined #ruby
<al2o3-cr>
prion: are you on Adapter Array p1 ?
<prion>
like why is .each_cons 3 { ... } a parse error and not just some kind of runtime error that happens when you try to pass a block to an Integer or whatever
<leah2>
i think it's due to the { for hash and block confusion
<leah2>
while do...end is unique
<leah2>
also note that foo bar { } works
<al2o3-cr>
i thought it was precedence
<jhass>
Ruby's grammar is quite complex, sometimes that just leads to these little inconsistencies
<leah2>
and passes the block to bar
<prion>
al2o3-cr: well that's why i'm looking at each_cons but i'm done the problems for today
<leah2>
while foo bar do ... end passes the block to foo?
<al2o3-cr>
prion: i've not done any this year yet.
<leah2>
i never use do...end, easy :D
<prion>
are you waiting until it's over
<leah2>
i like part 2 today, actually made me think :p
<al2o3-cr>
prion: nah, i'll have a crack at some today probably :p
Swyper has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 256 seconds]
<prion>
i enjoyed them so far this year
<prion>
i didn't like the intcode vm stuff last time
<prion>
where you keep building on it
drincruz_ has joined #ruby
royo25 has quit [Remote host closed the connection]
Garb0 has quit [Read error: Connection reset by peer]
royo25 has joined #ruby
cloud69 has joined #ruby
crankharder has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
stryek has joined #ruby
drincruz_ has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
crankharder has joined #ruby
jkprg has quit [Remote host closed the connection]
jkprg has joined #ruby
jkprg has left #ruby [#ruby]
<leah2>
yes
<leah2>
i hope there will not be many tasks of that kind
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 256 seconds]
jkprg has joined #ruby
drincruz_ has joined #ruby
Technodrome has joined #ruby
<yxhuvud>
so far only 1. Which was a fine task.
al2o3-cr has quit [Read error: Connection reset by peer]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BenDover1 has joined #ruby
BenDover has quit [Ping timeout: 265 seconds]
BenDover1 is now known as BenDover
royo25 has quit [Quit: Bye]
ChmEarl has joined #ruby
hiroaki has quit [Remote host closed the connection]
rubydoc__ has quit [Ping timeout: 264 seconds]
phaul has quit [Ping timeout: 256 seconds]
AndyC has quit [Ping timeout: 256 seconds]
BenDover has quit [Quit: BenDover]
Technodrome has joined #ruby
icarus has joined #ruby
phaul has joined #ruby
rubydoc__ has joined #ruby
ua_ has quit [Quit: Leaving]
ua has joined #ruby
rubydoc__ has quit [Ping timeout: 264 seconds]
orbyt_ has joined #ruby
phaul has quit [Ping timeout: 260 seconds]
cgfbee has quit [Ping timeout: 260 seconds]
cuerbot has joined #ruby
duderonomy has joined #ruby
elcuervo has quit [Ping timeout: 272 seconds]
Garb0 has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
rubydoc__ has joined #ruby
duderonomy has quit [Ping timeout: 256 seconds]
TCZ has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
SeepingN has joined #ruby
kurko_ has quit [Quit: kurko_]
akem has quit [Quit: Leaving]
kurko_ has joined #ruby
kurko_ has quit [Client Quit]
akem has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
TCZ has quit [Quit: Diabe? tkwi w szczegó?ach]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubydoc__ has quit [Ping timeout: 240 seconds]
rubydoc__ has joined #ruby
phaul has quit [Ping timeout: 258 seconds]
phaul has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
aesthe has joined #ruby
kurko_ has joined #ruby
Swyper has quit [Remote host closed the connection]
AndyC has joined #ruby
prion has quit [Ping timeout: 265 seconds]
prion has joined #ruby
crankharder has joined #ruby
dfucci has quit [Ping timeout: 258 seconds]
aremaref has joined #ruby
kurko_ has quit [Ping timeout: 260 seconds]
cd has joined #ruby
AndyC has quit [Ping timeout: 272 seconds]
prion has quit [Ping timeout: 258 seconds]
kurko_ has joined #ruby
dfucci has joined #ruby
rubydoc__ has quit [Ping timeout: 258 seconds]
phaul has quit [Ping timeout: 240 seconds]
TomyWork has quit [Quit: Leaving]
phaul has joined #ruby
rubydoc__ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Swyper has joined #ruby
dfucci has quit [Ping timeout: 256 seconds]
Swyper has quit [Ping timeout: 264 seconds]
crankharder has quit [Quit: leaving]
dfucci has joined #ruby
aremaref has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
bradland has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crawler has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
jkprg_ has joined #ruby
jkprg_ has quit [Client Quit]
jkprg_ has joined #ruby
jkprg_ has left #ruby [#ruby]
cincy_kal has joined #ruby
TCZ has joined #ruby
<cincy_kal>
I am working on a project that uses Padrino 0.12.5. However, the framework uses this method `safe_load` to try and autoload files and resolve circular dependencies. This take a very long time when starting up the application. So my question is, does anyone have experience writing their own autoloader (or using a gem) to load constants from files,
<cincy_kal>
handle circular dependencies, and do so in an efficient manner?
<cincy_kal>
havenwood thank you. Looking at that, it seems that it may be a tall order to retroactively apply that to a project that isn't following its class naming convention and file structure.
<havenwood>
cincy_kal: I'd have thought someone would have wired up Zeitwerk with Sinatra by now, but maybe not. Looking at the process of adding it to Roda it doesn't seem too bad: https://github.com/fxn/zeitwerk/issues/23
<havenwood>
cincy_kal: I don't know. Maybe someone here has done Zeitwerk with Sinatra and can weigh in?
jkprg has quit [Quit: jkprg]
jkprg has joined #ruby
aremaref has joined #ruby
Swyper has joined #ruby
fippy has quit [Ping timeout: 246 seconds]
kurko_ has quit [Quit: kurko_]
kurko_ has joined #ruby
jkprg has quit [Quit: jkprg]
jkprg has joined #ruby
jkprg has quit [Client Quit]
cincy_kal has quit [Remote host closed the connection]
<adam12>
I really liked Padrino.
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
fort_ has joined #ruby
fippy has joined #ruby
fort_ has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
lucasb has joined #ruby
jhass has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
TCZ has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
desnudopenguino has joined #ruby
<desnudopenguino>
anyone know why BCrypt::Engine.hash_secret(salt,text) would give me an unbelievably long string with a hash at the front, then a bunch of '\x00' characters?
AndyC has joined #ruby
Swyper has quit [Remote host closed the connection]
<desnudopenguino>
it actually looks to have some comments or something thrown in there as well...
<desnudopenguino>
\x00\x00\x00ts +h+ into version, cost, salt, and hash and returns them in that order.\n def split_hash(h)\n _, v, c, mash = h.split('$')\n return v.to_str, c.to_i, h[0, 29].to_str, mash[-31, 31].to_str\n end\n end\n\nend\n\x00\x00\x00\x00
roshanavand has quit [Ping timeout: 240 seconds]
jcalla has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Swyper has joined #ruby
<desnudopenguino>
updated the bcrypt gem, and the long string went away, but the login still isn't happening. guess i can force pw resets
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
prion has joined #ruby
Swyper has quit [Ping timeout: 260 seconds]
bamdad has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
sphex has quit [Remote host closed the connection]
<desnudopenguino>
doof, restart the service
<desnudopenguino>
ignore this line of discussion, i should have just talked to myself in a separate window
Technodrome has joined #ruby
Technodrome has quit [Remote host closed the connection]
x0n- has joined #ruby
x0n has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cybcypha_ has quit [Ping timeout: 240 seconds]
baojg has quit [Remote host closed the connection]