agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
Kricir has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
FooMunki has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
vinleod has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
gsd has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
mary5030 has joined #ruby
snile has quit [Quit: Page closed]
wallerdev has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Stalkr_ has quit [Quit: Leaving...]
<diegoviola>
" Ruby is just not attracting the attention and crowdfare it used to. Engine Yard used to be Ruby only (and supported JRuby and Rubinus ...) and has since added more languages as Ruby is not the beginning nor the end. That isn't saying Ruby is dying; just there is competition and sometimes it's hard to compete."
lkba has joined #ruby
<diegoviola>
what do you say to that?
<shevy>
diegoviola that in the end people will use what can deliver value to them
MartynKeigher has joined #ruby
adamski2600 has quit []
GaryOak_ has quit [Remote host closed the connection]
sinkensabe has quit [Read error: Connection reset by peer]
Xiti has quit [Quit: Xiti]
<shevy>
ruby isn't sufficiently kick-ass
jds has quit [Quit: Connection closed for inactivity]
JoshGlzBrk has joined #ruby
Xiti has joined #ruby
oleo has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
<apeiros_>
diegoviola: are you on a soul search or something?
<diegoviola>
soul search? what's that?
<diegoviola>
no
<apeiros_>
so what's the point of your recent set of questions?
Heskie has quit []
<diegoviola>
apeiros_: just confused as to why people say that a language is "dying"
<diegoviola>
apeiros_: I'm confused about this
<apeiros_>
and you think things will clear up by pointing at articles and asking "what do you say to that?"?
<diegoviola>
I was looking for a response that makes sense, so far nobody said anything that makes snse
<diegoviola>
sense
<waxjar>
the amount of people in this channel alone is enough to refute the statement "ruby is dying" imo
<diegoviola>
yes I know
<apeiros_>
diegoviola: you're saying in all of the questions you asked, nobody said something which made sense?
spider-mario has quit [Read error: Connection reset by peer]
<apeiros_>
because you and me both know this is not your first question…
<diegoviola>
apeiros_: ok sorry if it bother you then
<apeiros_>
no, I'm interested. I want to know.
<diegoviola>
apeiros_: I understand some people would think "ruby is dying" because they think commercial usage/interest has decreased
<diegoviola>
apeiros_: but commercial interest isn't everything in my opinion
<diegoviola>
apeiros_: I don't understand why people judge a language solely on commercial usage or interest
<diegoviola>
is it because of jobs? and people being paid to write Ruby? well, that makes sense
thumpba has quit [Remote host closed the connection]
<diegoviola>
but why say a language is dying because of this?
<diegoviola>
I shouldn't have said "nobody said anything that made sense", sorry
spassdfasdfadsf has joined #ruby
spassdfasdfadsf has quit [Client Quit]
<waxjar>
because other languages now make the headlines on hackernews, reddit, etc? dunno, it's silly
<shevy>
diegoviola why do you think that my statement did not make any sense?
<apeiros_>
diegoviola: it doesn't seem to me like you are confused
<diegoviola>
shevy: I didn't said that, sorry if that's what you got from me
<diegoviola>
shevy: english isn't my primary language
<shevy>
in your reply to apeiros_ ;)
Akuma has quit [Quit: So long sukkas!]
<shevy>
I don't think you will find many companies that want to limit themselves to a single language
<shevy>
you not only have a given language to consider but also the extra options provided by add-ons
<shevy>
like php is crap but phpbb and mediawiki are good
<shevy>
dying is a relative term
LouisRoR1 has quit [Ping timeout: 250 seconds]
<diegoviola>
yeah well, sorry for saying "nobody said anything that makes sense", I shouldn't have said this
<shevy>
you have more and more people use the internet so they provide more value to all programming languages that rely in one way or the other on the internet
<shevy>
and some languages are better than others
skyjumper has joined #ruby
<shevy>
so from the pool of new developers, they'll pick preferrentially a language that can help them achieve what they desire to quickly
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
<shevy>
and other languages not so much, hence they are "dying"
MartynKeigher has quit [Read error: No route to host]
<shevy>
but they could still be gaining more new devs than losing old devs!
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
<shevy>
the biggest problem of ruby is that people associate it heavily with rails
MartynKeigher has joined #ruby
gccostabr has joined #ruby
<shevy>
and javascript
AlSquire has quit [Quit: This computer has gone to sleep]
jottr has quit [Ping timeout: 258 seconds]
Pupeno has joined #ruby
<shevy>
hmm
<shevy>
if you have:
dc has joined #ruby
<shevy>
module Foo; def self.bar; end; end
<shevy>
and you wish to alias to Foo.bar, what would the shortest way be?
sinkensabe has quit [Read error: Connection reset by peer]
<waxjar>
from Foo or from somewhere else?
<shevy>
hmm either way is ok, I just look for the maximum shortness
<shevy>
for regular methods, we have: alias foo bar
carvantes has joined #ruby
<shevy>
for class methods... there is this awful class << self syntax... that's like 2x the amount of characters...
basex has joined #ruby
<waxjar>
from Foo i think opening the singleton class would work (class << self; alias_method :shevy, :bar; end)
mloveless has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
<waxjar>
if it's just one method, i'd prefer just defining that method though
<shevy>
hmm
MartynKeigher has quit [Ping timeout: 240 seconds]
<shevy>
could a new method work? something like... alias_class_method ?
<diegoviola>
apeiros_: the thing is, the only expectation I have is for people to be honest, I don't like FUD and bs, if they seriously think Ruby is dying I want to know the reasons but all I heard from that group is that Ruby isn't being used as much in commercial environments as it was before, if they are using FUD to market their new VM with whatever features they think are cool, I simply would prefer if they just say
<diegoviola>
that instead, no need to trash something just to promote their stuff
<apeiros_>
shevy: or: class Module; def alias_singleton_method(a, b); singleton_class.send :alias_method, a, b; end; end
<shevy>
cool... I don't think I saw singleton_class before ... singleton_class # => #<Class:#<Object:0xb8e2b1f8>>
<apeiros_>
and then just: class Foo; …defs…; alias_singleton_method a, b
<bradland>
diegoviola: people judge the “death” of a programming language by how much they read about it on websites like Hacker News, or how much they hear about it being used at hot startup X. the problem is that these sources represent a very tiny portion of the market.
<bradland>
at the end of the day, it doesn’t matter, because these arguments are pointless.
<waxjar>
i don't hear much exciting stuff about java but it's far from dead!
<bradland>
^ exactly
hephaestus_rg has quit [Ping timeout: 244 seconds]
MartynKeigher has quit [Read error: No route to host]
<bradland>
you’ll never hear about it on places like HN, because it’s not sexy and it’s not consumer
MartynKeigher has joined #ruby
dc has quit [Remote host closed the connection]
<bradland>
our app is also in the procurement space, and is built on RoR, but i won’t post a link here because i don’t want to come across as advertising
<bradland>
i have no affiliation with the previous example i provided other than having met them when i was in chicago
<shevy>
you work for them!!!
Deele has joined #ruby
dc has joined #ruby
<bradland>
heh, they’re kind of a competitor to my company :)
<shevy>
see diegoviola? it is all about rails and javascript these days :(
sevenseacat has joined #ruby
<bradland>
i’m headed to dinner. have fun convincing anyone that ruby isn’t dead lol
alvaro_o has joined #ruby
edwardloveall has joined #ruby
mliq has joined #ruby
pietr0 has quit [Quit: pietr0]
arescorpio has joined #ruby
i8igmac has quit [Ping timeout: 240 seconds]
gccostabr has quit [Quit: ZZZzzz…]
i8igmac has joined #ruby
dc has quit [Ping timeout: 245 seconds]
jrhe has quit [Quit: jrhe]
MartynKeigher has quit [Ping timeout: 272 seconds]
mliqu has quit [Ping timeout: 265 seconds]
djdarkbeat has joined #ruby
jottr has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
mloveless has quit [Remote host closed the connection]
<shevy>
hmm
dc has joined #ruby
Deele has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
ta has joined #ruby
dc has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 244 seconds]
<shevy>
is there a way to fetch conditional user input?
<shevy>
for instance: by default, read until the user types a newline. but if the first line contains a "'" character, then only stop when you see another "'" character
i8igmac has quit [Ping timeout: 245 seconds]
alvaro_o has quit [Quit: Ex-Chat]
blackmesa has quit [Ping timeout: 272 seconds]
dc has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ohaibbq has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
Pupeno has quit [Remote host closed the connection]
ta has quit [Ping timeout: 258 seconds]
Zekka has joined #ruby
sinkensabe has joined #ruby
jerrett_ has quit [Ping timeout: 250 seconds]
Elan10993245 has joined #ruby
_ixti_ has quit [Ping timeout: 245 seconds]
jerrett has joined #ruby
dc_ has joined #ruby
dc_ has quit [Remote host closed the connection]
Menorah has quit [Quit: This computer has gone to sleep]
DadoCe has joined #ruby
dc has quit [Ping timeout: 250 seconds]
MartynKeigher has joined #ruby
dc has joined #ruby
Musashi007 has quit [Ping timeout: 255 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
<edwardloveall>
shevy: yeah
Menorah has joined #ruby
<edwardloveall>
let me find it
_ixti_ has joined #ruby
<edwardloveall>
oh hmmm
Elan10993245 has quit [Ping timeout: 265 seconds]
<edwardloveall>
you can do it, but it starts to get complicated really quickly
dc has quit [Remote host closed the connection]
<edwardloveall>
you could use getch
<edwardloveall>
instead of gets
<edwardloveall>
put it in a loop and check each character
<shevy>
hmm
crueber has joined #ruby
Pupeno has joined #ruby
kirun has quit [Quit: Client exiting]
<shevy>
ok
mloveless has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
<edwardloveall>
let me know if you need code sample
MartynKeigher has quit [Ping timeout: 255 seconds]
<edwardloveall>
i can try to make one
sinkensabe has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
<shevy>
no that seems simple enough
<shevy>
loop {} + STDIN.getch
kotk_ has joined #ruby
<edwardloveall>
yeah
robustus has joined #ruby
MartynKeigher has joined #ruby
kotk has quit [Ping timeout: 258 seconds]
TeddyMurray has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
MartynKeigher has quit [Read error: No route to host]
basex has quit [Ping timeout: 240 seconds]
MartynKeigher has joined #ruby
Pupeno has quit [Remote host closed the connection]
loc22 has joined #ruby
hamakn has quit [Remote host closed the connection]
Musashi007 has joined #ruby
pardusf has quit [Ping timeout: 272 seconds]
reset has quit [Quit: Leaving...]
parduse has joined #ruby
programmerq has quit [Ping timeout: 265 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
pandaant has joined #ruby
rshetty has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
Pupeno has joined #ruby
sinkensabe has joined #ruby
DadoCe has quit [Remote host closed the connection]
Jet4Fire has quit []
amundj has joined #ruby
io_syl has quit []
oleo has quit [Read error: Connection reset by peer]
n80 has quit [Quit: n80]
marr has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
carvantes has quit [Quit: WeeChat 0.3.7]
mloveless has quit [Remote host closed the connection]
oleo has joined #ruby
josephndenton has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Remote host closed the connection]
loc22_ has joined #ruby
rshetty has quit [Remote host closed the connection]
loc22_ has quit [Client Quit]
ebbflowgo has joined #ruby
n80 has joined #ruby
loc22 has quit [Ping timeout: 245 seconds]
knikolov has joined #ruby
oo_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
dc has quit [Disconnected by services]
ebbflowgo has joined #ruby
dc_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
tujv has joined #ruby
edwardloveall has left #ruby [#ruby]
Sawbones_ has joined #ruby
hemanth has joined #ruby
Sawbones has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
io_syl has quit []
studiotate has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
<Ikri>
curious, I have some js/node knowledge. I'm wondering if I should jump straight into rails or if I should learn ruby first. what do you guys think?
kotk_ has joined #ruby
sinkensabe has joined #ruby
<shevy>
learn ruby, skip rails
<jhass>
^ #ruby answer. Guess the #RubyOnRails answer
Sawbones_ has quit [Remote host closed the connection]
<Ikri>
why skip rails? isn't it the most popular framework?
<Zekka>
Having read code by people who didn't know Ruby but knew Rails, learn Ruby!
<Zekka>
(You can always learn Rails after.)
Sawbones has joined #ruby
<apeiros_>
actually, I've often seen #rubyonrails advise to learn ruby too, not just rails
<Ikri>
Zekka: okay, that helps. thanks :)
<shevy>
Ikri don't think it is very popular on #ruby; I'd say only about 20 people here are on #rubyonrails or so
<jhass>
apeiros_: are you at congress?
kotk has quit [Ping timeout: 245 seconds]
<apeiros_>
jhass: nope. haven't been to one in ~2y. should really change that.
<Ikri>
apeiros_: is it like people who learn jquery but not js?
<Zekka>
I actually found Ruby to be pretty hard to get comfortable with (and I'm not that comfortable with it now), knowing Python to begin with -- I know folks who had less trouble but I think it's easy to underestimate how hard the language is to pick up
<Cat_1>
Or people who learn Javascript but not Java
<apeiros_>
Ikri: I think with jruby/js it's not that bad
<Cat_1>
Am I doing it right?
<apeiros_>
unless you develop SPAs
iamninja has quit [Quit: ZZZzzz…]
amclain has joined #ruby
<apeiros_>
Zekka: maybe you stuck too hard to python idioms
<apeiros_>
sometimes a language is easier to learn without baggage
<Ikri>
SPAs?
<Ikri>
SPAs?
<apeiros_>
single page applications. just one of the things you can do which are js heavy
<Zekka>
apeiros_: That's probably part of it, but I think the Ruby object model is also a little bit more complex, which meant that some of the hotshot metaprogramming nonsense I tried to do in Python was more difficult in Ruby
kotk_ has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
<apeiros_>
Zekka: ruby's object model is *very* simple
chipotle has quit [Quit: cheerio]
sinkensabe has quit [Read error: Connection reset by peer]
<apeiros_>
there are a couple of details which are hard. but those usually don't matter.
bronson has quit [Remote host closed the connection]
<Zekka>
Granted, a lot of it you don't have to think about all the time
<apeiros_>
Zekka: model != behavior. yes, many core classes have a lot of methods.
<apeiros_>
it's still better than making stuff global like python does it
echooo1 has quit [Quit: echooo1]
<apeiros_>
the object model of ruby has 4 elementary parts: 1) all methods are instance methods and modules are their containers (note that Class subclasses Module), 2) everything you can assign to a variable and/or call a method on is an Object (or subclass), 3) Kernel is the place for "global functions"
luriv_ has joined #ruby
<apeiros_>
wait, what was 4 again?
<apeiros_>
it's late, I guess :)
<Zekka>
apeiros_: (Following along, I'll talk if you seem to be looking for a response.)
echooo has joined #ruby
sinkensabe has joined #ruby
<apeiros_>
well, 4 probably should have been the relation between instance <- singleton-class -> class. but I'm almost falling asleep here.
* jhass
hands apeiros_ a bottle of mate
<apeiros_>
jhass: thanks. mate isn't really my thing, though.
<jhass>
that just means you hadn't enough of it yet
<Zekka>
apeiros_: There's a few things I think you neglect mentioning just by enumerating those tings, although it's possible you might have done given enough time
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
* jhass
hands another bottle
<apeiros_>
Zekka: there's tons of details. but 99% those don't matter.
<Zekka>
apeiros_: How about inheritance in general? You seem to have mostly ignored the semantics of that
<apeiros_>
you can e.g. hang yourself with the circular dependency in the root of the object system. but for almost all practical purposes, it doesn't matter.
radic has quit [Ping timeout: 245 seconds]
Cat_1 has quit [Remote host closed the connection]
rbennacer has joined #ruby
<Zekka>
More generally than that, Ruby seems to implement a lot of useful functionality in terms of smaller units of primitive functionality (don't get me wrong! I think this is the right way to do that) which I think still leaves you a lot to understand even after you understand the relatively small primitive units
luriv has quit [Ping timeout: 264 seconds]
<apeiros_>
yeah, part of 4. every object has a singleton class for its very own methods. method lookup is: object's singleton class, object's class, then class' ancestors (which contains modules). after that, lookup chain is repeated with method_missing.
bronson has joined #ruby
<apeiros_>
I think the singleton-class part is the hardest to get for most. but that too is usually something you can glance over for as much as a couple of years.
<jhass>
Don't forget Module#prepend :P
tkuchiki has quit [Remote host closed the connection]
wallerdev has joined #ruby
<jhass>
but ignore me ;)
n80 has quit [Quit: n80]
radic has joined #ruby
<Zekka>
apeiros_: I think you also talk a lot about how objects relate to other objects, but not so much about what objects are
<Zekka>
Ruby objects have, from a learner standpoints, a 'this' referencewhich is bound in an unknown way, a classmethod-analogue, an instancemethod-analogue, a classfield-analogue, and an instancefield-analogue
<Zekka>
Even knowing that classthings are a case of instancethings (because classes are a case of instances), much of that still falls into understanding the "useful aliasing"
kp666 has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
<apeiros_>
Zekka: I think you're overcomplicating it.
<Zekka>
apeiros_: You think so? Because these are the things that made it hard for me to learn Ruby, and I'm being honest about that
<Zekka>
Granted, I think these are also reasons it would be hard to learn Python
tkuchiki_ has joined #ruby
<apeiros_>
an object is state + callable code. that callable code is physically stored in classes/modules but executed in the context of the object.
<apeiros_>
self identifies that context. the rest is part of the state of the object. e.g. its class is self.class
oleo has quit [Ping timeout: 265 seconds]
<apeiros_>
state of an object is available either through methods, or through instance variables. instance variables belong to a single object. they're associated with `self`. same self = same ivars.
<apeiros_>
and self will always be the object you called the method on
<Zekka>
apeiros_: But the binding of 'self' introduces a variety of apparent special cases
oo_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<apeiros_>
Zekka: any of which matter in more than 0.1% of all use cases?
<Zekka>
It doesn't, for instance, follow the rules of lexical scoping
<Zekka>
apeiros_: They confused me!
<Zekka>
I'm not trying to argue "this might confuse someone at some point" but trying to bring up specific things that caught me off-guard
<Zekka>
it might be reasonable to call me a poor learner, but it probably wouldn't be reasonable to say that these are frivolous cases that wouldn't occur to anyone
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<apeiros_>
ok
<apeiros_>
got an example?
ta has joined #ruby
<apeiros_>
I mean, one you'd say you still don't understand
<Zekka>
apeiros_: Not one that doesn't fall into "weird things witnessed metaprogramming"
<apeiros_>
oh, I didn't say rubys object system couldn't be used to build convoluted systems.
<apeiros_>
all I say is that rubys object system at its core is relatively simple.
<Zekka>
For what it's worth, since I've been drawing a lot of comparisons to learning Python here, I think Python probably has analogous poblems to some of what I'm complaining about
hephaestus_rg has joined #ruby
<Zekka>
When I'm complaining about how the behavior of the 'self' reference is nonobvious, there's probably a similarly nonobvious behavior in Python
mjmac has quit [Ping timeout: 258 seconds]
<Zekka>
I think that the major difference in this specific case is that Python is super reluctant to break with standard lexical scoping
<apeiros_>
and I fully believe you that if you're confronted with real life code and don't get a good explanation, it will seem very complex and opaque
<Zekka>
There's probably other cases where it's more willing to break -- so that's a nonobvious difference in language character that you can't really associate with one specific decision
Ikri has quit [Read error: Connection reset by peer]
thumpba has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 244 seconds]
Ikri has joined #ruby
<Zekka>
And if you can, a lot of the Ruby cases, like the self rules, will still seem pretty small and insignificant individually. You can more broadly say "Ruby does not care that much about keeping the appearance of lexical scoping", but then you've got a general situation without specific examples
<apeiros_>
lids falling here. are you around tomorrow?
<Zekka>
(I think that's a fair statement to make, especially when mixins are a major language feature)
mjmac has joined #ruby
<Zekka>
apeiros_: Probably
<Zekka>
Sorry for keeping you up!
<apeiros_>
no problem
<apeiros_>
I shouldn't have stayed up so late to begin with :D
<Zekka>
There's something else I actually should be doing but arguing's fun, so I've been doing this
msmith_ has joined #ruby
<apeiros_>
I'm intrigued to continue. but I really have to sleep. gn8, maybe we can continue tomorrow :)
yfeldblum has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
ponyofde1th has joined #ruby
<ponyofde1th>
anyone know how i can set a node variable from inside cookbook ? .set https://bpaste.net/show/e579277311a4 in here does not seem to work. i know its chef but no one in that channel :)
i8igmac has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
Sawbones has joined #ruby
<jhass>
try #chef
icebourg has joined #ruby
<ponyofde1th>
jhass: tried no one there
<ponyofde1th>
jhass: not sure why the domain array is out in read only mode when i try to
<ponyofde1th>
write to it
agrinb has joined #ruby
ta has quit [Ping timeout: 258 seconds]
<sevenseacat>
lol
govg has joined #ruby
thumpba has joined #ruby
rbennacer has quit [Remote host closed the connection]
msmith_ has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
tujv has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
mahtennek has quit []
knikolov has quit [Ping timeout: 240 seconds]
knikolov has joined #ruby
rbennacer has joined #ruby
sinkensabe has joined #ruby
jottr has joined #ruby
Takle has joined #ruby
pwnz0r has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
knikolov has quit [Ping timeout: 256 seconds]
tujv has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
Takle has quit [Ping timeout: 240 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gnephiak has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
MartynKeigher has joined #ruby
gsd has joined #ruby
chipotle has joined #ruby
thumpba has joined #ruby
rshetty has joined #ruby
Sawbones has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<shevy>
a lolcat!
<shevy>
in 2014
apeiros_ has quit [Remote host closed the connection]
icebourg has quit [Ping timeout: 265 seconds]
chipotle has quit [Client Quit]
apeiros_ has joined #ruby
ninjazach has left #ruby ["tty0 has closed"]
rkazak has joined #ruby
rshetty has quit [Remote host closed the connection]
icebourg has joined #ruby
ninjazach has joined #ruby
oleo has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
postmodern has quit [Ping timeout: 258 seconds]
incomprehensibly is now known as glowcoil
postmodern has joined #ruby
braincras has quit [Quit: bye bye]
dc_ has quit [Remote host closed the connection]
tujv has quit [Ping timeout: 240 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
rbennacer has quit [Remote host closed the connection]
claw has joined #ruby
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
Cat_1 has joined #ruby
AndroUser466 has joined #ruby
bronson has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 258 seconds]
Cat_1 has quit [Ping timeout: 258 seconds]
russt has joined #ruby
smoke1 has joined #ruby
pengin has quit [Remote host closed the connection]
thumpba has joined #ruby
postmodern has quit [Quit: Leaving]
<TheAtomicGoose>
why would i be getting undefined method error o this program? http://sprunge.us/POgf
pengin has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
gnephiak has quit [Quit: Konversation terminated!]
newmanships has joined #ruby
skj3gg has quit [Quit: Leaving.]
lxsameer has joined #ruby
skj3gg has joined #ruby
bluOxigen has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
gnephiak has joined #ruby
russt has quit [Quit: russt]
mostlybadfly has quit [Quit: Connection closed for inactivity]
govg has quit [Ping timeout: 245 seconds]
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fandi has quit [Ping timeout: 244 seconds]
russt has joined #ruby
ajacmac has quit [Ping timeout: 240 seconds]
thumpba has quit [Remote host closed the connection]
<shevy>
TheAtomicGoose this is not good
<shevy>
you must always provide the full error - append it in such a pastie
sinkensabe has quit [Read error: Connection reset by peer]
<TheAtomicGoose>
shevy: my bad, just a moment
<shevy>
but wait
<shevy>
this code is simple enough
<shevy>
for more complicated code you should give the full error
<shevy>
I figured it out
<shevy>
(item_length).times do |item|
<shevy>
puts item("//title")
<shevy>
here you try to call a method called item
<shevy>
but you don't have a method
<shevy>
called item()
mloveless has joined #ruby
smoke1 has quit [Read error: Connection reset by peer]
<shevy>
instead you have a block variable called item
<TheAtomicGoose>
that's what i thought i was calling
ponga has joined #ruby
<TheAtomicGoose>
ohhhh i understand now
<TheAtomicGoose>
thank you
rjhunter has quit [Remote host closed the connection]
thumpba has joined #ruby
sinkensabe has joined #ruby
skj3gg has quit [Quit: Leaving.]
<shevy>
\o/
fandi has joined #ruby
knikolov has joined #ruby
cichol has joined #ruby
ndrei has joined #ruby
fandi has quit [Excess Flood]
tomengland_mbp has joined #ruby
<tomengland_mbp>
does class initialize methods have to use the instance variable if you're using attr_accessor
circ-user-jdSAv has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
vin` has quit [Ping timeout: 256 seconds]
thumpba has quit [Remote host closed the connection]
ajacmac has joined #ruby
<TheAtomicGoose>
is there a way to print named links to the console in ruby? e.g. have a link that goes to www.example.com but looks like "Example Website"
crueber has quit [Quit: Leaving.]
sinkensabe has joined #ruby
circ-user-jdSAv is now known as cichol_
cichol has quit [Quit: Page closed]
byprdct has quit [Read error: Connection reset by peer]
cichol_ is now known as cichol
knikolov has quit [Ping timeout: 272 seconds]
thumpba has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
jottr has joined #ruby
newmanships has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
studiotate has quit [Quit: Computer has gone to sleep.]
ponga has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
sinkensabe has quit [Read error: Connection reset by peer]
ponga has joined #ruby
TheAtomicGoose has quit [Ping timeout: 244 seconds]
cmarques has quit [Remote host closed the connection]
duggiefresh has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
fandi has joined #ruby
Stoge88 has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
dseitz has joined #ruby
sinkensabe has joined #ruby
kiyote23 has quit [Ping timeout: 250 seconds]
icebourg has quit []
Takle has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
pwnz0r has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
amclain has quit [Quit: Leaving]
josephndenton has quit [Ping timeout: 250 seconds]
fandi has quit [Excess Flood]
Takle has quit [Ping timeout: 272 seconds]
fandi has joined #ruby
cichol has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
jusmyth has quit [Client Quit]
sinkensabe has quit [Read error: Connection reset by peer]
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
fandi has quit [Ping timeout: 255 seconds]
jrhe has joined #ruby
sinkensabe has joined #ruby
studiotate has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
thumpba has quit [Remote host closed the connection]
mloveless has quit []
basex has joined #ruby
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 258 seconds]
ponga has quit [Ping timeout: 255 seconds]
thumpba has joined #ruby
Techguy305|2 has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
basex has quit [Ping timeout: 265 seconds]
last_staff has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
t_p has joined #ruby
Techguy305 has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
mary5030 has joined #ruby
tomengland_mbp has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
rshetty has quit [Remote host closed the connection]
sinkensabe has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
mary5030 has quit [Ping timeout: 245 seconds]
leafybasil has quit [Ping timeout: 245 seconds]
pentanol has joined #ruby
<pentanol>
hello, someone familar with redmine here?
fandi has joined #ruby
Axy is now known as Mia
agrinb has joined #ruby
davedev24_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
echooo has quit [Ping timeout: 250 seconds]
elaptics`away is now known as elaptics
towski_ has quit [Remote host closed the connection]
echooo has joined #ruby
davedev2_ has joined #ruby
thumpba has quit [Remote host closed the connection]
kt has joined #ruby
thumpba has joined #ruby
kt has quit [Client Quit]
kt has joined #ruby
mercwithamouth has quit [Ping timeout: 258 seconds]
davedev24_ has quit [Ping timeout: 258 seconds]
kt has quit [Client Quit]
studiotate has quit [Quit: Computer has gone to sleep.]
duggiefresh has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sinkensabe has quit [Read error: Connection reset by peer]
thumpba has quit [Ping timeout: 255 seconds]
tobago has joined #ruby
sinkensabe has joined #ruby
bronson has joined #ruby
wallerdev has quit [Quit: wallerdev]
Crazy_Atheist has quit [Ping timeout: 245 seconds]
dts|pokeball has quit [Ping timeout: 256 seconds]
thumpba has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
mercwithamouth has joined #ruby
JBreit has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
timonv_ has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
rshetty has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sandelius has joined #ruby
knikolov has joined #ruby
robbyoconnor has joined #ruby
sinkensabe has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
rimantas has joined #ruby
timonv_ has quit [Remote host closed the connection]
rshetty has joined #ruby
kamilc__ has joined #ruby
timonv_ has joined #ruby
pentanol has quit [Quit: leaving]
josephndenton has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
anarang has joined #ruby
tkuchiki has joined #ruby
arup_r has joined #ruby
knikolov has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
pwnz0r has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
josephndenton has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
mercwithamouth has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
ayaz has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
ecksit has joined #ruby
pwnz0r has quit [Ping timeout: 258 seconds]
r0bby_ has joined #ruby
commmmodo has quit [Quit: commmmodo]
sinkensabe has joined #ruby
commmmodo has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
ponga has joined #ruby
knikolov has joined #ruby
havenwood has quit [Remote host closed the connection]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
iamninja has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
r0bby_ is now known as robbyoconnor
bronson has joined #ruby
hamakn has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
yfeldblum has joined #ruby
rshetty has quit [Remote host closed the connection]
agrinb has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
godd2 has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
fuking has joined #ruby
<fuking>
what is the best programming boot camp that someone can go online?
studiotate has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<godd2>
fuking programming in general or for ruby?
<fuking>
well, i would like to learn ruby and programming in general
<fuking>
ruby sounds fun and hard
<fuking>
it's better than writing c i hear and people tell me c is short for crap
<godd2>
haha well you can form your own opinions with time and experience
<ccurtisj>
Hey guys! Does anyone know off the top of their head if the Curb gem (curl bindings) is thread safe or not? https://github.com/taf2/curb
Macaveli has joined #ruby
Deele has joined #ruby
ta has joined #ruby
startupality has joined #ruby
olivier_bK has joined #ruby
mglAC has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 272 seconds]
<mglAC>
Hi everyone. I need to update an application using bundler. But bundle shows unresolvable dependencies ( see https://gist.github.com/mgla/d6e0a006a330644e53a1 ). I can not find out where the money dependency comes from - it is not even installed.
j0n3 has joined #ruby
GGMethos has joined #ruby
fandi has quit [Ping timeout: 244 seconds]
<mglAC>
A reverse dependency check on money shows no matching gems.
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
<mglAC>
How do i resolve this problem?
yfeldblum has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
livathinos has joined #ruby
troulouliou_dev has joined #ruby
jottr has joined #ruby
VictorBjelkholm has joined #ruby
cobakobodob has quit [Quit: WeeChat 0.4.3]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
cichol has joined #ruby
cobakobodob has joined #ruby
cobakobodob has quit [Max SendQ exceeded]
MrIlyas has joined #ruby
cobakobodob has joined #ruby
cobakobodob has quit [Max SendQ exceeded]
ta has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
cichol_ has quit [Ping timeout: 264 seconds]
j0n3 has joined #ruby
j0n3 has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 255 seconds]
Flcn__ has joined #ruby
cobakobodob has joined #ruby
ta has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
j0n3 has joined #ruby
nelsonr has quit [Remote host closed the connection]
kiyote23 has joined #ruby
cobakobodob has quit [Quit: WeeChat 0.4.3]
cobakobodob has joined #ruby
slmorton has quit []
bonhoeffer has quit [Quit: bonhoeffer]
testcore has quit [Remote host closed the connection]
fandi has joined #ruby
testcore has joined #ruby
DadoCe has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 265 seconds]
kiyote23 has quit [Ping timeout: 272 seconds]
nelsonr has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
livathinos has quit [Remote host closed the connection]
poetazus has joined #ruby
bookies has joined #ruby
vinleod has joined #ruby
Techguy305|2 has quit [Ping timeout: 244 seconds]
gccostabr has joined #ruby
gccostabr has quit [Max SendQ exceeded]
spider-mario has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
gccostabr has joined #ruby
<bookies>
Hi. I get a url with request.original_url. Example: "http://localhost:3000/p/test?share=true". Then I want to take out the "?share=true". I am thinking that I can do that by always taking out the last 11 characters of the url. However is this a proper way to go about it?
DadoCe has joined #ruby
DadoCe has quit [Remote host closed the connection]
arup_r has joined #ruby
DadoCe has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
claw_ has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
ccurtisj has joined #ruby
cobakobodob has quit [Quit: WeeChat 0.4.3]
jenrzzz has joined #ruby
arup_r has quit [Remote host closed the connection]
cobakobodob has joined #ruby
rippa has joined #ruby
oleo__ has joined #ruby
cobakobodob has quit [Client Quit]
cobakobodob has joined #ruby
rdark has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
axilla has joined #ruby
ebbflowgo has joined #ruby
oleo is now known as Guest3962
<Hanmac>
bookies: hm what do you mean with "take out"? do you want to return or to remove it?
cichol has quit [Remote host closed the connection]
<ccurtisj>
@visof do HTTParty.get('http://google.com', basic_auth: {username: 'admin', password: 'admin'})
nateberkopec has joined #ruby
hvxgr has joined #ruby
phutchins has joined #ruby
last_staff has quit [Quit: last_staff]
msmith_ has joined #ruby
iamninja has joined #ruby
spacemud has quit [Ping timeout: 240 seconds]
DarthGandalf has quit [Ping timeout: 258 seconds]
ltd has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
spacemud has joined #ruby
jottr has joined #ruby
tkuchiki has quit [Remote host closed the connection]
livathinos has joined #ruby
ltd has joined #ruby
tkuchiki has joined #ruby
hvxgr has quit [Ping timeout: 255 seconds]
ziyadb has joined #ruby
ziyadb has quit [Changing host]
ziyadb has joined #ruby
ziyadb has quit [Changing host]
ziyadb has joined #ruby
p8m has quit [Quit: Lost terminal]
timonv^ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
hvxgr has joined #ruby
hvxgr has quit [Client Quit]
hvxgr has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
spastorino has joined #ruby
AxonetBE has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
DarthGandalf has joined #ruby
AxonetBE has quit [Client Quit]
agrinb has joined #ruby
apurcell has joined #ruby
lxsameer has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 258 seconds]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
tkuchiki has joined #ruby
apurcell has quit [Ping timeout: 272 seconds]
hvxgr has quit [Quit: leaving]
hvxgr has joined #ruby
amystephen has joined #ruby
hmn_hf has joined #ruby
kirun has joined #ruby
sevenseacat has quit [Remote host closed the connection]
rshetty has joined #ruby
hmn_hf has quit [Client Quit]
hmnhf has joined #ruby
dumdedum has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
basex has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
javiercito has quit [Remote host closed the connection]
jefus__ is now known as jefus
javiercito has joined #ruby
DadoCe has quit [Remote host closed the connection]
hmnhf has quit [Quit: Konversation terminated!]
ebbflowgo has quit [Quit: ebbflowgo]
sinkensabe has joined #ruby
kiyote23 has joined #ruby
agrinb has joined #ruby
GeorgesLeYeti has joined #ruby
razieliyo_ has quit [Ping timeout: 265 seconds]
FooMunki has joined #ruby
jespada has quit [Quit: Leaving]
aclearman037 has joined #ruby
hmnhf has joined #ruby
bitri_ has joined #ruby
rimantas has quit [Quit: rimantas]
bronson has joined #ruby
Abhijit has quit [Ping timeout: 256 seconds]
javiercito has quit [Remote host closed the connection]
Flcn__ has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
razieliyo has joined #ruby
razieliyo has quit [Changing host]
razieliyo has joined #ruby
yxhuvud has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
hemanth has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
Xiti has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
<wald0>
"the c programming language" is a really good book, but there's a ton of bad ones, can anybody suggest me the ones that found to be the best ones to learn better C ?
javiercito has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<apeiros_>
wald0: um, ##C?
yeticry has joined #ruby
<Ninjex>
learn better c?
<Ninjex>
all c is the same c
<wald0>
woops, i thought that i was in ##c :) sorry
n80 has joined #ruby
<apeiros_>
wald0: note, their topic links to books
Hanmac has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
<nateberkopec>
Ugh, anyone else having issues w/rubygems right now?
kiyote23 has quit [Remote host closed the connection]
hashpuppy has joined #ruby
Abhijit has joined #ruby
<nateberkopec>
Must be an issue with my Gemfile.
josephndenton has joined #ruby
dkb20k has quit [Remote host closed the connection]
n80 has quit [Quit: n80]
sambao21 has joined #ruby
Abhijit has quit [Client Quit]
gccostabr has quit [Ping timeout: 256 seconds]
ta has joined #ruby
Hanmac has joined #ruby
n80 has joined #ruby
crueber has joined #ruby
Flcn__ has quit [Quit: Be back later ...]
dblessing has joined #ruby
Blackhol_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
djdarkbeat has joined #ruby
Channel6 has joined #ruby
hgl has quit [Max SendQ exceeded]
crueber has quit [Quit: Leaving.]
Apocalypse has quit [Ping timeout: 240 seconds]
hgl has joined #ruby
studiotate has joined #ruby
hgl has quit [Max SendQ exceeded]
Photism has joined #ruby
<atmosx>
wald0: that book is more like a reference than anything else, I've tried a couple of times got bored to death every time.
<atmosx>
never actually finished (must be lying somehwere around here...)
hgl has joined #ruby
enebo has joined #ruby
Apocalypse has joined #ruby
crueber has joined #ruby
glcheetham has joined #ruby
gccostabr has joined #ruby
ta has joined #ruby
<glcheetham>
Hi, does anyone know when ruby going to be updated in the trusty repos from 1.9.3, which is now over a year old? I'm slightly concerned because rails 5 will not support ruby versions below 2.2
enebo has quit [Client Quit]
hgl has quit [Max SendQ exceeded]
russt has quit [Quit: russt]
hgl has joined #ruby
<crome>
glcheetham: stop using system ruby
sinkensabe has quit [Remote host closed the connection]
crueber has quit [Client Quit]
Aswebb_ has joined #ruby
<crome>
take a look at rvm or rbenv, it makes life a lot easier
hiyosi has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 245 seconds]
<glcheetham>
crome: I use rvm on my development machine, just so far I haven't really been bothered to look into fitting it into my package maintenance workflow for my servers. I suppose I'll have to start thinking about it soon anyway...
ta has quit [Ping timeout: 256 seconds]
yxhuvud has joined #ruby
ta has joined #ruby
mary5030 has joined #ruby
teddyp1cker has joined #ruby
glcheetham has quit [Quit: Leaving]
last_staff has joined #ruby
ccurtisj has quit [Remote host closed the connection]
dc_ has joined #ruby
ta has quit [Ping timeout: 240 seconds]
ajacmac has joined #ruby
DrCode has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
DrCode has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
troulouliou_dev has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Kricir has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ccurtisj has joined #ruby
oetjenj has joined #ruby
poetazus has joined #ruby
DadoCe has joined #ruby
ta has joined #ruby
poetazus has quit [Read error: Connection reset by peer]
byprdct has joined #ruby
poetazus has joined #ruby
yfeldblum has joined #ruby
LouisRoR has joined #ruby
dc_ has joined #ruby
jrhe has joined #ruby
<jrhe>
Hi guys, stylistic question here. When would one raise an error vs returning a boolean value? I’m writing a web scraping gem which logs in first. I have a log in method to do this and I’m not sure what a sensible way of indicating login failure is. Logging in doesn’t really return anything useful immediately so its not like theres a user object to return on success.
<shevy>
can there be problems with Thread.new { sleep 5; puts 'hi' } ?
ta has quit [Ping timeout: 265 seconds]
DadoCe has quit [Ping timeout: 265 seconds]
<jrhe>
have a feeling Avdi Grimm has probably covered this in one of his books but I can’t seem to find it at the moment.
yfeldblum has quit [Ping timeout: 244 seconds]
<shevy>
I seem to have some thread that does not sleep for 5 seconds but instead for 5 + x seconds... where x seems to be any random number...
gccostabr has quit [Ping timeout: 240 seconds]
<bradland>
jrhe: i like to raise exceptions for things i don’t expect, and return values for things that i do expect.
<jrhe>
bradland: hmm. ok. Thinking about it its more a case of what level I should throw the exception. If the scraper can’t log in its pretty much done so i will have to throw one futher up the call stack anyway
thumpba has joined #ruby
stunder has joined #ruby
<shevy>
jrhe the simplest approach would be to assume that everything fails by default
davedev24_ has joined #ruby
freerobby has joined #ruby
<bradland>
typically what you’d have is a CLI lib that handles user interaction. this is the layer where you’d handle exeptions from the web scraping gem, and offer the ability to retry.
speaking1ode is now known as speakingcode-wor
<bradland>
so, your web scraper might raise an exception, but the CLI lib would handle it and offer a retry.
dc_ has quit [Remote host closed the connection]
gccostabr has joined #ruby
Inoperable has joined #ruby
<bradland>
from a net library (libraries that connect to other services over a network) perspective, most i’ve used raise an exception when the credentials are bad.
<bradland>
any interaction from a UI perspective uses a begin/rescue block to capture and retry.
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
thumpba has quit [Remote host closed the connection]
<jrhe>
bradland: Cheers :). All clear now
<bradland>
you bet
renderful has joined #ruby
rdark has quit [Quit: leaving]
s00pcan__ has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 244 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
s00pcan_ has joined #ruby
triple_b has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
<shevy>
does one of you guys know how long pasties will stand up?
dkb20k has joined #ruby
<shevy>
e. g. I might need a pastie to be around for, let's say +3 years into the future. afterwards it is ok if it is eliminated
javiercito has quit [Remote host closed the connection]
<basichash>
godd2: as in you can only have one instance of a class?
ohaibbq has joined #ruby
<godd2>
basichash no no, you can have more than one instance of a regular old class
slawrence00 has joined #ruby
<basichash>
ah ok
<vvivv>
ruby is funny
Cat_1 has quit [Ping timeout: 272 seconds]
rshetty has quit [Ping timeout: 256 seconds]
<waxjar>
you can add custom behaviour to for example one String instance, without affecting other/future instances
<godd2>
basichash one thing to note is that to find true differences between the languages, you have to dig down deep. for most things, they're very very similar.
diegoviola has quit [Quit: WeeChat 1.0.1]
poetazus has joined #ruby
<basichash>
so it doesn't matter which i use?
Inoperable has quit [Quit: Rectified]
<godd2>
basichash not in the grand scheme I suppose. I do recommend that once you've gotten good at one, that you learn some of the other
Heskie has joined #ruby
<basichash>
godd2: how does one get good?
<godd2>
same with any craft I would think. lots of practice and hard work
<basichash>
godd2: damn
<havenwood>
basichash: Ruby is lovely. Read a bunch of Ruby code. Write a bunch of Ruby code.
<godd2>
well if it was easy, everyone could do it :)
<waxjar>
it also depends on what you want to do. if you want to crunch numbers for example, go with python. they have much better tools than ruby to do that
ta has joined #ruby
<basichash>
yeah i used to use python a lot, then started learning ruby because of rails
<godd2>
basichash I like ruby because the readability is very consistent
razieliyo has quit [Ping timeout: 272 seconds]
<basichash>
are there any relatively simple libraries/projects i could study?
Heskie has quit [Read error: Connection reset by peer]
Heskie has joined #ruby
teddyp1cker has joined #ruby
bronson has quit [Remote host closed the connection]
msmith_ has joined #ruby
_beechnut has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
<atmosx>
havenwood: shouldn't autotest look at $PROJECT_ROOT/test directory for .rb files?
mattwildig has quit []
_beechnut has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<havenwood>
godd2: You'd need to enable tailcall_optimization with your version or you'll get `SystemStackError: stack level too deep` with larger numbers ;)
<havenwood>
atmosx: hmm
<atmosx>
havenwood: doesn't find the my simple_test.rb file in test/ oh wait
<atmosx>
might be tests
<atmosx>
nah
NivenHuH has joined #ruby
<godd2>
havenwood yea I know, but its fun to see irb crash :P
studiotate_ has joined #ruby
yfeldblum has joined #ruby
<atmosx>
It assumes
<atmosx>
the code is in lib, and tests are in test/test_*.rb.
<godd2>
havenwood: also, dont forget to turn off trace_instruction though...
<atmosx>
awesome works
<atmosx>
hmm can I add colors to minitest like rspec?!
basex has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
<havenwood>
atmosx: very simple colors with: require 'minitest/pride'
kamilc__ has quit [Ping timeout: 240 seconds]
<atmosx>
pride? haha
tlarevo has joined #ruby
<havenwood>
well, rainbow colored dots :P
<atmosx>
havenwood: that requirement goes to .autotest or something like .minitest ?
AlexRussia has quit [Changing host]
AlexRussia has joined #ruby
apurcell has joined #ruby
ta has quit [Ping timeout: 244 seconds]
asteros has joined #ruby
<atmosx>
hm or to the test maybe
<havenwood>
atmosx: i don't think i follow, but ships with minitest
<atmosx>
okay, I'm testing the testing framework lol
shuber_ has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Client Quit]
tus has quit [Ping timeout: 240 seconds]
paulfm has quit [Quit: Zzzzz...]
elaptics is now known as elaptics`away
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axilla has quit [Ping timeout: 256 seconds]
oetjenj_ has joined #ruby
oetjenj has quit [Read error: Connection reset by peer]
<synire>
finished codeacademy's ruby lessons, anyone have a suggestion on a project or something to try getting my hands dirty on to get more experience with the language?
giuseppesolinas has joined #ruby
livingstn has joined #ruby
thumpba__ has quit [Ping timeout: 255 seconds]
thumpba has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
<shevy>
you must decide on something that you desire to code
s00pcan has quit [Remote host closed the connection]
davedev2_ has joined #ruby
<shevy>
then make it a gem
<pipework>
shevy: What if he desires to make money?
<shevy>
then publish it
<shevy>
then he must write rails apps
duncannz has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
<shevy>
but he has not written that he is in for the big bucks
LouisRoR has joined #ruby
wallerdev has quit [Quit: wallerdev]
davedev2_ has joined #ruby
senayar has quit [Remote host closed the connection]
<synire>
is rails something *easy* to dive right into?
<pipework>
shevy: Maybe little bucks?
<pipework>
synire: It's easy to use.
michaeldeol has joined #ruby
<shevy>
dunno, I did not go the rails route. I always found that there is a lot to read though
<shevy>
ziyadb you need to change to a way that allows you to eliminate redundancy in such code constructs
Morkel has quit [Quit: Morkel]
<basichash>
how do I make big $$$ with rails?
<pipework>
They have guides to get you started.
<shevy>
ziyadb basically what you do is query a hash
Menorah has joined #ruby
<pipework>
basichash: rails new, mostly
<ziyadb>
shevy: listening..
<synire>
I'm stuck where I have tons of pdf's to read and resouce websites to browse through, but I'm better at learning via hands on then anything else.
horsecowdog has quit [Remote host closed the connection]
<basichash>
pipework: not sure that's an answer to my question
<pipework>
basichash: I'm not sure that your question deserves an answer.
ta has quit [Ping timeout: 265 seconds]
r0bby_ has joined #ruby
<bricker>
lol
robbyoconnor has quit [Ping timeout: 256 seconds]
<bricker>
basichash: 1. Learn Rails. 2. Rob a bank. 3. $$$
<basichash>
i thought there's no such thing as a stupid question?
<bricker>
basichash: whoever told you that was lying.
<basichash>
i'm just a simple man trying to provide for his family, and this is how people respond? with ridicule and scorn?
<pipework>
Some questions just don't deserve answers, regardless of stupidity.
<havenwood>
basichash: what's your question?
<shevy>
ziyadb well first identify the duplications
<shevy>
@happens = 'by date and length'
<pipework>
<basichash> how do I make big $$$ with rails?
<synire>
pipework: rails it is, thanks.
<havenwood>
basichash: in #rubyonrails
<pipework>
synire: Good luck, and god save your soul.
mattwildig has joined #ruby
<basichash>
how do I make big $$$ with ruby*?
<shevy>
ziyadb line 8 and line 12 is a duplication
thumpba has quit [Ping timeout: 240 seconds]
<bricker>
Okay that made me laugh out loud
<shevy>
nope sorry
<havenwood>
basichash: Drones. No go forth an prosper.
<shevy>
ziyadb I meant 12 and like 28, that code is a true mess
thumpba has joined #ruby
<pipework>
Put the words 'ruby' and 'rails' somewhere on your resume. Done.
<synire>
if rails ties into android apps, then I see the $$$ in it
<pipework>
'ties into'?
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework>
Rails is best at HTTP request handling. It doesn't really care if you're making requests from an android app or a browser, or anything really. It's good at making HTML and JSON responses though.
<synire>
I'm reading the wikipedia on it now, neven knew what it was till now.
elaptics`away is now known as elaptics
postmodern has joined #ruby
tkuchiki has joined #ruby
<shevy>
ziyadb for instance, as a first step I would move towards something like this http://pastie.org/9805769 - afterwards, try to see which calls are not necessary or could be bundled together, you seem to call complicated APIs where you have several arguments duplicated
asteros has quit [Quit: asteros]
<shevy>
you could chain if conditions through "and" or "&&" or "! condition"
yxhuvud has joined #ruby
towski_ has joined #ruby
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby
adamski2600 has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
tus has joined #ruby
pidgeon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ziyadb>
shevy: that would make it so much cleaner
<shevy>
yeah well
allen has quit [Quit: Lost terminal]
bronson has joined #ruby
<shevy>
the idea is that you try to distill the required logic to the absolute minimum
<shevy>
for instance:
<shevy>
if condition
<shevy>
@foo = 'hello world'
<shevy>
else
pwnz0r has quit [Ping timeout: 245 seconds]
<shevy>
@foo = 'bye world'
<shevy>
end
<shevy>
ok two ways to make it shorter - ternary, or this:
<shevy>
@foo = 'bye world'
<shevy>
@foo = 'hell world' if condition
<shevy>
erm
<shevy>
that was supposed to be 'hello world', not hell world...
<shevy>
if you use methods though, you can try to build up succint "sentences"
<shevy>
if this do that else do something_else
poetazus has quit [Remote host closed the connection]
blackmesa has joined #ruby
livingstn has quit [Read error: Connection reset by peer]
renderful has joined #ruby
paulfm has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
decoponio has quit [Quit: Leaving...]
yfeldblum has joined #ruby
Crazy_Atheist has joined #ruby
thumpba has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
javiercito has quit [Remote host closed the connection]
thumpba has joined #ruby
dkb20k has joined #ruby
freerobby has joined #ruby
dc_ has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
Kricir has joined #ruby
thumpba_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<shevy>
I'd wish I'd have a trivial way to apply even advanced manipulation of video and audio data on the commandline through pipes
<shevy>
best I can do right now is format conversions and rejoining audio parts mostly ... through ffmpeg
<pipework>
Probably doable.
AlSquire has quit [Quit: This computer has gone to sleep]
axilla has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
GaryOak_ has joined #ruby
mattwildig has quit []
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
nik_-_ has quit [Quit: nik_-_]
ChoiKyuSang has joined #ruby
Kricir has quit [Remote host closed the connection]
iamninja has quit [Remote host closed the connection]
AlSquire has joined #ruby
evanjs has quit [Remote host closed the connection]
iamninja has joined #ruby
thumpba has joined #ruby
mrmargolis has quit [Remote host closed the connection]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
_beechnut has quit [Ping timeout: 272 seconds]
thumpba_ has joined #ruby
rpag has quit [Ping timeout: 264 seconds]
axilla has quit [Ping timeout: 265 seconds]
tlarevo has quit [Ping timeout: 264 seconds]
kenichi has joined #ruby
Stalkr_ has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
mattwildig has joined #ruby
atmosx_ has joined #ruby
atmosx_ has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
atmosx has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
ardian has quit [Ping timeout: 244 seconds]
parduse has joined #ruby
diegoviola has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 258 seconds]
<Fire-Dragon-DoL>
is anyone aware of a bug where a file named "symbol.rb" won't be required? I have a weird bug where require 'extensions/symbol.rb' returns false (so the file exist) but it's not actually loaded
olivier_bK has joined #ruby
maestrojed has joined #ruby
dc_ has joined #ruby
<pipework>
Fire-Dragon-DoL: try gisting your code
kirun has quit [Read error: Connection reset by peer]
cmarques has quit [Remote host closed the connection]
nelsonr has joined #ruby
tlarevo_ has joined #ruby
tlarevo has quit [Ping timeout: 256 seconds]
<bradland>
Fire-Dragon-DoL: verify that the path to extensions/ is on your load path as well.
<shevy>
Fire-Dragon-DoL can not be based on the filename alone, a file called symbol.rb must work nicely. but perhaps you have multiple symbol.rb files?
<Fire-Dragon-DoL>
pipework: not a lot to gist, anyway: https://gist.github.com/Fire-Dragon-DoL/a44f5cf5976b7803366a notice that manually typing (with pry): require "/home/francesco/projects/web/federtrek/lib/extensions/symbol" works, so maybe a load_path issue, problem is that the second entry is "lib" (which is where it should be) and first is spec, which doesn't have extensions directory at all
<shevy>
and btw
<shevy>
when require returns false
<shevy>
that emans the file was already loaded right?
<shevy>
*means
infoget has quit [Ping timeout: 244 seconds]
<shevy>
so I don't understand your situation. surely there must have been something else that loaded that file before, otherwise it can not logically return false
<Fire-Dragon-DoL>
shevy: no, I have one symbol file in the entire project... argh
<pipework>
shevy: Yeah.
<pipework>
When require returns false, it's already been loaded.
<Fire-Dragon-DoL>
yes I think the same shevy
<pipework>
Fire-Dragon-DoL: What's with the undercores?
<Fire-Dragon-DoL>
pipework: I can't use '/' in gist file names
<pipework>
extensions_symbol.rb, is that just for the gist?
<shevy>
hehehe
<pipework>
Is the location the ext directories are in actually in $: or $LOAD_PATH
<Fire-Dragon-DoL>
yes it's the second one
<Fire-Dragon-DoL>
are there any way to check which file was loaded with require?
infoget has joined #ruby
<pipework>
Fire-Dragon-DoL: Also, using to_sym on string when calling rolify (which is a crappy name) is probably a bad idea.
<pipework>
You can access all required files in ruby.
<pipework>
$LOADED_FEATURES
<eka>
hi, using thor, when invoking other command the options are being passed command thus giving error... how to avoid that?
<Fire-Dragon-DoL>
pipework: any NICE solution aside require Rails.root.join('lib','extensions','symbol') ?
javiercito has joined #ruby
coderhs has joined #ruby
<bradland>
Fire-Dragon-DoL: namespacing
<bradland>
‘extensions/symbol’ is very broad
phutchins has quit [Ping timeout: 240 seconds]
<Fire-Dragon-DoL>
bradland: mh probably I'll go for that
<bradland>
require ’yourlib/extensions/symbol’
<bradland>
:)
koderok has joined #ruby
<bradland>
eka: not sure i understand your question
tkuchiki has quit [Ping timeout: 244 seconds]
coderhs has quit [Client Quit]
<bradland>
what do you mean by “other command”?
Kricir has joined #ruby
<eka>
bradland: solved, but to rephrase ... I have a thor command A that invokes command B, but A takes options but B don't ... so all the A options are passed to the B invocation giving error
<bradland>
ah
<eka>
bradland: solved with invoke :B, [], {}
<eka>
but dunno if it's the way :D
<bradland>
yeah, you’ll want to pass an explicit set of empty options
Kricir has quit [Remote host closed the connection]
<bradland>
that’s how i’d do it anyway
koderok has quit [Client Quit]
yfeldblum has quit [Ping timeout: 244 seconds]
klmlfl has quit [Remote host closed the connection]
rshetty has joined #ruby
Pupeno_ has joined #ruby
hephaestus_rg has joined #ruby
havenwood has quit []
Pupeno has quit [Ping timeout: 272 seconds]
kiyote23 has joined #ruby
thumpba_ has quit [Remote host closed the connection]
thumpba has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
DadoCe has quit [Remote host closed the connection]
shellfu is now known as shellfu_afk
pietr0 has quit [Quit: pietr0]
boadie_ has quit [Remote host closed the connection]
dkb20k has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
Blackhol_ has quit [Remote host closed the connection]
icebourg has quit []
nateberkopec has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
dkb20k has quit [Ping timeout: 265 seconds]
razieliyo has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]