charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndrewIsHere has quit [Ping timeout: 250 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tectonic has quit []
kanobt61 has quit [Ping timeout: 250 seconds]
lightheaded has joined #ruby
kanobt61 has joined #ruby
ur5us_ has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
c0mrad3 has joined #ruby
nertzy has joined #ruby
A_Drone has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kanobt61 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
MCoola has quit [Quit: Leaving]
dminuoso has joined #ruby
dreamyspell has joined #ruby
N1njturt1e has quit [Read error: Connection reset by peer]
kanobt61 has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
elifoster has quit [Ping timeout: 250 seconds]
nadir has quit [Quit: Connection closed for inactivity]
alaibe has joined #ruby
k3rn31 has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
charliesome has joined #ruby
BrianJ has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
brent__ has joined #ruby
alaibe has quit [Ping timeout: 240 seconds]
kanobt61 has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
azor has joined #ruby
bkxd has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
mdgmt has quit [Ping timeout: 276 seconds]
bkxd has quit [Ping timeout: 255 seconds]
jshjsh has joined #ruby
lightheaded has quit [Ping timeout: 250 seconds]
capitainIsh has joined #ruby
existensil has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
bkxd has joined #ruby
JoshS has quit [Ping timeout: 240 seconds]
dminuoso has quit [Remote host closed the connection]
eljimador has joined #ruby
biberu has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
eljimmy has quit [Ping timeout: 252 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
arashb has joined #ruby
dionysus69 has quit [Remote host closed the connection]
bocaneri has joined #ruby
nando294021 has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando294021 has quit [Client Quit]
nando293921 has joined #ruby
arashb has quit [Ping timeout: 255 seconds]
lightheaded has joined #ruby
karmatr0n has joined #ruby
dminuoso has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
zipace has joined #ruby
dminuoso has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 250 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
nankyokusei has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Remote host closed the connection]
vuoto has joined #ruby
the_drow has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
jobewan has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
tmtwd has joined #ruby
kanobt61 has quit [Ping timeout: 240 seconds]
devbug_ has quit [Quit: ZZZzzz…]
craysiii has joined #ruby
kanobt61 has joined #ruby
saneax-_-|AFK is now known as saneax
sonikspin has joined #ruby
Macaveli has joined #ruby
Silthias1 has joined #ruby
devbug has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
wugy has joined #ruby
mniip has quit [Ping timeout: 610 seconds]
gvt has joined #ruby
A_Drone has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
mdgmt has joined #ruby
dminuoso has joined #ruby
olistik has joined #ruby
dtusk has joined #ruby
kanobt61 has joined #ruby
mniip has joined #ruby
taste has quit [Ping timeout: 265 seconds]
dionysus69 has quit [Quit: dionysus69]
Silthias1 has quit [Ping timeout: 250 seconds]
mdgmt has quit [Ping timeout: 244 seconds]
olistik has quit [Ping timeout: 244 seconds]
kanobt61 has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: brb]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
bkxd has joined #ruby
teleman has joined #ruby
Silthias has joined #ruby
kanobt61 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
_djbkd has quit [Quit: My people need me...]
ur5us has quit [Ping timeout: 265 seconds]
jazzonmym11nd has joined #ruby
raeoks has joined #ruby
teleman has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
jazzonmym11nd has quit [Ping timeout: 244 seconds]
Silthias has joined #ruby
djbkd_ has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
domgetter has joined #ruby
AndrewIsHere has joined #ruby
Silthias1 has joined #ruby
awk_ is now known as awk
Silthias has quit [Ping timeout: 276 seconds]
AndrewIsHere has quit [Ping timeout: 250 seconds]
tonini has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
pawnbox has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
kanobt61 has joined #ruby
agit0 has joined #ruby
Silthias1 has quit [Ping timeout: 276 seconds]
conta has joined #ruby
karmatr0n has joined #ruby
capitainIsh has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
prawnzy has joined #ruby
pawnbox has joined #ruby
karmatr0n has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
andikr has joined #ruby
hotpancakes has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga_____
existensil has joined #ruby
kanobt61 has joined #ruby
domgetter has quit []
dionysus69 has quit [Ping timeout: 244 seconds]
aganov has joined #ruby
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jazzonmym11nd has joined #ruby
unreal has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
craysiii has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
arashb has joined #ruby
blackwind_123 has quit [Ping timeout: 250 seconds]
unreal_ has quit [Ping timeout: 240 seconds]
kanobt61 has quit [Ping timeout: 260 seconds]
jazzonmym11nd has quit [Ping timeout: 265 seconds]
N1njturt1e has joined #ruby
phredus has quit [Remote host closed the connection]
arashb has quit [Ping timeout: 265 seconds]
submitnine has joined #ruby
TvL2386 has joined #ruby
ta_ has joined #ruby
Silthias has joined #ruby
phredus has joined #ruby
jgt1 has joined #ruby
kanobt61 has joined #ruby
jgt has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
anisha has joined #ruby
Ipe_ has joined #ruby
alaibe has joined #ruby
pandaant has joined #ruby
Pumukel has joined #ruby
gfvcastro has joined #ruby
taste has joined #ruby
kanobt61 has quit [Ping timeout: 276 seconds]
alaibe has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
Ishido has joined #ruby
TomyWork has joined #ruby
jenrzzz has joined #ruby
pandaant has quit [Ping timeout: 264 seconds]
pawnbox has quit [Remote host closed the connection]
kanobt61 has joined #ruby
pandaant has joined #ruby
taste has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
claudiuinberlin has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
jaiks has quit [Ping timeout: 250 seconds]
statelesscode_ has joined #ruby
statelesscode has quit [Ping timeout: 240 seconds]
statelesscode_ is now known as statelesscode
kanobt61 has joined #ruby
pawnbox has joined #ruby
gfvcastro has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jazzonmym11nd has joined #ruby
A_Drone has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
lightheaded has quit [Read error: No route to host]
lightheaded has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
A_Drone has joined #ruby
mdgmt has joined #ruby
azor has quit [Quit: Connection closed for inactivity]
prawnzy has quit [Remote host closed the connection]
mark_66 has joined #ruby
careta has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
olistik has joined #ruby
olistik has quit [Remote host closed the connection]
olistik has joined #ruby
lightheaded has quit [Ping timeout: 240 seconds]
Ebok has joined #ruby
jaiks has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
antgel has joined #ruby
mdgmt has quit [Ping timeout: 244 seconds]
ferr has joined #ruby
pawnbox has quit [Remote host closed the connection]
kanobt61 has joined #ruby
N1njturt1e has quit [Ping timeout: 244 seconds]
prawnzy has joined #ruby
pawnbox has joined #ruby
rsampaio_ has quit [Ping timeout: 250 seconds]
N1njturt1e has joined #ruby
karmatr0n has joined #ruby
tmtwd has quit [Ping timeout: 265 seconds]
karmatr0n has quit [Read error: Connection reset by peer]
bsrd has joined #ruby
aryaching has quit [Quit: Bye]
ixti has quit [Ping timeout: 276 seconds]
lightheaded has joined #ruby
capitainIsh has joined #ruby
kanobt61 has quit [Ping timeout: 255 seconds]
ukk has joined #ruby
bsrd has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
hotpancakes has joined #ruby
kanobt61 has joined #ruby
tmtwd has joined #ruby
aufi has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.5]
nankyokusei has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Burgestrand has joined #ruby
mikhael_k33hl has joined #ruby
<Burgestrand>
moin
kanobt61 has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Quit: Leaving.]
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<mikhael_k33hl>
How do you stub the .new method to return a mocked object(double)?
<mikhael_k33hl>
It gives me `raise_lifecycle_message': The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported. (RSpec::Mocks::OutsideOfExampleError)
<Burgestrand>
mikhael_k33hl are you trying to stub in a before(:all)-hook or similar?
<Burgestrand>
mikhael_k33hl (I'm assuming you're doing this in a test suite)
capitainIsh has joined #ruby
kanobt61 has joined #ruby
jgt1 has quit [Ping timeout: 255 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
aidalgol has joined #ruby
aidalgol is now known as Guest24098
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mikhael_k33hl>
Burgestrand: it's within an example/it
hotpancakes has quit [Ping timeout: 250 seconds]
lightheaded has quit [Remote host closed the connection]
brent__ has quit [Quit: Connection closed for inactivity]
Silthias has left #ruby [#ruby]
<Burgestrand>
mikhael_k33hl that error is specifically tailored towards when you attempt to use rspec-mocks outside of an actual test example
lightheaded has joined #ruby
<Burgestrand>
mikhael_k33hl so either something is off in your setup, or it's not really inside an actual test
vuoto has quit [Remote host closed the connection]
Takumo is now known as mronions
djbkd_ has joined #ruby
mronions is now known as Takumo
<Burgestrand>
mikhael_k33hl is your code perhaps multi-threaded, and might be calling a stubbed method after the actual example has finished, but before rspec has fully restored your doubles/expectations?
<Burgestrand>
mikhael_k33hl I've ran into similar issues in the past, and typically they've been because some mocked out call is executed after the test has ran its course, I'm assuming the block the error is raised from is coming from your at_exit hook?
meinside has joined #ruby
<Burgestrand>
mikhael_k33hl now, you know that your WorkerPool.new returns a double, what do you think happens when you call `double.shutdown` in your at_exit hook, way after rspec has cleaned up for itself?
devil_tux has joined #ruby
capitainIsh has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<Burgestrand>
mikhael_k33hl I just realised my last message can be interpreted as condescending, it's not my intention but I apologize nonetheless :)
kanobt61 has joined #ruby
<mikhael_k33hl>
Burgestrand: No worries, I don't mind a bit. But i've stubbed the shutdown method for the double.shutdown
gingray has joined #ruby
<Burgestrand>
mikhael_k33hl problem is, I believe rspec might throw a hissy-fit if you attempt to call methods on doubles after they've been restored, i.e. your double is not meant to continue living on along with your at_exit hook (which lives until, well, exit)
bkxd has joined #ruby
<mikhael_k33hl>
Burgestrand: Hmmm, a bit confusing for a newb like me since I don't know when doubles get garbage collected(if that's the right term), but how do you suppose to test that at_exit code?
tmtwd has quit [Ping timeout: 250 seconds]
N1njturt1e has joined #ruby
<Burgestrand>
mikhael_k33hl it's a tricky one, the entire point of at_exit is to run at *exit*, which means way beyond what your test suite can be expected to run for. If I felt the need to test the hook, I'd probably do `expect(Kernel).to receive(:at_exit)`, and store the block given to `at_exit` in the test. Then I'd make sure that calling that block does indeed do the necessary cleanup.
spectrum has quit [Read error: Connection reset by peer]
<Burgestrand>
mikhael_k33hl personally it's on what I'd consider the breaking point of "How likely is this to break?" and "How much pain is it to maintain this test?"
<Burgestrand>
mikhael_k33hl (also, doubles get restored after each individual test, so they don't accidentally leak to the next one)
bkxd has quit [Ping timeout: 264 seconds]
kanobt61 has quit [Ping timeout: 250 seconds]
<Burgestrand>
mikhael_k33hl either way, as long as you return a double, and then proceed to do `at_exit { double.shutdown }` you will receive an error from rspec, and fairly rightfully so as the test isn't isolated and is leaking doubles
ctp has joined #ruby
mrgrieve1 has joined #ruby
kanobt61 has joined #ruby
AndrewIsHere has joined #ruby
<mikhael_k33hl>
Burgestrand: I'll keep that in mind. Thanks mate
<Burgestrand>
mikhael_k33hl You're welcome! Please just make sure that it's the at_exit-hook causing your troubles, it's a rightful assumption but still just a guess until verified.
jgt1 has joined #ruby
marr has joined #ruby
spectrum has joined #ruby
c0mrad3 has joined #ruby
jphase has quit [Remote host closed the connection]
cheesestick has quit [Ping timeout: 244 seconds]
jphase has joined #ruby
AndrewIsHere has quit [Ping timeout: 250 seconds]
kanobt61 has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
djbkd_ has quit []
A_Drone has quit [Remote host closed the connection]
kanobt61 has joined #ruby
jphase has quit [Ping timeout: 250 seconds]
Ipe_ has quit [Quit: Konversation terminated!]
cheesestick has joined #ruby
A_Drone has joined #ruby
karmatr0n has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
Ipe_ has joined #ruby
blaxter has joined #ruby
Ipe_ has quit [Client Quit]
pragmaticus has joined #ruby
Ipe_ has joined #ruby
pragmaticus has quit [Max SendQ exceeded]
pragmaticus has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
sonikspin has quit [Ping timeout: 244 seconds]
jgt1 has quit [Ping timeout: 265 seconds]
kanobt61 has quit [Ping timeout: 250 seconds]
ukk has quit [Quit: WeeChat 1.5]
kanobt61 has joined #ruby
devil_tux has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jonyijoe has joined #ruby
chwbacca has joined #ruby
lightheaded has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
lightheaded has quit [Read error: No route to host]
lheaded has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
bsrd has joined #ruby
kanobt61 has quit [Ping timeout: 265 seconds]
saneax is now known as saneax-_-|AFK
Meeh has quit [Ping timeout: 276 seconds]
kanobt61 has joined #ruby
hotpancakes has joined #ruby
pawnbox has quit [Remote host closed the connection]
Meeh has joined #ruby
pawnbox has joined #ruby
devil_tux has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
N1njturt1e has quit [Remote host closed the connection]
jgnagy has quit [Remote host closed the connection]
saneax-_-|AFK is now known as saneax
Agent001 has joined #ruby
rodfersou has joined #ruby
Macaveli has quit [Ping timeout: 244 seconds]
mdgmt has joined #ruby
gizless has quit [Ping timeout: 265 seconds]
Jardayn has joined #ruby
parsnip has left #ruby [#ruby]
braincrash has quit [Ping timeout: 240 seconds]
mdgmt has quit [Ping timeout: 276 seconds]
aidalgol has quit [Quit: Using Circe, the loveliest of all IRC clients]
workmad3 has joined #ruby
ICantCook has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
chwbacca` has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
kanobt61 has joined #ruby
karmatr0n has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
chwbacca has quit [Ping timeout: 265 seconds]
saneax is now known as saneax-_-|AFK
PValdesoiro has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
Macaveli has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
BlkDynmt has joined #ruby
nankyokusei has joined #ruby
kanobt61 has joined #ruby
PValdesoiro is now known as Frostryu
Frostryu has left #ruby [#ruby]
braincrash has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
A_Drone has quit [Remote host closed the connection]
gues928312 has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
getxsick has joined #ruby
olistik has quit [Remote host closed the connection]
<getxsick>
hi, i'm honestly can't understand a difference between ':' and '=' for default arguments, is there any good article about it?
nankyokusei has quit [Ping timeout: 276 seconds]
devbug has quit [Quit: ZZZzzz…]
A_Drone has joined #ruby
ghr has joined #ruby
stamina has joined #ruby
Technodrome has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has quit [Remote host closed the connection]
<Burgestrand>
getxsick could you provide an example?
<getxsick>
i'm starting to believe Ruby has 2 different and not possible to mix solutions. one is named parameters and another is default argument. maybe i'm wrong but i don't know how to have named and default argument in one
<Burgestrand>
getxsick your belief sounds correct!
<Burgestrand>
getxsick have you coded python in the past, by any chance?
<getxsick>
Burgestrand: even for PSF
<Burgestrand>
getxsick I'm not familiar with that acronym, PSF
kanobt61 has quit [Ping timeout: 250 seconds]
<getxsick>
Burgestrand: python software foundation
<getxsick>
anyway, yes. years of coding
devil_tux has quit [Ping timeout: 240 seconds]
<Burgestrand>
getxsick ah :)
<gues928312>
getxsick, I can think about a difference between "=" and ":". See, when you use "="...
<getxsick>
Burgestrand: so, this is how it is? = for default, : for named and you can't have default value for named parameter?
<Burgestrand>
getxsick but yes, what you're accustomed to in python, does not work in ruby. Ruby has positional arguments, and named arguments, they're completely separate.
<Burgestrand>
getxsick you can have defaults for named parameters!
garethrees has joined #ruby
<Burgestrand>
getxsick I'll construct an example for you, to hopefully make things more clear.
<getxsick>
sure
prawnzy has quit [Remote host closed the connection]
<Burgestrand>
getxsick specifically, line #13, would actually assign the local variables "name", and "sound", no matter what you name them they will still be passed as the position they're defined in
<getxsick>
Burgestrand: any real benefits for this solution?
<getxsick>
or it's limitatin due to backward compatibility?
<dminuoso>
What?
<Burgestrand>
getxsick I'd assume it's a little bit of personal preference from the language authors, and a little bit of backwards compatibility
<getxsick>
simply don't see benefits of this but i guess there are some
Pumukel has quit [Remote host closed the connection]
<getxsick>
Burgestrand: ok
tmtwd has quit [Ping timeout: 276 seconds]
<Burgestrand>
getxsick historically Ruby has always had named-like arugments, because if your final argument is a hash you do not need to pass curly braces around it
taste has joined #ruby
<dminuoso>
Burgestrand: That is not entirely true.
<Burgestrand>
dminuoso That's fine, but not very helpful, give an example!
<hanmac>
named arguments (as real function parameters) are relativly new ... thats why default parameter still exist
cgfbee has quit [Read error: Connection reset by peer]
<getxsick>
hanmac: why you are saying "still"? it doesn't look like named arguments going to be a replacement for the default parameters
<Burgestrand>
getxsick either way, 1.9 added a new hash syntax, allowing for the same thing as the past with the final argument becoming a hash, but keys now became symbols. { a: "A", b: "B" }
<hanmac>
specially default named parameters, where before they got a required form too (in 2.2 or 2.3 if i remember correct)
<Burgestrand>
getxsick add named arguments, and you can now do moo(a: "A", b: "B"), which is subtly different from moo("a" => "A", "b" => "B")
<hanmac>
getxsick: yeah the default parameter will not be replaced, even when someone might not see "real benefits" for that
sepp2k has joined #ruby
kanobt61 has quit [Ping timeout: 276 seconds]
hotpancakes has joined #ruby
ctp has joined #ruby
BlkDynmt has quit [Quit: BlkDynmt]
<getxsick>
hanmac: i see benefits for named parameters. i don't see benefits for fistinguishing between named and default
<getxsick>
named parameters should be also positional and life would be a way easier
k3rn31 has joined #ruby
choke has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
codcodog has quit [Quit: Leaving]
<getxsick>
f(x:nil) should be possible to be called as f(), f(x:a) AND f(a) and you got all you need (i could even live with habit of double checking function signature if i have to use '=' or ':' this time (which is another mess imo)
edwinvdgraaf has quit [Ping timeout: 276 seconds]
astrobunny has quit [Remote host closed the connection]
kanobt61 has quit [Ping timeout: 250 seconds]
arashb has joined #ruby
kanobt61 has joined #ruby
saneax-_-|AFK is now known as saneax
arashb has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
ctp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devil_tux has quit [Ping timeout: 276 seconds]
ctp has joined #ruby
ctp has quit [Client Quit]
A_Drone has joined #ruby
<Burgestrand>
I like it. :)
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
nettoweb has joined #ruby
IchabodAgento003 has joined #ruby
olistik has joined #ruby
lightheaded has quit [Read error: No route to host]
lheaded has joined #ruby
karmatr0n has joined #ruby
Agent001 has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 276 seconds]
<Mon_Ouie>
Why would you ever have to check whether you need to use '=' or ':'?
choke_ has joined #ruby
edwinvdgraaf has joined #ruby
kanobt61 has quit [Ping timeout: 250 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
kanobt61 has joined #ruby
ctp has joined #ruby
ctp has quit [Client Quit]
choke has quit [Ping timeout: 240 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
alfiemax has quit [Ping timeout: 244 seconds]
A_Drone has quit [Remote host closed the connection]
BlkDynmt has joined #ruby
A_Drone has joined #ruby
chwbacca` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
habitullence has joined #ruby
k3rn31 has joined #ruby
saneax is now known as saneax-_-|AFK
lheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
the_drow has joined #ruby
lheaded has joined #ruby
lightheaded has quit [Read error: No route to host]
<nedbat>
In Python, .py files are autocompiled to .pyc files, which can be safely deleted, as they are recreated as needed. Is there something similar in Ruby?
triangles has joined #ruby
interki has joined #ruby
<webus>
nedbat, no
kanobt61 has joined #ruby
<nedbat>
webus: ok, thanks.
<Mon_Ouie>
YARV keeps the bytecode in memory and regenerates every time you load your code
flying has quit []
<Mon_Ouie>
Last time I used Rubinius it would store *.rbc files on disk
oghran has joined #ruby
<nedbat>
Mon_Ouie: but not the vanilla ruby interpreter? (Not sure what its formal name is)
<oghran>
im able to run a ruby script in one terminal window, but the other terminal window is reporting a module can’t be found.
<oghran>
anyway to easily debug why?
<Mon_Ouie>
That's what I mean by YARV
<Gepeto>
Hi. I'm building a script to post informations in a HTML Form using Net::HTTP::Post, but this website needs a login first. I've tryed basic_auth, but maybe is another authentication type. So I can logon using Net::HTTP::Post too, but my next Post will not preserve the security information, so will be refused asking me a login again. How can I run 2 or more posts preserving this 'login information'?
gnufied has quit [Ping timeout: 250 seconds]
<darix>
Gepeto: mechanie
<darix>
Gepeto: mechanize
<darix>
look it up
alfiemax has joined #ruby
<FINbit>
can someone help me ?
<Mon_Ouie>
Have you tried asking in #rvm instead? I'm not sure if it's still active
<jazzonmym11nd>
basic auth should be used for any requests made with an instance of Net::HTTP.
<FINbit>
thought ruby would comprise of rvm tehcnical quesitons as well as it is related
<FINbit>
...
BlkDynmt has quit [Quit: BlkDynmt]
<jazzonmym11nd>
sorry .new doesn't take a block, must use tap there or just assign it
Immune has quit [Ping timeout: 252 seconds]
kanobt61 has quit [Ping timeout: 260 seconds]
pandaant has quit [Remote host closed the connection]
Tempesta has joined #ruby
oghran has quit [Quit: I saw monsters and daemons beckoning to me..]
Silthias has joined #ruby
Gepeto has quit [Quit: Leaving]
Silthias1 has quit [Ping timeout: 264 seconds]
kanobt61 has joined #ruby
gnufied has joined #ruby
hanmac has quit [Ping timeout: 255 seconds]
N1njturt1e has joined #ruby
choke_ has quit [Ping timeout: 250 seconds]
taste has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
N1njturt1e has quit [Ping timeout: 249 seconds]
Littlemyu_ has joined #ruby
sevenfourk has joined #ruby
Littlemyu_ is now known as littlemyu
taste has quit [Ping timeout: 244 seconds]
mpr555 has joined #ruby
<mpr555>
Hi All. I am starting out with Ruby. I am a bit confused with a bit of code, from a book, its only a few lines, would someone be able to explain for me.
<mpr555>
if
<mpr555>
Didn't mean to write if.
<canton7>
sure
[k- has joined #ruby
<mpr555>
num_pallets = 0
<mpr555>
weight = 0
<mpr555>
while weight < 100 and num_pallets <= 5
<mpr555>
pallet = next_pallet()
<mpr555>
weight += pallet.weight
<mpr555>
num_pallets += 1
<mpr555>
end
<mpr555>
I am unsure of what or where next_pallet() is
Silthias has quit [Ping timeout: 244 seconds]
<getxsick>
Mon_Ouie: cause they are not compatible?
<mpr555>
I understand that while weight is less than 100 and num of pallets is less than or equal to 5
<mpr555>
but pallet = next_pallet() - Not sure what that does
AzureStigma has joined #ruby
hanmac has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
FINbit has left #ruby [#ruby]
<Mon_Ouie>
getxsick: Show me an example where you need to use '=' to pass parameters
edwinvdgraaf has quit [Ping timeout: 265 seconds]
hotpancakes has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
<Mon_Ouie>
mpr555: It calls a method called next_pallet with no parameters and stores the result in the local variable called pallet
tyang_ has joined #ruby
edwinvdgraaf has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
kanobt61 has joined #ruby
mdgmt has joined #ruby
Pumukel has joined #ruby
Silthias has joined #ruby
<mpr555>
Mon_quie: Is the result coming from first part of the loop, and then when it goes back and loops through, it uses next_pallet again to store the info back in the the varible pallet?
<mpr555>
I meant Mon_Ouie sorry!
<Mon_Ouie>
The "result" I'm referring to is whatever is returned by that next_pallet method
<dminuoso>
I think that may make it a bit more obvious what was happening there. The "=" has nothing to do with arguments, it's just part of an expression.
koooge has quit [Quit: Leaving...]
<Mon_Ouie>
And could in fact be used along with named parameters, like f(x: (some_variable = 1))
devil_tux has quit [Ping timeout: 276 seconds]
<mpr555>
Mon_Ouie: Thanks for explaining. Really trying to get to grips with my first language being Ruby :) Any advice or tips welcome
dionysus69 has joined #ruby
abdias has joined #ruby
nadir has joined #ruby
abdias has quit [Client Quit]
ciss has joined #ruby
karmatr0n has joined #ruby
abdias has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
Burgestrand has joined #ruby
devil_tux has joined #ruby
ciss has left #ruby [#ruby]
sdothum has joined #ruby
nankyokusei has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
pawnbox has quit [Remote host closed the connection]
kanobt61 has joined #ruby
Guest31165 is now known as ndrst
dionysus69 has quit [Remote host closed the connection]
<ruby[bot]>
Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<dminuoso>
mage_: ^-
jonyijoe has quit []
<dminuoso>
13:52 < dminuoso> mage_: First obvious it that you are running a very old unsupported version of Ruby
<getxsick>
dminuoso: part of expression, this is pretty good explanation!
<mage_>
dminuoso: I'm onl the sysadmin guys, I've to deploy this old and shitty webapp
<mage_>
only*
<dminuoso>
mage_: Your Ruby version might not be supported by the gems/code.
hahuang61 has quit [Ping timeout: 255 seconds]
<dminuoso>
It's not the application, but your Ruby that is old.
TvL2386 has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 240 seconds]
<mage_>
mmh ok, let me check
kanobt61 has quit [Ping timeout: 250 seconds]
TvL2386 has joined #ruby
pawnbox has joined #ruby
lheaded has quit [Remote host closed the connection]
prawnzy has joined #ruby
lightheaded has joined #ruby
kanobt61 has joined #ruby
DanKnox has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
littlemyu has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 276 seconds]
prawnzy has quit [Ping timeout: 276 seconds]
kanobt61 has quit [Read error: Connection reset by peer]
ciss has joined #ruby
rodferso1 has joined #ruby
<getxsick>
ok, here is a bit longer src code (~130 lines), as i'm new to Ruby I would like to ask for a code review. I mean, probably I use some "bad habits" from other languages and Ruby can do it better ;-)
<ciss>
which channel is appropriate for questions related to rvm and non-interactive shells?
solocshaw has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
<mage_>
ok .. I think it's a conflict between libyaml and rbenv
kanobt61 has joined #ruby
flying has joined #ruby
<aeruder>
getxsick: i'll take a look
<getxsick>
olistik: i appreciate it!
<Mon_Ouie>
You seem to be mixing tabs (line 11) and spaces (most of the rest of the code). You should at least pick one. Most Rubyists indent with 2 spaces.
zipace has quit [Ping timeout: 255 seconds]
<getxsick>
Mon_Ouie: yes, i know, i realized it after pasting to the eval.in, fixing it now
rodferso1 is now known as rodfersou
<dminuoso>
getxsick: There is no need to default initialize instance variables to nil. THey will be nil by default if not otherwise initialized.
<jazzonmym11nd>
there is a reason: ruby emits a warning if you do not initialize instance variables before using them.
<Mon_Ouie>
The '_' prefix is not normally used for "internal" methods (except e.g. to avoid name conflicts). You should however mark these as private.
<jazzonmym11nd>
ruby -w.
Snowy has quit [Remote host closed the connection]
<Mon_Ouie>
Either 'private def method' or just 'private' on its own before all the private methods
d0nn1e has joined #ruby
<Mon_Ouie>
Oh, I missed the private definition, nvm
<dminuoso>
getxsick: Another style thing, it's more common to put a space between the opening braces and the argument list of blocks. e.g. { |a| stuff }
<getxsick>
dminuoso: hm, are you talking about the Ticket.initilize() ? can i simply just set attr_accessor ?
ropeney_ has quit [Quit: Leaving]
taste has joined #ruby
<dminuoso>
getxsick: Yeah. Though as jazzonmym11nd says, you will get warning if you run it with ruby -w. But for such scripts I really wouldn't bother initializing instance variables.
<getxsick>
Mon_Ouie: ah, didn't know i can set private before def, probably i read out of date book ;-)
<dminuoso>
getxsick: In fact you don't even need attr_accessor technically. There is no such thing as an uninitialized instance variable in Ruby.
tectonic has joined #ruby
<getxsick>
ok
skweek has quit [Ping timeout: 250 seconds]
bruce_lee has quit [Ping timeout: 265 seconds]
<Mon_Ouie>
'@db.each_key do |u| @db[u].each_key do |h|' => looks like you don't need the key, you could use each_value
bruce_lee has joined #ruby
<dminuoso>
getxsick: lines 53 / 56 - use "next" with the opposite condition, to prevent useless nesting of your if structures.
kanobt61 has quit [Ping timeout: 250 seconds]
<dminuoso>
e.g. "next unless @db.has_key? u"
<getxsick>
dminuoso: right
<dminuoso>
getxsick: for entry in f.each_line is silly. each_line takes a block already :P
kanobt61 has joined #ruby
<dminuoso>
getxsick: so f.each_line do |entry| ... end
taste has quit [Ping timeout: 244 seconds]
<Mon_Ouie>
results.sort_by {|k,v| v}.reverse[0][0] #=> You can sort by -v instead of v to avoid the reverse. You can use max_by to not have to sort the whole thing.
<Mon_Ouie>
And you don't even need to build a hash. max_by { |day| sum_connections(…) } will work fine (it won't even call the block multiple times with the same key)
solocshaw has quit [Ping timeout: 250 seconds]
saneax is now known as saneax-_-|AFK
<getxsick>
Mon_Ouie: hm? i think a key is neccesary as i refer to it later
<Mon_Ouie>
You don't refer to u latter, only to @db[u], which is the value
blackgoat has quit [Quit: WeeChat 1.5]
pwnd_nsfw has joined #ruby
solocshaw has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
kp666 has quit [Ping timeout: 250 seconds]
<Mon_Ouie>
lines 87 to 92 can be rewritten using max_by(topmax)
<getxsick>
Mon_Ouie: yeah, but then inside i still need each_key, so as one is nested in another, imho it looks more readable. otherwise we have something like @db.each_value do |u|; u.each_key do |h|
bigkevmcd has quit [Quit: Outta here...]
herbmillerjr has quit [Quit: Konversation terminated!]
kanobt61 has quit [Ping timeout: 240 seconds]
sergey_makagon has joined #ruby
<Mon_Ouie>
RE_DURATION = Regexp.compile('(?:(\d+)\+)?(\d{2}):(\d{2})') <= we have regexp literals, you can just write RE = /your regex/, it will be just as efficient when you use it
kx has joined #ruby
<jazzonmym11nd>
getxsick: for is almost never used in ruby.
<dminuoso>
Mon_Ouie: And it will enable IDE syntax hilighting for regular expressions too. :-)
blackwind_123 has joined #ruby
mdgmt has joined #ruby
tectonic has quit []
AndrewIsHere has joined #ruby
skweek has joined #ruby
kanobt61 has quit [Ping timeout: 244 seconds]
Vile` has quit [Ping timeout: 276 seconds]
<getxsick>
ok, here is an updated code https://eval.in/private/0b11a4e179eb92 -- looks fine now? Mon_Ouie: i skipped your comment about each_value as i think it's technically fine but it hides readability
solocshaw has quit [Ping timeout: 250 seconds]
mdgmt has quit [Ping timeout: 244 seconds]
devil_tux has quit [Ping timeout: 265 seconds]
AndrewIsHere has quit [Ping timeout: 250 seconds]
<getxsick>
and actually it this case, even removing the nil initialization doesn't invoke warnings, so i'm dropping the whole initilize() method
jphase has joined #ruby
tyang_ has quit [Ping timeout: 250 seconds]
kanobt61 has joined #ruby
<Mon_Ouie>
I still wouldn't construct results at line 65
mtkd has quit [Ping timeout: 250 seconds]
<jazzonmym11nd>
File.open() do { |f| f.each_line } could be File.read(fpath).each_line
<Mon_Ouie>
jazzonmym11nd: That would require reading the whole thing in memory at once. Probably doesn't matter here, but no reason to do this when you have File.foreach(path) do |line| … end anyway.
johnmilton has joined #ruby
bkxd has joined #ruby
<getxsick>
Mon_Ouie: nice construction!
<jazzonmym11nd>
yes true.
mtkd has joined #ruby
<getxsick>
is there anything to do with the lines 30-31? Perl creates structure while referencing to it, i don't know if it's possible in Ruby either
AnFin has joined #ruby
devil_tux has joined #ruby
tyang has joined #ruby
<Mon_Ouie>
Instead of the inline ifs, I'd use ||= to set the value to a default
hotpancakes has joined #ruby
<getxsick>
oh, i dunno ||=, lemme read about it
<Mon_Ouie>
Like @db[ticket.user] ||= {}
tvon has joined #ruby
<dminuoso>
getxsick: Avoid using "or" and "not" in conditionals. Use || and ! instead. The reason has to do with precedence rules, that make and/or/not more control-flow oriented.
jphase has quit [Ping timeout: 250 seconds]
<Mon_Ouie>
(It's not strictly equivalent if @db[ticket.user] is a key associated to a value that is either nil or false, but you don't seem to have that in your code)
<getxsick>
dminuoso: too much Python ;-)
<getxsick>
:w
Ebok has quit [Quit: This computer has gone to sleep]
bkxd has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
claudiuinberlin has quit [Read error: Connection reset by peer]
claudiui_ has joined #ruby
<Mon_Ouie>
`return' too is not commonly used in Ruby, unless you want to have an early return. Otherwise you just have the expression on its own as the last expression in the method.
johnmccabe has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
kanobt61 has quit [Read error: Connection reset by peer]
[k- has quit [Ping timeout: 276 seconds]
tyang has quit [Ping timeout: 250 seconds]
kanobt61 has joined #ruby
<getxsick>
Mon_Ouie: i tries this @db[ticket.user] ||= {} and got syntax error ;/
<getxsick>
Mon_Ouie: which is true, it was a typo ;-)
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
pokalyis has joined #ruby
skweek has joined #ruby
agent_white has joined #ruby
rodfersou is now known as rodfersou|afk
dminuoso has quit [Ping timeout: 255 seconds]
<agent_white>
Mornin'
AndrewIsHere has joined #ruby
<mpr555>
evie_hammond: many thanks
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
<mpr555>
I have got the Pragmatics programmers programming ruby 1.9 & 2.0
antgel has quit [Ping timeout: 255 seconds]
minimalism has quit [Quit: minimalism]
AndrewIsHere has quit [Ping timeout: 250 seconds]
daimon has joined #ruby
<daimon>
hi folks, got a problem with php here
<daimon>
I'mworking on a username/email check and although it already exists, and mysql_num_rows exits with >= 1 it stores new entry identical to the previous
<devil_tux>
daimon: what?
tdy has quit [Ping timeout: 244 seconds]
<devil_tux>
do you know what channel are you in?
<daimon>
yes tux, is ruby but php is only on invitation
<daimon>
sorry if I'm posting here
<devil_tux>
@op
<aeruder>
php is not, /join ##php worked fine for me
<apeiros>
daimon: what devil_tux said wrt spam applies
<daimon>
ok, nevermind. Tnx the same
<apeiros>
asking once is no ban reason. spamming the channel is. please stop it and use your energy instead to figure out how to join the proper channel.
daimon has left #ruby [#ruby]
dhollinger has quit [Ping timeout: 276 seconds]
<devil_tux>
ruby was always so nice, the community was, if he was on sharp-c he'd got a bootloader broken already
dviola has quit [Changing host]
dviola has joined #ruby
dionysus69 has quit [Remote host closed the connection]
rodfersou|afk is now known as rodfersou
bkxd has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
frozengeek has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
greister has quit [Quit: WeeChat 1.3]
etetz has joined #ruby
greister has joined #ruby
hotpancakes has joined #ruby
ichabod_ has joined #ruby
ledestin has joined #ruby
ichabod_ is now known as Agento001
skweek has quit [Ping timeout: 264 seconds]
Agento001 is now known as Agent001
chrisja has joined #ruby
lightheaded has joined #ruby
polishdub has joined #ruby
pwnd_nsfw` has joined #ruby
rippa has joined #ruby
devil_tux has quit [Ping timeout: 250 seconds]
k3rn31 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
mark_66 has left #ruby ["PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :karatkievich.freenode.net"]
jobewan has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
Guest19031 has joined #ruby
ChooseN has joined #ruby
Expanse has joined #ruby
shelling__ has joined #ruby
lightheaded has quit [Ping timeout: 255 seconds]
N1njturt1e has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
sharkman has joined #ruby
zekriad has joined #ruby
siaw23 has joined #ruby
amitchellbullard has joined #ruby
kaiks is now known as kx
<sharkman>
easy question for you super pros, how do i repeat "a" 5 times to get ["a", "a", "a", "a", "a"]
<Zarthus>
["a"] * 5 works
<Zarthus>
I think there may be a direct method you can calll to avoid confusion (e.g. String#* and Array#*)
<sharkman>
weird, when the orer is reversed it doesnt work
Rodya_ has joined #ruby
<Zarthus>
yes, because * is a method of array, not of 5
<sharkman>
5 * ["a"] crashed
gigetoo has joined #ruby
<Zarthus>
or fixnum, rather
<sharkman>
ohhh
<sharkman>
okay
<sharkman>
thanks
claudiuinberlin has quit []
stewart_ has joined #ruby
aegis3121 has quit [Ping timeout: 244 seconds]
AdamMeghji__ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
N1njturt1e has quit [Ping timeout: 250 seconds]
spudowiar has joined #ruby
dmnd has joined #ruby
imanc has joined #ruby
olivierjanss has joined #ruby
mrsolo has joined #ruby
Davedev28 has quit [Read error: Connection reset by peer]
GingaNinja has joined #ruby
tskogberg has joined #ruby
tvon has quit [Quit: System is sleeping...]
aegis3121 has joined #ruby
tskogberg has quit [Client Quit]
N1njturt1e has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
colstrom has joined #ruby
Guest4184_______ has joined #ruby
ggherdov has joined #ruby
AphelionZ has joined #ruby
moei has quit [Quit: Leaving...]
ThePilgrim has joined #ruby
tyang__ has quit [Ping timeout: 250 seconds]
bove has joined #ruby
jabreity has joined #ruby
AndyWojo has joined #ruby
caw has joined #ruby
andersh has joined #ruby
Lloyd has joined #ruby
machty has joined #ruby
lancetw has joined #ruby
<lupine>
Array.new(5, 'a') also works
twodayslate has joined #ruby
benlieb has quit [Quit: benlieb]
chandlerbing has joined #ruby
r4z has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
last_staff has joined #ruby
Xiti has quit [Quit: Xiti]
jose_leeto has joined #ruby
pochoa has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
workmad3 has joined #ruby
ThePilgrim has quit [Remote host closed the connection]
Xiti has joined #ruby
deimos has quit [Ping timeout: 260 seconds]
dukedave has quit [Ping timeout: 260 seconds]
kossae_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
deimos has joined #ruby
dukedave has joined #ruby
GingaNinja has quit [Quit: Page closed]
kossae has quit [Ping timeout: 260 seconds]
jphase is now known as flud
Guest24510 has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has joined #ruby
pochoa has joined #ruby
<gilfyle>
trying to write a test to a program using rspec. I have Foo::initialize which calls self.println('hello'). Is it possible to supply my own method to execute in place of self.println?
nadir has quit []
r4z has joined #ruby
Guest3871 has joined #ruby
Guest43 has joined #ruby
Guest43 has quit [Changing host]
Guest43 has joined #ruby
ur5us has joined #ruby
whathappens has quit [Client Quit]
Guest3871 has quit [Remote host closed the connection]
Guest43 is now known as Ruffus
whathappens has joined #ruby
flud is now known as jphase
jphase has quit [Changing host]
jphase has joined #ruby
bkxd has joined #ruby
Silthias has joined #ruby
postmodern has joined #ruby
soulisson has joined #ruby
Coldblackice has joined #ruby
jphase is now known as flud
flashpoint9 has quit [Remote host closed the connection]
LoneHermit has joined #ruby
Coldblackice has quit [Client Quit]
Snowy has quit [Remote host closed the connection]
aswen has quit [Quit: WeeChat 1.5]
chrisja has quit [Quit: leaving]
flashpoint9 has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
Cohedrin has joined #ruby
marr has joined #ruby
kanobt61 has quit [Read error: Connection reset by peer]
Coldblackice has joined #ruby
synthroid has quit []
LoneHermit has quit [Ping timeout: 240 seconds]
r4z has quit [Quit: Leaving]
kanobt61 has joined #ruby
benlieb has joined #ruby
tvon has joined #ruby
benlieb has quit [Client Quit]
deadprez has quit [Remote host closed the connection]
benlieb has joined #ruby
lucast has joined #ruby
Ikri has quit [Quit: No Ping reply in 180 seconds.]
benlieb has quit [Client Quit]
rodfersou is now known as rodfersou|coffee
Ikri has joined #ruby
GGMethos has quit [Ping timeout: 250 seconds]
arashb has quit [Remote host closed the connection]
NightMonkey has quit [Ping timeout: 240 seconds]
lucast has quit [Quit: Something went wrong.]
pawnbox has joined #ruby
zapata has joined #ruby
flud is now known as jphase
d0nn1e has quit [Ping timeout: 240 seconds]
lightheaded has joined #ruby
galeido has quit [Changing host]
galeido has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
PeacefulWarrior has joined #ruby
d0nn1e has joined #ruby
lucast_ has joined #ruby
GinoManWorks has quit [Quit: Leaving]
RippyDippy has joined #ruby
galeido has quit [Quit: galeido]
whathappens has quit [Read error: Connection reset by peer]
lucast_ has quit [Client Quit]
<RippyDippy>
Hey guys. I've actually never used Ruby but need to gather some info on it. I can't seem to get a straight answer to my question though:
whathappens has joined #ruby
lucast has joined #ruby
<RippyDippy>
Is ruby compiled or interpreted. Ive read about Rubinius.. but what about MRI
rodfersou|coffee is now known as rodfersou
workmad3 has joined #ruby
tvon has quit [Quit: System is sleeping...]
siaw23 has quit [Quit: siaw23]
hostess has quit [Quit: No Ping reply in 180 seconds.]
tyang__ has joined #ruby
lightheaded has quit [Ping timeout: 250 seconds]
jphase has left #ruby [#ruby]
<Mon_Ouie>
MRI compiles your Ruby code to bytecode for the YARV VM. That bytecode is interpreted and never translated into native code.
epochwolf has quit [Ping timeout: 250 seconds]
prawnzy has quit [Remote host closed the connection]
PeacefulWarrior has quit []
NightMonkey has joined #ruby
hostess has joined #ruby
snguyen has joined #ruby
snguyen has quit [Client Quit]
snguyen has joined #ruby
prawnzy has joined #ruby
<RippyDippy>
Mon_Ouie: where Rubinius outright compiles it?
Rodya_ has joined #ruby
galeido has joined #ruby
epochwolf has joined #ruby
marxarelli has joined #ruby
dinoangelov has joined #ruby
ldnunes has quit [Quit: Leaving]
alexblom_ has left #ruby ["Bye"]
<Mon_Ouie>
I believe Rubinius has both a bytecode interpreter and a JIT compiler which generates native code using information from runtime
<RippyDippy>
Mon_Ouie: Thanks! Super helpful guys.
<lupine>
gilfyle: dependency injection?
<lupine>
otherwise, you could use rspec's expectations to catch the println message being passed
<headius>
Mon_Ouie: rbx 3 no longer has a JIT
Guest3871 has joined #ruby
Guest3871 has quit [Remote host closed the connection]
Rodya_ has quit [Ping timeout: 250 seconds]
Guest3871 has joined #ruby
Guest3871 has quit [Remote host closed the connection]
soulisson has quit [Ping timeout: 265 seconds]
Guest3871 has joined #ruby
alaibe has quit [Ping timeout: 265 seconds]
Vivekananda has joined #ruby
sepp2k has quit [Quit: Leaving.]
Guest3871 has quit [Remote host closed the connection]
patarr has joined #ruby
Guest3871 has joined #ruby
NightMonkey has quit [Ping timeout: 250 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
Guest3871 has quit [Remote host closed the connection]
galeido has quit [*.net *.split]
marr has quit [*.net *.split]
HashNuke has quit [*.net *.split]
c355e3b has quit [*.net *.split]
joes has quit [*.net *.split]
lightstalker has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
galeido has joined #ruby
joes has joined #ruby
justinmrkva has joined #ruby
patarr has quit [Client Quit]
jpterry_ has joined #ruby
HashNuke has joined #ruby
lightstalker has joined #ruby
c355e3b has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
tyang__ has quit [Ping timeout: 250 seconds]
NightMonkey has joined #ruby
GGMethos has joined #ruby
Rodya__ has joined #ruby
Morrolan has joined #ruby
jpterry_ has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
ptx0_ has quit [Quit: Changing server]
ptx0 has joined #ruby
ptx0 has quit [Changing host]
ptx0 has joined #ruby
Guest3871 has joined #ruby
bjh13 has joined #ruby
sharkman has quit [Ping timeout: 265 seconds]
whathappens has quit [Read error: Connection reset by peer]
jackjackdripper1 has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
prawnzy has quit [*.net *.split]
pochoa has quit [*.net *.split]
twodayslate has quit [*.net *.split]
AphelionZ has quit [*.net *.split]
N1njturt1e has quit [*.net *.split]
sdothum has quit [*.net *.split]
bihi has quit [*.net *.split]
Guest19031 has quit [*.net *.split]
davic has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
jlyndon has quit [*.net *.split]
zero7 has quit [*.net *.split]
devbug has quit [*.net *.split]
vdamewood has quit [*.net *.split]
zzak has quit [*.net *.split]
krasnus has quit [*.net *.split]
heyimwill has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
Hobbyboy has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
Xeago has quit [*.net *.split]
programmerq has quit [*.net *.split]
heftig has quit [*.net *.split]
Talltree has quit [*.net *.split]
yokel has quit [*.net *.split]
_br__ has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
imr has quit [*.net *.split]
unforgiven512 has quit [*.net *.split]
Antiarc has quit [*.net *.split]
jgnagy has quit [*.net *.split]
existensil has quit [*.net *.split]
Bilge has quit [*.net *.split]
axisys has quit [*.net *.split]
Mekkis has quit [*.net *.split]
Guest76294 has quit [*.net *.split]
aibot_ has quit [*.net *.split]
brucebag has quit [*.net *.split]
veloutin has quit [*.net *.split]
darek_ has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
aep_ has quit [*.net *.split]
elifoster has quit [*.net *.split]
thejamespinto has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
Scient has quit [*.net *.split]
swartzcr has quit [*.net *.split]
habitullence has quit [*.net *.split]
Meeh has quit [*.net *.split]
RedNifre_ has quit [*.net *.split]
chihhsin has quit [*.net *.split]
camilasan has quit [*.net *.split]
lele has quit [*.net *.split]
montyboy has quit [*.net *.split]
daffy_duck_2 has quit [*.net *.split]
Fraeon has quit [*.net *.split]
vedu has quit [*.net *.split]
soahccc has quit [*.net *.split]
scorphus has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
pragmatism has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
cajone has quit [*.net *.split]
koma has quit [*.net *.split]
_br__ has joined #ruby
SebastianThorn has joined #ruby
darek has joined #ruby
camilasan has joined #ruby
swartzcr has joined #ruby
bihi has joined #ruby
veloutin has joined #ruby
aibot_ has joined #ruby
olspookishmagus has joined #ruby
lele` has joined #ruby
heftig has joined #ruby
isomorphismes has joined #ruby
chihhsin has joined #ruby
Xeago has joined #ruby
aep has joined #ruby
Bilge has joined #ruby
montyboy has joined #ruby
jackjackdripper has joined #ruby
whathappens has joined #ruby
Scient has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
yokel has joined #ruby
existensil has joined #ruby
daffy_duck_2 has joined #ruby
pragmati- has joined #ruby
justinmrkva has joined #ruby
elifoster has joined #ruby
cajone has joined #ruby
habitullence has joined #ruby
N1njturt1e has joined #ruby
jgnagy has joined #ruby
devbug has joined #ruby
prawnzy has joined #ruby
olspookishmagus is now known as Guest94070
pochoa has joined #ruby
pawnbox has joined #ruby
RedNifre_ has joined #ruby
brucebag has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
vdamewood has joined #ruby
yosafbridge has joined #ruby
programmerq has joined #ruby
chouhoulis has joined #ruby
thejamespinto has joined #ruby
Meeh has joined #ruby
alfiemax has joined #ruby
Talltree has joined #ruby
Antiarc has joined #ruby
sdothum has joined #ruby
jazzonmym111nd has joined #ruby
jaruga_____ has quit [Quit: jaruga_____]
BTRE has quit [Ping timeout: 250 seconds]
unforgiven512 has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
Mekkis has joined #ruby
constantinexvi has joined #ruby
Guest28805 has quit [Quit: Quitting]
gingray has quit [Ping timeout: 240 seconds]
whathappens has joined #ruby
JackMc has quit [Ping timeout: 255 seconds]
yo61 has quit [Ping timeout: 255 seconds]
tvon has joined #ruby
braderhart has quit [Ping timeout: 255 seconds]
TheMoonMaster has joined #ruby
jmcc____________ has quit [Ping timeout: 276 seconds]
kent\n has joined #ruby
kent\n has quit [Changing host]
kent\n has joined #ruby
jenrzzz_ has quit [Ping timeout: 240 seconds]
jpterry_ has joined #ruby
deimos has quit [Ping timeout: 255 seconds]
BTRE has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
ggherdov has quit [Ping timeout: 250 seconds]
boxrick1 has quit [Ping timeout: 250 seconds]
Guest3871 has quit [Remote host closed the connection]
sevenfourk has quit [Ping timeout: 265 seconds]
discopatrick has quit [Ping timeout: 265 seconds]
HashNuke has quit [Ping timeout: 255 seconds]
kireevco has quit [Ping timeout: 255 seconds]
imr has joined #ruby
jazzonmym11nd has quit [Ping timeout: 265 seconds]
wjimenez5271 has joined #ruby
Fraeon has joined #ruby
last_staff has quit [Quit: goes moo moo]
axisys has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
twodayslate has joined #ruby
davic has joined #ruby
Guest3871 has joined #ruby
jpterry has quit [Quit: ZNC Quit]
jpterry_ is now known as jpterry
zero7 has joined #ruby
zzak has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
whathappens has quit [Read error: Connection reset by peer]
boxrick1 has joined #ruby
jxf has joined #ruby
ELCALOR has joined #ruby
discopatrick has joined #ruby
whathappens has joined #ruby
sevenfourk has joined #ruby
jlyndon has joined #ruby
jmcc____________ has joined #ruby
kireevco has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
Guest19031 has joined #ruby
braderhart has joined #ruby
Guest3871 has quit [Remote host closed the connection]
HashNuke has joined #ruby
deimos has joined #ruby
ggherdov has joined #ruby
Guest3871 has joined #ruby
JackMc has joined #ruby
ggherdov has quit [Excess Flood]
sepp2k has joined #ruby
AphelionZ has joined #ruby
yo61 has joined #ruby
deadprez has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
ggherdov has joined #ruby
david28 has joined #ruby
karmatr0n has quit [Read error: No route to host]
karmatr0n has joined #ruby
Guest3871 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 265 seconds]
Guest3871 has joined #ruby
tyang__ has joined #ruby
blackmesa has joined #ruby
snood1205 has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
Guest3871 has quit [Remote host closed the connection]
Guest3871 has joined #ruby
<snood1205>
So I asked a question on SO, but it was on the whole ignored, mostly because I probably asked it poorly, but I'll try it here.
LoneHerm_ has joined #ruby
pochoa has quit [Ping timeout: 265 seconds]
<snood1205>
So y'all know how doubles (and floats) aren't represented as such in binary. Is there a way to get the nth double? As in the double that corresponds to 253 (11111101 in binary) when it is stored?