<darix>
al2o3-cr: if you dont hurry 2.5 will be out before you upgraded!
Matt____ has joined #ruby
Stickwalker has quit [Client Quit]
sspreitz has quit [Ping timeout: 240 seconds]
<al2o3-cr>
darix: i really need to upgrade, 1.8.6 is killing me
cagomez has quit [Remote host closed the connection]
<SeepingN>
oh god
TinkerTyper has quit [Ping timeout: 240 seconds]
<SeepingN>
just migrated off 1.8.6
cagomez has joined #ruby
<SeepingN>
everything breaks. be ready for it
<Matt____>
What's the name of the thing when, in a method, you immediately return if a condition is not met, but if it is met, you progress through the method. Something like a "safety" conditional?
<SeepingN>
some because it was broken in 1.8.6, others because the libraries matured and exception codes have changed
<SeepingN>
"ensure" ?
<SeepingN>
rescue?
<SeepingN>
rescue is the "safety" to keep it from crashing with an exception
<al2o3-cr>
SeepingN: hey, did you know you could pass ivars to blocks?
<Matt____>
It's not a keyword, it's a concept.
<SeepingN>
"proper programming"? ;)
<Matt____>
Haha, yes :)
<Matt____>
It's not really proper, it's sort of like the Safe navigation operator, except for methods :-\
weathermaker has quit [Quit: weathermaker]
tolerablyjake has joined #ruby
cagomez has quit [Ping timeout: 240 seconds]
TinkerTyper has joined #ruby
emilford has joined #ruby
<matthewd>
Matt____: Guard clause?
<Matt____>
Found it, it's a "guard clause."
<Matt____>
Yes! Thank you!
gixxer1k has quit [Quit: Leaving]
_sfiguser has joined #ruby
alibby has quit [Ping timeout: 248 seconds]
emilford has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
<SeepingN>
ahh. well done ruby nerds! ;)
eckhardt has joined #ruby
sspreitz has joined #ruby
Matt____ has quit [Ping timeout: 260 seconds]
TinkerTyper has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
eckhardt has quit [Client Quit]
sspreitz has quit [Ping timeout: 248 seconds]
carnegie has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
runescape07rsps has quit [Quit: Leaving]
sspreitz has joined #ruby
TinkerTyper has joined #ruby
TheDracle has joined #ruby
marr has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
kt has joined #ruby
harai has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
TinkerTyper has joined #ruby
beilabs has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 252 seconds]
fredflinstone is now known as fredflinstone1
beilabs has joined #ruby
kt has quit [Ping timeout: 240 seconds]
kt has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
gixxer1k has joined #ruby
kt has quit [Ping timeout: 240 seconds]
graft has quit [Ping timeout: 255 seconds]
kt has joined #ruby
fredflinstone1 is now known as fredflinstone
im314ous has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
belmoussaoui has joined #ruby
_whitelogger has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
subrat has joined #ruby
subrat has quit [Client Quit]
enterprisey has quit [Ping timeout: 240 seconds]
subrat has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
subrat has quit [Client Quit]
weez17_ has joined #ruby
subrat has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
subrat has quit [Client Quit]
Stickwalker has joined #ruby
subrat has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
enterprisey has joined #ruby
subrat has quit [Client Quit]
subrat has joined #ruby
subrat has quit [Client Quit]
TinkerTyper has joined #ruby
carnegie has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
carnegie has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
carnegie has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
djbkd has quit [Client Quit]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
djbkd has joined #ruby
TinkerTyper has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
kapil___ has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
carnegie has joined #ruby
mson has joined #ruby
beilabs_ has joined #ruby
TinkerTyper has joined #ruby
beilabs_ has quit [Client Quit]
carnegie has quit [Ping timeout: 276 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
Bhootrk_ has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
TinkerTyper has joined #ruby
djbkd has quit [Remote host closed the connection]
TomyLobo has joined #ruby
djbkd has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
Stickwalker has quit [Quit: Leaving]
username_ has joined #ruby
TinkerTyper has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
username_ has quit [Ping timeout: 240 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
mong has quit [Quit: Leaving]
milardovich has joined #ruby
TinkerTyper has joined #ruby
enterprisey has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
Antiarc has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
tvw has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 252 seconds]
TinkerTyper has joined #ruby
enterprisey has joined #ruby
barajasfab has joined #ruby
carnegie has joined #ruby
TinkerTyper has quit [Ping timeout: 252 seconds]
barajasfab has quit [Client Quit]
barajasfab has joined #ruby
barajasfab has quit [Client Quit]
CmndrSp0ck has joined #ruby
carnegie has quit [Ping timeout: 240 seconds]
TinkerTyper has joined #ruby
carnegie has joined #ruby
CmndrSp0ck has quit [Quit: Ex-Chat]
enterprisey has quit [Remote host closed the connection]
CmndrSp0ck has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
CmndrSp0ck has quit [Read error: Connection reset by peer]
TinkerTyper has quit [Ping timeout: 240 seconds]
carnegie has quit [Ping timeout: 240 seconds]
CmndrSp0ck has joined #ruby
lxsameer has joined #ruby
tomphp has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
CmndrSp0ck has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
CmndrSp0ck has joined #ruby
TinkerTyper has joined #ruby
kreantos has joined #ruby
InfinityFye has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
TinkerTyper has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
TinkerTyper has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
ltem has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
kreantos has quit [Remote host closed the connection]
apparition47 has joined #ruby
TinkerTyper has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
TinkerTyper has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
TinkerTyper has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
gr33n7007h has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
TinkerTyper has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
Guest40 has joined #ruby
weez17_ has quit [Quit: Connection closed for inactivity]
TinkerTyper has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
gr33n7007h is now known as al2o3-cr
marr has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
mson has quit [Quit: Connection closed for inactivity]
frozengeek has joined #ruby
alveric has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cabotto has joined #ruby
TinkerTyper has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
high_fiver has quit [Ping timeout: 252 seconds]
BTRE has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
Guest40 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 260 seconds]
WeiJunLi has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
TinkerTyper has joined #ruby
tomphp has joined #ruby
vondruch has quit [Client Quit]
Trynemjoel has quit [Quit: Quitting]
alfiemax has joined #ruby
TinkerTyper has quit [Ping timeout: 246 seconds]
Guest40 has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
alfiemax has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
alfiemax has joined #ruby
quattro_ has joined #ruby
scrooloose has joined #ruby
bronson has joined #ruby
WeiJunLi has quit [Remote host closed the connection]
cagomez has joined #ruby
scroooloose has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 248 seconds]
zephiro has quit [Quit: zephiro]
bronson has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 260 seconds]
Trynemjoel has joined #ruby
cdg has joined #ruby
scrooloose has quit [Quit: WeeChat 1.4]
TinkerTyper has quit [Ping timeout: 255 seconds]
cdg has quit [Ping timeout: 255 seconds]
TinkerTyper has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
TinkerTyper has quit [Ping timeout: 252 seconds]
pugcs has quit [Quit: pugcs]
xuanrui has joined #ruby
TinkerTyper has joined #ruby
ramfjord has joined #ruby
roshanavand has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 246 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WeiJunLi has joined #ruby
ShekharReddy has joined #ruby
TinkerTyper has joined #ruby
username_ has joined #ruby
CmndrSp0ck has quit [Ping timeout: 255 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
username_ has quit [Ping timeout: 248 seconds]
WeiJunLi has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
postmodern_ has quit [Remote host closed the connection]
TinkerTyper has quit [Ping timeout: 240 seconds]
davic has joined #ruby
belmoussaoui has joined #ruby
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 252 seconds]
cabotto has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 252 seconds]
RedNifre has joined #ruby
ams__ has quit [Quit: Connection closed for inactivity]
<RedNifre>
Good morning! Another day, another couple of pickaxe chapters...
<RedNifre>
What does "Bringing the gods of refactoring down around your ears" mean? (It's what happens when you test the class of an object with a case statement, allegedly)
TinkerTyper has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
<apeiros>
I have no clue
<RedNifre>
Ah, I checked with ##programming and "coming down around your ears" means something like "Their wraith will be upon you" or "They'll complain at you angrily", so it means "Don't do that, it makes your code less flexible so you'll have to refactor it later".
TinkerTyper has quit [Ping timeout: 248 seconds]
belmoussaoui has joined #ruby
dionysus69 has joined #ruby
<fredflinstone>
whut
<fredflinstone>
case foo; when Bar; when Baz; end is okay imo
<apeiros>
your lack of else is disturbing!
<apeiros>
but yeah, other than that, fine indeed
TinkerTyper has joined #ruby
<RedNifre>
Alright, I'll call Dave Thomas and tell him that he's wrong.
<RedNifre>
...but first I'll finish reading the book.
<apeiros>
oh if only decisions were contextless binaries
<apeiros>
we'd have a world full of silver bullets
cagomez has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
<fredflinstone>
yeah. i don't know the full context, but the pattern above is too useful to ignore i think.
TinkerTyper has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
crst has joined #ruby
ramfjord has joined #ruby
<apeiros>
RedNifre: but yes, if dave thomas' claim is that case/when with classes is *always* wrong, then sure, I'm on board on calling him wrong.
<RedNifre>
Well, if you have the book, it's in chapter 9
<apeiros>
there's only a pretty few things which are always wrong
<apeiros>
I don't
cagomez has quit [Ping timeout: 240 seconds]
<RedNifre>
he said that it "brings the gods of refactoring down around your ears".
brent__ has quit [Ping timeout: 252 seconds]
TinkerTyper has joined #ruby
mikecmpbll has joined #ruby
<fredflinstone>
doesn't add up. ruby code is not written that way, and no one is deaf. counter-argument could be given from 'Exceptional Ruby'
<crst>
Hi, how can I iterate though "things.each do |thing|" to get an array like: "array=[[thing.x1, thing.y1], [thing.x2, thing.x2] ... [thing.xn, thing.xn]]"? http://rubyfiddle.com
<apeiros>
crst: really, you should come up with a better example
<apeiros>
and no, that's not how it was supposed to be used.
<apeiros>
and `puts` to inspect data is a bad idea. use `p`
<apeiros>
your array of *things*, are the individual things really arrays? you said columns, so I'd assume you have named accessors?
ramfjord has quit [Ping timeout: 248 seconds]
<crst>
I think I need a break for a couple of days or I'm going burn out completely. Thanks and bye guys
crst has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 276 seconds]
sniffer has quit [Quit: No Ping reply in 180 seconds.]
mikecmpbll has quit [Quit: inabit. zz.]
bronson has joined #ruby
bronson has quit [Read error: Connection reset by peer]
sniffer has joined #ruby
bronson has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
zephiro has joined #ruby
cagomez has joined #ruby
al2o3-cr has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
cagomez has quit [Ping timeout: 252 seconds]
TinkerTyper has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
<RedNifre>
The book talks a lot about special global variables like "This one contains something about the regex" and "raise reraises the exception that's in $!" etc. How does this work with multi threading? Are "global" variables thread-local or do I have to worry about other threads doing regex stuff in parallel?
ixti has quit [Ping timeout: 255 seconds]
<Papierkorb>
They're actually thread-local
TinkerTyper has joined #ruby
<elomatreb>
But probably should just use MatchData instead of the globals
uZiel has quit [Ping timeout: 268 seconds]
TinkerTyper has quit [Ping timeout: 248 seconds]
GodFather has quit [Ping timeout: 252 seconds]
TinkerTyper has joined #ruby
<apeiros>
they're sometimes even frame-local (think method frames)
<apeiros>
IMO still bad those things pretend to be globals
<apeiros>
and yeah, as elomatreb says, use other means if possible
Xeago has quit [Ping timeout: 240 seconds]
WeiJunLi has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
TinkerTyper has joined #ruby
bkxd has joined #ruby
mikecmpbll has joined #ruby
Yxhuvud has quit [Remote host closed the connection]
Yxhuvud has joined #ruby
GodFather has joined #ruby
<RedNifre>
what do you mean by frame-local and method frames?
TinkerTyper has quit [Ping timeout: 252 seconds]
al2o3-cr has quit [Ping timeout: 255 seconds]
ShekharReddy has quit [Quit: Connection closed for inactivity]
uZiel has joined #ruby
TinkerTyper has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
TinkerTyper has quit [Ping timeout: 246 seconds]
Lyubo1 has joined #ruby
belmoussaoui has quit [Ping timeout: 255 seconds]
p0s1x has joined #ruby
belmoussaoui has joined #ruby
sspreitz has quit [Ping timeout: 276 seconds]
Lyubo1 has quit [Ping timeout: 248 seconds]
TinkerTyper has joined #ruby
sspreitz has joined #ruby
carnegie has joined #ruby
sspreitz has quit [Client Quit]
p0s1x has quit [Quit: Segmentation fault]
belmoussaoui has quit [Quit: belmoussaoui]
p0s1x has joined #ruby
belmoussaoui has joined #ruby
TinkerTyper has quit [Ping timeout: 248 seconds]
sspreitz has joined #ruby
p0s1x has quit [Remote host closed the connection]
carnegie has quit [Ping timeout: 255 seconds]
p0s1x has joined #ruby
Guest26295 has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Client Quit]
Cope has joined #ruby
Cope is now known as Guest12783
TinkerTyper has joined #ruby
cabotto has joined #ruby
al2o3-cr has joined #ruby
<apeiros>
RedNifre: say you do `def foo(val); val =~ some_regex; bar; $1; end`
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TinkerTyper has quit [Ping timeout: 248 seconds]
belmoussaoui_ has joined #ruby
<apeiros>
you can't say whether bar doesn't perform some regex matching
<apeiros>
and without frame-locality, $1 could be overridden by your call to bar
<apeiros>
(and that's been the case in earlier versions of ruby)
<apeiros>
ideally, bar did regex matching based on conditions, so it'd only cause troubles some of the time, which made it harder to detect/figure out :D
<elomatreb>
I.e. the regex $ vars only look like they're globals
Vile` has joined #ruby
milardovich has joined #ruby
<apeiros>
most of them are really C function calls in MRI :)
TinkerTyper has joined #ruby
milardovich has quit [Ping timeout: 246 seconds]
belmoussaoui_ has quit [Quit: belmoussaoui_]
belmoussaoui has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
belmoussaoui has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
TinkerTyper has quit [Ping timeout: 255 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
kapil___ has joined #ruby
zephiro has quit [Quit: zephiro]
TinkerTyper has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
TinkerTyper has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
apparition47 has quit [Read error: Connection reset by peer]
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
TinkerTyper has joined #ruby
ElFerna has joined #ruby
ElFerna has quit [Client Quit]
Mon_Ouie has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 252 seconds]
cabotto has quit []
TinkerTyper has quit [Ping timeout: 246 seconds]
guille-moe has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
_sfiguser has joined #ruby
belmoussaoui has joined #ruby
Mon_Ouie has joined #ruby
TinkerTyper has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
bronson has joined #ruby
belmoussaoui_ has joined #ruby
FastJack has joined #ruby
inoperable has joined #ruby
Bhootrk_ has quit [Quit: Leaving]
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 248 seconds]
bronson has quit [Read error: Connection reset by peer]
emilford has joined #ruby
bronson has joined #ruby
belmoussaoui has quit [Ping timeout: 246 seconds]
belmoussaoui_ is now known as belmoussaoui
Vile` has quit [Ping timeout: 246 seconds]
inoperable has quit [Quit: user rectified]
inoperable has joined #ruby
Puffball has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
DTZUZO has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
TinkerTyper has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
Vile` has joined #ruby
maheshcontrib has joined #ruby
ltem is now known as Ltem
<maheshcontrib>
Is there a plugin for Atom that will provide suggestions for Class methods, constants etc for Ruby Programming Language. I tried with rsense and Atom, but it is not working as desired.
mikecmpbll has quit [Client Quit]
zephiro has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Puffball has quit [Remote host closed the connection]
runescape07rsps has quit [Ping timeout: 246 seconds]
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
Puffball has joined #ruby
Puffball has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 248 seconds]
<RedNifre>
Ah, so some $ are thread local and some other $ are frame local? Hm...
charliesome has joined #ruby
drcode has quit [Ping timeout: 248 seconds]
<RedNifre>
Also, I'm now learning about threads. The Book says that since 1.9 it's now using OS threads, but since many ruby libraries aren't thread safe it only ever runs one thread at a time. Is this true? Because that sounds kinda ... not good.
<RedNifre>
What does "multi threaded" even mean if you only run one thread at a time?
Ishido has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zephiro has quit [Ping timeout: 240 seconds]
drcode has joined #ruby
spheric has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
TinkerTyper has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xuanrui has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
emilford has quit [Ping timeout: 248 seconds]
TinkerTyper has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MarkBilk_ has quit [Ping timeout: 240 seconds]
lexruee has joined #ruby
TinkerTyper has joined #ruby
harfangk has joined #ruby
jinie has quit [Ping timeout: 252 seconds]
p0s1x has joined #ruby
alfiemax has joined #ruby
jinie has joined #ruby
bkxd has joined #ruby
NightMonkey has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bruno- has joined #ruby
MarkBilk has joined #ruby
FrostCandy has joined #ruby
Puffball has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
tomphp has joined #ruby
Puffball has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
drcode has quit [Ping timeout: 276 seconds]
<apeiros>
that's the difference between concurrency and parallelism
Puffball has joined #ruby
<apeiros>
concurrent means multiple things are being worked on, but not at the same time. each thread gets a slice of time to continue, then the next thread and so on.
<apeiros>
i.e. it seems like they're being worked on at the same time, while it isn't
milardovich has quit [Ping timeout: 276 seconds]
<apeiros>
parallel means that they're indeed processed at the same time (only possible since the advent of multiple cores)
bruno- has joined #ruby
NightMonkey has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<apeiros>
^ was @ RedNifre
milardovich has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 240 seconds]
<elomatreb>
But concurrency is useful enough already, since you can execute code in another thread while another e.g. waits for IO
<RedNifre>
yeah, but why aren't they running in parallel?
<RedNifre>
say I don't use any of the not thread safe libraries. Wouldn't I want them to run in parallel then?
<apeiros>
even if nothing waits on IO, it's still useful
bruno- has joined #ruby
<RedNifre>
yeah, but wouldn't true parallelism be useful as well?
<apeiros>
sure
<apeiros>
it's faster than only concurrency
<apeiros>
basically those are the two main differences - parallelism is harder to handle but faster. that's about it.
<RedNifre>
okay.
<apeiros>
and the maximum of how much faster it can be is the number of physically available cores (might change with different computer architectures, but since this is what we've mainly had for decades, it's good enough an explanation IMO :) )
bruno- has quit [Read error: Connection reset by peer]
<RedNifre>
Another thing. Up until now I have been writing ruby in vim with nothing but syntax highlighting. I'm aware of RubyMine, but maybe I want something more lightweight for a start. I like the Atom editor, but I'm open to suggestions. What's a good tool for writing ruby code? How do you work on ruby code?
<apeiros>
all you've named are fine
<apeiros>
I use sublime
alfiemax has quit [Remote host closed the connection]
<RedNifre>
Do you have some IDE-like plugins for autocomplete or do you write everything by hand?
maheshcontrib has quit [Ping timeout: 252 seconds]
TinkerTyper has quit [Ping timeout: 248 seconds]
bruno- has joined #ruby
<apeiros>
I have some plugins, but those don't really help only a bit with writing
<elomatreb>
It's hard to do autocomplete in Ruby due to the amount of dynamic code in most projects
<RedNifre>
Alright, guess I'll stick to vim for now and look for Atom plugins later, if I ever feel the need.
bruno- has quit [Read error: Connection reset by peer]
workmad3_ has joined #ruby
orbyt_ has joined #ruby
<RedNifre>
Currently, I write ruby one file per project at a time. My next goal is to figure out gems, gemfiles and rake. I'll read up on it next, but could you give me a brief summary of what's ahead? In the style of "In Node.js, your project has a package.json with the dependencies in it, you run npm install to fetch them, then you create an account on npmjs.com and run npm publish and you're done".
<apeiros>
RedNifre: rubygems has a good guide on the structure
<apeiros>
the most important parts: /bin for executables, /lib for the library parts. map constants to files.
<apeiros>
e.g. Foo::BarBaz should be in lib/foo/bar_baz.rb
bruno- has joined #ruby
<apeiros>
and the executables should be tiny. load the lib and delegate the work to them.
workmad3 has quit [Ping timeout: 248 seconds]
<RedNifre>
No need for details, I'll learn those myself :) I'm just looking for a one sentence summary of the basic idea.
runescape07rsps has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<RedNifre>
I imagine it's like with nodejs: Everything about your project goes into the gemfile and you use rake to package it before publishing it on the one big gem repository somewhere on the web?
WeiJunLi has quit [Remote host closed the connection]
<apeiros>
yes, you can use rake to stuff everything into a .gem file
<apeiros>
personally I just use gem itself
<apeiros>
(gem build, gem install and gem push)
<RedNifre>
Ah, that sounds sensible.
maheshcontrib has joined #ruby
maheshcontrib has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
<elomatreb>
RedNifre: The important difference to npm is that bundler (the tool that does Gemfiles) always generates a lockfile (so you can always recreate an exact gem environment) and that gems aren't (by default at least) stored in each project directory, but in a shared one for all gems
workmad3_ has quit [Ping timeout: 255 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
harfangk has quit [Ping timeout: 248 seconds]
ShekharReddy has joined #ruby
roshanavand has joined #ruby
bronson has joined #ruby
Guest12783 has quit [Ping timeout: 240 seconds]
<RedNifre>
Hm, sounds a bit like a gopath?
gothicsouth has joined #ruby
Cope has joined #ruby
Cope is now known as Guest42249
bronson has quit [Ping timeout: 240 seconds]
bruno- has quit [Read error: Connection reset by peer]
<RedNifre>
Wikipedia says that gems are processor architecture specific. Why is that if ruby is interpreted?
<havenwood>
RedNifre: Some gems have native extensions in say C or Java, etc.
<RedNifre>
so most gems work everythere then?
<RedNifre>
I'm asking because the raspberry pi has an arm chip.
<havenwood>
RedNifre: Even C extensions can build on arm.
erlend has quit [Ping timeout: 240 seconds]
BTRE has quit [Read error: Connection reset by peer]
erlend has joined #ruby
sepp2k has joined #ruby
sepp2k has quit [Client Quit]
_sfiguser has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
robouk has joined #ruby
BTRE has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
mniip has quit [Ping timeout: 600 seconds]
erlend has joined #ruby
emilford has joined #ruby
epochwolf has quit [Ping timeout: 246 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
emilford has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
_sfiguser has joined #ruby
TinkerTyper has joined #ruby
guille-moe has quit [Ping timeout: 255 seconds]
cjohnson has quit [Quit: leaving]
guille-moe has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper_ has joined #ruby
kies has quit [Ping timeout: 276 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
<al2o3-cr>
cool dog :)
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
epochwolf has joined #ruby
nobitanobi has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
harai has joined #ruby
apparition47 has joined #ruby
emilford has joined #ruby
nobitanobi has quit [Remote host closed the connection]
sepp2k has joined #ruby
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahrs has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 240 seconds]
gnufied has quit [Ping timeout: 276 seconds]
ahrs has joined #ruby
Antiarc has joined #ruby
p0s1x has joined #ruby
p0s1x has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 246 seconds]
al2o3-cr has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
al2o3-cr has joined #ruby
jamesaxl has joined #ruby
p0s1x has joined #ruby
p0s1x has quit [Client Quit]
TinkerTyper_ has quit [Ping timeout: 252 seconds]
noe has joined #ruby
p0s1x has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
kobain has joined #ruby
Prutheus has joined #ruby
Guest51933 has quit [Ping timeout: 240 seconds]
alamar has joined #ruby
subrat has joined #ruby
<Prutheus>
trying to install talib_ruby on windows ... installed ruby version tested: 2.3.3 and 2.4.1 .... both same error: https://bpaste.net/show/fcdb30488749 ... I have no idea where the problem is ... I've downloaded ta-lib, extracted it to C:/ and yeah, .... that's it. In my bpaste-post is also the command with which I want to install via gem the talib_ruby package
<Prutheus>
any idea what I could do to get it working?
alamar is now known as Guest63202
workmad3 has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 1.9]
xlegoman has joined #ruby
workmad3 has joined #ruby
alfiemax has joined #ruby
roshanavand has quit [Quit: roshanavand]
graft has joined #ruby
gusrub has joined #ruby
Guest42249 has quit [Ping timeout: 246 seconds]
<fredflinstone>
@elomatreb npm generates lockfile by default since... recently.
<fredflinstone>
package-lock.json iirc
Cope has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
Cope is now known as Guest54334
milardovich has joined #ruby
imperator has joined #ruby
bronson has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
gusrub has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 276 seconds]
bruno- has joined #ruby
apparition47 has quit [Quit: Bye]
al2o3-cr has quit [Quit: WeeChat 1.9]
jackjackdripper has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
mniip has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
milardovich has joined #ruby
enterprisey has joined #ruby
Bock has quit [Ping timeout: 252 seconds]
milardovich has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
goyox86_ has joined #ruby
goyox86_ has quit [Remote host closed the connection]
goyox86 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
charliesome has joined #ruby
carnegie has joined #ruby
milardovich has joined #ruby
carnegie has quit [Ping timeout: 246 seconds]
enterprisey has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
guille-moe has quit [Remote host closed the connection]
<imperator>
howdy folks
guille-moe has joined #ruby
<imperator>
anyone know how to automatically raise an error with Faraday if the response was not successful?
<imperator>
i've seen some examples online, but am not having any luck