bayed has quit [Quit: Connection closed for inactivity]
tvw has quit [Read error: Connection reset by peer]
Azure has quit [Remote host closed the connection]
mugurel has joined #ruby
mugurel has left #ruby [#ruby]
montanonic has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
Azure has joined #ruby
blackbombay has quit [Ping timeout: 240 seconds]
tvw has quit [Client Quit]
igniting has joined #ruby
hfp has left #ruby [#ruby]
binaryplease1 has quit [Ping timeout: 244 seconds]
eljimmy has quit [Remote host closed the connection]
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tenderlove has quit [Ping timeout: 265 seconds]
eljimmy has joined #ruby
tmtwd has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
_sfiguser has joined #ruby
ta_ has joined #ruby
Derperperd has quit [Quit: Derperperd]
Derperperd has joined #ruby
Derperperd has quit [Client Quit]
Derperperd has joined #ruby
govg has quit [Ping timeout: 250 seconds]
matp has quit [Remote host closed the connection]
nankyokusei has joined #ruby
matp has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cibs has quit [Ping timeout: 268 seconds]
TeddySmoker has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
cibs has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 248 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
jaguarmagenta has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 250 seconds]
millerti has joined #ruby
nettoweb has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
CrashOverride has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iNs has quit [Ping timeout: 256 seconds]
mati_urunda has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
tenderlove has joined #ruby
roflmyeggo has joined #ruby
smtudor has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.6]
roflmyeggo has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has quit [Quit: WeeChat 1.5]
montanonic has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CrashOverride has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
arescorpio has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
ICantCook has joined #ruby
PresidentBiscuit has joined #ruby
bmurt has joined #ruby
enterprisey has quit [Quit: Leaving]
Channel6 has joined #ruby
tdy2 has joined #ruby
raul782 has joined #ruby
justinweiss has quit [Quit: Connection closed for inactivity]
tdy1 has quit [Ping timeout: 248 seconds]
matp has quit [Remote host closed the connection]
matp has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
raul782 has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
al2o3-cr has joined #ruby
ur5us_ has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
mBailey_j has joined #ruby
harfangk has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
kspencer is now known as IotaSpencer
Ropeney has joined #ruby
Keep0wer has joined #ruby
preyalone has joined #ruby
tdy3 has joined #ruby
tdy2 has quit [Ping timeout: 258 seconds]
_sfiguser has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
Ademan has joined #ruby
riotjones has quit [Ping timeout: 268 seconds]
mBailey_j has left #ruby ["WeeChat 1.6"]
paramourne has joined #ruby
ta_ has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
paramourne has quit [Changing host]
paramourne has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
paramourne has quit [Quit: WeeChat 1.6]
hahuang65 has joined #ruby
JoshS has joined #ruby
enterprisey has joined #ruby
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
paramourne has joined #ruby
tdy3 has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
A5101 has quit [Ping timeout: 240 seconds]
blackbombay has joined #ruby
jackjackdripper has joined #ruby
enterprisey has quit [Ping timeout: 256 seconds]
tdy3 has joined #ruby
benlieb has quit [Quit: benlieb]
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper1 has joined #ruby
cdg has joined #ruby
r3vDev has joined #ruby
jaguarmagenta has joined #ruby
centrx has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
smtudor has quit [Ping timeout: 260 seconds]
ta_ has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
blackbom1 has joined #ruby
d^sh_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
gandalf has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
d^sh has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
jcao219 has joined #ruby
cdg has quit [Remote host closed the connection]
gandalf has quit []
ur5us has joined #ruby
blackbombay has joined #ruby
r3vDev has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
tdy4 has joined #ruby
blackbom1 has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
tdy3 has quit [Ping timeout: 245 seconds]
jackjackdripper has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 268 seconds]
roflmyeggo has joined #ruby
jackjackdripper1 has joined #ruby
blackbom1 has joined #ruby
zenspider has joined #ruby
riotjones has joined #ruby
jackjackdripper has quit [Ping timeout: 260 seconds]
blackbombay has quit [Ping timeout: 256 seconds]
houhoulis has joined #ruby
tdy has joined #ruby
greenbird has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 248 seconds]
tdy4 has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr>
is there a way to check the progress of IO.copy_stream?
<lupine>
wrap one of the IO objects with a proxy that logs number of bytes passed
<lupine>
job done
<al2o3-cr>
lupine: how'd you mean?
howdoi has joined #ruby
Rodya__ has joined #ruby
<lupine>
something like class CountingIOWrites ; def initialize(real) ; @real = real ; @written = 0; end ; def write(bytes) ; @real.write(bytes) ; @written += bytes.size ; end ; end
<lupine>
except thread-safe and interface-conformant and the rest of it
<ruby[bot]>
jcomito: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
astrobunny has joined #ruby
jgnagy_ has joined #ruby
hahuang65 has joined #ruby
jgnagy has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 258 seconds]
centrx has quit []
astrobunny has quit [Ping timeout: 260 seconds]
iMadper has joined #ruby
jgnagy has joined #ruby
jgnagy_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
JoshS has quit [Ping timeout: 260 seconds]
Joufflu has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 1.6]
<Ropeney>
jcomito, would make easier if you put a "actual output" and "expected output" at bottom
jgnagy_ has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
SteenJobs has joined #ruby
SteenJobs has quit [Client Quit]
solocshaw has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
enterprisey has quit [Quit: Leaving]
jcao219 has quit [Ping timeout: 268 seconds]
ICantCook has joined #ruby
dnicole has joined #ruby
eggshke has joined #ruby
<antoniobeyah>
jcomito: i agree with Ropeney, but looking briefly at the code you never clear output but continue looping
<Ropeney>
antoniobeyah, that and is the puts at the end of the wrong loop.
<antoniobeyah>
hard to know, seems like a homework exercise or something
jeffaustin81 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jcomito>
hey sorry, yes it was an assignment but for the assignment I had to use perl
<antoniobeyah>
jcomito: in ruby, while is usually not necessary. neither are loops. if you can provide the expected vs actual more assistance can be provided
pawnbox has joined #ruby
<jcomito>
when the B is appended to the output it is printing the line twice
<jcomito>
is there some difference in how ruby evalutates the while compared to how perl does it.
conta has quit [Ping timeout: 256 seconds]
<baweaver>
Your indentation is messy.
<jcomito>
I apologize, it really is
<baweaver>
Also you need ends
<jcomito>
copying from sublime to vim instead of just uploading the file.. its stupid, and I don't know why I am doing it
jcao219 has joined #ruby
<jcomito>
what about the else though?
<jcomito>
if elsif else end, isnt that how you do it ?
<baweaver>
check the indent, you'll see it.
astrobunny has quit [Ping timeout: 244 seconds]
<baweaver>
See comment on gist for cosmetic changes.
<baweaver>
Now to look at the logic.
<baweaver>
Prefer `lines.times do ... end` to `while i <= lines ... end`
<elomatreb>
Pay close attention to your switch
<antoniobeyah>
jcomito: you need to do something with ‘output’ when in the if a == 0 && b == 0 block
<baweaver>
(Honestly I just threw out the switch in that change, easier to read)
<antoniobeyah>
jcomito: looks like you need to add an output << “A”
<baweaver>
So what's the exact problem statement?
Rodya_ has quit [Remote host closed the connection]
<antoniobeyah>
jcomito: so you aren’t getting a duplicate, you are getting incorrect output right now
rwb has joined #ruby
<Skarlso>
antoniobeyah: Nope. That will result in this if chosen 9 lines: AAABAAAAB
<jcomito>
baweaver: it was to be done in perl. the instructions read
<jcomito>
Use a loop structure and code a program that produces the following output (Take one parameter to let user specify how many lines need to be printed):
<Skarlso>
Which means 4 As .:)
ur5us has quit [Remote host closed the connection]
<Skarlso>
It just runs one cycle which doesn't do anything.
<jcomito>
right..
astrobunny has joined #ruby
<jcomito>
hmm..
<elomatreb>
Unrelated: See that example I posted? I ran their code through rubocop, and it produced those misaligned ends e.g. in line 32? Why would it do thatß
<elomatreb>
*?
monban has quit [Quit: leaving]
<Ropeney>
the else needs to be indented more
<Ropeney>
the end needs to be unindented sorry
<baweaver>
12 lines.
<baweaver>
Here are a few things to consider
<Ropeney>
both ends 32 and 34 are indented too much
<baweaver>
you have a very easy to see pattern: 'AAAB' that cycles
pawnbox has quit [Remote host closed the connection]
<jcomito>
this isnt getting turned in or anything.. but I am curious why I wrote the same logic and it worked in perl but get that extra iteration in ruby
<baweaver>
but essentially just look up how to extend a class with Enumerable
<jcomito>
yeah.. but lets take away the standard library and make you write you own stuff that will be included in every lang you put your fingers on.. :-)
<baweaver>
that is pretty straightforward if you know what SimpleDelegator is
<baweaver>
though definitely more towards the dense and dusty tomes type of knowledge.
<jcomito>
I will probably dust off CLRS from intro to algorithms and translate the psuedocode they give for stack.
nankyokusei has quit [Ping timeout: 250 seconds]
<jcomito>
try to anyways
<baweaver>
Well we all tend to be around
<jcomito>
and I will churn out the ugliest, most procedural ruby code you've ever seen
<baweaver>
so feel free to ask and we can confuse you more
<jcomito>
awesome
* baweaver
does not have an off switch
raul782 has quit []
benlieb has joined #ruby
<baweaver>
wonder if I can do that with lambdas....
<elomatreb>
Finding your off switch or solving jcomito's problem? ;)
<baweaver>
Ox0dea isn't around anymore
<baweaver>
someone has to do it.
<jcomito>
antoniobeyah: thanks much, I still dont get exactly why mine wasn't working, but that is cleaner and works
Hobbyboy has quit [Ping timeout: 260 seconds]
<antoniobeyah>
the code cleanup is thanks to Skarlso, but the reason it wasn’t working is because in your if a == 0 && b == 0 you were consuming a line and not changing the output
<antoniobeyah>
so the fix was to break the if/else to allow the output code to run
<Skarlso>
antoniobeyah++
ResidentBiscuit has joined #ruby
Devalo has joined #ruby
<baweaver>
ruby[bot] never really got around to karma.
sdwrage has joined #ruby
<jcomito>
antoniobeyah: can you expand on
<jcomito>
consuming a line and not changing the output
ur5us has joined #ruby
<baweaver>
What happens when the loop reaches that spot?
<antoniobeyah>
when you use an if/else, only the code in 1 branch is executed, all others are skipped
Ropeney has quit [Ping timeout: 258 seconds]
<baweaver>
^
<jcomito>
well if both a and b are 0 then they reset back to their control value
<jcomito>
then we jump out of the loop
<antoniobeyah>
yes, but what happens to output?
<jcomito>
ahh..
ICantCook has quit [Quit: bye]
<jcomito>
yeah that is just my reset check..
<jcomito>
it shouldnt all be one big conditional block
<antoniobeyah>
so you at least get why the bug was there now right?
<jcomito>
yes!
<antoniobeyah>
good :)
Devalo has quit [Read error: Connection reset by peer]
<jcomito>
thanks
Devalo has joined #ruby
yardenbar has quit [Ping timeout: 248 seconds]
JoshS has joined #ruby
<Skarlso>
baweaver++ as well, for showing the ruby way. :)
ResidentBiscuit has quit [Ping timeout: 258 seconds]
Jameser has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pragmaticus has quit [Ping timeout: 248 seconds]
dogweather has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
montanonic has quit [Quit: My laptop is sleeping.]
montanonic has joined #ruby
ResidentBiscuit has joined #ruby
_sfiguser has quit [Quit: Leaving]
modin has quit [Ping timeout: 246 seconds]
last_staff has joined #ruby
valkyr2e has joined #ruby
ta_ has joined #ruby
modin has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
dionysus69 has joined #ruby
finisherr has quit [Quit: finisherr]
Hobbyboy has joined #ruby
Devalo has quit [Remote host closed the connection]
Macaveli has joined #ruby
byte512 has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 260 seconds]
govg has joined #ruby
function has joined #ruby
ResidentBiscuit has joined #ruby
Lorn3r has joined #ruby
nowhereman has joined #ruby
nowhere_man has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
MeMoc has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
naprimer_2 has joined #ruby
govg has quit [Ping timeout: 246 seconds]
ResidentBiscuit has joined #ruby
alexherbo2 has joined #ruby
Lorn3r has quit [Quit: Leaving]
naprimer_3 has quit [Ping timeout: 256 seconds]
<jxf>
How do I call `send` to pass keyword arguments to a method?
<jxf>
For example, if a method's signature is foo(a, b, *params, c:, d:), how do I invoke `foo(1, 2, 3, 4, 5, c: 6, d: 7)` via `send`?
ResidentBiscuit has quit [Ping timeout: 258 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
symm- has quit [Ping timeout: 260 seconds]
frozengeek____ has quit [Quit: frozengeek____]
moei has left #ruby ["Leaving..."]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
william3 has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
agit0 has joined #ruby
ResidentBiscuit has joined #ruby
nowhereman has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
pagios has quit [Ping timeout: 256 seconds]
vondruch has quit [Ping timeout: 258 seconds]
benhoi has quit [Ping timeout: 256 seconds]
iMadper has quit [Remote host closed the connection]
pagios has joined #ruby
pagios has quit [Max SendQ exceeded]
j416 has joined #ruby
pagios has joined #ruby
<kke>
bunch of hashes inside an array, say [{ a: 1}, { a: 2}, { a: 3}]. how to beautifully move one of them, for example { |_,v| v == 2} to be first in the array?
vikaton has quit [Quit: Connection closed for inactivity]
yuki_is_bored has quit [Ping timeout: 245 seconds]
pagios has quit [Max SendQ exceeded]
jaguarmagenta has quit [Remote host closed the connection]
pagios has joined #ruby
agit0 has quit [Read error: Connection reset by peer]
<matthewd>
partition {}.flatten(1) maybe
<kke>
that would be some_array.unshift(some_array.delete_at(some_array.index {|hash| hash[:a] == 2}))
pagios has quit [Max SendQ exceeded]
aufi has joined #ruby
aufi is now known as maufart|sick
ResidentBiscuit has joined #ruby
<kke>
maybe i could use sort
aganov has joined #ruby
maufart|sick is now known as aufi
<elomatreb>
Maybe just build a new Array?
<matthewd>
But more likely, you should try for a less primitive data model; wanting to do a non-trivial rearrangement suggests there's a real class hiding nearby
matp has quit [Remote host closed the connection]
r3vDev has quit [Ping timeout: 240 seconds]
pagios has joined #ruby
matp has joined #ruby
Keep0wer has quit [Max SendQ exceeded]
Keep0wer has joined #ruby
axisys has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
wugy has joined #ruby
wugy has quit [Excess Flood]
SesMan has joined #ruby
Keep0wer has left #ruby ["Leaving"]
gauz has joined #ruby
dogweather has joined #ruby
vondruch has joined #ruby
frozengeek____ has joined #ruby
claudiuinberlin has joined #ruby
nankyokusei has joined #ruby
ResidentBiscuit has joined #ruby
yardenbar has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
frozengeek____ has quit [Remote host closed the connection]
frozengeek____ has joined #ruby
nowhereman has joined #ruby
dogweather has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Ping timeout: 258 seconds]
teclator has joined #ruby
binaryplease1 has joined #ruby
eggshke has quit [Remote host closed the connection]
cibs has quit [Ping timeout: 268 seconds]
lenwood has joined #ruby
cibs has joined #ruby
DoubleMalt has joined #ruby
andikr has joined #ruby
DoubleMalt has quit [Client Quit]
ResidentBiscuit has joined #ruby
CloCkWeRX has joined #ruby
binaryplease1 is now known as binaryplease
r3vDev has joined #ruby
frozengeek____ has quit [Quit: frozengeek____]
binaryplease has quit [Quit: binaryplease]
frozengeek____ has joined #ruby
wugy has joined #ruby
ResidentBiscuit has quit [Ping timeout: 258 seconds]
fmcwlt has joined #ruby
charliesome has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
Humdai has joined #ruby
fmcwlt has quit [Remote host closed the connection]
maattdd has joined #ruby
iMadper has joined #ruby
iMadper has left #ruby [#ruby]
ur5us has joined #ruby
tpendragon has quit [Ping timeout: 240 seconds]
iMadper has joined #ruby
upjyij has joined #ruby
<manveru>
kke: if it was an array of arrays you could use rassoc...
<manveru>
>> a = [[:a,1],[:b,2]]; a.unshift(a.delete(a.rassoc(2)))
william3 has quit [Remote host closed the connection]
Chair is now known as Couch
r3vDev has quit [Ping timeout: 256 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
blackbom1 has quit [Ping timeout: 256 seconds]
<vali>
not working
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
TomyLobo has joined #ruby
Puffball has quit [Remote host closed the connection]
AlexRussia has joined #ruby
dogweather has joined #ruby
Macaveli has joined #ruby
william3 has joined #ruby
xall has quit [Ping timeout: 258 seconds]
Puffball has joined #ruby
william3 has quit [Remote host closed the connection]
nowhere_man has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
Puffball has quit [Remote host closed the connection]
AlexRussia has joined #ruby
Puffball has joined #ruby
conta has joined #ruby
Snowy has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
DLSteve has quit [Ping timeout: 264 seconds]
sparch has joined #ruby
sparch has joined #ruby
sparch has quit [Changing host]
Snowy has quit [Client Quit]
Puffball has quit [Remote host closed the connection]
shinnya has joined #ruby
Puffball has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
shashin has joined #ruby
blackbom1 has joined #ruby
LoneHerm_ has joined #ruby
Snowy has joined #ruby
shashin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Ping timeout: 256 seconds]
claudiuinberlin has joined #ruby
A124 has joined #ruby
jaguarmagenta has joined #ruby
gregf_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
frmendes has joined #ruby
claudiuinberlin has joined #ruby
jaguarmagenta has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
domgetter has joined #ruby
ResidentBiscuit has quit [Ping timeout: 245 seconds]
GodFather has joined #ruby
lenwood has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
claw has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
william3 has quit [Remote host closed the connection]
xall has joined #ruby
_ZerGabriel_ has quit []
frmendes has quit [Ping timeout: 240 seconds]
aufi has quit [Ping timeout: 260 seconds]
theonefoo has joined #ruby
<vali>
hi guys
<vali>
anyone around
<vali>
?
blackbom1 has quit [Ping timeout: 268 seconds]
xall has quit [Ping timeout: 260 seconds]
<theonefoo>
ruby ecosystem noob here, I am running my ruby versions via a Homebrew installed rbenv. Recently updated to version 1.1.0, where I previously had 1.0.0. Now running `gem install —list` gives me /usr/local/Cellar/rbenv/1.0.0/libexec/rbenv: no such file or directory found. Other CLIs which rely on ruby give the same error. 1.0.0 dir does not exist but 1.1.0 does. I thought to roll back to 1.0.0 via homebrew (still trying to figure how to do this) but is
<theonefoo>
there are simpler way to fix this problem?
<eggshke>
vali Big brother is watching on you !
<vali>
:)
<vali>
eggshke thats good to know
Sammichmaker has quit [Read error: Connection reset by peer]
blackbom1 has joined #ruby
theonefoo has quit [Quit: theonefoo]
blackbom1 has quit [Ping timeout: 256 seconds]
krsh has joined #ruby
Puffball has quit [Remote host closed the connection]
frmendes has joined #ruby
Puffball has joined #ruby
LoneHermit has joined #ruby
johnmilton has joined #ruby
Puffball has quit [Remote host closed the connection]
_sfiguser has joined #ruby
LoneHermit has quit [Ping timeout: 256 seconds]
theonefoo has joined #ruby
william3 has joined #ruby
Puffball has joined #ruby
xall has joined #ruby
AckZ has quit []
Snowy has quit [Quit: ragequit]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
pragmaticus has joined #ruby
lenwood has joined #ruby
<matthewd>
vali: Sorry, that looks like a usage/API question about logstash itself... you're naturally going to find fewer people who can help. Perhaps logstash has a support channel/mailing list?
<vali>
hi matthewd, I've already tried that but unfortunately no result yet.
ResidentBiscuit has joined #ruby
Psy-Q has joined #ruby
<matthewd>
theonefoo: You probably need to work out who the 'gem' command you're running belongs to / where it is. Sounds like it, or something, has kept the old rbenv path somewhere.
<Psy-Q>
elo. is there something in the spirit of Eloquent Ruby or Well-Grounded Rubyist, but updated for 2.3? it seems some of the better/more canonical books are on 1.8 or 1.9 :(
sparch has quit [Quit: Leaving]
tvw has quit []
ResidentBiscuit has quit [Ping timeout: 258 seconds]
gigetoo_ has joined #ruby
gigetoo has quit [Ping timeout: 246 seconds]
gigetoo_ is now known as gigetoo
tuxaddicted has joined #ruby
c355e3b has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Client Quit]
<matthewd>
Psy-Q: Not a lot changed since 1.9, really. There are some new features, but I think it'd be reasonable to learn those additively; they're unlikely to invalidate much you'd learn on that base.
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
<matthewd>
Psy-Q: Looks like Well-Grounded's 2nd edition covers 2.1, anyway
nelsonsar has joined #ruby
nelsonsar has quit [Remote host closed the connection]
<theonefoo>
matthewd: ended up uninstalling rbenv and using system ruby for now
nelsonsar has joined #ruby
<Psy-Q>
matthewd: oh! i didn't know they even had that
<Psy-Q>
thanks
<Psy-Q>
mine's old, then
shashin has joined #ruby
dogweather has joined #ruby
conta has quit [Ping timeout: 250 seconds]
skalfyfan has joined #ruby
psychicist__ has quit [Ping timeout: 250 seconds]
conta has joined #ruby
<matthewd>
The only things that immediately come to mind are refinements, which nobody uses, and keyword arguments, which seem fine to learn as an 'extra' -- for the near future, at least, you'll still need to know how they used to be manually approximated anyway, IMO
cloud has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
bayed has joined #ruby
shashin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psychicist__ has joined #ruby
cloud has quit [Client Quit]
<Psy-Q>
i used to do a lot of 1.8 but wanted to avoid writing "1.8 made barely runnable on top of 2.3" by reading a more modern book, i guess that's not so much of a danger then :)
<Psy-Q>
hashrocket seems to have flown off though
pawnbox has quit [Ping timeout: 250 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
<Psy-Q>
ah no, it still works :D
shashin has joined #ruby
eb0t_ has quit [Quit: WeeChat 1.4]
eb0t has joined #ruby
pawnbox has joined #ruby
claudiuinberlin has joined #ruby
<matthewd>
Yeah, there are more changes in 1.8 -> 1.9
<Cymew>
If I want to make a list of services, and be able to look up the hostname, I do create a hash like {"servicename"=>"servicename.test.domain"}. But if I want to first look up the environment, and then look up the hostname from the servicename, how do I construct that data structure? If I set up hashes and bind that like 'test = {"servicename" ...' and so on, if I push that to @env = [test, prod] the @env will contain
<Cymew>
just the hashes and I can no longer look up the environment.
<Cymew>
I.e. I want an array of pointers to hashes
<Cymew>
workmad3: Hmm. That might be the thing.
<dminuoso>
matthewd: There was a major thing though. Module#prepend
<dminuoso>
:o
<matthewd>
Cymew: Or just use a flat array, and iterate it to find what you need / indexing by whatever seems convenient at the time.
<Cymew>
matthewd: I fooled around with that, but since my servicenames sometimes map to nonsensical hostnames, and other nonsense it looked very ugly. Maybe I'll have to face ugliness.
<Psy-Q>
i'm also writing a thing that takes some inventory of infrastructure and does stuff with it
<Psy-Q>
wonder if there isn't something like that already (without including half of chef or puppet)
<Cymew>
It feels like something that has been done before, yes.
tenderlove has quit [Ping timeout: 260 seconds]
tuxaddicted has quit [Ping timeout: 260 seconds]
<Cymew>
Looks like a nested hash works fine, until I have more than one service per envionment, then it gets hairy again.
aufi has joined #ruby
<matthewd>
Starting to sound like you're reinventing a database table..
<Cymew>
It does, doesn't it.
aegis3121 has joined #ruby
Kendos-Kenlen has joined #ruby
<Cymew>
Actually, ruby is a terrible choice for this task and I would never have choosen this myself. A databse would make more sense...
<gener1c>
does ruby have a thread safe hash?
<Cymew>
...add to that I have limitations on what kind of stuff I can 'require'.
<matthewd>
gener1c: concurrent-ruby gem
CloCkWeRX has quit [Quit: Leaving.]
eggshke has quit []
<gener1c>
matthewd: if i use a reg hash and each thread has its own key?
theonefoo has quit [Quit: theonefoo]
<matthewd>
gener1c: You'll be fine on MRI because of the GVL, but a different interpreter could crash
<gener1c>
ah like the GIL
<gener1c>
cool
<matthewd>
gener1c: IMO, if you're using threads, you might as well go with c-r. You'll want one of the cleverer things it provides eventually, and in the meantime you can happily use its threadsafe hash etc at zero cost.
boombox_ has quit [Remote host closed the connection]
ruby-lang684 has joined #ruby
aryaching has joined #ruby
<ruby-lang684>
hey guys so i have learn ruby and i understand the concepts
jbeeze has joined #ruby
<ruby-lang684>
should i move on to rails?
<ruby-lang684>
my plan is to make websites
montanonic has quit [Ping timeout: 268 seconds]
<ruby-lang684>
anyone can give me advice
Humdai_ has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
shashin has joined #ruby
<centrx>
ruby-lang684: sure, why not?
theonefoo has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
<centrx>
ruby-lang684: You can continue learning about Ruby too as part of your Rails learning/projects
<adaedra>
You can move to rails to do websites (but you don't have to, it's just a very common thing)
ResidentBiscuit has quit [Ping timeout: 252 seconds]
teclator has quit [Ping timeout: 252 seconds]
<ruby-lang684>
thx guys
<ruby-lang684>
i still a student
<domgetter>
ruby-lang684 really the only bad thing you can do is stop doing any programming
<centrx>
Yeah that's when you get hacked
<ruby-lang684>
lol?
<domgetter>
that is, as long as you're working on *something*, you're almost certainly progression
<domgetter>
progressing*
<adaedra>
🙄
<ruby-lang684>
i hope to make a websites for start up
ferr1 has quit [Quit: WeeChat 1.5]
marr has joined #ruby
dionysus69 has joined #ruby
frozengeek____ is now known as frozengeek
imperator has joined #ruby
<domgetter>
ruby-lang684 to be good at something, just do it a lot. So go make a few websites, even if it's not for a client
tomphp has joined #ruby
<ruby-lang684>
oh i see
hutch34 has joined #ruby
<ruby-lang684>
do they require experience for first time ror developers?
bmurt has joined #ruby
<ruby-lang684>
??
dviola has joined #ruby
<adaedra>
who they
Rodya_ has joined #ruby
<ruby-lang684>
i mean any start up if i mean
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
<adaedra>
knowing the technology usually helps :)
nelsonsar has quit [Remote host closed the connection]
<adaedra>
have some personal projects and push them to github, it's a good start.
nelsonsar has joined #ruby
LoneHerm_ has joined #ruby
<domgetter>
ruby-lang684 I was just offering general advice that also happens to apply to learning programming. whether or not a company explicitly requires experience depends on the company and the position
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
dogweather has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
xall has quit [Ping timeout: 240 seconds]
JankyDoodle has joined #ruby
conta has quit [Ping timeout: 250 seconds]
<ruby-lang684>
@domgetter ok thx
jcao219 has quit [Ping timeout: 256 seconds]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby
dogweather has quit [Ping timeout: 258 seconds]
Humdai has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Kendos-Kenlen_ has joined #ruby
centrx has quit [Remote host closed the connection]
nelsonsar has quit [Ping timeout: 260 seconds]
vali has quit [Read error: Connection reset by peer]
palms_ has joined #ruby
iMadper has quit [Remote host closed the connection]
Kendos-Kenlen_ has quit [Client Quit]
riotjone1 has joined #ruby
RedFromage has joined #ruby
Azure|dc has joined #ruby
faces has joined #ruby
<ruby-lang684>
what kind of websites should i build for my personal use?
iMadper has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
palms has quit [Ping timeout: 244 seconds]
igniting has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
riotjones has quit [Ping timeout: 244 seconds]
mim1k|work has quit [Quit: Reconnecting]
SesMan has quit [Ping timeout: 244 seconds]
face has quit [Ping timeout: 244 seconds]
mim1k|work has joined #ruby
aufi has joined #ruby
tdy has joined #ruby
<ruby-lang684>
??
<Papierkorb>
something you need?
nelsonsar has joined #ruby
ruby-lang569 has joined #ruby
jmignault has joined #ruby
<domgetter>
ruby-lang684 something simple. try to make sure you do something you're unfamiliar with so you learn something
<ruby-lang684>
ya it's true that i have make more websites
<ruby-lang684>
thx man
aufi has quit [Ping timeout: 244 seconds]
centrx has joined #ruby
yeticry has joined #ruby
<al2o3-cr>
what do others use for parsing options bar OptionParser?
armyriad has quit [Quit: Leaving]
iMadper has quit [Read error: Connection timed out]
<rob_>
al2o3-cr: trollop
<al2o3-cr>
rob_: i'll take a look at trollop
iMadper has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
<al2o3-cr>
looks nice
sparch has joined #ruby
xall has joined #ruby
tomphp has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
axl_ has joined #ruby
hahuang65 has joined #ruby
matp has quit [Remote host closed the connection]
LoneHerm_ has quit [Remote host closed the connection]
matp has joined #ruby
jmignault has quit [Ping timeout: 245 seconds]
connor_goodwolf has quit [Ping timeout: 260 seconds]
MrBusiness2 has joined #ruby
aganov has quit [Remote host closed the connection]
<vasilakisfil>
the idea is that you specify which method you want to benchmark. the library will rename the method to ___method and call that with the benchmark block. Using this block it will hold some statistics for the performance of that method
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vasilakisfil>
the renaming is needed if the method has a return statement, the block never returns (the method itself returns) and the statistics will not be captured
<vasilakisfil>
so I am trying to figure out how to make it easy for the user to mark which methods to benchmark
kimegede has joined #ruby
cbx_cubic has quit [Ping timeout: 248 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
ramfjord has joined #ruby
gusrub has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
ramfjord has joined #ruby
nankyokusei has joined #ruby
jaruga___ has quit [Quit: jaruga___]
jrafanie has quit [Remote host closed the connection]
Cohedrin has joined #ruby
_ZerGabriel_ has quit []
nelsonsar has quit [Remote host closed the connection]
SAVAGE is now known as suck
nankyokusei has quit [Ping timeout: 252 seconds]
nelsonsar has joined #ruby
claudiuinberlin has joined #ruby
<suck>
whats the latest ruby version?
<suck>
2.3.3?
plantfood has joined #ruby
<havenwood>
suck: yes, 2.3.3
<baweaver>
See the topic, we tend to update it fairly quickly.
nelsonsar has quit [Ping timeout: 245 seconds]
vikaton has joined #ruby
Salih has quit [Quit: Leaving]
<suck>
i got ruby with pacman -S ruby and updated my gems with gem update, i should be good to go right?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<centrx>
suck: That sounds more like a distro/package question, but sure
<centrx>
suck: Ruby versions a pretty compatible these days. If you're not using something super old, you're okay
gusrub has quit [Remote host closed the connection]
dogweather has quit [Remote host closed the connection]
symm- has joined #ruby
gusrub has joined #ruby
Lord_of_Life has quit [Excess Flood]
tristanp has joined #ruby
nelsonsar has joined #ruby
antoniobeyah has joined #ruby
Lord_of_Life has joined #ruby
pawnbox has quit [Remote host closed the connection]
plantfood has quit [Quit: Leaving]
MrBusiness2 has joined #ruby
Devalo has quit [Remote host closed the connection]
jonmoshier has joined #ruby
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
ResidentBiscuit has joined #ruby
ResidentBiscuit has quit [Max SendQ exceeded]
aegis3121 has quit [K-Lined]
govg has joined #ruby
dogweather has joined #ruby
mikecmpbll has joined #ruby
tomphp has joined #ruby
sean` has joined #ruby
sean` is now known as seanhagen
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seanhagen has quit [Client Quit]
skalfyfan has joined #ruby
seanhagen has joined #ruby
gusrub has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
UserOO7 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smlocal has joined #ruby
Disavowed has joined #ruby
william3 has joined #ruby
<Disavowed>
Hi all. I understand that during a Ruby build the parser code is generated from the grammar rules file (parse.y). Since the rules presumably don't change on a per-build basis, why is parse.c generated each time it builds? I assume I'm missing something obvious, so any help appreciated!
cdg_ has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
cdg has joined #ruby
whathappens has joined #ruby
ResidentBiscuit has joined #ruby
dogweather has quit [Remote host closed the connection]
Macaveli has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
JoshS has quit [Quit: Leaving]
william3 has quit [Ping timeout: 246 seconds]
dogweather has joined #ruby
tomphp has joined #ruby
<matthewd>
Disavowed: The same reason the rest of the code is compiled from source, even though most of the source doesn't change on a per-build basis: that's what the build is for.
skalfyfan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 258 seconds]
ResidentBiscuit has quit [Ping timeout: 245 seconds]
shashin has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
bocaneri has quit [Read error: Connection reset by peer]
william3 has joined #ruby
<Disavowed>
matthewd: Hmmmm I guess. But couldn't parse.c just be considered part of the build pipeline without the regeneration? Your answer is probably right, it's just unsatisfying!
dogweath_ has joined #ruby
dogweath_ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
dogweath_ has joined #ruby
<matthewd>
Couldn't parse.o? It feels like drawing an arbitrary line in the middle of the build process, of "this could plausibly have been written by a human", or something.
babblebre has quit [Quit: Connection closed for inactivity]
<jonmoshier>
Disavowed, Could be cognitive overhead. Sure it might make for a slightly faster build but now you're adding complexity to the process.
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
<Disavowed>
Yeah you're both right - I hadn't considered it that way. Thanks for helping me through that one!
guacamole has quit [Quit: Lost terminal]
<matthewd>
(that said, I haven't actually looked at a source tar... have you confirmed it's actually not pre-built in there?)
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
<Disavowed>
matthewd: No actually - I was reading a book and it struck me as odd. I'm newish to Ruby so I wasn't quite sure where to look. Let me have a dive in and see.
<matthewd>
It's not uncommon for projects to build the .c file at release time, to reduce the dependencies required to do the build
Silox| has joined #ruby
<matthewd>
.. but leave it out of the source repo, so if you're following a developer workflow, then you need the full pipeline
<Disavowed>
matthewd: That would go for things other than Ruby too? Interesting.
gusrub has joined #ruby
<matthewd>
Yeah, that's a "C projects that use yacc"-in-general pattern
<matthewd>
I'm just not sure whether Ruby follows it
<Disavowed>
matthewd: Fascinating! Thank you!
<Disavowed>
Seems too - Github search doesn't yield a parse.c file
<Disavowed>
to, rather
symm- has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
Snowy has joined #ruby
<jonmoshier>
Disavowed: What book?
imperator has left #ruby ["Leaving"]
<Disavowed>
This was in Ruby under the microscope. It's been a pretty interesting read so far - I don't have much background in the internals of how languages run, so it's been pretty illuminating.
workmad3 has quit [Ping timeout: 246 seconds]
conta has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
aegis3121 has joined #ruby
<jonmoshier>
Yes, I just saw that recently and it's on my to read list. figured that's what it was..
<Disavowed>
jonmoshier: I'd certainly recommend it
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jonmoshier>
i was looking at the ruby api's for like.. reduce/inject for example, the different between reading ruby/python/any highlevel language vs C, for me, is huge.
zukin has joined #ruby
<jonmoshier>
C isn't easy for me to read. C the language isn't difficult, but C code in the realworld, hard to read.
tomphp has joined #ruby
mdw has joined #ruby
<Disavowed>
I did a walkthrough of Python internals a while back - C comes after a while but I'd prefer looking at a Ruby/Python implementation any day
conta has quit [Ping timeout: 252 seconds]
suck has quit [Quit: Updating details, brb]
guacamole has joined #ruby
skalfyfan has joined #ruby
ResidentBiscuit has joined #ruby
suck has joined #ruby
nopolitica has quit [Quit: leaving]
arthurl has joined #ruby
zeroDi has joined #ruby
<arthurl>
hi guys- i'm trying to initiate an ACTIVE ftp connection using net ftp ruby library on an ec2 instance- currently it's failing with a '500 illegal port command' error- and i know it's because i'm behind a NAT
nikivi has joined #ruby
<arthurl>
i think it's because the net ftp library is using the internal ip address instead of the actual NAT address when building the connection- is there a way to specify the ip address myself?
UserOO7 has quit [Remote host closed the connection]
mati_urunda has joined #ruby
Jackneill has joined #ruby
jhack has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
nikivi has quit [Quit: zzz]
Devalo has joined #ruby
zukin has quit [Quit: leaving]
jmarrero has joined #ruby
Eiam has quit [Ping timeout: 245 seconds]
<jmarrero>
Hi, Is there a way I can check how many arguments the initialize method takes for any given class? I am trying: class_name.method(:initialize).parameters.map(&:last).map(&:to_s).include? 'my_method'
<jmarrero>
But I guess that since the class is not initialized it comes up empty.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JeroenDL has joined #ruby
nofxx has joined #ruby
Devalo has joined #ruby
<JeroenDL>
I have a script that uses an “all_isues” property of a certain object, but I can’t find the definition anywhere (“grep -ri ‘all_issues’”). Is there a different way that property/method can be generated dynamically? What should I search for ?
<JeroenDL>
(*typo isues <-> issues)
johnmilton has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
muelleme has joined #ruby
<jmarrero>
blackbombay, no. Will try that thanks! I might have been searching with wrong keywords.
<jmarrero>
dminuoso, thanks yeah I explored arity but I needed something where I could be specific about the arg I was looking for before initializing the class.
<jmarrero>
'my_method' should be 'my_arg' in my example sorry...
kobain has joined #ruby
jcao219 has joined #ruby
csk has joined #ruby
smlocal has quit [Remote host closed the connection]
tercenya has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 244 seconds]
jaguarmagenta has quit [Ping timeout: 250 seconds]
smlocal has joined #ruby
GodFather has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nikivi has joined #ruby
rodfersou has quit [Quit: leaving]
smlocal_ has joined #ruby
tercenya has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zeroDi has quit [Quit: WeeChat 1.6]
ldnunes has quit [Quit: Leaving]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDi has joined #ruby
postmodern has joined #ruby
smlocal_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
smlocal has quit [Ping timeout: 245 seconds]
tomphp has joined #ruby
jonmoshier has quit [Remote host closed the connection]
zeroDi has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
marxarelli is now known as marxarelli|afk
nelsonsar has quit [Remote host closed the connection]
nankyokusei has joined #ruby
aswen has joined #ruby
nelsonsar has joined #ruby
kirun has quit [Quit: Konversation terminated!]
nankyokusei has quit [Ping timeout: 245 seconds]
nelsonsar has quit [Ping timeout: 252 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
skweek has quit [Ping timeout: 258 seconds]
gingray has quit [Ping timeout: 252 seconds]
llabrat has joined #ruby
tomphp has joined #ruby
whathapp_ has quit [Remote host closed the connection]
llabrat has quit [Remote host closed the connection]
whathappens has joined #ruby
XV8 has joined #ruby
Guest43_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
mattp_ has joined #ruby
biberu has quit [Ping timeout: 250 seconds]
mattp__ has quit [Ping timeout: 258 seconds]
Devalo has quit [Remote host closed the connection]
tomphp has quit [Client Quit]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
nelsonsar has joined #ruby
hotpancakes has quit [Ping timeout: 245 seconds]
A124 has quit [Ping timeout: 268 seconds]
gingray has joined #ruby
sepp2k has quit [Quit: Leaving.]
zeroDi has quit [Quit: WeeChat 1.6]
montanonic has joined #ruby
armin has quit [Ping timeout: 248 seconds]
russt has quit [Quit: That's all, folks!]
cbx_cubic has joined #ruby
piGA has quit [Quit: Verlassend]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lenwood has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
vuoto has joined #ruby
jimcroft has joined #ruby
tomphp has joined #ruby
axl_ has left #ruby [#ruby]
railssmith has joined #ruby
frozengeek has joined #ruby
eb0t has joined #ruby
smlocal has joined #ruby
Guest79017 has quit [Changing host]
Guest79017 has joined #ruby
BTRE has quit [Quit: Leaving]
Guest79017 is now known as Nicmavr
cbx_cubic has quit [Ping timeout: 256 seconds]
eb0t has quit [Client Quit]
GodFather has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit [Remote host closed the connection]
BTRE has joined #ruby
eb0t has joined #ruby
axl_ has joined #ruby
skweek has joined #ruby
Rodya_ has joined #ruby
miqlas-H has joined #ruby
johnny56_ has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
claudiuinberlin has joined #ruby
johnny56_ has joined #ruby
jcao219 has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
Devalo has joined #ruby
tpendragon has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
JeroenDL has quit [Quit: JeroenDL]
JeroenDL has joined #ruby
PresidentBiscuit has joined #ruby
enterprisey has joined #ruby
marxarelli|afk is now known as marxarelli
Devalo has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 240 seconds]
Guest84 has joined #ruby
PresidentBiscuit has quit [Ping timeout: 258 seconds]
<pandawhisperer>
in other words, routes are separate modules which are `register`ed in the main app
<havenwood>
pandawhisperer: My favorite way to refactor a Sinatra app is to turn it into a Roda app.
<havenwood>
It's nice to go through the plugins and compose the app you really need.
iogbe has joined #ruby
<pandawhisperer>
havenwood: not really looking to learn yet another framework
<havenwood>
Roger that.
<pandawhisperer>
and roda doesn't look so different from Sinatra, how/why is it better?
axl_ has quit [Ping timeout: 260 seconds]
<havenwood>
It uses a routing tree, which helps it maintain speed with tens of thousands of routes (for when that happens). It's nothing more than that by default, so that's simple. There's a single roda.rb file to read and understand beyond Rack. Then you can cherry pick plugins to compose the app you want.
axl_ has joined #ruby
vuoto has quit [Remote host closed the connection]
<havenwood>
It's a great exercise to go through each plugin and decide.
<havenwood>
And there is great care taken to avoid namespace pollution, which ends up saving me a bunch of time.
<havenwood>
pandawhisperer: The routing tree might look a little more complex with hello world examples but ends up working really well for sharing common code between routes of various types.