apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
ntesir has joined #ruby
lw has quit [Max SendQ exceeded]
rm_ has joined #ruby
zigomir has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
s2013 has joined #ruby
banister has joined #ruby
atraylen has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
zigomir has quit [Read error: Connection reset by peer]
<wwalker> https://gist.github.com/wwalker/81f710bb8d469eacc904 - anyone know how I can call this?
zigomir has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
zigomir_ has joined #ruby
zigomir__ has joined #ruby
Xiti has joined #ruby
sambao21 has joined #ruby
zigomir__ has quit [Read error: Connection reset by peer]
zigomir__ has joined #ruby
zigomi___ has joined #ruby
zigomir__ has quit [Read error: Connection reset by peer]
zigomir__ has joined #ruby
Jamo is now known as Jamo
zigom____ has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
zigom____ has quit [Read error: Connection reset by peer]
zigomir_ has quit [Ping timeout: 276 seconds]
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 255 seconds]
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
ddv has joined #ruby
mjs2600 has quit [Remote host closed the connection]
zigomi___ has quit [Ping timeout: 276 seconds]
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
zigomir__ has quit [Ping timeout: 276 seconds]
JumpMast3r has quit [Ping timeout: 252 seconds]
zigomir has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir_ has joined #ruby
VinDH has joined #ruby
nfk has quit [Quit: yawn]
dik_dak has quit [Quit: Leaving]
zigomir_ has quit [Read error: Connection reset by peer]
fatur has joined #ruby
zigomir has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 252 seconds]
marr has quit []
zigomir has joined #ruby
zigomir_ has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
zigomir__ has joined #ruby
zigomi___ has joined #ruby
zigomi___ has quit [Read error: Connection reset by peer]
zigomir__ has quit [Read error: Connection reset by peer]
zigomir has quit [Ping timeout: 276 seconds]
lmickh has joined #ruby
<shevy> wwalker you probably need to construct this with a special constructer
zigomir_ has quit [Ping timeout: 276 seconds]
s2013 has joined #ruby
toastynerd has quit [Remote host closed the connection]
marcdel_ has quit []
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Steve21 has joined #ruby
Lucky_ has joined #ruby
sdwrage has quit [Quit: Leaving]
combusean has quit [Ping timeout: 258 seconds]
Lucky_ has quit [Client Quit]
centrx has quit [Quit: All this computer hacking is making me thirsty]
subbyyy_ has joined #ruby
Senjai has quit [Quit: WeeChat 0.3.7]
michael_lee has joined #ruby
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
Senjai`work is now known as Senjai
iamcalledrob has joined #ruby
ce_afk is now known as cescalante
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
ner0x has quit [Quit: Leaving]
combusean has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gdifo has joined #ruby
gondalier has joined #ruby
SegFaultAX has quit [Excess Flood]
Lucky_ has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
SegFaultAX has joined #ruby
marcdel has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
lmickh has quit [Remote host closed the connection]
jamto11 has joined #ruby
toordog_ has joined #ruby
marcdel_ has joined #ruby
pen has quit [Ping timeout: 258 seconds]
marcdel has quit [Ping timeout: 240 seconds]
toordog has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 240 seconds]
blackratdog has quit [Quit: Leaving]
xcesariox has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
funktor has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 264 seconds]
matchaw has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
xcesariox has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
alpha123 has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
mikepack has joined #ruby
<mordof> initializer in a class is basically the same as doing def myconstructor; end; myconstructor inside the class right? (in respect to how it's called and stuff)
pen has joined #ruby
benzrf is now known as benzrf|offline
<mordof> i saw some examples where it had method calls inside the class (not in a method itself).. so it made me think about that
chipotle_ has quit [Quit: cya]
ntesir has quit [Quit: off]
havenwood has quit [Ping timeout: 272 seconds]
Shidash has quit [Ping timeout: 240 seconds]
skinny_much has joined #ruby
yfeldblu_ has joined #ruby
benzrf|offline is now known as benzrf
Shidash has joined #ruby
subbyyy_ has quit [Ping timeout: 258 seconds]
mikepack has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
lyanchih_ has joined #ruby
RaptorJesus_ has joined #ruby
cjsarette has quit [Max SendQ exceeded]
robustus has quit [Ping timeout: 264 seconds]
RaptorJesus has quit [Ping timeout: 272 seconds]
robustus has joined #ruby
soulisson has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
phoo1234567 has quit [Quit: Leaving]
chipotle has quit [Client Quit]
fenicks has quit [Ping timeout: 240 seconds]
pen has quit [Remote host closed the connection]
Steve21 has quit [Quit: Steve21]
pen has joined #ruby
JumpMast3r has joined #ruby
subbyyy_ has joined #ruby
Steve21 has joined #ruby
JumpMast3r has quit [Client Quit]
Steve21 has quit [Client Quit]
pen has quit [Ping timeout: 276 seconds]
<mordof> tried to use require 'myfile.rb' to bring in the class i made in myfile.rb, and i get the error 'require: cannot load such file -- myfile.rb (LoadError)
<mordof> but load 'myfile.rb' works...
<mordof> (they're in the same folder, the caller file and myfile.rb)
<mordof> anyone know why that is?
<mordof> oh nevermind - goes through $LOAD_PATH .. so it doesn't look in the directory where the current file is unless that directory is added there
tacos1de has quit [Remote host closed the connection]
cjsarette has joined #ruby
tacos1de has joined #ruby
<mordof> still - would've thought it'd look at the same location where the calling file is
gondalier has quit [Quit: gondalier]
<mordof> well would you look at that... lol
<arrubin> mordof: There are security reasons for not doing so.
<mordof> arrubin: thanks
<mordof> oh?
<mordof> arrubin: i'm pretty new to ruby.. i made a class, and i wanted to include it in another file. what's the proper way to do this if just loading in relative files comes with some security concerns?
yfeldblu_ has quit [Remote host closed the connection]
<arrubin> mordof: For development it barely matters.
yfeldblum has joined #ruby
<arrubin> But imagine if require always looked in the current directory.
<arrubin> Even things like set or date could be loaded from the current directory by accident.
iamcalledrob_ has joined #ruby
<mordof> i should mention - i'm a PHP developer.. that's pretty much how everything works in PHP, lol
<mordof> well, coming from that background
<mordof> so "imagine if require always looked there" <-- is "normal" for what i know
<mordof> hmm
iamcalledrob has quit [Ping timeout: 264 seconds]
<mordof> arrubin: any chance you have a link, or could spell it out for me a bit more?
chrisramon has joined #ruby
<arrubin> mordof: Your program might include "require 'date"", which is a standard library.
<arrubin> But you might not be paying attention and there might be a date.rb in your current directory.
silkfox has joined #ruby
Zenigor has joined #ruby
<mordof> arrubin: how is that a security concern though? the only thing that comes to mind is "what if someone stuck a standard library name in the relative directory?" <-- well they could do the same with other locations that it already does check for those libs, overwriting it.. couldn't they?
<mordof> sure, it'd suck if the developer did that
eka has joined #ruby
<mordof> i can see why it's *helpful* to have the distinction between the two with that example though
<mordof> but not sure where security concerns come from
<arrubin> mordof: It is actually such a common problem in the UNIX world that . is not generally included in root's path either.
toastynerd has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
<arrubin> Security problems are often caused by multiple vulnerabilities.
<arrubin> Perhaps one vulnerability allows me to write a file to some directory on your machine.
<arrubin> And then your use a language or tool which commonly looks in . for files to execute, as require once did.
<arrubin> s/your/you/
<mordof> that is using the logic that the ruby require paths are generally a bit harder to get write access to for overwriting?
* mordof is on windows, and didn't immediately think of that distinction
<arrubin> And as I mentioned, and mentioned in that discussion: http://www.faqs.org/faqs/unix-faq/faq/part2/section-13.html
ktun has joined #ruby
VinDH has left #ruby [#ruby]
<mordof> arrubin: thanks. i'll go over those to understand more about it
sinkensabe has joined #ruby
<shevy> mordof just use require() all the time and you are fine
<mordof> shevy: but i want to require a file that's in the same directory - why would using require over require_relative() make sense in that case?
yfeldblu_ has joined #ruby
<arrubin> require_relative is much safer.
<shevy> mordof because it is shorter to type for one
<arrubin> That is a terrible reason.
<shevy> mordof and because it works perfectly well
<shevy> arrubin what reason would anyone have for require_relative?
<mordof> arrubin: indeed - i think in the stackover it mentioned that require_relative ignores the current working directory, and actually navigates to that files' folder to look for the "relative" file
<mordof> shevy: he just explained, in length, and gave links, for that reason
<arrubin> shevy: require_relative performs a require relative to the path of the program being executed instead of the current directory.
<shevy> mordof and?
<mordof> shevy: and it's reasonable and makes sense
<mordof> so do it
<mordof> :p
<shevy> arrubin completely unnecessary for anything installed in ruby's sitedir
<shevy> mordof I don't do so in 10 years of ruby and everything works perfectly fine still. strange isn't it :P
<arrubin> shevy: He has mentioned several times now that he wants to require a file in the same directory as his program.
SegFaultAX has quit [Excess Flood]
kaspergrubbe has quit [Remote host closed the connection]
<shevy> ok let's see what kind of workarounds we have here
<shevy> require 'yo.rb'
<shevy> LoadError: cannot load such file -- yo.rb
<arrubin> That does not work.
<shevy> require './yo.rb'
<shevy> # => true
<shevy> huh
<arrubin> And that is unsafe.
<shevy> ohhhh
sinkensabe has quit [Ping timeout: 240 seconds]
<shevy> what does unsafe mean
<arrubin> And negates the entire purpose of removing . from LOAD_PATH.
<shevy> can it destroy his computer?
yfeldblum has quit [Ping timeout: 252 seconds]
<arrubin> Yes.
SegFaultAX has joined #ruby
<shevy> damn mordof you must be careful
<mordof> shevy: you've got a running application that sometimes pulls in other files relative to itself. maybe later on in execution. an attacker changes the working directory, and puts in their own file to open up your running application to vulnerabilities
toastynerd has quit [Remote host closed the connection]
<mordof> shevy: result - your program requires a file it didn't expect - but it's similar enough that it doesn't error out... but opens up holes for an attacker to get even *more* information
<shevy> eh?
<arrubin> Just remember that the current directory is the devil.
<mordof> arrubin: anyway - understood. thanks for the help
cjsarette has quit [Max SendQ exceeded]
<shevy> mordof can you give me a specific example of such an attack, say the gem is called 'foo', it uses only one require(). how can this be used as attack?
combusean has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
<mordof> shevy: gems generally aren't called with './foo' are they?
<mordof> shevy: you're mixing up use cases
<shevy> nope, there is absolutely no need for this
<shevy> mordof what do you mean, what use case am I mixing up? I asked one specific question
hgl has joined #ruby
<mordof> shevy: i'm loading in a file from the same directory as my other running file. i'm not loading in a gem, or something inside a ruby path already established
pen has joined #ruby
pen has quit [Remote host closed the connection]
<mordof> shevy: if someone changes where '.' points to - then they can cause my code to run anything they want alongside it
<shevy> ok so your problem description does not include a gem?
<mordof> shevy: not at all
pen has joined #ruby
<shevy> I dont have to use any '.' in any gem
<mordof> shevy: i'm not talking about gems *at all*
* mordof sighs
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ok good
<shevy> so we can happily continue using require() in gems
<mordof> there's nothing wrong with require() itself - just don't feed it a './<file>' path
<shevy> why not
* mordof facepalms
<shevy> I still dont get that
<mordof> shevy: go back and read the links provided
<shevy> I wrote the file?
<mordof> shevy: not necessarily
<shevy> how not so
<mordof> if the current directory gets changed unknowingly, it can require in files you didn't expect / didn't write
cjsarette has joined #ruby
<mordof> it's a vulernability
<shevy> how can that happen
aspires has joined #ruby
<mordof> i'm not a unix user.. i don't know how to cause that to happen
toastynerd has joined #ruby
<mordof> there's going to be ways to do it though
<shevy> hmmm
<mordof> cd being one of them
gondalier has joined #ruby
<arrubin> Executing your program from a directory other than the one that it is in.
binaryhat has joined #ruby
<arrubin> Even ignoring the security issues, require_relative is better for that case.
musashi1 has joined #ruby
<arrubin> If you execute your program using ruby ~/projects/foo/foo.rb and you have a require './bar', it is not going to work.
Hanmac has quit [Ping timeout: 276 seconds]
<musashi1> benzrf: u there?
<arrubin> Unless you happen to have bar.rb in your current directory, which might be anything.
<benzrf> Musashi1: sup m8
weeb1e has joined #ruby
<arrubin> mordof: And it is not really a UNIX-specific problem, but UNIX users actually care about security.
michael_lee has quit [Ping timeout: 276 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<arrubin> There is nothing preventing the same problem in Windows other than the fact that the command prompt is terrible so people avoid it.
<mordof> arrubin: oh for sure.. the reason why i labelled it more so is because there's no difference in security on a windows machine between program files or where the file might be running from, lol
combusean has joined #ruby
<mordof> arrubin: well.. there is some i suppose, but it's trivial at best. that - and yeah, people generally won't launch a file from a different working directory in windows
<musashi1> benzrf: is the pm working?
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> Musashi1: oops sry
danshultz has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
fgo has joined #ruby
ktun has joined #ruby
musashi1 has quit [Remote host closed the connection]
xiq has quit [Read error: Connection reset by peer]
yfeldblu_ has quit [Remote host closed the connection]
mikey85 has joined #ruby
yfeldblum has joined #ruby
<mikey85> message me if you would like to join my Christian channel
mikey85 has left #ruby [#ruby]
havenwood has joined #ruby
silkfox has quit [Ping timeout: 276 seconds]
<lagweezle> <.<
michael_lee has joined #ruby
iamcalledrob_ has quit [Quit: Lingo - http://www.lingoirc.com]
Hanmac has joined #ruby
papercode has joined #ruby
x1337807x has joined #ruby
aspires has quit []
aspires has joined #ruby
alexju has joined #ruby
radic has quit [Ping timeout: 258 seconds]
radic has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
binaryhat has quit [Quit: Leaving]
kitak has quit [Remote host closed the connection]
troulouliou_dev has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 240 seconds]
irvingprime has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
SCommette has joined #ruby
alpha123 has quit [Ping timeout: 265 seconds]
samies has joined #ruby
<samies> anyone familiar with Sinatra?
SJr has quit [Read error: Connection reset by peer]
SCommette has quit [Client Quit]
chrisramon has quit [Quit: chrisramon]
hgl has quit [Quit: Quit]
diegoviola has joined #ruby
SJr has joined #ruby
<arrubin> I have heard of it.
hgl has joined #ruby
<havenwood> samies: It's pretty popular. #sinatra
<shevy> yeah he is there but failed to notify #ruby ;<
<benzrf> samies: it sounds distinctly familiar
<RubyPanther> people actually use that ____?!
<havenwood> samies: Are you familiar with Rails, Ramaze, Camping, Cuba, Scorched, Lotus and Hobbit?
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
Karpuragauram has joined #ruby
ktun has joined #ruby
<samies> only if you're discussing trains, egyptian corn, getting easy kills in a FPS, illegal tobacco, fancy cars, and short people :)
<havenwood> samies: Yup, that's what I meant!
<benzrf> samies: i think u missed cuba
KanKava has quit [Ping timeout: 240 seconds]
Slavox is now known as Slavox|AFK
<havenwood> samies: oh, i forgot NYNY
<havenwood> samies: How bout some non-Rack frameworks.. Lattice
Bumptious has joined #ruby
KanKava has joined #ruby
<samies> I'm trying to iterate over an array in a routewithout using a template - I thought I should be able to do something like @foo.each do |a| a end
Hanmac1 has joined #ruby
SegFaultAX has quit [Excess Flood]
<havenwood> samies: map or each?
Karpuragauram has quit [Quit: Ex-Chat]
Hanmac has quit [Ping timeout: 240 seconds]
<samies> havenwood: I've been trying it with each to no luck
<havenwood> samies: i guess i don't quite understand what's going on, any code to Gist?
SegFaultAX has joined #ruby
Shidash1 has joined #ruby
<havenwood> samies: now i really don't understand :P
aspires has quit []
<samies> my goal is to print out the contents of the array one item at a time
jamto11 has joined #ruby
<havenwood> samies: @foo.each do |a|; puts a; end
iamcalledrob has joined #ruby
<samies> havenwood: which works perfectly fine in plain ruby, but isnt happy in my sinatra route
Shidash has quit [Ping timeout: 255 seconds]
<havenwood> samies: @foo.join "\n"
aiguu has quit [Ping timeout: 240 seconds]
<havenwood> samies: sinatra is looking for a string return value, give it the string you want returned
<havenwood> samies: or more often, erb or json
jamto11 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
<samies> havenwood: ah hrm, if I change my array to be strings, then all is well
<samies> (array of strings, that is)
akitada has joined #ruby
<samies> I will fiddle with that for a bit. Thanks for the suggestions
cpruitt has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
gondalier has quit [Quit: gondalier]
braincrash has quit [Quit: bye bye]
musashi1 has joined #ruby
cescalante is now known as ce_afk
yacks has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
braincrash has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
funktor has joined #ruby
iamcalledrob has quit [Read error: Connection reset by peer]
kitak has quit [Ping timeout: 240 seconds]
AlSquire has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
LexicalScope` has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bahar has quit [Ping timeout: 258 seconds]
Shidash1 has quit [Ping timeout: 252 seconds]
upsell5 has quit [Quit: upsell5]
bahar has joined #ruby
iamcalledrob has joined #ruby
meatherly has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
mattstratton has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gondalier has joined #ruby
Jake232 has joined #ruby
irvingprime has quit [Quit: Leaving]
ce_afk is now known as cescalante
iamcalledrob has quit [Ping timeout: 240 seconds]
mweshi has joined #ruby
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
LexicalScope` has quit [Ping timeout: 240 seconds]
LexicalScope has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
larissa has quit [Quit: Leaving]
chipotle has joined #ruby
xcesariox has joined #ruby
iamcalledrob has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Excess Flood]
sinkensabe has quit [Ping timeout: 240 seconds]
SegFaultAX has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
phinfonet has quit []
iamcalledrob has quit [Read error: Connection reset by peer]
cescalante is now known as ce_afk
cpruitt has quit [Quit: cpruitt]
subbyyy has joined #ruby
nari_ has joined #ruby
arrubin has joined #ruby
oo_ has joined #ruby
subbyyy_ has quit [Ping timeout: 276 seconds]
iamcalledrob has joined #ruby
marcdel_ has quit [Ping timeout: 265 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
marcdel has joined #ruby
iamcalledrob has quit [Client Quit]
hgl has quit [Ping timeout: 255 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
aiguu has joined #ruby
combusean has quit [Ping timeout: 276 seconds]
Solnse has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phinfonet has joined #ruby
funktor has quit []
nari_ has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
agarie has quit [Quit: Leaving...]
diegoviola has joined #ruby
benlieb has joined #ruby
phinfonet has quit []
Es0teric has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
RaptorJesus_ has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
x1337807x has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
lxsameer has joined #ruby
combusean has joined #ruby
moritzs has joined #ruby
moritzschaefer has joined #ruby
havenwood has quit []
ktun has joined #ruby
Es0teric has joined #ruby
agent_white has joined #ruby
maroloccio has quit [Ping timeout: 265 seconds]
<agent_white> Good evening all
combusean has quit [Ping timeout: 252 seconds]
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gondalier has quit [Quit: gondalier]
iamcalledrob has joined #ruby
fgo has quit []
gondalier has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
moritzschaefer has quit [Ping timeout: 252 seconds]
moritzs has quit [Ping timeout: 252 seconds]
iamcalledrob has quit [Ping timeout: 251 seconds]
mikepack has joined #ruby
RaptorJesus_ has joined #ruby
jackneill has joined #ruby
ce_afk is now known as cescalante
mikepack has quit [Ping timeout: 276 seconds]
JasmeetQA has joined #ruby
Es0teric has joined #ruby
duncannz has joined #ruby
deepy has quit [Excess Flood]
deepa has joined #ruby
jamto11 has joined #ruby
deepa is now known as Guest95706
lxsameer has quit [Excess Flood]
lxsameer has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
jamto11 has quit [Ping timeout: 265 seconds]
fatur has left #ruby [#ruby]
pu22l3r has joined #ruby
simoz1110 has quit [Ping timeout: 240 seconds]
simoz1111 has joined #ruby
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby
benzrf is now known as benzrf|offline
cescalante is now known as ce_afk
simoz1112 has joined #ruby
simoz1113 has joined #ruby
funktor has joined #ruby
simoz1111 has quit [Ping timeout: 264 seconds]
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby
saarinen has quit [Quit: saarinen]
i8igmac has quit [Quit: Leaving]
simoz1112 has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akitada has quit [Quit: Connection closed for inactivity]
DeadManGonzo has joined #ruby
WishBoy has quit [Remote host closed the connection]
samies has left #ruby [#ruby]
sputnik13 has joined #ruby
ktun has joined #ruby
senayar has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mweshi has quit [Quit: mweshi]
pu22l3r has quit [Remote host closed the connection]
sptx00 has joined #ruby
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
michael_lee has quit [Ping timeout: 265 seconds]
WishBoy has joined #ruby
funktor has quit []
Jnco has left #ruby [#ruby]
<agent_white> #rubyfolk need to go to bed later.
<agent_white> So lonely here :(
iamcalledrob has joined #ruby
subbyyy has quit [Quit: none 0.4.3]
Bira has joined #ruby
meatherly has quit [Remote host closed the connection]
subbyyy has joined #ruby
noop has joined #ruby
subbyyy_ has joined #ruby
dmitrykorotkov has quit [Ping timeout: 276 seconds]
subbyyy has quit [Ping timeout: 264 seconds]
DeadManGonzo has left #ruby [#ruby]
pyrohail has joined #ruby
<wallerdev> im awake
WishBoy has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
combusean has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<agent_white> \o
WishBoy has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
dmitrykorotkov has joined #ruby
pyrohail has quit [Quit: Leaving]
ndrei has joined #ruby
sputnik13 has quit [Client Quit]
agent_white has quit [Read error: Connection reset by peer]
pen has quit [Remote host closed the connection]
pen has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
pen has quit [Ping timeout: 258 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ce_afk is now known as cescalante
Es0teric has quit [Quit: Computer has gone to sleep.]
agent_white has joined #ruby
<agent_white> e
<agent_white> Whoops, mt.
Bira has quit [Remote host closed the connection]
mikepack has joined #ruby
havenwood has joined #ruby
dfedde has joined #ruby
cescalante is now known as ce_afk
bahar has quit [Ping timeout: 240 seconds]
<certainty> moin
amclain has quit [Quit: Leaving]
<duncannz> damn installing rails is hard
bahar has joined #ruby
<havenwood> duncannz: gem install rails?
Bira has joined #ruby
<duncannz> havenwood: well I'm a newbie and following this process http://www.railstutorial.org/book/beginning
<duncannz> it takes a while to get it all setup
<duncannz> at first I did the wholething but then it errored out because I had ruby 1.9 instead of 2.0. so now i started again and just finished
<havenwood> duncannz: working better on 2.0?
<duncannz> havenwood: yeah it's a slow process that's all. errors I have to google and fix on every second command
Hobogrammer_ has joined #ruby
<havenwood> duncannz: This tutorial may overly complicate things.. Might consider just going straight to latest stable, Ruby 2.1.2.
Asher has quit [Ping timeout: 265 seconds]
<duncannz> havenwood: only ruby2.0 is in the debian repos?
<havenwood> duncannz: I thought from the tutorial you'd be using RVM. I just glanced though.
<jimbauds> Does anyone have a good suggestion for a ruby book?
<havenwood> jimbauds: The Ruby Programming Language
<duncannz> havenwood: well I want to follow that tutorial to learn it and it says that using different versions brings in inconsistencies and problems so it should by easier to just use the given versions
<jimbauds> V2.0 +
Bira has quit [Ping timeout: 258 seconds]
<havenwood> jimbauds: There's a second version of Well Grounded Rubyist in beta.
Hobogrammer has quit [Ping timeout: 240 seconds]
<jimbauds> Should I buy this book or found another one on ruby 2.0? Im new to ruby sry!
<havenwood> duncannz: Meh, latest stable Rails and Ruby is a good path. Slightly dated tutorial sounds more painful. :P
frogssgy has joined #ruby
senayar has joined #ruby
<duncannz> havenwood: well I just got `rails server` so I'll stick with this.. for now.
<havenwood> jimbauds: 1.9+ is good. The 2.0 and 2.1 differences aren't too hard to catch up on. Just no 1.8!
<havenwood> duncannz: by the way, #rubyonrails is the rails chan
<jimbauds> havenwood: thank you very much
<havenwood> 1.8 is dead, long live 2.1!
<duncannz> havenwood: thanks
rippa has joined #ruby
SegFaultAX has quit [Excess Flood]
tobago has joined #ruby
rippa has quit [Client Quit]
frosgy has quit [Ping timeout: 240 seconds]
<agent_white> duncannz: You'll want to look into using `rvm` instead of using your distro's repo-edition of Ruby.
SegFaultAX has joined #ruby
LiohAu has joined #ruby
<agent_white> It'll save you some headache in the long run.
<duncannz> agent_white: ok thanks. maybe I should just uninstall everything and start from scratch
dstynchula has joined #ruby
<duncannz> but it's working right now anyway
dstynchula has quit [Remote host closed the connection]
<agent_white> duncannz: Whatever floats your boat! RVM just makes it easier, since many distros (CentOS comes to mind), update Ruby on their own time.
<agent_white> CentOS may still be on 1.9 actually..
<havenwood> some keep nicely up to date and package well though
<duncannz> agent_white: my distro has ruby2.0 package
<agent_white> havenwood: What one do you speak of? :)
<havenwood> agent_white: arch linux, fedora, etc
<agent_white> duncannz: Oh okey! Well do that for now just to get rolling on coding! But make sure to put RVM on your to-do list :)
<havenwood> agent_white: good up-to-date packages :)
<duncannz> agent_white: I will thank you
<duncannz> agent_white: I want to learn the basics first
<agent_white> havenwood: Ah! Yeah I actually am on Arch, but still make sure to RVM it ;D
<duncannz> I'm experienced with php but want to learn rails because, well, php.
<duncannz> rails seems way cleaner
senayar has quit [Ping timeout: 252 seconds]
<havenwood> agent_white: chruby is included in the AUR (hint hint) :P
<agent_white> ^ Welcome to Ruby and Rails! Enjoy your stay. "Matz is nice so we are nice."
<havenwood> agent_white: but i've heard good things re arch packaged Ruby, seems if you didn't need to switch between versions that might be a happy path?
<agent_white> havenwood: I've actually never tinkered with (or really looked into) chruby... just heard RVM and followed the pack!
LiohAu has quit [Ping timeout: 258 seconds]
<havenwood> agent_white: chruby is ~100 lines of bash and RVM is ~20,000 lines of bash, so slightly different scope to the projects :P But chruby does one thing and does it well, switching rubies.
<agent_white> havenwood: Yup! Haha I actually was iffy on RVM since I honestly have no reason to switch Ruby versions for the most part... But I guess I used it just because everyone said to use RVM .
abstrakt has quit [Quit: Leaving]
<agent_white> havenwood: Huh... I'll have to put that on _my_ to-do list :)
<havenwood> agent_white: works nicely with ruby-install, ruby-build or there's even a lesser used MRVM built into RVM that supports installing for chruby.
<havenwood> agent_white: Take a look when you get a chance. Sometimes the simplest thing that can possibly work ends up working really well.
<havenwood> agent_white: RVM2 is worth looking at too, big goals!
<havenwood> and written in Ruby not Bash :O
<agent_white> havenwood: Exactly, I was just about to say... not to #archfanboi, but KISS all the way! ;D
<agent_white> Ooo...
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA has quit [Ping timeout: 255 seconds]
Tentra has joined #ruby
dseitz has joined #ruby
wjimenez5271 has joined #ruby
Hanmac has joined #ruby
WishBoy has quit [Remote host closed the connection]
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
Mattx has joined #ruby
Mattx has quit [Changing host]
toastynerd has quit [Remote host closed the connection]
WishBoy has joined #ruby
WishBoy has quit [Remote host closed the connection]
sputnik13 has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
WishBoy has joined #ruby
sputnik13 has quit [Client Quit]
mikepack_ has joined #ruby
WishBoy has quit [Remote host closed the connection]
Bira has joined #ruby
sputnik13 has joined #ruby
Asher has joined #ruby
mikepack_ has quit [Ping timeout: 276 seconds]
Doppp has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 240 seconds]
Doppp has joined #ruby
Doppp has joined #ruby
Doppp has quit [Changing host]
Doppp has quit [Client Quit]
Doppp has joined #ruby
Doppp has joined #ruby
Doppp has quit [Changing host]
Doppp has quit [Client Quit]
Doppp has joined #ruby
Doppp has joined #ruby
Doppp has quit [Changing host]
Hobogrammer has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sputnik13 has joined #ruby
<jimbauds> Estimated delivery: June 3 2014 for my book The Ruby Programming Language.. :( This is a long time to wait!
scepticulous has joined #ruby
Hobogrammer_ has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Client Quit]
<agent_white> Jeebs... are they delivering it by horseback?
pen has joined #ruby
<jimbauds> no buy amazon!
<jimbauds> by*
<agent_white> jimbauds: Jesus... where do you live?
sputnik13 has joined #ruby
<jimbauds> Near montreal
sputnik13 has quit [Client Quit]
bahar has quit [Ping timeout: 258 seconds]
<jimbauds> I don't know .. they gave me this date .. It says "Usually ships in 9 to 11 days" !
wjimenez5271 has quit [Quit: Leaving.]
Sid05 has joined #ruby
<agent_white> jimbauds: I would shoot them an e-mail telling them that a pre-built house takes a month to ship, not a book... and see what happens :)
bahar has joined #ruby
fantazo has joined #ruby
xcesariox has quit [Ping timeout: 252 seconds]
MindfulMonk has quit [Ping timeout: 240 seconds]
WishBoy has joined #ruby
zillu has joined #ruby
gondalier has quit [Quit: gondalier]
<zillu> hi, does anyone have good books or tutorials on use ruby with selenium?
MindfulMonk has joined #ruby
<jimbauds> haha yeah but I will spend my time writing some code instead! Better to learn than to try to understand the amazon, by horse, delivery system!
jamto11 has joined #ruby
<agent_white> jimbauds: \o/
<wldcordeiro> Is there an updated version of _why's poignant guide out there somewhere? There's code that just doesn't work in it. :(
<havenwood> wldcordeiro: That'd be a good thing to do, but afraid not.
<wldcordeiro> Alright well what about a guide to ruby that's good up to date and not for complete programming newbs?
<havenwood> wldcordeiro: There's a soundtrack... but no updated version. :P
<wldcordeiro> I'm just wanting to get familiar with the language and know a few others. :S
<havenwood> wldcordeiro: Learn to Program by Chris Pine
chipotle has quit [Quit: cya]
<agent_white> wldcordeiro: What code doesn't work in it?
jamto11 has quit [Ping timeout: 276 seconds]
claymore has joined #ruby
<wldcordeiro> From this part of the book. http://mislav.uniqpath.com/poignant-guide/book/chapter-5.html
ce_afk is now known as cescalante
<wldcordeiro> There's no links within the chapter but it's from 5. The Theft of the Lottery Captain
oo_ has quit [Remote host closed the connection]
chrisseaton has quit []
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
<agent_white> eee I still need to finish this guide :) I got to chapter 6 but needed to break for grasping metaprogramming.
<agent_white> wldcordeiro: What about it doesn't work?
Hanmac has quit [Read error: Connection reset by peer]
<wldcordeiro> agent_white: When you try running that class definition it will complain
<wldcordeiro> warning: class variable access from toplevel
<wldcordeiro> NameError: uninitialized class variable @@tickets in Object
anaeem1 has joined #ruby
<agent_white> wldcordeiro: I wonder if "@@" might be a class variable?
frobrob has joined #ruby
<agent_white> ie - Change it from "@@" to "$"
anaeem1 has quit [Remote host closed the connection]
<wldcordeiro> I can program decently in Ruby, but I come from the Python and Javascript world and there's bits of the language I'd like to familiarize myself with so I've been looking for a tutorial that's up to date
<wldcordeiro> and not aimed at complete newbie programmers.
koderok has joined #ruby
<havenwood> wldcordeiro: aha, then Learn to Program isn't a good one :P
anaeem1 has joined #ruby
Hanmac has joined #ruby
<wldcordeiro> I use rails at my job and get along fine, but I want to write more idiomatic ruby.
<agent_white> wldcordeiro: Ahhh. Well _why's guide is more of a artifact; not guaranteed to be up-to-date, but guaranteed a must-read.
<wldcordeiro> Yeah I've found that to be the case lol
<havenwood> wldcordeiro: Some decent resources here: https://www.ruby-lang.org/en/documentation/
<wldcordeiro> His humor was definitely interesting.
<havenwood> wldcordeiro: The Ruby Programming Language is a good one.
<wldcordeiro> Not to offend anyone but I just found Ruby's docs to be lacking after being spoiled by Python's lol
<havenwood> wldcordeiro: Ruby docs are getting better but still a ways to go.
<agent_white> wldcordeiro: I've been intriguied by it... in "memory" championships, people use a similar technique to memorizing large patterns, like in his writing.
anaeem1__ has joined #ruby
sputnik13 has joined #ruby
<wldcordeiro> havenwood: They beat Rails docs at least.
<wldcordeiro> Those are a mess to me.
anaeem1 has quit [Read error: Connection reset by peer]
<agent_white> Basically, making crazy-ass stories about things crazy enough that you cannot forget them! ;)
<wldcordeiro> Yeah it seemed like his book was more an exercise for himself to prove to himself that he understood Ruby lol
<wldcordeiro> I tried reading Zed Shaw's translation of his Learn Python the Hard Way book, but it was obvious he put in the minimal effort to make it work in ruby while still looking very much like python.
<wldcordeiro> Which to me is a disservice to the language.
<wldcordeiro> If I am trying to learn Ruby I want to learn how to write the code like a Rubyist writes it.
<havenwood> wldcordeiro: listening to the soundtrack as you go through it?
<wldcordeiro> havenwood: I didn't know there was one!
cescalante is now known as ce_afk
<wldcordeiro> Did _why write the soundtrack as well?
<havenwood> wldcordeiro: yup
toastynerd has joined #ruby
<wldcordeiro> Ah, I just gave the songs a brief scrubbing through.
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<wldcordeiro> Definitely seems that way.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> chap 2 is a good one :P
<wldcordeiro> Was he known for drug use or mental instability? lol
<havenwood> this book is made of rabbits and lemonade...!
<agent_white> I wish _why was still here. :( I learned about him years after he was gone... seemed like such a cheery fellow.
<wldcordeiro> He would definitely be an interesting guy to chat with.
sputnik13 has joined #ruby
<wldcordeiro> Ruby would do great to have a section like this in the docs. https://docs.python.org/2/tutorial/index.html
benlieb has quit [Quit: benlieb]
<havenwood> check out his language, potion: https://github.com/perl11/potion#readme
<agent_white> I did see it! Never bothered to check it out yet though.
xm has joined #ruby
<agent_white> wldcordeiro: I wouldn't be the best one to ask... but I'm wondering if maybe, since you're already a dev, the best way to learn 'Rubyist' stuff would be instead to find a few people known for their Ruby code, and study it?
relix has joined #ruby
mikepack has quit [Remote host closed the connection]
<wldcordeiro> agent_white: I have been but there's bits of syntax here and there that I haven't gotten a good intro to and while I can get the gist of what the code is doing it'll usually confuse me a bit.
<wldcordeiro> Like it took me a bit to understand the @, @@, # and ::
<havenwood> wldcordeiro: was just reading through lotus' code, seems very nicely done: https://github.com/lotus
oo_ has joined #ruby
<havenwood> wldcordeiro: best way to understand @@ is as a scourge that should be almost always avoided :P
<agent_white> havenwood: Isn't "@@"
<wldcordeiro> havenwood: Well that's good to know.
<agent_white> a synonym for "$"
<agent_white> Global vars?
txdv has quit [Read error: Connection reset by peer]
<havenwood> agent_white: well, in the since you don't want to use either :P, but no equivalent
<wldcordeiro> I just get mixed up by the multiple ways to access things inside a class. In python the . character was used regardless of if it was instance, class or whatever.
<havenwood> wldcordeiro: :: is for namespace, call methods with .
<wldcordeiro> So I don't know which to use sometimes and then I end up trying multiple methods.
<agent_white> havenwood: Huh... I guess I have yet to learn of @@. I'll look into it.
<havenwood> agent_white: look just don't use :P
<wldcordeiro> I was equally confused because I found this document and https://github.com/bbatsov/ruby-style-guide
<havenwood> agent_white: class variables
oo_ has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcesariox has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<havenwood> wldcordeiro: here's Github's Ruby styleguide to contrast: https://github.com/styleguide/ruby
<wldcordeiro> Things like Use :: only to reference constants(this includes classes and modules) and constructors (like Array() or Nokogiri::HTML()). Never use :: for regular method invocation.
<agent_white> havenwood: Hehe understood :) I do find it wierd these few features are forbidden. I would like to hear of them used properly.
rm_ has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
xm has quit [Quit: leaving]
oo_ has joined #ruby
<havenwood> agent_white: proper use is nonuse
rm___ has joined #ruby
<agent_white> havenwood: Aye, that's why I wonder why they aren't just removed? You know?
rm___ is now known as Guest25431
<wldcordeiro> Like one thing that confuses me is why prefer ternary operators over keywords like if/then/else/end
<havenwood> agent_white: backwards compatibility, very seldom opportunity to use
SegFaultAX has quit [Excess Flood]
<havenwood> wldcordeiro: if its a simple one-liner
sputnik13 has joined #ruby
<wldcordeiro> Like it's recommended to avoid 'and' and 'or' over && and ||
SegFaultAX has joined #ruby
<agent_white> havenwood: Yeah I figured as such. Maybe some day it'll be phased out and hand-crafting left to those willing ;D
Doppp has quit [Quit: Leaving...]
<havenwood> wldcordeiro: i think `and` and `or` are fine for flow control, why hand hold on such an easy thing as precedence?
subbyyy_ has quit [Ping timeout: 240 seconds]
<certainty> macsclient Jit.hs
<certainty> -.-
WishBoy- has joined #ruby
Doppp has joined #ruby
chipotle has joined #ruby
WishBoy- has quit [Remote host closed the connection]
<agent_white> certainty: "ERROR DELETING OPERATING SYSTEM."
<agent_white> :D
<havenwood> wldcordeiro: oh well, style guides...
x1337807x has joined #ruby
<wldcordeiro> Which would you recommend? The one I linked to is...monolithic lol
<havenwood> we do agree on a lot though as a community
<havenwood> two-space soft tab!
<wldcordeiro> That github one is pretty nice.
<wldcordeiro> I prefer two-space tabs for everything except python code lol
oo_ has quit [Remote host closed the connection]
<wldcordeiro> Just makes sense for most things.
blackmes1 has joined #ruby
<wldcordeiro> html, css, javascript
sputnik13 has quit [Client Quit]
<wldcordeiro> even c/c++
<wldcordeiro> But I haven't touched that in years.
Guest25431 has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
<agent_white> havenwood: I got yelled at in another channel for my two-space indents :( Not sure why... Ruby code isn't mean to need that much spacing for readability, it should be readable itself!
<agent_white> s/mean/meant
oo_ has quit [Remote host closed the connection]
WishBoy has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
oo_ has joined #ruby
shemerey has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Sid05 has left #ruby [#ruby]
Dude007 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 240 seconds]
dmitrykorotkov has quit [Ping timeout: 276 seconds]
carraroj has joined #ruby
Dude007 has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Loaft has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
alem0lars has joined #ruby
sputnik13 has joined #ruby
oo_ has quit [Remote host closed the connection]
LexicalScope has quit [Ping timeout: 264 seconds]
LexicalScope` has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sinkensabe has joined #ruby
zigomir has joined #ruby
oo_ has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Ping timeout: 264 seconds]
wallerdev has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
marr has joined #ruby
jimbauds has quit [Remote host closed the connection]
<dseitz> Don't get why anyone would be like that; what would they suggest you use? lol
zillu has quit [Quit: Page closed]
bluOxigen has joined #ruby
chipotle has quit [Quit: cya]
jhass|off is now known as jhass
JasmeetQA has joined #ruby
nowledge has joined #ruby
ce_afk is now known as cescalante
subbyyy_ has joined #ruby
<nowledge> Hi, does anyone knows that whether Ruby has been used to code some circuitry simulation tool?
skaflem has joined #ruby
carraroj has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
Guest95706 has quit [Changing host]
Guest95706 has joined #ruby
Guest95706 is now known as deepy
oo_ has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
sski has joined #ruby
WishBoy has joined #ruby
oo_ has joined #ruby
SegFaultAX has joined #ruby
nowledge has quit [Quit: Leaving]
<agent_white> dseitz: I am a new programmer, but I've seen to run into people who are very biased towards certain languages for no reason... unfortunately :(
<agent_white> s/seen/seem
oo_ has quit [Remote host closed the connection]
<dseitz> Oh that will be a constant thing
<dseitz> People will always think that their X is better than your Y, because of some silly reason Z
<dseitz> few coders are pragmatic
subbyyy_ has quit [Ping timeout: 264 seconds]
cescalante is now known as ce_afk
nowledge has joined #ruby
subbyyy_ has joined #ruby
blackmes1 has joined #ruby
<agent_white> dseitz: I think it's not of pragmatism, but optimism! Like, clearly your "X language will be better than Y language in Z application... but what about in application Q?!"
<dseitz> nowledge: CirctuiLab.com has used Ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> I see no reason to hate any language, only to see what each can offer! :)
<dseitz> There are some code samples on their blog; but I do not know any others myself
Dude007 has joined #ruby
scepticulous has left #ruby ["Gone"]
nowledge has quit [Client Quit]
xcesariox has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
nowledge has joined #ruby
<dseitz> Actually I might be wrong about this *shrug*
bahar has quit [Ping timeout: 264 seconds]
Slavox|AFK is now known as Slavox
senayar has joined #ruby
<dseitz> agent_white: Well yes. You will also meet plenty of people that only use X, and everything else is crap :)
bahar has joined #ruby
ktun has joined #ruby
<agent_white> dseitz: Yeah I'm a bit sad about that... :( Least I have yet to find a language that 'sucks' rather than is 'different' ;P
<dseitz> For instance, many professional developers still trudge through C# and ASP.NET MVC for no better reason than
<dseitz> Even though there are significantly better tools out there; "But we are an MS shop!"
<nowledge> dseitz: thanks a lot.
<dseitz> Just an example, not really a direct insult on that specific culture
mikepack has joined #ruby
<agent_white> nowledge: Hahaha. Just chitchat, no problem in liking .NET!
shemerey has joined #ruby
kilk_ has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<agent_white> dseitz: Yeah it was funny... I come from a tier3 network/sysadmin background. I learned ruby to test our dev's website... and the dev I asked for help to write the unit tests would always say "I hate Ruby... etcetcetc". But _always_ when he said "I wonder if..." and wrote some code, it worked!
oo_ has joined #ruby
<agent_white> I was like... dude, you should code some Ruby if it's so natural for you.
<dseitz> That describes a lot of places.
<dseitz> I proposed a solution to an internal knowledge base, using Ember.js and a light node/ruby/python backend
<dseitz> It was declined; statement, "We cannot use technology that has not been proven to be effective in the industry." Which I became upset and said, "So why the hell are we going to use MVC??"
mikepack has quit [Ping timeout: 276 seconds]
fantazo has quit [Quit: Verlassend]
Dude007 has quit [Remote host closed the connection]
<agent_white> dseitz: Hahah fuck... I hope in my career I'll avoid the "We can't use open source, the code isn't reliable if it's free!"
<dseitz> That is how some shops are; they buy into the idea.
nowledge has quit [Quit: Leaving]
<dseitz> Used to be a big Eclipse/Java site; now they do a lot of C#, and naturally, felt that MVC + Knockout.js was somehow superior to anything else, even though it took them 6 months to develop a server that feeds manuals to employees through a portal...
koderok has quit [Ping timeout: 255 seconds]
nowledge has joined #ruby
shashin has joined #ruby
shashin has joined #ruby
<dseitz> And the thing is offline a lot... a lot
<agent_white> Jesus.
Hanmac1 has joined #ruby
LiohAu has joined #ruby
<dseitz> Our primary website is worse. In development for over 2 years; offers users an upgrade in some features over past website and significant regressions in other areas. Some bugs have been in reports for over a year and have not been resolved.
lkba has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
coffeina has joined #ruby
<dseitz> Front-end is so insanely slow and resource demanding that it manages to free some client's computers for 2 minutes or so while it processes a request to retrieve... a list of transactions lol
shemerey has quit [Ping timeout: 252 seconds]
<dseitz> s/free/freeze/
tomaw has joined #ruby
mercerist has joined #ruby
tgkokk has joined #ruby
tgkokk has quit [Client Quit]
thomasxie has joined #ruby
oo_ has quit [Remote host closed the connection]
shemerey has joined #ruby
<agent_white> Good god.
<agent_white> I have some 'exciting' things to look forward to when I land my junior dev job, eh? ;P
simoz1113 has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
nowledge has quit [Quit: This computer has gone to sleep]
<dseitz> Maybe, maybe not.
Dude007 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<dseitz> This is not an entirely negative thing. They are a medium sized company that experienced rapid significant growth and had to reform quickly. So in a way it was a good thing. This was just one poor decision in a mix of good ones.
Hobogrammer has quit [Ping timeout: 255 seconds]
<dseitz> Unfortunately, people don't like their tools sucking; so it also places a significant burden on our support teams, who had to build a staff just because the website sucks :)
<dseitz> I assume the back-end itself is well designed, because the mobile services are stellar and almost flawless
<dseitz> It's just this website
senayar has joined #ruby
jamto11 has joined #ruby
<dseitz> Is it down right now, website rating is 2/5 :S
gjvc has quit [Quit: leaving]
Tentra has quit [Ping timeout: 276 seconds]
<dseitz> While our direct competitor's website has a 4.6/5
relix has joined #ruby
<Hanmac1> shevy: new methods in ruby, there is a Enumerable#slice_before but now also a #slice_after
<Hanmac1> and Float#next_float & Float#prev_float
<dseitz> agent_white: And they are using something based on Yui
bruno- has joined #ruby
LiohAu has quit [Quit: LiohAu]
<agent_white> Hanmac1: Since when?
bruno- has quit [Remote host closed the connection]
chipotle has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
<agent_white> dseitz: Ouch... that's something my past company didn't realize. Lots of it does come down to design first... fuck features if people don't know how to use them easily.
Hanmac has joined #ruby
<agent_white> Or if they dont' use them at all.
bruno- has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
nari_ has joined #ruby
mehlah has quit [Quit: Linkinus - http://linkinus.com]
bahar has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
sinkensabe has joined #ruby
bahar has joined #ruby
magri has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
shashin has quit [Quit: shashin]
RohanRNS has quit [Quit: Connection closed for inactivity]
anaeem1 has joined #ruby
cescalante is now known as ce_afk
timonv has joined #ruby
etqqkoiflwhb has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
shime has joined #ruby
noop has quit [Read error: Connection reset by peer]
anaeem1 has quit [Ping timeout: 240 seconds]
anaeem1 has joined #ruby
carraroj has joined #ruby
banister has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
ascarter has joined #ruby
iamcalledrob has quit [Quit: Computer has gone to sleep.]
iamcalledrob has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
<Hanmac> apeiros: what do you think of this? (newest ruby-trunk code) (2.0).next_float #=> 2.0000000000000004
sinkensabe has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
Martxel has joined #ruby
LadyRainicorn has joined #ruby
iamcalledrob has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
nfk has joined #ruby
jimbauds has joined #ruby
combusean has joined #ruby
nowledge has joined #ruby
spider-mario has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponyo has joined #ruby
coffeina has quit [Quit: Wychodzi]
etqqkoiflwhb has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
kaspergrubbe has joined #ruby
SOLID000 has quit [Ping timeout: 258 seconds]
decoponio has quit [Ping timeout: 258 seconds]
SOLID000 has joined #ruby
wildroman2 has joined #ruby
spider-mario has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
apeiros has quit [Remote host closed the connection]
nowledge has quit [Quit: This computer has gone to sleep]
spider-mario has joined #ruby
shime has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
apeiros has joined #ruby
elementz has joined #ruby
iamcalledrob has joined #ruby
EatMulti has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
benlieb has joined #ruby
AndChat| has joined #ruby
iamcalledrob has quit [Ping timeout: 240 seconds]
Rahul_Roy has joined #ruby
etqqkoiflwhb has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
gener1c has joined #ruby
ce_afk is now known as cescalante
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
kirun has joined #ruby
mikepack has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
parduse has quit []
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
alessandro1997 has joined #ruby
ra4king has joined #ruby
<ra4king> Hello!
mikepack has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
<havenwood> hi!
<ra4king> I'm beginning an ambitious project that will consist of a backend written in another language and that will expose a simple socket connection using a custom protocol for communication and management
benlieb has quit [Quit: benlieb]
<ra4king> to control this backend, I've researched into good tools for developing a robust frontend
<ra4king> I've chose Ruby-on-Rails, so thus begins my journey with Ruby and Rails
shime has joined #ruby
<ra4king> expect many questions! :D
<havenwood> ra4king: for Rails specific stuff there's #rubyonrails too ;)
<ra4king> havenwood: excellent, thank you!
phansch has joined #ruby
<ra4king> first I have to learn Ruby, so I will be mostly here
<ra4king> to fill up my bookmarks bar, links to excellent tutorials for experienced programmers learning Ruby?
<ra4king> my experience lies in Java and C#
<alessandro1997> ra4king, have a look at http://pragprog.com/book/ruby4/programming-ruby-1-9-2-0.
<havenwood> ra4king: super quick intro: http://learnxinyminutes.com/docs/ruby/
<havenwood> ra4king: a couple comparisons with Java:
<havenwood> ra4king: JRuby is a very nice implementation of Ruby as well. #jruby
<havenwood> ra4king: The Ruby Programming Language is a good book.
<ra4king> havenwood: thank you for that link to-ruby-from-java
<ra4king> very useful
shime has quit [Ping timeout: 258 seconds]
Vivekananda has quit [Quit: Ex-Chat]
<havenwood> np
<ra4king> wow, that list on that page is extremely helpful, and helped clarify a few questions I had
<ra4king> thanks
<ra4king> heh I really don't want to buy a book to learn to be honest
zxq9 has quit [Quit: Konversation terminated!]
<havenwood> ra4king: there are some decent free ones online
oo_ has joined #ruby
ktun has joined #ruby
Hanmac has joined #ruby
<alessandro1997> ra4king, that's fine. I just find them easier to read, but there's a lot of good stuff online.
alex88 has joined #ruby
<ra4king> only 'false' and 'nil' are false, 0 is not treated as false, correct?
bahar has quit [Ping timeout: 276 seconds]
<jhass> correct
oo_ has quit [Remote host closed the connection]
bahar has joined #ruby
alessandro1997 has quit [Quit: Going!]
Freddan962 has joined #ruby
Bira_ has joined #ruby
oo_ has joined #ruby
<ra4king> fuuuuck snake_case is default convention?! :(
<ra4king> I dislike snake case
* ra4king camel case ftw!
<jhass> you'll get used to it :P
mercwithamouth has quit [Ping timeout: 252 seconds]
<ra4king> I guess I could use some change in my life
<ra4king> jhass: heh
<Freddan962> I have data in a format (https://gist.github.com/itgsod-fredrik-sander/73d2de2957669277d45e), and would like to split only the numbers into an array. How would I do that? Thanks for help!
<jhass> ra4king: method_names local_variables @instance_variables @@class_variables $global_variables ClassNames ModuleNames CONSTANT_NAMES
andrewlio has joined #ruby
<ra4king> jhass: excellent class and module names are camel case \o/
<ra4king> which makes sense really, underscore in a class/module name is bad style
<duncannz> wow after half an hour with ruby I don't think I could touch php again
<agent_white> duncannz: !!! :DD
<Freddan962> Ruby is a wonderfull language! :D
<ra4king> I'm intentionally avoiding PHP
<agent_white> duncannz: Ruby is like the first time you put your silly putty on newspaper...
<jhass> Freddan962: so you want to ignore the F?
<ra4king> I am never planning on learning it, as all other devs I know stress to avoid it
<ra4king> if I would like to maintain my sanity
<Freddan962> jhass: Exactly, and the spaces as well.
<jhass> Freddan962: I'd go for .scan(/\d+(\.\d+)?/) then
<ra4king> Freddan962: seems like simple regex, learn regex :D
Bira_ has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
<Freddan962> ra4king: any good sources? :)
<havenwood> >> "1 88 67 74 53.8 0.00 F 280 9.6 270 17 1.6 93 23 1004.5".split.keep_if { |s| Float(s) rescue false }
<eval-in__> havenwood => ["1", "88", "67", "74", "53.8", "0.00", "280", "9.6", "270", "17", "1.6", "93", "23", "1004.5"] (https://eval.in/152911)
<Freddan962> jhass: Let me try it!
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ra4king> yeah I have a whole folder of regex tutorials
<havenwood> meh, unexceptional exceptions :P
<Freddan962> Ra4king: Would you mind sharing?
oo_ has quit [Remote host closed the connection]
<ra4king> hmm I don't know how good these are to be honest, as I have yet to go through them myself: http://code.tutsplus.com/tutorials/you-dont-know-anything-about-regular-expressions--net-7869
<jhass> Freddan962: er, /\d+(?:\.\d+)?/
wjimenez5271 has joined #ruby
<Freddan962> Jhass, havenwood: Would I be better of going with regex or split.keep_if block?
<Freddan962> Performance wise.
<havenwood> regex seems nicer there
<Freddan962> Ra4king: Thank you Ra4king, will definitely read them!
<jhass> Freddan962: also if performance is your top priority Ruby is not for you ;)
oo_ has joined #ruby
<Freddan962> jhass: Of course not, but it never hurts knowing :- )
shime has joined #ruby
<ra4king> Freddan962: a bit of googling and found ruby-specific regex article: http://www.tutorialspoint.com/ruby/ruby_regular_expressions.htm
<ra4king> more of a guide really
relix has joined #ruby
<Freddan962> Thank you so much for the help guys (Jhass, ra4king, Havenwood) :D
<Freddan962> And for the articles ra4king :)
<ra4king> oh wow, splitting an array using [,]
<ra4king> I like that
<ra4king> and array becomes like ArrayList with <<
<ra4king> how do you get the length of an array?
<jhass> .length or .size
<ra4king> oh both work? interesting
<ra4king> >> [4, 5, 10].length
<eval-in__> ra4king => 3 (https://eval.in/152912)
<jhass> ruby core has quite a few aliases
<ra4king> .. [4, 5, 10].size
<havenwood> >> [1, 2, :c, 'd', 5].count { |i| i.is_a? Integer }
<ra4king> >> [4, 5, 10].size
<eval-in__> havenwood => 3 (https://eval.in/152913)
<eval-in__> ra4king => 3 (https://eval.in/152914)
<ra4king> impressive
<ra4king> havenwood: what is that in the braces?
<havenwood> ra4king: a block
<jhass> ra4king: also please use eval-in only for demo purposes, check irb for a local repl, or yet better pry
<havenwood> ra4king: gem install pry
<ra4king> jhass: wow, that sentence was really cryptic, a little slower for me :D
<ra4king> irb, repl, and pry? :D
<jhass> irb is a tool you run, pry is a gem you install then a tool you run, repl=read eval print loop
<havenwood> ra4king: REPL is a generic term for Read Eval Print Loop, irb is the REPL that ships with Ruby and Pry is the most popular REPL gem.
<jhass> a gem is a library for ruby
<jhass> much like a jar
<ra4king> Oh, REPL seems like a basic thing, didn't know there was a term for it
oo_ has quit [Remote host closed the connection]
<jokke> hi
<ra4king> I've made many REPL applications before, TIL on the name
shemerey has joined #ruby
<jokke> i'm working on a rest api with oAuth and stumbled upon this repo https://github.com/Lelylan/rest-oauth2-server
<ra4king> havenwood: scrolling down a little more on that "Learn Ruby in Y minutes" page explains your code block
wjimenez5271 has quit [Quit: Leaving.]
<ra4king> makes much more sense now
<jokke> what confuses me a bit is that the token request is a POST request. It's weird to me because i'm trying to _get_ a token, not post one.
<jokke> is this normal practice?
<jhass> you could see it as a request to create a new token
<jokke> jhass: hm i guess you're right
<jokke> still doesn't feel quite right
<jokke> but if that's the way to go, so be it
<havenwood> creating a resource
Dude007 has quit [Read error: Connection reset by peer]
j416 has quit [Quit: o/]
<havenwood> jokke: does the token exist before you request it?
Dude007 has joined #ruby
<jokke> havenwood: yeah you have a point there
danshultz has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
AlexRussia has joined #ruby
eka has joined #ruby
oo_ has joined #ruby
<ra4king> oh damn, passing blocks to functions, and calling with/without parameters
<ra4king> and yield
<ra4king> I'm liking ruby so far
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblu_ has quit [Quit: Leaving...]
combusean has joined #ruby
jamto11 has joined #ruby
<jokke> any good tutorials on oauth2? It's not clear to me for example in what form i should store client secrets and authorization codes on the server.
<jokke> (encrypted, plain or hashed, etc)
Hanmac has quit [Ping timeout: 252 seconds]
eka has quit [Client Quit]
agent_white has quit [Quit: night all]
duncannz has quit [Ping timeout: 264 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ra4king> alright well it's 7am, that's all for tonight
jamto11 has quit [Ping timeout: 240 seconds]
<ra4king> thank you all for the links and help
nowledge has joined #ruby
yfeldblum has joined #ruby
ce_afk is now known as cescalante
eka has joined #ruby
Dude007 has quit [Remote host closed the connection]
Hanmac has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Dude007 has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
roolo has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
Burgestrand has joined #ruby
ktun has joined #ruby
Dude007 has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has quit [Client Quit]
cescalante is now known as ce_afk
nowledge has quit [Quit: This computer has gone to sleep]
Shidash has joined #ruby
ktun has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
carraroj has quit [Ping timeout: 276 seconds]
combusean has joined #ruby
thomasxie has quit [Quit: Leaving.]
diegoviola has quit [Read error: Connection reset by peer]
<Hanmac> havenwood: DoctorWho episode?
kaspergrubbe has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
ktun has quit [Client Quit]
<havenwood> Hanmac: haven't watched more yet, ack why am i awake?!
Burgestrand has quit [Quit: Burgestrand]
yfeldblum has joined #ruby
kaspergrubbe has joined #ruby
crazymykl has quit [Ping timeout: 276 seconds]
<havenwood> too much coffee i guess
RaptorJesus_ is now known as RaptorJesus
relix has joined #ruby
danshultz has quit [Remote host closed the connection]
agjacome has joined #ruby
danshultz has joined #ruby
alem0lars has joined #ruby
relix has quit [Ping timeout: 240 seconds]
ktun has joined #ruby
franzip has joined #ruby
phoo1234567 has joined #ruby
danshultz has quit [Ping timeout: 258 seconds]
unic0rn has joined #ruby
frobrob has quit [Ping timeout: 252 seconds]
<Freddan962> parser.rb 38 - no implicit conversion of String into integer (https://gist.github.com/itgsod-fredrik-sander/2041d299a166bd6b9de8), please help me! I am stuck :P
<jhass> Freddan962: your hash values are strings
LadyRainicorn has quit [Ping timeout: 252 seconds]
<Freddan962> Should not be - they are converted to integers before assigning it to the hash.
<Freddan962> line 23.
<jhass> you need to assign the result
<havenwood> Freddan962: `line[0].to_i` doesn't mutate `line[0]`
<jhass> you can't change an objects class, so String#to_i returns the number
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kilk_ has quit [Quit: kilk_]
<Freddan962> Oh, time for the bang.
tomoe-mami has joined #ruby
<jhass> There's no String#to_i since you can't change an objects type/class
<jhass> btw the return at the last line is implicit
tomoe-mami has left #ruby ["WeeChat 1.0-dev"]
<jhass> *last line of a method
<havenwood> Freddan962: when you split the line into an array, maybe rename to lines? confusing having all variable names be the same. :O
<jhass> and always Use File.read/File.write or the block form of File.open so you don't miss closing the file handles
<havenwood> Freddan962: lines.map! &:to_i
<havenwood> ^ equivalent to: lines.map { |line| line.to_i }
<havenwood> !
<havenwood> map! i mean >.>
<Freddan962> Would not this piece of code work? "if hash["max_temperature"].to_i - hash["min_temperature"].to_i > biggest_variation"
<havenwood> Freddan962: seems it should
<jhass> Freddan962: but it's bad style
<jhass> sanitize/convert/encode your input at read/parse time, not when you want to actually work with the data
papercode has quit [Quit: WeeChat 0.4.3]
AlexRussia has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 240 seconds]
<havenwood> Freddan962: encoded_lines = %w[date max_temperature min_temperature].zip(lines.split).to_h
<Freddan962> jhass: Thank you! :)
<havenwood> oh, right, the to_i
<havenwood> >> lines = "110 120 122"; encoded_lines = %w[date max_temperature min_temperature].zip(lines.split.map(&:to_i)).to_h
<eval-in__> havenwood => {"date"=>110, "max_temperature"=>120, "min_temperature"=>122} (https://eval.in/152938)
<Freddan962> Just one question - why is this not working? (puts hash["max_temperature"].to_i ) - no implicit conversion of String into Integer
<Freddan962> considering "1".to_i works, should that not also work? I am a little bit confused.
Hanmac has quit [Ping timeout: 252 seconds]
<jhass> I think you're one line off
AlexRussia has joined #ruby
<jhass> it's the hash["..."]-hash[".."]
postmodern has quit [Quit: Leaving]
<Freddan962> No, that one errors as well - but the piece of code I just posted also returns the same error.
<Freddan962> And I can't wrap my head around it :/
<jhass> I doubt that
<jhass> >> hash = {"foo" => "123"}; puts hash["foo"].to_i
<eval-in__> jhass => 123 ... (https://eval.in/152939)
<jhass> ah, maybe hash is in fact an array?
<jhass> >> puts [1, 2, 3]["foo"]
<eval-in__> jhass => no implicit conversion of String into Integer (TypeError) ... (https://eval.in/152940)
<Freddan962> It does error. Without commenting away that line - error on 34. When commenting away it, error on line 35. (if condition)
<havenwood> Freddan962: if you drop #split_line and #encode_line and change line 8 to the following does it work?: encoded_lines = %w[date max_temperature min_temperature].zip(lines.split.map(&:to_i)).to_h
blackmes1 has quit [Ping timeout: 258 seconds]
kilk_ has joined #ruby
<havenwood> why is hash named array, gah
<havenwood> lol
neilrios has joined #ruby
<Freddan962> Because it is a array of hashs :D
<havenwood> but... it isn't
<jhass> Freddan962: choose names that reflect what the data represents, not what the data structure is
<Freddan962> jhass: What would you name it?
AndChat| has quit [Quit: Bye]
mercerist has quit [Quit: Computer has gone to sleep.]
blackmes1 has joined #ruby
<jhass> well, I'm not entirely sure what the data is
<Freddan962> max, min temp and the date.
<jhass> temperature_datapoints or something like that I guess
<havenwood> Freddan962: in your #find_biggest_variation method, try `puts array.class` >.>
<havenwood> having `line` be at one point a String and at another an Array is really confusing, as is `array` being a Hash
<jhass> and hash being an array apparently
<havenwood> all the variable names are lies! :P
relix has joined #ruby
<Freddan962> My life is a lie D:
combusean has quit [Ping timeout: 240 seconds]
csmrfx has quit [Quit: Lost terminal]
mikepack has joined #ruby
relix has quit [Read error: Connection reset by peer]
jiriki has quit [Remote host closed the connection]
shaman42 has quit [Remote host closed the connection]
relix has joined #ruby
nw has quit [Remote host closed the connection]
eka has joined #ruby
Hanmac has joined #ruby
BSaboia has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has joined #ruby
lkba has joined #ruby
ce_afk is now known as cescalante
relix has quit [Ping timeout: 276 seconds]
lxsameer has quit [Quit: Leaving]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
p8952 has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
hackeron has quit [Remote host closed the connection]
cescalante is now known as ce_afk
ktun has joined #ruby
gener1c has quit [Remote host closed the connection]
vekfautles has joined #ruby
hackeron has joined #ruby
Lucky_ has joined #ruby
<Hanmac> havenwood:
<Hanmac> >> [1, 2, :c, 'd', 5].to_enum(:grep,Integer).count
<eval-in__> Hanmac => 3 (https://eval.in/152956)
bruno- has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
gener1c has joined #ruby
jamo__ has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
dangerousdave has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 258 seconds]
<havenwood> Freddan962: an example of what you might do: https://gist.github.com/havenwood/07e99c50cbefca106adb
andrewlio has quit [Quit: Leaving.]
<havenwood> Hanmac: mm
darmou has joined #ruby
nowledge has joined #ruby
<havenwood> Freddan962: err, updated to get rid of the extra each_with_index
<havenwood> ^
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
mostlybadfly has joined #ruby
dangerousdave has joined #ruby
<havenwood> Freddan962: oh, really got rid of it now... :) updated Gist
p8952 has joined #ruby
p8952 has joined #ruby
p8952 has quit [Changing host]
memorozovm has joined #ruby
aiguu has quit [Ping timeout: 258 seconds]
abra has quit [Ping timeout: 240 seconds]
okinomo_away is now known as okinomo
blackmes1 has quit [Quit: WeeChat 0.4.3]
moritzs has joined #ruby
moritzschaefer has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
abra has joined #ruby
lw has joined #ruby
Freddan962 has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 240 seconds]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
kilk_ has quit [Ping timeout: 240 seconds]
nowledge has quit [Quit: This computer has gone to sleep]
Hanmac1 has joined #ruby
Freddan962 has joined #ruby
nowledge has joined #ruby
kilk_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
davedev2_ has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
ziyadb_ has joined #ruby
ziyadb_ has quit [Changing host]
ziyadb_ has joined #ruby
ziyadb_ has joined #ruby
ziyadb_ has quit [Changing host]
zybi1 has quit [Ping timeout: 264 seconds]
nw has joined #ruby
Jake232 has joined #ruby
jamto11 has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 276 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
kitak has joined #ruby
klaut has joined #ruby
relix has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
okinomo is now known as okinomo_away
nowledge has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
combusean has joined #ruby
relix has quit [Ping timeout: 252 seconds]
okinomo_away is now known as okinomo
ce_afk is now known as cescalante
okinomo has quit [Quit: leaving]
zybi1 has joined #ruby
okinomo has joined #ruby
<Jamo> I just upgraded rvm and I cant install gems:
<Jamo> ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - sendto(2) for "217.30.180.230" port 53
combusean has quit [Ping timeout: 252 seconds]
badhatter has joined #ruby
<Hanmac> jamo did you try sudo?
<Jamo> I can't
<Hanmac> shevy & havenwood: https://www.youtube.com/watch?v=Ghgbycqb92c <<<<<
lw has quit [Ping timeout: 240 seconds]
<Jamo> output of `gem environment`: https://cloudup.com/cGVnRskljVA
<Hanmac> jamo what gem do you try to install?
<Jamo> I tried with rails, httparty and tokyocabinet
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has joined #ruby
alex88 has quit [Quit: Leaving...]
<Jamo> maybe I'll try rbenv :)
ktun has joined #ruby
workmad3 has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
roolo has quit [Quit: Leaving...]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
ktun has joined #ruby
relix has joined #ruby
<shevy> guys
<shevy> I love you
AlexRussia has joined #ruby
<Morrolan> \o/
lyanchih_ has joined #ruby
etqqkoiflwhb has joined #ruby
timonv has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
nw has quit [Quit: Lost terminal]
Brian520 has joined #ruby
nw has joined #ruby
Brian520 has quit [Client Quit]
Brian520 has joined #ruby
zxq9 has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun has joined #ruby
benzrf|offline is now known as benzrf
ktun has quit [Client Quit]
ktun has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
LadyRainicorn has joined #ruby
ktun has quit [Client Quit]
etqqkoiflwhb has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 258 seconds]
neilrios has quit [Ping timeout: 276 seconds]
etqqkoiflwhb has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
mikepack has joined #ruby
etqqkoiflwhb has joined #ruby
cina has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
yfeldblum has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has quit [Ping timeout: 240 seconds]
Bira has quit [Remote host closed the connection]
aiguu has joined #ruby
etqqkoiflwhb has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
aiguu has quit [Ping timeout: 240 seconds]
connor_goodwolf_ has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
einarj has joined #ruby
Rainicorn has quit [Ping timeout: 264 seconds]
etqqkoiflwhb has joined #ruby
banister has quit [Ping timeout: 276 seconds]
Bira has joined #ruby
etqqkoiflwhb has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
etqqkoiflwhb has joined #ruby
banister has joined #ruby
jjbohn has joined #ruby
klaut has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
gstamp has joined #ruby
claymore has joined #ruby
pu22l3r has joined #ruby
ndrei has joined #ruby
pskosinski has joined #ruby
rm_ has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
memorozovm has quit [Ping timeout: 258 seconds]
memorozovm has joined #ruby
Lucky_ has joined #ruby
mary5030 has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
bahar has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
subbyyy_ has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
Es0teric has joined #ruby
jlast has joined #ruby
memorozovm has quit [Ping timeout: 264 seconds]
memorozovm has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
ashleah has joined #ruby
Hanmac has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
akonny has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
wildroman2 has quit []
Lutece has joined #ruby
bahar has joined #ruby
Thanatermesis has left #ruby ["ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ"]
workmad3 has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mityaz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
Alina-malina has joined #ruby
SHyx0rmZ has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
relix has joined #ruby
cina has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
connor_goodwolf has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
ktkh has joined #ruby
nowledge has joined #ruby
nowledge has quit [Client Quit]
AlexRussia has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
Beoran has joined #ruby
WishBoy has quit [Ping timeout: 252 seconds]
sski has quit [Remote host closed the connection]
sski has joined #ruby
Port3M5[Work] has quit [Ping timeout: 258 seconds]
xfgm has joined #ruby
Beoran_ has quit [Ping timeout: 276 seconds]
Rainicorn has joined #ruby
WishBoy has joined #ruby
wjimenez5271 has joined #ruby
sski has quit [Ping timeout: 276 seconds]
LadyRainicorn has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
alexju has joined #ruby
dorei has joined #ruby
alexju has quit [Remote host closed the connection]
timonv has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mr_snowf1ake has joined #ruby
Royalb15 has joined #ruby
Freddan962 has quit [Quit: Leaving]
pu22l3r has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
ascarter has joined #ruby
kilk_ has quit [Ping timeout: 240 seconds]
<Hanmac> havenwood: time for DoctorWho yet?
<Kilo`byte> umm
bahar has quit [Ping timeout: 276 seconds]
Vivekananda has joined #ruby
<Kilo`byte> someone can help me find out why my webrick can't bind port?
<Kilo`byte> its not used by system
kilk_ has joined #ruby
Royalb15 has quit [Quit: See ya'll later!]
darmou has quit [Quit: darmou]
lolmaus has quit [Ping timeout: 258 seconds]
bahar has joined #ruby
AlexRussia has quit [Client Quit]
AlexRussia has joined #ruby
banister_ has joined #ruby
rippa has joined #ruby
Royalb15 has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
alexju has joined #ruby
jjbohn has quit [Quit: Leaving...]
lolmaus has joined #ruby
banister has quit [Ping timeout: 240 seconds]
Kisten has joined #ruby
mikepack has joined #ruby
nathancahill has quit [Quit: nathancahill]
MatthewsFace has joined #ruby
codecop has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<renier> Hi, could someone point me to how to get my Rakefile to create the gem package for my project?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Royalb15 has quit [Quit: Leaving]
jamesaanderson has joined #ruby
vali has quit [Ping timeout: 240 seconds]
wjimenez5271 has quit [Quit: Leaving.]
maroloccio has quit [Ping timeout: 240 seconds]
vali has joined #ruby
xcesariox has joined #ruby
maroloccio2 has joined #ruby
<shevy> Kilo`byte what error do you get
naw has quit []
naw has joined #ruby
<shevy> renier no idea. but if you have a .gemspec you can do: gem build *gemspec
<Kilo`byte> shevy: apperently it still runs, just one of its binds fails
<Kilo`byte> [2014-05-18 17:49:24] WARN TCPServer Error: Address already in use - bind(2)
<shevy> Kilo`byte hmm I think that means it can not run at all
<Kilo`byte> well
<Kilo`byte> it binds once for ipv4 and ipv6
<Kilo`byte> latter fails
brij has joined #ruby
yfeldblum has joined #ruby
jcarouth has quit [Excess Flood]
<jhass> Kilo`byte: that's normal to give the previously running application a chance to come back and accept pending connections, if it wishes to do so
<shevy> aha, never noticed that. I always understood it that if it tells me that the address is already in use, it means that port is completely blocked
<shevy> what port do you attempt to use
<Kilo`byte> 8000
brij is now known as bijumon
<Kilo`byte> which isn't occupied according to netstat
<shevy> you are on windows?
toastynerd has joined #ruby
<renier> shevy, thanks. I discovered that once you have the packagetask integrated, it gives you a magical `rake build` that creates the gem.
<Kilo`byte> shevy: linux
<renier> Example for packagetask --> https://gist.github.com/renier/fc3c5bf0a87d239db972
<Kilo`byte> i would never voluntarily touch windows
<Kilo`byte> i am not masochist
nowledge has joined #ruby
bluOxigen has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
centrx has joined #ruby
mikepack has joined #ruby
Royalb15 has joined #ruby
ktun has joined #ruby
Royalb15 has quit [Read error: Connection reset by peer]
Royalb15 has joined #ruby
Mayank has joined #ruby
Mayank has quit [Client Quit]
wjimenez5271 has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
NukePuppy has joined #ruby
etqqkoiflwhb has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
etqqkoiflwhb_ has joined #ruby
<shevy> Kilo`byte hmm
<shevy> Kilo`byte no webrick example works for you?
nowledge has quit [Quit: Leaving]
<Kilo`byte> well, again i can access it, but such a warning usually means nothing good
<Kilo`byte> thats why i ask
lkba has joined #ruby
dangerousdave has joined #ruby
<shevy> well I dont get this warning
<shevy> /Programs/Ruby/2.1.2/lib/ruby/2.1.0/socket.rb:206:in `bind': Address already in use - bind(2) for [::]:80 (Errno::EADDRINUSE)
silkfox has joined #ruby
<shevy> it outright fails to even start for me when I get bind(2)
<shevy> /Programs/Ruby/2.1.2/lib/ruby/2.1.0/socket.rb:206:in `bind': Address already in use - bind(2) for [::]:80 (Errno::EADDRINUSE)
MatthewsFace has quit [Quit: This computer has gone to sleep]
wjimenez5271 has quit [Quit: Leaving.]
<shevy> a moment
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
connor_goodwolf has quit [Ping timeout: 240 seconds]
etqqkoiflwhb_ has joined #ruby
ftj has joined #ruby
<shevy> ok works now
<shevy> We will attempt to use port: 9345
<shevy> [2014-05-18 18:23:34] INFO WEBrick 1.3.1
<shevy> not sure how I can get your type of warning for same address
<Kilo`byte> hmm
<havenwood> Kilo`byte: any processes acc'd to fuser?: fuser 8000/tcp
<Kilo`byte> nop
kaichanvong has quit [Quit: _]
etqqkoiflwhb_ has quit [Ping timeout: 276 seconds]
cescalante is now known as ce_afk
Shidash has quit [Ping timeout: 252 seconds]
funktor has joined #ruby
_2_jehanmarys2 has joined #ruby
akonny has joined #ruby
eam has quit [Ping timeout: 265 seconds]
memorozovm has quit [Remote host closed the connection]
_2_jehanmarys2 has left #ruby [#ruby]
eam has joined #ruby
memorozovm has joined #ruby
shemerey has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
kaichanvong has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
anaeem1_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
shvelo has joined #ruby
mercerist has joined #ruby
ndrei has joined #ruby
lyanchih_ has quit [Ping timeout: 264 seconds]
knightwrestle has quit [Quit: knightwrestle]
etqqkoiflwhb_ has joined #ruby
jamto11 has joined #ruby
mengu has quit [Remote host closed the connection]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
arrubin has quit [Quit: leaving]
adamnbowen has joined #ruby
arrubin has joined #ruby
plato has quit [Remote host closed the connection]
ce_afk is now known as cescalante
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb_ has joined #ruby
mengu has quit [Remote host closed the connection]
aesptux has joined #ruby
aesptux has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 265 seconds]
aesptux has joined #ruby
andrewlio has joined #ruby
yfeldblum has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Quit: Leaving]
kith has quit [Ping timeout: 252 seconds]
p8952 has quit [Quit: Leaving]
chipotle has quit [Quit: cya]
mr_snowf1ake has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
LexicalScope has quit [Quit: Leaving]
anidear has joined #ruby
xfgm has left #ruby [#ruby]
Royal_Laptop has joined #ruby
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> hmm guys
jonahR has joined #ruby
kith has joined #ruby
<shevy> whenever one writes a class, you would recommend to put this into a module namespace, right?
JasmeetQA has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
<benzrf> shevy: idk it depends
<Kilo`byte> i usually do it
<Kilo`byte> because collisions
<shevy> well I mean I could use a class rather than a module as well
<shevy> but it is also a bit odd to do something like:
<shevy> foobar.rb
<shevy> module Foobar; class Foobar
etqqkoiflwhb_ has joined #ruby
Advocation has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
ixti has joined #ruby
ktun has joined #ruby
happytux has joined #ruby
moritzschaefer has quit [Quit: Verlassend]
<happytux> hi
<happytux> Please tell me the difference between a Gemfile and a .bundle file.
<happytux> Got both the same purpose, just different names?
<jhass> never saw a .bundle file. Bundler creates a folder with that name though
F1skr has joined #ruby
<certainty> shevy: then do foobar/foobar.rb
anidear has quit [Quit: Leaving]
jamto11 has quit []
Advocation has quit [Quit: Advocation]
<happytux> jhass: ah
<happytux> jhass: OK. Also I find sometimes a .ruby-gemset file.
<happytux> What is that?
Es0teric has quit [Quit: Computer has gone to sleep.]
mikepack_ has joined #ruby
<jhass> A gemset is a concept that originates from RVM, it's a separate GEM_HOME and that file makes RVM switch to it as you enter the folder
<jhass> I think rbenv supports that too or at least there's a plugin for it that does
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
etqqkoiflwhb_ has joined #ruby
pushpak has joined #ruby
benzrf is now known as benzrf|offline
cescalante is now known as ce_afk
ce_afk is now known as cescalante
<happytux> jhass: is gemset a directory or a file?
dangerousdave has joined #ruby
<jhass> a concept
mikepack_ has quit [Ping timeout: 240 seconds]
<happytux> jhass: but there seems to be a gemset file, right?
benzrf|offline is now known as benzrf
Advocation has joined #ruby
JasmeetQA has quit [Ping timeout: 240 seconds]
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
benzrf is now known as benzrf|offline
dstynchula has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 240 seconds]
dstynchula has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elementz has quit [Ping timeout: 240 seconds]
KAO has joined #ruby
etqqkoiflwhb_ has joined #ruby
shashin has quit [Client Quit]
iamcalledrob has joined #ruby
tobago has quit [Remote host closed the connection]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
shashin has quit [Client Quit]
Patrick has joined #ruby
Patrick has quit [Client Quit]
alem0lars has quit [Quit: Going AFK...]
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
sdwrage has joined #ruby
iamcalledrob has quit [Ping timeout: 252 seconds]
davidturnbull has joined #ruby
memorozovm has quit [Read error: Connection reset by peer]
davidturnbull has left #ruby [#ruby]
coderhs has joined #ruby
coderhs has quit [Client Quit]
memorozovm has joined #ruby
brontos has quit [Read error: Connection reset by peer]
davidturnbull has joined #ruby
<banister_> Hanmac are you buying an oculus rift?
brontos has joined #ruby
ktun has joined #ruby
<Hanmac> hm ... nah, but the developing goes into an interesting direction
ndrei has joined #ruby
<banister_> Hanmac i ordered one already :)
<banister_> Hanmac the dk2, arrived on aug 1st
VTLob has joined #ruby
abstrakt has joined #ruby
mclee has quit [Ping timeout: 276 seconds]
<shevy> Hanmac is this like doom 1
dangerousdave has quit [Ping timeout: 265 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
davidturnbull has left #ruby [#ruby]
mengu has joined #ruby
ballPointPenguin has quit [Ping timeout: 258 seconds]
bcavileer has quit [Read error: Connection reset by peer]
msch has quit [Ping timeout: 240 seconds]
bcavileer has joined #ruby
neosoro_ has quit [Ping timeout: 240 seconds]
msch has joined #ruby
eataix_ has quit [Ping timeout: 240 seconds]
zzak_ has quit [Ping timeout: 240 seconds]
Megtastique has joined #ruby
Rahul_Roy has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
eataix_ has joined #ruby
jack_rabbit has joined #ruby
mattyohe has quit [Ping timeout: 240 seconds]
poguez_ has quit [Read error: Connection reset by peer]
GGMethos has quit [Quit: WeeChat 0.4.3]
poguez_ has joined #ruby
zzak_ has joined #ruby
maroloccio2 has quit [Quit: WeeChat 0.4.3]
dangerousdave has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
Rahul_Roy has joined #ruby
neosoro_ has joined #ruby
ballPointPenguin has joined #ruby
connor_goodwolf has joined #ruby
iamcalledrob has joined #ruby
mattyohe has joined #ruby
kaspergrubbe has joined #ruby
alem0lars has joined #ruby
mven has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
badhatter has quit [Ping timeout: 240 seconds]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dovid has joined #ruby
KAO has quit [Ping timeout: 240 seconds]
iamcalledrob has quit [Ping timeout: 255 seconds]
aesptux_ has joined #ruby
klaut has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
aesptux has quit [Ping timeout: 265 seconds]
jonahR has quit [Remote host closed the connection]
GGMethos has joined #ruby
ktkh has quit [Remote host closed the connection]
ktkh has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
john3213 has joined #ruby
memorozovm has quit []
Royal_Laptop has quit [Ping timeout: 258 seconds]
gdifo has quit []
ktkh has quit [Ping timeout: 258 seconds]
john3213 has left #ruby [#ruby]
frosgy has joined #ruby
mesamoo has joined #ruby
Advocation has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
frogssgy has quit [Ping timeout: 240 seconds]
linojon has joined #ruby
dsdeiz_ has quit [Ping timeout: 258 seconds]
<shevy> ewww http://blog.linuxmint.com/?p=2613 they go ubuntu
<shevy> Hanmac, abandon your evil ubuntu path!
<shevy> "Linux Mint 18 will be based on Ubuntu 16.04 LTS"
<shevy> ubuntu is like the BORG
<shevy> except that the BORG were cool
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
<mozzarella> linux mint is shit
<mozzarella> ubuntu is fine
<havenwood> mozzarella: rms does not approve!
Bumptious has quit [Read error: Connection reset by peer]
bruno- has quit [Quit: leaving]
<mozzarella> rms doesn't like any of them
<mozzarella> because they ship proprietary blobs
Bumptious has joined #ruby
<mozzarella> they do not respect his freedom entirely
amclain has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Client Quit]
Advocation has joined #ruby
danshultz has joined #ruby
Atrumx has joined #ruby
aesptux_ has quit [Remote host closed the connection]
magri has quit [Remote host closed the connection]
Bumptious has quit [Ping timeout: 264 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesaanderson has joined #ruby
Matip has joined #ruby
Matip has joined #ruby
Hobogrammer has joined #ruby
Mattx has quit [Ping timeout: 255 seconds]
Advocation has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
Cache_Money has joined #ruby
BSaboia has joined #ruby
anaeem1 has joined #ruby
fflush has joined #ruby
F1skr has quit [Ping timeout: 240 seconds]
aiguu has joined #ruby
dsdeiz has joined #ruby
LexicalScope` has quit [Ping timeout: 258 seconds]
wald0 has quit [Quit: Lost terminal]
anaeem1 has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 276 seconds]
teddyp1cker has joined #ruby
ndrei has quit [Remote host closed the connection]
etqqkoiflwhb_ has joined #ruby
Lutece has quit [Ping timeout: 272 seconds]
teddyp1cker has quit [Client Quit]
timonv has joined #ruby
teddyp1cker has joined #ruby
<jimbauds> Hanmac: Thanks for sharing this link! Wow!
danijoo has joined #ruby
lethjakman has joined #ruby
franzip has quit [Quit: ...]
jamesaanderson has quit [Ping timeout: 252 seconds]
vee has quit [Quit: WeeChat 0.4.4-dev]
jamesaanderson has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
shime has joined #ruby
anidear has joined #ruby
aesptux has joined #ruby
<shevy> Hanmac, am I doing something wrong:
<shevy> Pathname(__FILE__).dirname.realpath.to_s+'/yaml/bla/'
<Hanmac> Pathname.new ?
shashin has quit [Quit: shashin]
<shevy> hmm?
<shevy> >> require 'pathname'; Pathname(__FILE__)
<eval-in__> shevy => #<Pathname:/tmp/execpad-2dcef41291df/source-2dcef41291df> (https://eval.in/153082)
<shevy> quite ugly
<shevy> it however gives me the absolute path to the ruby site dir
F1skr has joined #ruby
NukePuppy has quit [Ping timeout: 265 seconds]
<Hanmac> isnt __FILE__ always absolute?
<havenwood> ha
KAO has joined #ruby
aoeu has joined #ruby
grump has joined #ruby
alex88 has joined #ruby
<aoeu> Does anyone if there's such a thing as a "web ORM"?
KAO has quit [Ping timeout: 240 seconds]
<centrx> aoeu, What do you mean by that?
danshultz has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aoeu> Do you know what an ORM is?
<centrx> Yes...
danshultz has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
fflush has quit [Quit: fflush]
<Hanmac> aoeu: ORM should be independent from the web i mean the ORM should not care if its connected to a website or a 3d game
<aoeu> What I'm looking for is an something that does to REST what an ORM does to SQL
Arkaniad has quit [Remote host closed the connection]
<aoeu> A declarative way to consume a REST API, without having to manually do requests or know the API.
<aoeu> Something that can chain calls and such.
* Hanmac smells a rails problem in the air
benzrf|offline is now known as benzrf
mikepack has joined #ruby
<aoeu> Hanmac: Can Rails help me with that?
etqqkoiflwhb_ has quit [Remote host closed the connection]
<Hanmac> i dont know, but it smells like a rails problem
<aoeu> Are poeople meta-describing REST APIs to facilitate consumption?
<aoeu> Hanmac: What is a "rails problem"?
etqqkoiflwhb_ has joined #ruby
<centrx> I am meta-describing this sentence.
danshultz has quit [Ping timeout: 255 seconds]
<havenwood> aoeu: for creating an API there's neat stuff like Erlang's webmachine, which here in Ruby is: https://github.com/seancribbs/webmachine-ruby#readme
<havenwood> aoeu: but for consuming an API, what are you really looking for?
Dreamer3 has quit [Quit: Leaving...]
Arkaniad has joined #ruby
papercode has joined #ruby
<havenwood> aoeu: a particular style of HTTP client or something else?
ktun has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
ktun has quit [Client Quit]
Arkaniad has quit [Remote host closed the connection]
JBreit has joined #ruby
<aoeu> havenwood: Any API. I have no control over the API.
<aoeu> havenwood: I need to write a custom adapter on top of an API.
<aoeu> That will do all the work for me.
mweshi has joined #ruby
rm_ has quit [Remote host closed the connection]
<havenwood> aoeu: How would it know which urls to request with which verbs?
r0ok has joined #ruby
<havenwood> aoeu: One of many nice HTTP clients: https://github.com/tarcieri/http#basic-usage
Arkaniad has joined #ruby
<aoeu> havenwood: Metadata.
<havenwood> aoeu: Cloud.
<aoeu> havenwood: I would describe the API once. Map resources to each other.
<aoeu> 'That field map this field in that other class..."
<aoeu> Then, I could ask "Show me a person, his name, a list of his friends, etc". And not write a single line of code to get the data.
<aoeu> I just declare what data I want bound to the UI.
shime has quit [Ping timeout: 240 seconds]
shashin has joined #ruby
shashin has joined #ruby
shashin has quit [Changing host]
akonny has quit [Quit: akonny]
shime has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
rm_ has joined #ruby
AlexRussia has joined #ruby
anaeem1 has joined #ruby
AlexRussia has quit [Client Quit]
elementz has joined #ruby
ascarter has joined #ruby
shashin has quit [Client Quit]
Arkaniad has quit [Remote host closed the connection]
Advocation has joined #ruby
fantazo has joined #ruby
Arkaniad has joined #ruby
Es0teric has joined #ruby
Arkaniad has quit [Remote host closed the connection]
Arkaniad has joined #ruby
anaeem1 has quit [Ping timeout: 240 seconds]
fflush has joined #ruby
dangerousdave has quit [Ping timeout: 265 seconds]
motoford has quit [Ping timeout: 276 seconds]
nari_ has quit [Ping timeout: 264 seconds]
linojon has quit [Quit: linojon]
motoford has joined #ruby
fflush has quit [Read error: Connection reset by peer]
Arkaniad has quit [Remote host closed the connection]
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
mengu has joined #ruby
Arkaniad has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Arkaniad|Laptop has joined #ruby
yfeldblu_ has joined #ruby
mengu has quit [Remote host closed the connection]
mengu__ has joined #ruby
AlexRussia has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<RubyPanther> aoeu: in the phrase "REST ORM" the API is called "REST"
<aoeu> RubyPanther: yes
<RubyPanther> That's the whole point of REST, instead of free-form, problem-related APIs you have a 4 (well, 6) method API
Martxel_ has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<aoeu> RubyPanther: That's not the problem.
<RubyPanther> If you want to write a generic client that does something useful, for example with the difference between lists of resources and individual entries, the problem is you have to consume an XML REST API, because the HTML ones will have a bunch of fluff to parse
<aoeu> RubyPanther: That part is fine. I don't like RPC.
Martxel__ has joined #ruby
<RubyPanther> aoeu: okay, I'll just stop typing
Martxel has quit [Ping timeout: 265 seconds]
<aoeu> RubyPanther: I want to write a generic client that does everything.
rippa has quit [Read error: Connection reset by peer]
<RubyPanther> 3 lines of leadup surely has the point, too
<aoeu> But for that, it must understand APIs. It must understand what each field of an object represents.
<RubyPanther> (and yes, that part IS the problem)
yfeldblu_ has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
<aoeu> you guys do ruby
Arkaniad|Away has joined #ruby
<aoeu> you don't know
pen has quit [Remote host closed the connection]
Martxel has joined #ruby
LexicalScope has joined #ruby
<RubyPanther> aoeu: More generally, if you think you know what the problem is, just look it up. Don't ask. Ask when, like here, you don't really understand it.
Martxel_ has quit [Ping timeout: 265 seconds]
Arkaniad has quit [Remote host closed the connection]
Arkaniad|Laptop has quit [Remote host closed the connection]
Arkaniad|Away has quit [Remote host closed the connection]
Martxel_ has joined #ruby
elementz has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Quit: Cache_Money]
kukyakya has joined #ruby
jrdnull has quit [Quit: ZNC - http://znc.in]
Martxel__ has quit [Ping timeout: 265 seconds]
Martxel__ has joined #ruby
Es0teric_ has joined #ruby
jackneill has quit [Ping timeout: 276 seconds]
Martxel has quit [Ping timeout: 252 seconds]
drizz has quit [Ping timeout: 264 seconds]
<aoeu> RubyPanther: I'm looking for the quickest way to make the visuals of an app into a working app.
decoponyo has quit [Quit: Leaving...]
<aoeu> RubyPanther: I feel like not having to manually manage the flow of data would help a lot.
VinDH has joined #ruby
Martxel__ has quit [Read error: Connection reset by peer]
<RubyPanther> aoeu: That is an entirely different question that involves a different problem than what you were asking for
sinkensabe has joined #ruby
dangerousdave has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
Martxel__ has joined #ruby
Martxel_ has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Martxel_ has joined #ruby
<RubyPanther> aoeu: If there was a substantially better way of building web apps other than using a framework... there would be a framework using this new methodology ;) You should probably be focused on putting your data into a CMS so that you can manage it with metadata, then you can ignore the actual data values
bah_ has joined #ruby
<havenwood> aoeu: seems to me you'd have to just read up on the API to create a wrapper. are you thinking something like this? (but somehow automatic?): https://gist.github.com/havenwood/3f194444a53681d12403
funktor has quit [Remote host closed the connection]
gdogg has joined #ruby
<RubyPanther> And if you get the CSS into the CMS, then the visuals are totally abstracted out
<gdogg> what's the ruby on rails channel?
jrdnull has joined #ruby
<havenwood> gdogg: #rubyonrails
<gdogg> ty
<havenwood> yw
csmrfx has joined #ruby
mityaz has quit [Quit: See ya!]
<aoeu> RubyPanther: I'm looking for a framework. A framework that bind data to my UI.
pskosinski_ has joined #ruby
sinkensabe has quit [Ping timeout: 265 seconds]
<aoeu> havenwood: I don't want to use any wrapper. I don't want to manually fetch any data.
<RubyPanther> aoeu: the app is the layer that binds the data and UI, the framework is a set a libraries and tools that the app uses
Martxel__ has quit [Ping timeout: 252 seconds]
F1skr has quit [Quit: WeeChat 0.4.3]
mehlah has joined #ruby
pskosinski has quit [Disconnected by services]
<havenwood> aoeu: What does automatic data fetching look like?
<RubyPanther> If you abstract out the data so that you're using metadata in the UI template, then you're there. You still have to look it up, of course.
jrdnull has quit [Client Quit]
<havenwood> aoeu: My example you give it the username, it fetches the user and maps it to an Object. What do you want to happen?
Dreamer3 has joined #ruby
pskosinski_ is now known as pskosinski
<havenwood> aoeu: if you controlled the API you could do a hypermedia API and probably do something fancy
<havenwood> aoeu: but otherwise you're at the mercy of what the API designer has done, i don't know how you'd avoid at least mapping to it once
<aoeu> havenwood: I give someone a template to fill. I don't care how the person gets the data, how many doors he has to knock on, how many calls he has to make. I just want the right data in the right place. I want a framework that does just this, handle all the data fetching for me.
<aoeu> All we have to do is agree on semantics, about what we mean by "person" and "name" and "email address".
anidear has quit [Quit: Leaving]
jrdnull has joined #ruby
fwaokda has joined #ruby
<fwaokda> if I have an array {35=>4, 37=>1, 48=>3} ... how can i get the key value for the key with the maxiumum value?
<aoeu> havenwood: Since I don't control APIs, I have to add metadata to them, to emulate some kind of hypermedia fanciness.
<RubyPanther> When you give a human a template to fill and you just want them "To Get It Done No Matter What Don't Ask Me How" that is A) really bad management B) not a way of getting things done, but a way of assigning blame. But when your code fails, it is always your fault, no matter who you delegate to.
sinkensabe has joined #ruby
<aoeu> havenwood: Someone will have to map it once, of course. But only 1 person once.
<havenwood> >> {35=>4, 37=>1, 48=>3}.max.first
<eval-in__> havenwood => 48 (https://eval.in/153129)
<fwaokda> thanks!
<havenwood> aoeu: So like in my example, i mapped it once, like 3 lines of actual code. What part can be automated?
<RubyPanther> aoeu: With a CMS you have somebody map it one time, and only once.
<aoeu> RubyPanther: I don't delegate to blame.
<VinDH> if I start learning ruby today, how long till I master it
<aoeu> RubyPanther: I delegate to avoid duplication of effort.
<fwaokda> havenwood, actually i want 35 to be returned
<havenwood> fwaokda: that isn't the largest key, oh - the key for the largest value?
<fwaokda> im trying to get 35 to be returned since it has the max value
<RubyPanther> Somebody connects a metadata string like :thingy_on_the_top_of_page and then adds something to a template that asks the CMS for that data in the right spot. Now it is fully abstracted.
<aoeu> havenwood: Can you just drag&drop a TextBox in your UI and map the "Text" property to "User's first name" and just let the magic work?
mclee has joined #ruby
<fwaokda> havenwood, yes sorry about that
<RubyPanther> You can do the same for the CSS
<havenwood> >> {35=>4, 37=>1, 48=>3}.max_by { |_, v| v }.first
<eval-in__> havenwood => 35 (https://eval.in/153130)
<aoeu> When the name of the user changes, the TextBox is updated. When you hange the value in the TextBox, the name of the person is updated on the server. Etc.
<havenwood> fwaokda: ^
<havenwood> aoeu: drag? huh, what are we talking about?
<havenwood> aoeu: i'm confused
<aoeu> RubyPanther: What CMS does that?
<fwaokda> havenwood, ok thanks! what's the underscore in |_,v| doing?
<RubyPanther> <%= cms_fragment_for_user( :thingy_on_the_top_of_page, current_user ) %>
<havenwood> fwaokda: it means don't assign a local variable to that block argument
grump has quit [Quit: Copped signint from owner]
<aoeu> havenwood: Drag? Like drag&drop a control from a toolbox.
<havenwood> fwaokda: `k` would be unused
<aoeu> havenwood: Have you never done any UI work?
<RubyPanther> aoeu: that's what they all do. If you roll your own you'll save time, because the CMS is simple but has different needs for different apps/managers
gdogg has left #ruby [#ruby]
<zastern> So, I always read that you should use curly braces for single line blocks and do/end for multiline blocks; but curly braces seem to work just as well for multiline blocks. Is there a compelling reason not to use them that way, other than convention?
<aoeu> RubyPanther: Why don't all apps get build on CMS?
grump has joined #ruby
<havenwood> aoeu: I work with Ruby on the command line with a text editor. What does this have to do with UI work?
<havenwood> zastern: convention only
<fwaokda> havenwood, so it could work with |k,v| but it's unecessary since it's not used, and it just saves on memory then?
eka has joined #ruby
<aoeu> havenwood: What do you code?
<shevy> is there a way to do this:
<RubyPanther> aoeu: because they do, except that the app is built "on a framework" and "has a CMS." A UI is often constructed with a CMS, really any time you don't have an in-team UI person/group
<havenwood> aoeu: Ruby in #ruby.
<bah_> VinDH, impossible to answer, some are fast learners other not
<havenwood> aoeu: No dragging and dropping involved.
<aoeu> havenwood: Why don't you use visual tools?
<havenwood> aoeu: my text command line, REPL and text editor are visual tools
eka has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 240 seconds]
<aoeu> RubyPanther: Did you ever have to write your own "Person" or "User" class?
<aoeu> havenwood: Why don't you use tools that show you the actual visual result of your work?
upsell5 has joined #ruby
<aoeu> havenwood: You just imagine it in your head?
<RubyPanther> I always use a CMS because I prefer using an "artistic" (read: technically incompetent) subcontractor for the UI. And with a CMS, I just have a list of specific things they have to fill in, that map to various CSS classes and page copy
dopie has joined #ruby
<havenwood> aoeu: i make it real with code? i have no idea what we're talking about.
* havenwood sulks away
zigomir has quit [Remote host closed the connection]
<RubyPanther> aoeu: those types of model classes are generally handled by an ORM, like with rails you'd normally just be choosing the fields in a generator, and you'd only modify a User class to add a call to activate some auth plugin
grump has quit [Client Quit]
<RubyPanther> aoeu: ask Radar in #rubyonrails, he's the expert
eka has joined #ruby
eka has quit [Client Quit]
Arkaniad|Laptop has joined #ruby
Arkaniad has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
motoford_ has joined #ruby
motoford has quit [Ping timeout: 264 seconds]
motoford_ is now known as motoford
Cache_Money has joined #ruby
<bah_> bah_, ruby is easy to get started with and you can start build simple programs maybe after a week or two. To build more complex things or read programs other been writing can be hard, as a first language I should not pic ruby
Dude007 has joined #ruby
<shevy> hey
<shevy> did you just talk to yourself?
<bah_> VinDH, I think python are a better for somebody new to programming
Advocation has quit [Quit: Advocation]
dangerousdave has quit [Ping timeout: 258 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
<aoeu> C# is best
orthos has joined #ruby
<shevy> guys what is going on here
<aoeu> RubyPanther: So you reuse the User class that someone else created?
<aoeu> RubyPanther: Radar is expert in what?
<RubyPanther> aoeu: it is created by the generator, typically. At the same time as the database schema.
<RubyPanther> aoeu: rails
skaflem has quit [Quit: Leaving]
<aoeu> RubyPanther: But you have to define the fields, somehow?
Cache_Money_ has joined #ruby
timonv has quit [Remote host closed the connection]
<aoeu> RubyPanther: Or is it done automagically?
motoford_ has joined #ruby
<aoeu> Do people reuse other people's classes a lot?
Cache_Money has quit [Ping timeout: 252 seconds]
Cache_Money_ is now known as Cache_Money
motoford has quit [Ping timeout: 255 seconds]
motoford_ is now known as motoford
Arkaniad|Laptop has quit [Remote host closed the connection]
<banister_> aoeu that's what gems are
Arkaniad has joined #ruby
<aoeu> banister_: And people use them?
<aoeu> I mean, for trivial stuff.
<banister_> aoeu yes they use them, for trivial stuff though, it depends how trivial
fflush has quit [Quit: fflush]
<aoeu> banister_: A user or person or city class.
<banister_> aoeu huh? no, i dont think so
<banister_> aoeu it completely depends on your business needs
dangerousdave has joined #ruby
<aoeu> No it doesn't.
<aoeu> A person is a person.
<banister_> Yeah it does...
<banister_> aoeu Yes, but depending on your exact use case, you might be interested only in certain attributes of a 'person'
<toretore> aoeu is a troll, ignore
<aoeu> That's the problem with the world. People thing everything is business dependant. They think no generic solution can work because every problem is different.
toastynerd has quit [Remote host closed the connection]
<banister_> aoeu it's impossible or nearly impossible to model an entire person…you want live/intestintes/fingernail attributes in your Person class?
<aoeu> All problems are the same. The problem is that people don't think them through properly.
<havenwood> aoeu: We write a bit of code, no problem.
<banister_> aoeu for a medical use-case those things make sense, for a business use case, it probably doesnt
<aoeu> banister_: Only use the specific attributes then, don't recreate a lesser person class.
Hanmac1 has joined #ruby
<aoeu> banister_: As much as possible, yes.
<banister_> aoeu right so --- a business that's only interested in a user name and password should *also* have lung/feet/eyeball attributes? have you heard of YAGNI? :P
<havenwood> aoeu: If you want a clickable API interface that doesn't use text code, maybe you're looking for a web browser?
<RubyPanther> That people at least attempt to identify the needs of the problem domain is certainly NOT what is wrong with the world. If you said the problem was that people assumed everything is just "a website" and ignored the business-dependent factors, then I'd agree.
<RubyPanther> Generic solutions are not suitable for building web apps. They are for building web clients, which is where REST gives a lot of gains. See also: semantic web
<aoeu> banister_: The person still has a lung and heart and nails. Why ignore it? You don't have to read these properties if you don't need to.
<aoeu> banister_: The key is that all people refer to the same thing when they say "person"
<banister_> aoeu becaues they're totally unnecessary to your business applicaiton and just add unnecessary complexity and bloat?
<havenwood> aoeu: bloat is bad
<havenwood> aoeu: complexity is bad
<RubyPanther> But the app building will need to map from the generic to the problem domain. Hiding from that in building the app guarantees suckiness.
Hanmac has quit [Ping timeout: 252 seconds]
<RubyPanther> buildre
<RubyPanther> builder
<benzrf> 04:26 < aoeu> banister_: The key is that all people refer to the same thing when they say "person"
<benzrf> aoeu: i disagree
<aoeu> RubyPanther: No no no. There will only be 1 website when this thing is going to be done properly. We don't need more than 1 anyway.
<havenwood> aoeu: the simplest thing that can possibly work is preferable to the most complicated thing that can possibly work
zoidfarb1 has joined #ruby
<RubyPanther> aoeu: Then you wouldn't benefit from generics
<havenwood> One website is enough. The web is bloated.
<havenwood> Okay...
<aoeu> RubyPanther: My goal is the semantic web.
<banister_> lol
<aoeu> APIs should be RDF.
<benzrf> :-O
<havenwood> aoeu: I really think you're looking for a web browser not a programming language.
<aoeu> havenwood: Complexity is forking the "person" class.
<zoidfarb1> Hey there, apologies if this a stupid question, but I'm new at Ruby. I'm getting this error trying to run some code from a Rails tutorial: undefined method `nill?' for nil:NilClass
marcdel has quit []
lethjakman has quit [Ping timeout: 258 seconds]
alem0lars has quit [Quit: alem0lars]
<havenwood> zoidfarb1: two 'l's
<zoidfarb1> d'oh
<zoidfarb1> *hangs head in shame*
<zoidfarb1> thanks!
<RubyPanther> aoeu: I'd have thought so from your first question, but it turned out you wanted something else, which is to build an app, and you're not trying to optimize for automated clients, you're trying to optimize so the app programmer doesn't have to know what the app does. You'll be in exactly the place where you can't build a semantic client because the app won't have glued things together
<aoeu> havenwood: A semantic browser.
<aoeu> A graph browser.
<havenwood> aoeu: Try Chrome.
<aoeu> With read-write support.
<aoeu> Browsers just display documents.
<havenwood> aoeu: Yes, you can submit forms.
phracker has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> aoeu: I'm not sure that words means what you think it means.
<RubyPanther> a "semantic browser" presumably would be an XML-consuming client
<RubyPanther> like a "MIB browser"
<benzrf> xml suga
<benzrf> *sugs
<havenwood> RubyPanther: Or maybe... an HTML5 consuming client, like a web browser.
<benzrf> aoeu: ever heard of REST
<benzrf> i think you might like it
<aoeu> RubyPanther: My real purpose is simple. To build an app/os/browser/whatever that can be used for anything. The last application. The only application. That's the goal. But for that, knowledge has to become generic.
<aoeu> No more arbitrary data modeling.
<benzrf> aoeu has been here before
<RubyPanther> havenwood: Well, "semantic web" is about clients, it is about automated clients being able to navigate
<havenwood> aoeu: Ruby isn't the best language to write a browser in.
<benzrf> im not sure theyre not a trole
<aoeu> benzrf: I know REST. I came here asking for a REST ORM.
<toretore> he was quite obviously trolling #rubyonrails
<benzrf> ORM?
<benzrf> in what sense
<benzrf> oic
<havenwood> aoeu: So you want to map objects to a relational database?
<aoeu> benzrf: What has been done before?
<havenwood> aoeu: what do you think an ORM is?
<aoeu> havenwood: I'm here because there are progarmmers. I'm not here because of Ruby.
<RubyPanther> I don't think he's a troll, I think he's a misguided yout with a "good idea"
<aoeu> toretore: I'm not trolling. I increase chances to get a reply.
MatthewsFace has joined #ruby
<benzrf> aoeu is one of those people who thinks the inner-platform effect is a good thing
<ra4king> what are good editors used for ruby?
<ra4king> I have notepad++ and sublime2 here on Windows
<havenwood> ra4king: What OS?
<aoeu> havenwood: No. I want to map objects so that it makes a graph. Then I want to build a UI that understands what should be displayed and fetch datafrom the graph automacically.
aesptux has quit []
<havenwood> ra4king: Sublime then.
<RubyPanther> I already built The Last Application.
<aoeu> Predicate-oriented UI.
<benzrf> ra4king: vim is always the best editor
<benzrf> :-)
<ra4king> naaahhhh
<havenwood> aoeu: Maybe a web browser plugin is what you're looking for. :P
<benzrf> ra4king: lazy
andrewlio has quit [Quit: Leaving.]
<ra4king> benzrf: I'm on windows anyhow
<aoeu> benzrf: A better inner-platform.
phracker has joined #ruby
<benzrf> aoeu: lol.
phracker has quit [Max SendQ exceeded]
<RubyPanther> It was great, the only problem was, it took twice as long to get the details right.
<benzrf> ra4king: then dont be
<benzrf> switch to a good OS
<benzrf> :-O
<aoeu> See the problem? People are still asking what's the best _text_ editor for Ruby. Is this some kind of a joke? Why are we still here, it's not 1980 anymore.
<ra4king> I wish I could use linux as my main OS, but gaming
Es0teric_ has quit [Quit: Computer has gone to sleep.]
<havenwood> aoeu: Postman or Advanced REST client for Chrome.
<benzrf> ra4king: what games do u play
<RubyPanther> Avoid details and porting your app will only take minutes anyways, regardless of your data
<aoeu> Graph-oriented UI is the future. Everything should be done through this.
phracker has joined #ruby
<ra4king> benzrf: mostly BF4
<havenwood> aoeu: Again, not Ruby.
<benzrf> aoeu: lel
<benzrf> ra4king: >not playing only pretentious indie hipster bullshit
<benzrf> ra4king: >2014
<benzrf> top lel
<ra4king> ...
<benzrf> ra4king: im being facetious dw
<aoeu> benzrf: I'm making a virtual-reality inside of reality. Of course the inner-platform effect occurs.
<ra4king> of course
dcunit3d has joined #ruby
<aoeu> havenwood: Fuck these shits. I know them. I don't want to write a single line of REST in my life again.
<aoeu> I stopped writing SQL. I must stop writing REST.
<havenwood> aoeu: I get it, you want to drag and drop not code.
Tentra has joined #ruby
<benzrf> aoeu: have you tried Wix
<toretore> you just don't understand man... it's all connected!!
<aoeu> havenwood: Has code to be text? No.
<aoeu> benzrf: What's Wix?
<benzrf> i was trolling u
<benzrf> its a Free Website Creator tm
<RubyPanther> GNU Emacs wasn't released until 1985, so if you stopped looking for the perfect editor in 1980 you'd be screwed.
zybi1 has quit [Remote host closed the connection]
<benzrf> RubyPanther: yeah, vim *did* come out after '80
<aoeu> Oh god.
<havenwood> aoeu: This is Ruby, code is text. The Unix way.
<benzrf> :^)
<aoeu> Emacs.
<aoeu> Only the kitchen sink is missing.
<toretore> you'd have to wait until 1991 actually
<aoeu> Vim was much superior.
<RubyPanther> was?
<benzrf> aoeu: hey now
<benzrf> youre talking with an Inferior Medium
<benzrf> stop ircing, god
Lutece has joined #ruby
<aoeu> havenwood: I don't click appspot.com links.
<benzrf> use brain melds already
<aoeu> RubyPanther: There are better things now.
<havenwood> aoeu: okay, here: http://goo.gl/We5xYM
<aoeu> benzrf: People still come here, for some reason. Hence why I'm here. I would be elsewhere if I could.
<havenwood> aoeu: Try that.
<RubyPanther> aoeu: you can keep your proprietary crap and GUI crutches
<aoeu> havenwood: that's for kids
Melpaws has joined #ruby
<aoeu> RubyPanther: Insulting my Microsoft tools?
<RubyPanther> The choices are: emacs, vim, proprietary crap, and IDE crap.
<RubyPanther> My advice, choose emacs or vim.
<benzrf> RubyPanther++, for once in my life
<aoeu> RubyPanther: That's cause you like pain and Ruby.
<aoeu> RubyPanther: Why don't you use a proper IDE?
<benzrf> aoeu: pls get out
<havenwood> Troll.
<benzrf> aoeu: go bug bret victor or something
<aoeu> benzrf: I'm a fan of Bret Victor
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<aoeu> benzrf: Is he on IRC?
<benzrf> no idea
<RubyPanther> aoeu: If you're really that fragile, emacs has pull-down menus for everything. I'm sure you can find whatever feature you need without getting a paper cut.
<aoeu> That's a shame his website is the opposite of everything he aims for.
<havenwood> aoeu: Yup, blockly is probably your best bet.
<RubyPanther> I assume by "proper IDE" you mean, "some tool that does a bunch of crap I don't understand and couldn't reproduce by hand if I had to or if I needed it down slightly different"
marr has joined #ruby
<RubyPanther> s/down/done/
<aoeu> havenwood: Blocky is what people thought visual programming was 20 years ago. It's lego mindstorm-ish.
<aoeu> RubyPanther: Yes. Visual Studio.
<havenwood> aoeu: Sounds like you're sold!
<benzrf> aoeu: troll pls go
<csmrfx> to me it sounds like someone needs to get laid
<RubyPanther> visual programming better be lego-ish, otherwise it failed at its only selling point
<toretore> it's like.. intellisense, but in 3d!! direct brain 2 visual basic integration
<aoeu> toretore: except there's no intellisence, you have to pick your block by hand and test if it fits
<aoeu> toretore: you can't just invent new shapes for every data type and expect people to try to make them fit together
<aoeu> there's more than strings and ints and bools in the world.
elementz has joined #ruby
<csmrfx> just use vim
<RubyPanther> I remember taking a VB class in college (I needed a summer credit before starting the CS program) and they actually made me redo the assignments using the GUI. I tried explaining that VB is actually just regular BASIC code, the "visual" part is an optional IDE, not part of the language... but it was taught by a CIS guy, not a CS guy
<aoeu> csmrfx: Where's intellisense. Where's refactoring. Where's one-click publish? Where's debugging?
sinkensabe has quit [Remote host closed the connection]
<csmrfx> aoeu: its there
<RubyPanther> intelli-what? Oh, tab completion... LOL
<aoeu> csmrfx: not as there as with VS
<csmrfx> if you not happy, you can even code em with ruby
<csmrfx> aoeu: you are mistaken
<RubyPanther> guess what, everybody has had that for... over a decade...
<aoeu> csmrfx: perhaps
<aoeu> RubyPanther: but it's different
<havenwood> aoeu: Intellisense. You crack me up.
<RubyPanther> named differently, yes
<csmrfx> but, since you are a troll, you dont care about what works?
<havenwood> we should probably stop feeding the troll
<RubyPanther> emacs knows what classes I have, what methods I have. Not that I use that feature, since I also know the APIs I'm using... I hope I do...
kukyakya has quit [Remote host closed the connection]
<benzrf> CIS?
<benzrf> whats CIS
<RubyPanther> Computer Information Systems
shvelo has joined #ruby
<RubyPanther> as in, a keyboard monkey specializing in "using applications"
VinDH has quit [Read error: Connection reset by peer]
<toretore> a word wizard
<RubyPanther> watch out, he's trained in access and he WILL embed a sucky db into your spreadsheet
<toretore> excel expert
<benzrf> aoeu: go look at http://bubble.is/ and stop poorly trolling us pls
<benzrf> *instead of
<toretore> powerpoint proficinado
<aoeu> benzrf: I'm not trolling. I'm actually giving blocky a shot.
<benzrf> k
<aoeu> benzrf: Solving FizzBuzz
julian-delphiki has joined #ruby
* csmrfx has a little private rofl
<havenwood> aoeu: try some blockly project euler: https://projecteuler.net/problems
bean has quit [Ping timeout: 252 seconds]
mehlah has quit [Quit: Leaving...]
jlast has quit [Remote host closed the connection]
jonahR has joined #ruby
marcdel has joined #ruby
Spleeze has quit [Quit: QUIT]
<benzrf> hmm, http://bubble.is/ actually looks kinda interesting
Bira has joined #ruby
<toretore> visual programming, now in your browser!
<toretore> how can it get any better?
<benzrf> toretore: =p
<toretore> two great technologies, together at last
<csmrfx> just click send
VinDH has joined #ruby
<benzrf> GUIs are sometimes a good idea m8
<toretore> gui != programming
<toretore> visual programming is a looooooooong way off from being viable
<toretore> it tries to simplify something that isn't simple
Spleeze has joined #ruby
<benzrf> :-o
atraylen has joined #ruby
<toretore> or, you will have all the same complexity, down to the lowest level, but now in the form of funny looking graphics
eka has joined #ruby
<benzrf> yes
<benzrf> that's definitely true
codecop has quit [Remote host closed the connection]
<benzrf> HOWEVER.
<Lutece> I'm going with this approach http://xkcd.com/1349/ ... for now
<toretore> and text is a much more succinct format for that
<csmrfx> I think the essence of the problem is abstraction
<benzrf> some kinds of repetitive code might be better to generate from a guilleiguaran_
<csmrfx> in a clever way
<benzrf> *gui
<benzrf> i.e. form validation and storage
<aoeu> havenwood: Block Project Euler? LOL. Is that a thing?
<csmrfx> if you can abstract away solutions, however complex, you are done
<csmrfx> thats why we use gems
<csmrfx> libs, macros...
bradhe has joined #ruby
<toretore> i don't know of a single programming problem i'd rather have solved with a gui
<csmrfx> gui layout
<arrubin> toretore: What about a non-developer?
Hanmac1 is now known as Hanmac
<toretore> non-developers aren't developers, hence they're not developing
<arrubin> toretore: Why must one be a developer to create software?
<toretore> trying to dumb down programming is not feasible
<toretore> because it's a hard problem
<benzrf> i find that GUIs are good for using without separate learning
<csmrfx> I think the keywords are there
<csmrfx> programmers solve hard problems
<benzrf> it's usually not hard to get the hang of a GUI program with experimentation
<toretore> it's inherently complex and there's as of now nothing to do about that
<benzrf> but CLI tools usually require more reading of man pages
<csmrfx> developers use the solutions from programmers to wire together apps
<csmrfx> simple as that
<benzrf> OTOH CLI tools are also more powerful if you put the time in
<toretore> developers are programmers
<benzrf> so it's a matter of how much power you want/need
<csmrfx> nope
Bira has quit [Remote host closed the connection]
<benzrf> and how much time youre willing to spend
Melpaws has quit [Ping timeout: 252 seconds]
<toretore> if you're not a programmer, you're not a software developer
<csmrfx> developers would like to *think* they are programmers
Xeago has joined #ruby
Royalb16 has joined #ruby
vekfautles has left #ruby [#ruby]
GlenK has joined #ruby
<csmrfx> the difference? a couple of lisp parsers worth
<arrubin> toretore: So there is no place for non-developers to model data and create basic forms to access it without involving a developer?
<toretore> access does that
jxf has joined #ruby
<toretore> and it's very limited
Royalb15 has quit [Ping timeout: 258 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<arrubin> Quite a lot of possible with Access actually, but MS seems to have dropped the ball with the web.
<toretore> if you can drag some boxes around and wire them up to interact with a db, good for you, but it's not programming and it's not software development
Melpaws has joined #ruby
Advocation has joined #ruby
<arrubin> s/of/is/
<toretore> but to get to the real power of access you'd have to drop down to the level where you need to be a programmer
mengu__ has quit [Remote host closed the connection]
<arrubin> toretore: How much of that is due to the fact that MS has not done much with it for the last decade?
mikepack has joined #ruby
<toretore> not much i'd say. it's still a very difficult "problem"
<toretore> programming is difficult, and that's just the way it is, for now
<arrubin> Is it?
<toretore> prove me wrong?
<arrubin> How much of the average Rails app really needs to be created by a developer?
yacks has quit [Ping timeout: 264 seconds]
<centrx> The parts that do things
<arrubin> Data modeling certainly does not in most cases.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<toretore> you won't get far with rails generators, plugins and scaffolding
<toretore> that was the promise a lot of people saw, and they were duely disappointed to find out it's not that easy
<arrubin> toretore: That seems to be due to a lack of tools more than anything.
<toretore> and that's why we have a whole bunch of shitty rails devs ;)
<arrubin> Form builders have existed for decades that could handle many of the use cases of views.
Advocation has quit [Client Quit]
<toretore> arrubin: if it were that easy, someone would've made it
pu22l3r has quit [Remote host closed the connection]
<arrubin> toretore: Would they?
<toretore> form building is not development
sepp2k has joined #ruby
<arrubin> toretore: Many seem opposed to providing such things.
<toretore> which is sensible
<toretore> it's false hope
<toretore> you can't program without being a programmer
<arrubin> toretore: It is one aspect of what would be needed to allow non-developers to build basic applications without a developer.
mikepack has quit [Ping timeout: 258 seconds]
<toretore> what would such a non-developer do when their site gains attention and slows to a crawl?
<toretore> adjust some levers to run more instances?
pu22l3r has joined #ruby
<toretore> it's not that easy
<toretore> then they want to integrate with 3rd party services
<arrubin> toretore: I see such a tool being used for small internal apps more than anything.
<arrubin> Not the next Twitter.
<toretore> "oh, we have a plugin for that!"
<toretore> sure, it's doable, but it's not going to be the norm for a long time still
<arrubin> There does not seem to be any attempt to make progress.
<arrubin> I think that a lot of it is that developers do not really want to put themselves out of jobs.
<toretore> programming still requires programmers who have spent many years learning their trade and getting the necessary experience
drizz has joined #ruby
<toretore> it's been tried lots of times
<arrubin> toretore: Does it? That does not seem to be what goes on in most programming today.
<arrubin> Most programming today seems to be barely competent people gluing together API calls.
<toretore> no, unfortunately not
Royalb16 is now known as Royalb15
<shevy> I feel you guys are hating on PHP again
<toretore> they will get 50% of the way, then they're stuck
<shevy> centrx say something
<toretore> i've seen it a hundred times
<arrubin> shevy: No one mentioned that heresy.
<toretore> then some poor bastard will have to fix their mess
claymore has quit [Quit: Leaving]
<arrubin> toretore: Is there even something that is similar to Access in one of the popular dynamic languages/
<arrubin> ?
Kisten has quit []
<arrubin> I know that there are a few tools like ZOHO Creator and Oracle Express.
<toretore> there has been attempts
zoidfarb1 has left #ruby [#ruby]
<toretore> all predictably failed
<toretore> it's not super difficult to rebuild access
<arrubin> Why is their failure predictable? MS Access did not fail.
<arrubin> MS has mostly failed to bring it to the web though.
<arrubin> And there are dumbed down apps like Wufoo that are very successful.
<toretore> there are lots of web app generators
<toretore> their dumbed down-ness is why they're successful
<toretore> i'm not saying that software development will never be sufficiently commoditized to be truly plug and play, but it's a long way from now still
<toretore> and the people who used to be progammers will find jobs in new fields where expertise is needed
drizz has quit [Remote host closed the connection]
shvelo has quit [Quit: Leaving]
<arrubin> I am not claiming that it is an easy problem, but it does not seem like we are even attempting to make progress.
<arrubin> No one seems to have moved past what Access was capable of decades ago.
<arrubin> And most tools are even more basic.
<toretore> it's a daunting task
<benzrf> i wonder
drizz has joined #ruby
<benzrf> smalltalk seems to me to seem sort of well-lended to visual programming
<toretore> you see lots of development in ai stuff like what google does, which could be a prerequisite
<arrubin> toretore: I do not think that competent developers would need to find new jobs. They would build the tools used by others.
<shevy> benzrf yet it failed
<arrubin> What we would lose is many of the people who do not belong in the field.
<benzrf> shevy: because it is a walled gardne
<benzrf> *garden
<benzrf> of sorts
<shevy> yeah
<benzrf> keep in mind how ruby looks compared to ASM though
<shevy> a prison with a pretty garden on the outside
matchaw has quit [Ping timeout: 240 seconds]
<toretore> arrubin: the problem with "dumbing down" programming is that it's a leaky abstraction
matchaw has joined #ruby
dcunit3d has quit [Quit: Lost terminal]
alex88 has quit [Quit: Leaving...]
<toretore> you get these tools that aren't abstracted in a way that they are easily composable
<toretore> meh, now i'm just talking gibberish
<shevy> I would not notice a difference toretore
pu22l3r has quit [Remote host closed the connection]
<toretore> let's talk about how tdd is dead instead
<shevy> but arrubin seems to have stopped talking altogether
<arrubin> toretore: I do not expect a tool to allow someone to build Wolfram Alpha. I do question why an expensive (in the US at least) developer is required for many Rails CRUD apps.
<toretore> sure
<toretore> it's a good point
<toretore> the answer is, i think, that "simple crud apps" never are
<toretore> or they stop to be very fast
Cache_Money has quit [Quit: Cache_Money]
jlast has joined #ruby
<toretore> "oh, and if you could integrate with this payment processor too, that'd be great"
<toretore> "and we need an audit system"
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arrubin> I do believe that common things, like payment processing, could be handled by plug-ins.
<toretore> and they are, in stuff like wordpress and that thing radar works on
Tentra has quit [Ping timeout: 240 seconds]
<toretore> spree
<arrubin> I also do not expect these apps to be built by the secretary or something.
postmodern has joined #ruby
jlast has quit [Read error: No route to host]
meatherly has joined #ruby
kaspergr_ has joined #ruby
jlast has joined #ruby
<toretore> there are lots and lots of people specializing in building these kinds of apps.. spree, shopify, joomla, wordpress
kaspergrubbe has quit [Read error: Connection reset by peer]
<toretore> it's a thriving economy
AlSquire has quit [Quit: This computer has gone to sleep]
kaspergrubbe has joined #ruby
__class__ has quit [Ping timeout: 276 seconds]
coffeina has joined #ruby
<toretore> but, das ist nicht programmierung
<shevy> ack, german invasion!
<arrubin> The end result is what is important.
<arrubin> Not whether someone is performing a specific activity to make it happen.
<shevy> that's my slogan when I have to do big business on toilet
<toretore> of course
<GlenK> so Array.index isn't working like I thought it should. I have an array of integers. if I do something like "data.index(33)" it's not spitting out the position of 33 in the array. any ideas where I'm going wrong?
<toretore> GlenK: let's see the code
<GlenK> k
<toretore> then, explain what you expect and what you get
matchaw has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 240 seconds]
kaspergr_ has quit [Ping timeout: 264 seconds]
<RubyPanther> >> (0..99).to_a.index(33)
<eval-in__> RubyPanther => 33 (https://eval.in/153163)
Bira has joined #ruby
<RubyPanther> GlenK: I'd give -350 odds that you're off-by-one
SegFaultAX has quit [Excess Flood]
<benzrf> there are only 2 hard things in computer science:
<benzrf> cache invalidation, naming things,
<benzrf> and off by one errors.
<toretore> hah
<toretore> it actually is off by one
SegFaultAX has joined #ruby
<RubyPanther> I don't read code to find the bugs, I just "feel it"
<benzrf> k
<toretore> GlenK: do you know what .each does?
Bira_ has joined #ruby
<benzrf> we all do m8
<benzrf> its a product of xperience
<GlenK> ah crap. that was left over from some other stuff. darn it. yeah, the +1. duh.
kyb3r_ has joined #ruby
<RubyPanther> benzrf: Most of these people even know how to use a debugger! lol
<benzrf> i havent used a debugger in ages p:
<benzrf> well
RaptorJesus has joined #ruby
<GlenK> thanks for the help.
<benzrf> i tried to use one for ruby fairly recently
<benzrf> but it suckkkkked
<GlenK> toretore: why do you ask. I mean, I thought I did somewhat
<benzrf> i mostly just intuit the bug or find it by dicking around in the REPL
<benzrf> good lord thank god for REPLs
<toretore> i tried a debugger once. it didn't debug anything :(
<benzrf> declarative debugging looks very interesting
<RubyPanther> last time I used a debugger: the "Ruby gdb Wars" of 2005
<benzrf> im sort of in the middle of procrastinating on reading some guy's thesis on declarative debugging
<toretore> GlenK: yeah, i just thought maybe you thought the yielded value was the index, not the element
<benzrf> in haskell
<benzrf> basically it creates a graph of reductions and stuff
agjacome has quit [Ping timeout: 255 seconds]
<benzrf> then it uses some kind of correctness oracle, such as user input
Bira has quit [Ping timeout: 252 seconds]
<benzrf> to isolate which reduction introduced an incorrect equality
<benzrf> it's all very fascinating @_@
<benzrf> from what i read it looked kind of like git-bisect but on reductions of an evaluation tree
<RubyPanther> benzrf: That's the kind of crap St. Wall was talking about when he warned about haskell
<benzrf> RubyPanther: huh?
Bira_ has quit [Ping timeout: 240 seconds]
frobrob has joined #ruby
<RubyPanther> "by geniuses for geniuses" which is something you need to know "if you have to hire somebody to work on it"
<benzrf> in what way did i demonstrate the veracity of that admonition
<benzrf> </deliberatewordiness>
Solnse has joined #ruby
<shevy> </sitting_in_starbucks_philosophizing_again>
<RubyPanther> It wasn't your wordsmithing, it was your fascination where there should have been a "WTF"
dsdeiz has quit [Ping timeout: 240 seconds]
__class__ has joined #ruby
kirun has quit [Quit: Client exiting]
roolo has joined #ruby
<benzrf> RubyPanther: how is that a WTF
<benzrf> you take the sequential reductions of an expression to its end result and do a git-bisect-like search on it for the bug
frobrob has quit [Ping timeout: 240 seconds]
<benzrf> what is wtf about that
<RubyPanther> benzrf: fascination is a property of the human, not the code. So the WTF would be being said by the programmer. I did not say the code itself was "a WTF." Note the position of the letter "a" compared to the quotes above.
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
<benzrf> ok, so why would a non genius go wtf
AlexRussia has joined #ruby
gigetoo has quit [Remote host closed the connection]
<RubyPanther> They'd go, "WTF, why would I want to spend my time worrying about a problem like this?! I'm going to get back to writing syntax errors, isolating reductions has nothing to do with 99% of the problems I solve, but here I am debugging it."
gigetoo has joined #ruby
<RubyPanther> THe whole part of having an extra problem to solve being "fascinating"
<benzrf> ummm
<benzrf> isolating reductions is literally the technical term for debugging.
<benzrf> well
<benzrf> isolating erroneous reductions
<RubyPanther> I'm sure it is. I'm also sure I enjoyed writing expressive crap in Perl, too. Debugging it is a waste of time though, even if once I figure out what I wrote I find it a fascinating solution.
<benzrf> you feed in an expression, the graph it represents is reduced to a result
<benzrf> the result is wrong
<benzrf> therefore you want to find the reduction that introduced an unexpected result
<benzrf> simples
<benzrf> jjjjjjj
<benzrf> gah i need to stop doing that
abstrakt has left #ruby ["Leaving"]
LexicalScope has quit [Ping timeout: 252 seconds]
andrewlio has joined #ruby
<RubyPanther> what, talking like a valley girl? Its kinda cute
__class__ has quit [Ping timeout: 252 seconds]
<benzrf> no, holding down j and then pressing ctrl
chrisja has joined #ruby
danjordan has joined #ruby
<shevy> is that because you are using vim
<benzrf> i try to press ctrlw to go back a word
<benzrf> *delete a word
<benzrf> but the ctrl+j hits before i press w
<benzrf> =[
<benzrf> jjjjjjjjjjjjjjj
nanoyak has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Bira has joined #ruby
pu22l3r has joined #ruby
Dovid has quit [Ping timeout: 240 seconds]
t0rc has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
danjordan has quit [Quit: danjordan]
Xeago has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
__class__ has joined #ruby
bakflash has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
DaniG2k has joined #ruby
<DaniG2k> hey guys how would I rewrite the following using reduce: inject(0){ |acc, i| acc + (i - mean)**2 }
danjordan has joined #ruby
orthos has quit [Quit: orthos]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<havenwood> DaniG2k: reduce is an alias for inject
<DaniG2k> havenwood: yeah I know but I'm just curious as to how to rewrite that
<shevy> hehe
<DaniG2k> i dont think i understand how to use reduce
<DaniG2k> inject takes a block whereas reduce takes a symbol
mostlybadfly has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<apeiros> DaniG2k: um, what about "it's an alias" did you not understand?
<apeiros> it's *the same thing*. and no, there are no differences in what they take.
marcdel has quit []
Megtastique has quit []
shime has quit [Ping timeout: 240 seconds]
mateu has quit [Ping timeout: 252 seconds]
jimbow has joined #ruby
<jimbow> has anyone completed the test first ruby?
elementz has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
__class__ has quit [Read error: Connection reset by peer]
DaniG2k has quit [*.net *.split]
chrisja has quit [*.net *.split]
GlenK has quit [*.net *.split]
atraylen has quit [*.net *.split]
motoford has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
dopie has quit [*.net *.split]
r0ok has quit [*.net *.split]
Matip has quit [*.net *.split]
amclain has quit [*.net *.split]
davedev24 has quit [*.net *.split]
okinomo has quit [*.net *.split]
dayepa1 has quit [*.net *.split]
ValicekB has quit [*.net *.split]
CodeBunny has quit [*.net *.split]
Kamilion has quit [*.net *.split]
rixius has quit [*.net *.split]
renier has quit [*.net *.split]
mg^afk has quit [*.net *.split]
Companion has quit [*.net *.split]
three18ti has quit [*.net *.split]
Morrolan has quit [*.net *.split]
madhatter has quit [*.net *.split]
trhodes_ has quit [*.net *.split]
ker2x has quit [*.net *.split]
cwc has quit [*.net *.split]
helpa has quit [*.net *.split]
axisys has quit [*.net *.split]
contradictioned has quit [*.net *.split]
linduxed has quit [*.net *.split]
edwardly has quit [*.net *.split]
Tamae has quit [*.net *.split]
nuck has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
gsvolt has quit [*.net *.split]
stnly has quit [*.net *.split]
camilasann has quit [*.net *.split]
rodasc has quit [*.net *.split]
gwb3 has quit [*.net *.split]
oso|away has quit [*.net *.split]
jeekl has quit [*.net *.split]
daed has quit [*.net *.split]
dpaulus has quit [*.net *.split]
minecoins has quit [*.net *.split]
sente has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
Elfix has quit [*.net *.split]
nopc0de has quit [*.net *.split]
brunto has quit [*.net *.split]
dazeddev has quit [*.net *.split]
asuka has quit [*.net *.split]
diegok has quit [*.net *.split]
ji0n has quit [*.net *.split]
sfiggins has quit [*.net *.split]
rs0 has quit [*.net *.split]
Gate has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Kovensky has quit [*.net *.split]
dandrade has quit [*.net *.split]
ponyfleisch has quit [*.net *.split]
danjordan has quit [*.net *.split]
gigetoo has quit [*.net *.split]
postmodern has quit [*.net *.split]
mengu has quit [*.net *.split]
Arkaniad has quit [*.net *.split]
upsell5 has quit [*.net *.split]
Hobogrammer has quit [*.net *.split]
jack_rabbit has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
lkba has quit [*.net *.split]
naw has quit [*.net *.split]
vali has quit [*.net *.split]
s2013 has quit [*.net *.split]
gener1c has quit [*.net *.split]
ziyadb_ has quit [*.net *.split]
SJr has quit [*.net *.split]
bbloom has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
ta_ has quit [*.net *.split]
Klumben has quit [*.net *.split]
Adran has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
LACP has quit [*.net *.split]
dyreshark has quit [*.net *.split]
pagios has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
ws2k3 has quit [*.net *.split]
kartouch has quit [*.net *.split]
zenojis has quit [*.net *.split]
Hien has quit [*.net *.split]
Norrin has quit [*.net *.split]
epochwolf has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
imkmf has quit [*.net *.split]
jenrzzz has quit [*.net *.split]
rurban_ has quit [*.net *.split]
lfox has quit [*.net *.split]
Nightmare has quit [*.net *.split]
aetaric has quit [*.net *.split]
juni0r has quit [*.net *.split]
intnsity has quit [*.net *.split]
sfr^ has quit [*.net *.split]
hostess has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
bedouin has quit [*.net *.split]
mjc_ has quit [*.net *.split]
Tranquility has quit [*.net *.split]
Tritania has quit [*.net *.split]
headius has quit [*.net *.split]
Radar has quit [*.net *.split]
rotor has quit [*.net *.split]
micah`_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
_izz_ has quit [*.net *.split]
joelteon has quit [*.net *.split]
teejar has quit [*.net *.split]
bauruine has quit [*.net *.split]
thoraxe has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
PhilK has quit [*.net *.split]
dmarr has quit [*.net *.split]
seich has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
emdub_ has quit [*.net *.split]
_5kg has quit [*.net *.split]
shwouchk has quit [*.net *.split]
wwalker has quit [*.net *.split]
stopbit has quit [*.net *.split]
testol has quit [*.net *.split]
paul_k has quit [*.net *.split]
Roa has quit [*.net *.split]
moshee has quit [*.net *.split]
Jelco has quit [*.net *.split]
_blackjid has quit [*.net *.split]
prdx has quit [*.net *.split]
Snickers has quit [*.net *.split]
n88 has quit [*.net *.split]
flori has quit [*.net *.split]
mist has quit [*.net *.split]
Liothen has quit [*.net *.split]
kenichi has quit [*.net *.split]
oz has quit [*.net *.split]
mjmac has quit [*.net *.split]
manacit has quit [*.net *.split]
Hanmac has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
papercode has quit [*.net *.split]
bah_ has quit [*.net *.split]
happytux has quit [*.net *.split]
bijumon has quit [*.net *.split]
alexju has quit [*.net *.split]
moritzs has quit [*.net *.split]
parduse has quit [*.net *.split]
SOLID000 has quit [*.net *.split]
Asher has quit [*.net *.split]
KanKava has quit [*.net *.split]
weeb1e has quit [*.net *.split]
nomadic has quit [*.net *.split]
replay_ has quit [*.net *.split]
troyready has quit [*.net *.split]
nevans has quit [*.net *.split]
yokel has quit [*.net *.split]
yubrew has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
chihhsin_wego has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
jeffreybaird has quit [*.net *.split]
mroth has quit [*.net *.split]
cmaxw_____ has quit [*.net *.split]
natewalck has quit [*.net *.split]
kapowaz has quit [*.net *.split]
dreamchaser has quit [*.net *.split]
Kruppe has quit [*.net *.split]
drago777 has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
shevy has quit [*.net *.split]
willb1 has quit [*.net *.split]
go|dfish has quit [*.net *.split]
lagweezle has quit [*.net *.split]
qhartman has quit [*.net *.split]
spacemud has quit [*.net *.split]
xiphias has quit [*.net *.split]
Royalb15 has quit [*.net *.split]
julian-delphiki has quit [*.net *.split]
VinDH has quit [*.net *.split]
rm_ has quit [*.net *.split]
Atrumx has quit [*.net *.split]
frosgy has quit [*.net *.split]
brontos has quit [*.net *.split]
VTLob has quit [*.net *.split]
centrx has quit [*.net *.split]
Brian520 has quit [*.net *.split]
nfk has quit [*.net *.split]
george2 has quit [*.net *.split]
shenkz has quit [*.net *.split]
redondos has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Xuerian has quit [*.net *.split]
jwang has quit [*.net *.split]
rostam has quit [*.net *.split]
shtirlic has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
machty has quit [*.net *.split]
vcoinminer___ has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
zrl has quit [*.net *.split]
dnyy has quit [*.net *.split]
aef has quit [*.net *.split]
froy has quit [*.net *.split]
bline79 has quit [*.net *.split]
thoolihan has quit [*.net *.split]
sarlalian has quit [*.net *.split]
blenny has quit [*.net *.split]
Tarential has quit [*.net *.split]
markour has quit [*.net *.split]
ptierno has quit [*.net *.split]
hairyhenderson has quit [*.net *.split]
bsutt_ has quit [*.net *.split]
Killerkeksdose_ has quit [*.net *.split]
xm_ has quit [*.net *.split]
Sthebig has quit [*.net *.split]
jayne has quit [*.net *.split]
ec has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
davidcelis has quit [*.net *.split]
ping_pong has quit [*.net *.split]
Rubeh_ has quit [*.net *.split]
camt has quit [*.net *.split]
chihhsin has quit [*.net *.split]
Zespre has quit [*.net *.split]
gstamp has quit [*.net *.split]
closer has quit [*.net *.split]
eshy has quit [*.net *.split]
Bira has joined #ruby
zz_karupa has quit [*.net *.split]
cjsarette has quit [*.net *.split]
kitak has quit [*.net *.split]
simono has joined #ruby
noob101 has joined #ruby
<noob101> I have a question.
yokel has joined #ruby
<noob101> How do I keep track of the number of elements in an array. Example, deck = [[Queen, 1], [Queen, 2]] <- How do I keep in track of the elements or what method do I use to tell me how many elements I have?
<jhass> .size
<noob101> Thank you jhass. I will try that.
<jhass> or .count to count specific kinds
kilk_ has quit [Quit: kilk_]
Rainicorn has quit [Ping timeout: 252 seconds]
<noob101> what is the difference between #size and #count?
<noob101> jhass:
<jhass> what I just said
<csmrfx> noob101: install ri
aoeu has quit [Ping timeout: 240 seconds]
<csmrfx> you need ri
<csmrfx> .g ruby ri
<noob101> csmrfx: what is ri?
rcs has quit [Ping timeout: 252 seconds]
<csmrfx> noob101: what is google?
nfk has joined #ruby
<jhass> read through the Array class and the Enumerable module, like 50% of Rubys power is in these you should at least vaguely know what's there
<csmrfx> noob101: you may already have ri installed with your rube
<csmrfx> *ruby
__class__ has joined #ruby
Bira has quit [Ping timeout: 276 seconds]
<noob101> csmrfx: Your help isn't needed for me, thank you for he help I would rather have jhass help me though. Thank you once again.
vjt_ has quit [Ping timeout: 265 seconds]
vjt has joined #ruby
<csmrfx> noob101: I dont care
<csmrfx> noob101: you need ri
hairyhenderson has joined #ruby
<csmrfx> noob101: install ri
bsutt has joined #ruby
xm has joined #ruby
Martxel_ has quit [Quit: .]
<csmrfx> noob101: have you installed ri?
mateu has joined #ruby
Rubeh has joined #ruby
chrisja has joined #ruby
nwkr has joined #ruby
gigetoo has joined #ruby
parduse has joined #ruby
GlenK has joined #ruby
s2013 has joined #ruby
julian-delphiki has joined #ruby
Royalb15 has joined #ruby
Hobogrammer has joined #ruby
VTLob has joined #ruby
Dreamer3 has joined #ruby
rm_ has joined #ruby
lkba has joined #ruby
brontos has joined #ruby
SecretAg1nt has joined #ruby
naw has joined #ruby
papercode has joined #ruby
kaichanvong has joined #ruby
amclain has joined #ruby
r0ok has joined #ruby
upsell5 has joined #ruby
Matip has joined #ruby
Hanmac has joined #ruby
alexju has joined #ruby
happytux has joined #ruby
centrx has joined #ruby
atraylen has joined #ruby
frosgy has joined #ruby
mateu_ has joined #ruby
teddyp1cker has joined #ruby
dopie has joined #ruby
bijumon has joined #ruby
Klumben has joined #ruby
vali has joined #ruby
yfeldblum has joined #ruby
Arkaniad has joined #ruby
VinDH has joined #ruby
postmodern has joined #ruby
motoford has joined #ruby
bah_ has joined #ruby
jack_rabbit has joined #ruby
Atrumx has joined #ruby
17SAAFMA4 has joined #ruby
kitak has joined #ruby
dandrade has joined #ruby
ponyfleisch has joined #ruby
minecoins has joined #ruby
nevans has joined #ruby
rs0 has joined #ruby
ziyadb_ has joined #ruby
sente has joined #ruby
brunto has joined #ruby
redondos has joined #ruby
Xuerian has joined #ruby
SOLID000 has joined #ruby
replay_ has joined #ruby
Kamilion has joined #ruby
edwardly has joined #ruby
Brian520 has joined #ruby
Sp4rKy has joined #ruby
madhatter has joined #ruby
davedev24 has joined #ruby
okinomo has joined #ruby
gwb3 has joined #ruby
Morrolan has joined #ruby
cjsarette has joined #ruby
Kovensky has joined #ruby
kenichi has joined #ruby
Companion has joined #ruby
nopc0de has joined #ruby
dayepa1 has joined #ruby
ji0n has joined #ruby
asuka has joined #ruby
rixius has joined #ruby
gsvolt has joined #ruby
george2 has joined #ruby
mist has joined #ruby
daed has joined #ruby
cwc has joined #ruby
moritzs has joined #ruby
flori has joined #ruby
Liothen has joined #ruby
Gate has joined #ruby
DarkFoxDK has joined #ruby
renier has joined #ruby
wwalker has joined #ruby
helpa has joined #ruby
yosafbridge has joined #ruby
manacit has joined #ruby
PhilK has joined #ruby
gstamp has joined #ruby
emdub_ has joined #ruby
troyready has joined #ruby
_blackjid has joined #ruby
_5kg has joined #ruby
diegok has joined #ruby
moshee has joined #ruby
paul_k has joined #ruby
_izz_ has joined #ruby
shwouchk has joined #ruby
thejoecarroll has joined #ruby
nomadic has joined #ruby
SJr has joined #ruby
contradictioned has joined #ruby
Adran has joined #ruby
markour has joined #ruby
three18ti has joined #ruby
oz has joined #ruby
jonathanwallace has joined #ruby
Drakevr has joined #ruby
wldcordeiro has joined #ruby
rotor has joined #ruby
Jelco has joined #ruby
mjmac has joined #ruby
stopbit has joined #ruby
shenkz has joined #ruby
bedouin has joined #ruby
thoraxe has joined #ruby
stnly has joined #ruby
headius has joined #ruby
teejar has joined #ruby
seich has joined #ruby
ta_ has joined #ruby
dmarr has joined #ruby
zz_jrhorn424 has joined #ruby
Tamae has joined #ruby
trhodes_ has joined #ruby
ker2x has joined #ruby
Tranquility has joined #ruby
oso|away has joined #ruby
Radar has joined #ruby
weeb1e has joined #ruby
dazeddev has joined #ruby
Tritania has joined #ruby
Apocalypse has joined #ruby
mjc_ has joined #ruby
rodasc has joined #ruby
micah`_ has joined #ruby
jeekl has joined #ruby
camilasann has joined #ruby
Asher has joined #ruby
Elfix has joined #ruby
n88 has joined #ruby
mg^afk has joined #ruby
nuck has joined #ruby
linduxed has joined #ruby
axisys has joined #ruby
dpaulus has joined #ruby
sfiggins has joined #ruby
ahuman has joined #ruby
prdx has joined #ruby
Snickers has joined #ruby
bbloom has joined #ruby
KanKava has joined #ruby
testol has joined #ruby
gener1c has joined #ruby
Roa has joined #ruby
bauruine has joined #ruby
CodeBunny has joined #ruby
Nowaker has joined #ruby
joelteon has joined #ruby
johnhamelink has joined #ruby
sfr^ has joined #ruby
intnsity has joined #ruby
rurban_ has joined #ruby
Norrin has joined #ruby
juni0r has joined #ruby
hostess has joined #ruby
Nightmare has joined #ruby
jenrzzz has joined #ruby
dyreshark has joined #ruby
LACP has joined #ruby
Hien has joined #ruby
artgoeshere has joined #ruby
pagios has joined #ruby
jwang has joined #ruby
kartouch has joined #ruby
bline79 has joined #ruby
epochwolf has joined #ruby
MissionCritical has joined #ruby
imkmf has joined #ruby
rostam has joined #ruby
bpgoldsb has joined #ruby
chihhsin_wego has joined #ruby
ws2k3 has joined #ruby
yubrew has joined #ruby
markmarkmark has joined #ruby
mroth has joined #ruby
aetaric has joined #ruby
machty has joined #ruby
zenojis has joined #ruby
lfox has joined #ruby
jeffreybaird has joined #ruby
shtirlic has joined #ruby
natewalck has joined #ruby
zrl has joined #ruby
andrewstewart has joined #ruby
cjk101010 has joined #ruby
dnyy has joined #ruby
aef has joined #ruby
cmaxw_____ has joined #ruby
kapowaz has joined #ruby
froy has joined #ruby
dreamchaser has joined #ruby
chihhsin has joined #ruby
vcoinminer___ has joined #ruby
sarlalian has joined #ruby
thoolihan has joined #ruby
lagweezle has joined #ruby
Kruppe has joined #ruby
Tarential has joined #ruby
drago777 has joined #ruby
closer has joined #ruby
JZTech101 has joined #ruby
blenny has joined #ruby
shevy has joined #ruby
go|dfish has joined #ruby
willb1 has joined #ruby
ptierno has joined #ruby
17SAACR9Y has joined #ruby
bsutt_ has joined #ruby
Killerkeksdose_ has joined #ruby
Sthebig has joined #ruby
xm_ has joined #ruby
qhartman has joined #ruby
xiphias has joined #ruby
jayne has joined #ruby
spacemud has joined #ruby
SecretAgent has joined #ruby
ec has joined #ruby
davidcelis has joined #ruby
ping_pong has joined #ruby
Rubeh_ has joined #ruby
Zespre has joined #ruby
camt has joined #ruby
zz_karupa has joined #ruby
eshy has joined #ruby
Olipro has quit [Max SendQ exceeded]
bline79_ has joined #ruby
pu22l3r has joined #ruby
ec_ has joined #ruby
ptierno_ has joined #ruby
<noob101> jhass: I used both the methods in irb and it they both gave me the same output.
anekos has quit [Ping timeout: 252 seconds]
<jhass> ^ get some kind of documentation
JZTech101 has quit [Max SendQ exceeded]
<jhass> rtfm
mateu_ has quit [Write error: Broken pipe]
ec_ has quit [Max SendQ exceeded]
Klumben has quit [Max SendQ exceeded]
<noob101> #size and #count
SecretAgent has quit [Write error: Broken pipe]
bsutt_ has quit [Write error: Broken pipe]
xm_ has quit [Write error: Broken pipe]
Rubeh_ has quit [Write error: Broken pipe]
Nowaker has quit [Write error: Broken pipe]
17SAACR9Y has quit [Write error: Broken pipe]
VTLob has quit [Quit: VTLob]
JZTech101 has joined #ruby
anekos has joined #ruby
redondos has quit [Excess Flood]
teddyp1cker has quit [Ping timeout: 605 seconds]
17SAAFMA4 has quit [Remote host closed the connection]
parduse is now known as Guest42916
SegFaultAX has quit [Excess Flood]
Lutece has quit [Ping timeout: 272 seconds]
<noob101> hi
<shevy> noob101 let's test
redondos has joined #ruby
<shevy> >> "abc".size
aef_ has joined #ruby
<eval-in__> shevy => 3 (https://eval.in/153164)
<noob101> Hi shevy! Yes, can you help me.
<shevy> >> "abcabc".count 'a'
<eval-in__> shevy => 2 (https://eval.in/153165)
sski has joined #ruby
<shevy> I did not write anything about help, only about test ;)
<csmrfx> noob101: looks like you cannot be helped, only spoon-fed
<csmrfx> noob101: you are not willing to help yourself
<csmrfx> noob101: you must be willing to help yourself, first!
SegFaultAX has joined #ruby
EatMulti has left #ruby [#ruby]
<csmrfx> now
Klumben has joined #ruby
<noob101> shevy why is it when you did .count it gave back 2?
<csmrfx> if you install ri, and use it, all your questions are answered there - also the same for any other ruby method
Dovid has joined #ruby
Royalb15 has quit [Max SendQ exceeded]
MissionCritical has quit [Max SendQ exceeded]
aef has quit [Write error: Broken pipe]
<shevy> noob101 you need to look at the code, what code gave back 2?
bline79 has quit [Write error: Broken pipe]
camt has quit [Write error: Connection reset by peer]
ptierno has quit [Write error: Broken pipe]
ec has quit [Write error: Connection reset by peer]
rostam has quit [Excess Flood]
Guest42916 has quit [Ping timeout: 240 seconds]
zxq9 has quit [Remote host closed the connection]
<noob101> Oh there was two 'a's got it.
<shevy> yeah
<shevy> ruby is almost like simple english
zxq9 has joined #ruby
Sthebig has quit [Excess Flood]
shenkz has quit [Excess Flood]
Tarential has quit [Excess Flood]
rcs has joined #ruby
Royalb15 has joined #ruby
Sthebig has joined #ruby
Tarential has joined #ruby
rostam has joined #ruby
<shevy> you just need to get the basic vocabulary right once, then you can proceed to speak in a more complicated way with ruby
WishBoy has quit [Ping timeout: 276 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
ec has joined #ruby
jlast has joined #ruby
shenkz has joined #ruby
BWStearn1 has quit [Ping timeout: 240 seconds]
gstamp has quit [Ping timeout: 256 seconds]
camt has joined #ruby
<jhass> noob101: come here if you have trouble understanding what the docs say or need more examples, but show you did invest a little bit of effort first
<noob101> Oh, ri stands for ruby interpreter. Yeah I have that.
Xeago has joined #ruby
<csmrfx> ri rocks the docs
<noob101> jhass: Ok.
BWStearn1 has joined #ruby
<apeiros> no, ri is ruby information
<noob101> jhass: thanks
<apeiros> it's the doc reading tool
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
jhass is now known as jhass|off
<noob101> jhass: pry-doc, I should install that? It would help me with commands and stuff right?
<benzrf> its coo
rm_ has quit [Remote host closed the connection]
<csmrfx> hehe pry may be bit too much for you, noob101
<noob101> what is it?
<csmrfx> what is google?
ValicekB has joined #ruby
WishBoy has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<csmrfx> good luck!
aiguu has quit [Ping timeout: 252 seconds]
Olipro has joined #ruby
benzrf is now known as benzrf|offline
EasyCo has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
cdelo has joined #ruby
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Quit: Til rivido Idisti!]
Megtastique has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
etqqkoiflwhb_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has joined #ruby
MissionCritical has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
drizz has quit [Remote host closed the connection]
etqqkoiflwhb_ has quit [Ping timeout: 240 seconds]
Bira has quit [Ping timeout: 240 seconds]
mitt3ns has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
<shevy> what is yahoo
<csmrfx> I'm a yahoo!
ghr has quit [Ping timeout: 240 seconds]
* csmrfx yeehaaw *rides the repl into the sunset*
combusean has joined #ruby
bah_ has quit [Quit: Leaving]
<noob101> I have a question. How do I delete an element in an array but I want the array to be that way. Example. deck = [["Queen", 1] ["Queen", 2]], I would like to eliminate ["Queen", 1] but still have ["Queen
<noob101> ["Queen", 2]*
<csmrfx> ri Array.delete says you can give the item you want to delete as argument
franzip has joined #ruby
lethjakman has joined #ruby
<csmrfx> of course, ri Array shows Array.delete_at that you could use if you know the array index of the item you want to delete
omosoj has joined #ruby
<noob101> csmrfx: Thank you, your help is very helpful.
benzrf|offline is now known as benzrf
<csmrfx> one can only help oneself!
mikepack has joined #ruby
phao has joined #ruby
andrewlio has quit [Quit: Leaving.]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
marcdel has joined #ruby
b00stfr3ak has joined #ruby
roolo has quit [Quit: Leaving...]
_class_ has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
omosoj has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
Bira has joined #ruby
rm_ has joined #ruby
_class_ is now known as __class__
sdwrage has joined #ruby
Bira has quit [Ping timeout: 255 seconds]
Melpaws1 has joined #ruby
Melpaws has quit [Ping timeout: 265 seconds]
fumduq has quit [Ping timeout: 265 seconds]
fumduq has joined #ruby
Davedo has quit [Ping timeout: 265 seconds]
cdelo has quit [Read error: Connection reset by peer]
Davedo has joined #ruby
matchaw has joined #ruby
cdelo has joined #ruby
vim_shim has quit [Ping timeout: 265 seconds]
vim_shim has joined #ruby
Melpaws has joined #ruby
Melpaws1 has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 276 seconds]
Tamae has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
Tamae has joined #ruby
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
Melpaws has quit [Client Quit]
mikepack has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 240 seconds]
phao has left #ruby ["Leaving"]
Melpaws has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
Melpaws has quit [Remote host closed the connection]
_class_ has joined #ruby
rm_ has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
matchaw has quit [Ping timeout: 240 seconds]
Soliah has quit [Quit: Soliah]
coffeina has quit [Quit: Wychodzi]
Devanon has joined #ruby
nemesit|znc has joined #ruby
bahar has joined #ruby
bahar has quit [Changing host]
_class_ has quit [Excess Flood]
chipotle has joined #ruby
subbyyy_ has joined #ruby
Bira has joined #ruby
charliesome has joined #ruby
upsell5 has quit [Quit: upsell5]
toretore has quit [Quit: This computer has gone to sleep]
eka has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
mitt3ns has quit [Ping timeout: 264 seconds]
pliniker has quit [Ping timeout: 240 seconds]
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
jlast has joined #ruby
__class__ has joined #ruby
Bira has joined #ruby
rostam has quit [Read error: Connection reset by peer]
simono has joined #ruby
rostam has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 276 seconds]
predator117 has joined #ruby
Bruno_ has joined #ruby
omosoj has joined #ruby
fluve has joined #ruby
AlexRussia has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
predator217 has quit [Ping timeout: 252 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pliniker has joined #ruby
gstamp has joined #ruby
aiguu has joined #ruby
cdelo has quit [Quit: Leaving]
omosoj has quit [Quit: Leaving]
omosoj has joined #ruby
Wapitidou has joined #ruby
aiguu has quit [Ping timeout: 240 seconds]
g0bl1n has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
sdwrage has quit [Quit: This computer has gone to sleep]
pu22l3r has quit [Remote host closed the connection]
darmou has joined #ruby
kitak_ has joined #ruby
timonv has joined #ruby
Bira has quit [Remote host closed the connection]
agarie has joined #ruby
Megtastique has quit []
pu22l3r has joined #ruby
kitak_ has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 240 seconds]