havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
jrabe has quit []
jrabe has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
<funkytwig> purple_apple, quick question. I have a datamase class whitch could easily be argued is not part of Puddle, seems wrong to put it in lib/puddle.
<purple_apple> lib/datamase.rb then
<funkytwig> purple_apple, basicaly its very generic mysql access stuff
<funkytwig> cool, thought that may be it;)
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
hightower has quit [Remote host closed the connection]
<elomatreb> funkytwig: If it's coupled to your project you should definitely put it in the subfolder, but you don't have to put it into the module (but there are few good reasons why you wouldn't)
<elomatreb> If you put it in the top-level lib directory, your file will collide with e.g. a gem called "datamase"
<elomatreb> (`require "gemname"` just searches the all the lib dirs of all installed gems for a file named "gemname.rb")
sameerynho has quit [Ping timeout: 240 seconds]
<funkytwig> Can I have a module called the same as the class, its the master class that everything inherits from, is this a good idea?
vondruch has quit [Quit: vondruch]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
masterasia has joined #ruby
<masterasia> Hello
<masterasia> How can I do 'not-matches' in regex?
<masterasia> for example: /www.google.ca\/\S+\/ will match www.google.ca/hello/
<purple_apple> !~
<masterasia> let's say I want to match everything except /hello/
<masterasia> So I want to match www.google.ca/red/ www.google.ca/blue/ but not www.google.ca/hello/
jinie has joined #ruby
<purple_apple> character class: "anything that's not foo repeated"//[^foo]+/
<havenwood> !~
<masterasia> how would I use that?
<purple_apple> oops. /[^foo]+/
<masterasia> \/\S+!~hello\/
<masterasia> ?
<purple_apple> in place of =~
<masterasia> looking at the ref
<purple_apple> it just not negates.
<purple_apple> you could also say, if not blah =~ /foo/
<masterasia> well..is there or in regex?
<masterasia> can I do 'anything that's not foo or bar repeated'
<purple_apple> there's more than one solution.
vondruch has quit [Client Quit]
<purple_apple> yes
<purple_apple> you can
vondruch has joined #ruby
hays has joined #ruby
<funkytwig> purple_apple, and I end up with < Scrape::Scrape
<purple_apple> ?
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
<funkytwig> kind of cool;)
jonh has joined #ruby
<purple_apple> not sure what you mean but cool
skweek has joined #ruby
* funkytwig is having a bit of a think
lasey has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
lasey has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
John__ has quit [Remote host closed the connection]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
marr has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
<jonh> hi, new to ruby :D
guardianx has joined #ruby
<elomatreb> welcome
brent__ has quit [Ping timeout: 240 seconds]
gizmore has joined #ruby
hahuang61 has joined #ruby
<jonh> thanks
gizmore|2 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
purple_apple is now known as bitflipper
vondruch has quit [Client Quit]
vondruch has joined #ruby
cdg has joined #ruby
skweek has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
eb0t has quit [Quit: WeeChat 1.4]
eljimmy has joined #ruby
vondruch has quit [Quit: vondruch]
cdg has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
chouhoulis has joined #ruby
eb0t has joined #ruby
scorphus has joined #ruby
guardianx has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
belmoussaoui has joined #ruby
bronson has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
uZiel has joined #ruby
gusrub has joined #ruby
cdg has joined #ruby
hays has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
rideh has quit [Remote host closed the connection]
vondruch has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hays has joined #ruby
rideh has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
dymaxion_ has joined #ruby
hays has quit [Remote host closed the connection]
dymaxion_ has quit [Ping timeout: 240 seconds]
uZiel has quit [Remote host closed the connection]
dymaxion_ has joined #ruby
guardianx has quit []
s3nd1v0g1us has quit [Quit: tempusfugit]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
iomotoko has joined #ruby
PorcoRex has joined #ruby
vondruch has quit [Quit: vondruch]
<PorcoRex> Good evening.
<t-recx> evening
vondruch has joined #ruby
ResidentBiscuit has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bmurt has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
Cohedrin_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
segy has quit [Ping timeout: 248 seconds]
vondruch has quit [Client Quit]
segy has joined #ruby
vondruch has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jordanm has quit [Remote host closed the connection]
dymaxion_ has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
cdg has joined #ruby
astrobunny has joined #ruby
bronson has joined #ruby
hahuang61 has joined #ruby
eljimmy has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
gh has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
henriquegogo has joined #ruby
raul782 has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<henriquegogo> ls
astrobunny has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
henriquegogo has quit [Quit: leaving]
henriquegogo has joined #ruby
dymaxion_ has joined #ruby
ResidentBiscuit has quit []
henriquegogo has quit [Client Quit]
gh has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dymaxion_ has joined #ruby
im314ous has joined #ruby
AnoHito_ has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dymaxion_ has quit [Client Quit]
AnoHito has joined #ruby
claw has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
vondruch has quit [Client Quit]
vondruch has joined #ruby
AnoHito_ has joined #ruby
grymmjack has joined #ruby
grymmjack has quit [Client Quit]
kculpis has joined #ruby
gix has quit [Ping timeout: 255 seconds]
AnoHito has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
claw has joined #ruby
shakes has joined #ruby
gix has joined #ruby
shakes has quit [Client Quit]
howdoi has joined #ruby
AnoHito has joined #ruby
AnoHito_ has quit [Ping timeout: 255 seconds]
im314ous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
cschneid_ has quit [Remote host closed the connection]
AnoHito_ has joined #ruby
AnoHito has quit [Ping timeout: 255 seconds]
balazs has quit [Remote host closed the connection]
ShekharReddy has joined #ruby
raul782 has joined #ruby
dviola has quit [Quit: WeeChat 1.9]
s1kx has quit [Quit: s1kx]
eckhardt has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ShekharReddy has quit []
ShekharReddy has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
cadillac_ has joined #ruby
tvw has joined #ruby
friday has quit [Changing host]
friday has joined #ruby
herbmillerjr has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jackjackdripper has joined #ruby
pootiscoder has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
BSaboia has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bronson has joined #ruby
hahuang61 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
eckhardt has joined #ruby
brent__ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cdg has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
nofxxx has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
runescape07rsps has joined #ruby
raul782 has quit []
nostalgiccloud has joined #ruby
harai has joined #ruby
jamesaxl has joined #ruby
tvw has quit []
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
enterprisey has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
patrontechnosoft has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Alina-malina has joined #ruby
runescape07rsps has quit [Quit: Leaving]
vondruch has quit [Client Quit]
vondruch has joined #ruby
DaniG2k has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
jameser has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
nostalgiccloud has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
cschneid_ has joined #ruby
ltem has joined #ruby
patrontechnosoft has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
cschneid_ has quit [Ping timeout: 240 seconds]
eljimmy has joined #ruby
gusrub has quit []
alex`` has joined #ruby
cschneid_ has joined #ruby
jamesaxl has quit [Ping timeout: 255 seconds]
jamesaxl has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eljimmy has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
cschneid_ has quit [Ping timeout: 276 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
cadillac_ has joined #ruby
Alina-malina has joined #ruby
vondruch has quit [Quit: vondruch]
nopolitica has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
armyriad has joined #ruby
dionysus69 has joined #ruby
PorcoRex has quit [Quit: Leaving]
ur5us has joined #ruby
vondruch has quit [Quit: vondruch]
dlitvak has quit [Quit: Connection closed for inactivity]
vondruch has joined #ruby
username_ has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 240 seconds]
username_ has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
SuperLag has quit [Quit: Lost terminal]
astrobunny has quit [Read error: Connection reset by peer]
bronson has joined #ruby
hahuang61 has joined #ruby
SqREL has joined #ruby
SuperLag has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
enterprisey has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
npgm has quit [Quit: Connection closed for inactivity]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cdg has joined #ruby
conta has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mathys has joined #ruby
f48ds2 has joined #ruby
jackjackdripper has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
ta_ has joined #ruby
harfangk has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 268 seconds]
opencw has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Alina-malina has quit [Ping timeout: 248 seconds]
Yxhuvud has joined #ruby
Alina-malina has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
kculpis has quit [Read error: Connection reset by peer]
SqREL has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
electrostat has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
electrostat has joined #ruby
iomotoko has quit [Quit: leaving]
iomotoko has joined #ruby
dymaxion_ has joined #ruby
iomotoko has quit [Client Quit]
cdg has joined #ruby
anisha has joined #ruby
cdg_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cdg__ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
cdg_ has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
cdg__ has quit [Ping timeout: 240 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
marr has joined #ruby
jinie has joined #ruby
jinie has quit [Client Quit]
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 246 seconds]
TomyLobo has joined #ruby
jinie has joined #ruby
jinie has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jinie has joined #ruby
bruno- has joined #ruby
jinie has quit [Client Quit]
jinie has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
sameerynho has joined #ruby
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
daed has joined #ruby
conta has quit [Ping timeout: 255 seconds]
djbkd has quit [Ping timeout: 248 seconds]
govg has quit [Ping timeout: 255 seconds]
moei has quit [Quit: Leaving...]
rgr has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Alina-malina has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
jameser has joined #ruby
insomnian has joined #ruby
insomnian has quit [Client Quit]
<bitflipper> ... "make Swift an excellent choice for everything from “Hello, world!” to an entire operating system."
<bitflipper> amazing. i've searched long and hard for a language that is perfect for Hello World. thanks to apple i finally found it.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<bitflipper> does ruby support unicode class names and methods as a first-class syntax
<bitflipper> Swift supports: let 🐶🐮 = "dogcow"
Alina-malina has quit [Ping timeout: 248 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
Alina-malina has joined #ruby
cschneid_ has joined #ruby
apparition47 has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
hahuang61 has joined #ruby
bronson has joined #ruby
belmoussaoui has joined #ruby
<bitflipper> reversedNames = names.sorted(by: >)
<bitflipper> nice
<elomatreb> bitflipper: Ruby support unicode names, but it's probably not a good idea (But it allows e.g. https://github.com/mperham/sidekiq/blob/master/lib/sidekiq.rb#L52)
cschneid_ has quit [Ping timeout: 276 seconds]
eroux has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 255 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
anisha has quit [Remote host closed the connection]
brent__ has joined #ruby
vuoto has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
brent__ has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
ta_ has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
jinie has quit [Client Quit]
<darix> and there was a recent bug that they want to allow unicode in more places
ta_ has quit [Ping timeout: 248 seconds]
hanmac has left #ruby [#ruby]
jinie has joined #ruby
mikecmpbll has joined #ruby
jinie has quit [Client Quit]
harai has quit [Ping timeout: 255 seconds]
jinie has joined #ruby
postmodern has quit [Quit: Leaving]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
hanmac has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
<funkytwig> Hi, wondering if I should put #!/usr/bin/ruby at the beginning of scripts, thinking not. Am I bad?
raynold has quit [Quit: Connection closed for inactivity]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
Sembei has joined #ruby
Pisuke has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
Keltia has joined #ruby
belmoussaoui has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Bhootrk_ has joined #ruby
Bhootrk_ has quit [Max SendQ exceeded]
beilabs_ has joined #ruby
_ht has joined #ruby
_ht has left #ruby [#ruby]
lasey has quit [Quit: leaving]
<f48ds2> funkytwig: it depends on how you want to run these scripts: 1) ./my_script.rb or 2) ruby my_script.rb
lasey has joined #ruby
<funkytwig> f48ds2, i'me fine with ruby script.rb, and for debug pry.rb. Rather not have OS dependent stuff unless strictly needed
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cdg has joined #ruby
sepp2k has joined #ruby
rgr has quit [Quit: rgr]
cdg has quit [Ping timeout: 255 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
ta_ has joined #ruby
belmoussaoui has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
uZiel has joined #ruby
conta has joined #ruby
jinie has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Client Quit]
<hanmac> funkytwig: "#!/usr/bin/env ruby" is better for shebang
belmoussaoui has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
elsevero has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<funkytwig> cool, thanks, BTW its been a long time since I did ruby before. I found a oriely ruby cookboook from 2016 and a The Pragmatic Programmers : Programming Ruby roughly as old. Are they still relevent?
NeverTired has joined #ruby
<funkytwig> I have a load of scripts that all create the same methods so I put them in a setup script and did a load but it seems the local varables setup in the load are not passed back.
<funkytwig> c/methods/class instances/
<matthewd> funkytwig: Yeah, local variables are local to the block of code they're defined in -- normally a method, but in this case, a file
bruno- has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
<funkytwig> matthewd, thinking maybe constant or global. Is the only deference, with constance you cant change the value?
<funkytwig> matthewd, its two varables. one is debug, whitch having it as a CONSTANT makes sence. The other venue_code, which is the music venue and is not changed forthe script (and everything it calls)
marr has quit [Ping timeout: 240 seconds]
<matthewd> It's mostly a conceptual distinction (technically you can change constants too, though you generally shouldn't)
jackjackdripper has quit [Quit: Leaving.]
<funkytwig> matthewd, OK, just realised I am creating class instances in setup.rb so that wont work, guess I need to have the 4 lines that create them in eatch script
milardovich has joined #ruby
hahuang61 has joined #ruby
bronson has joined #ruby
runescape07rsps has joined #ruby
jgt has joined #ruby
agent_white has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jamesaxl has joined #ruby
beilabs_ has quit [Remote host closed the connection]
ta_ has joined #ruby
John__ has joined #ruby
cdg has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
John__ has quit [Client Quit]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
dymaxion_ has joined #ruby
dymaxion_ has quit [Client Quit]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
harai has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
dymaxion_ has joined #ruby
Ishido has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
marr has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
chouhoulis has joined #ruby
rabajaj has joined #ruby
vondruch has quit [Client Quit]
harai has quit [Ping timeout: 255 seconds]
vondruch has joined #ruby
username has joined #ruby
bruno- has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
username has quit [Ping timeout: 240 seconds]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dionysus69 has joined #ruby
dymaxion_ has joined #ruby
jameser has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
dymaxion_ has quit [Client Quit]
elsevero has quit [Quit: elsevero]
jameser has quit [Client Quit]
bruno- has quit [Read error: Connection reset by peer]
jameser has joined #ruby
catphish has quit [Quit: Leaving]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
marr has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
bruno- has joined #ruby
DTZUZO has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dymaxion_ has joined #ruby
dionysus69 has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
jameser has joined #ruby
bruno- has joined #ruby
rahul_bajaj has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
rabajaj has quit [Ping timeout: 248 seconds]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dymaxion_ has joined #ruby
jameser has quit [Max SendQ exceeded]
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jameser has joined #ruby
bruno- has joined #ruby
rabajaj has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
rahul_bajaj has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
t-recx has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
jamesaxl has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jud has joined #ruby
bruno- has joined #ruby
Ishido has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
vuoto has quit [Quit: Lost terminal]
belmoussaoui has quit [Ping timeout: 255 seconds]
bruno- has quit [Read error: Connection reset by peer]
jameser has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
bruno- has joined #ruby
vondruch has joined #ruby
govg has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jameser has joined #ruby
vuoto has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
bruno- has joined #ruby
vuoto has quit [Client Quit]
bruno- has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
rabajaj has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
bronson has joined #ruby
bruno- has joined #ruby
eroux has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
mathys has quit [Quit: Leaving]
bruno- has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
bruno- has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
bruno- has quit [Read error: Connection reset by peer]
enodata has quit [Quit: enodata]
jamesaxl has joined #ruby
bruno- has joined #ruby
rrod_error has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
bruno- has joined #ruby
vondruch has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
govg has quit [Quit: changing clients]
govg has joined #ruby
enterprisey has joined #ruby
astrobunny has joined #ruby
bruno- has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
jamesaxl has quit [Read error: Connection reset by peer]
DTZUZO has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
jamesaxl has joined #ruby
bruno- has joined #ruby
lasey has quit [Quit: Lost terminal]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
lasey has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
bruno- has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
harai has joined #ruby
chouhoulis has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
NeverTired has quit [Quit: Connection closed for inactivity]
GodFather has joined #ruby
harai has quit [Ping timeout: 255 seconds]
f48ds2 has quit [Ping timeout: 240 seconds]
tlaxkit has joined #ruby
naftilos76 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
nadir has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<jonh> moo'nin
conta has quit [Quit: conta]
conta3 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
skweek has joined #ruby
goyox86 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ryzokuken has joined #ruby
goyox86 has quit [Client Quit]
goyox86 has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest4020
vondruch has quit [Client Quit]
vondruch has joined #ruby
im314ous has joined #ruby
Azure has joined #ruby
lasey has quit [Quit: Lost terminal]
Guest4020 has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
lasey has joined #ruby
dionysus69 has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
bruno-_ has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 246 seconds]
bruno-_ has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bruno-_ has quit [Read error: Connection reset by peer]
vondruch has quit [Client Quit]
vondruch has joined #ruby
bruno-_ has joined #ruby
t-recx has quit [Quit: t-recx]
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
P1ro has joined #ruby
bruno-_ has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
<bitflipper> has anyone used http://api.rubyonrails.org/classes/Module/Concerning.html yet and found it to be a worthwhile replacement for even just: include Module.new { }. i really don't get that library. seems like a total effort in nonsense.
<bitflipper> ::Concern has a nicer API for some things, but Concerning. taking the idea too far.
bruno-_ has quit [Read error: Connection reset by peer]
nacsurte has quit [Ping timeout: 248 seconds]
P1ro has quit [Remote host closed the connection]
<bitflipper> am i missing the use case?
<matthewd> bitflipper: That's pretty much exactly what it does ¯\_(ツ)_/¯
milardovich has quit []
<Papierkorb> the ideal way to build god objects, while not calling them like that
<matthewd> The only other thing it does is give the module a name, which can make backtraces etc slightly better
<Papierkorb> (The previous statement may contain traces of sarcasm.)
minimalism has quit [Quit: minimalism]
nacsurte has joined #ruby
bruno-_ has joined #ruby
<bitflipper> yeah. i'm not sure whether or not even module Foo; end; include Foo is just as good, but then i guess 'Foo' is not a Concern. which is a problem it's also solving, right?
<bitflipper> concerning :Foo do; end, then everything in Foo is now a Concern module
<matthewd> True, it also saves you an `extend Concern`
ule has joined #ruby
<matthewd> No, then Foo is now a Concern module -- it doesn't do anything to things inside it
<bitflipper> in the example:
<bitflipper> concerning :EventTracking do
<bitflipper> included do
<bitflipper> isn't included from 'Concern'?
<matthewd> Yes
<bitflipper> ah right yeah okay
<bitflipper> that's probably it's most feature
<matthewd> That is the same as `module EventTracking; extend AS::Concern; included do; ..; end; end; include EventTracking`
<bitflipper> most useful feature*
<matthewd> But as per the description in the API docs, it's considered most likely to be a replacement for `### Event Tracking`
<bitflipper> right yeah. to group methods logically, in one bigger module?
<matthewd> Which is why it's nominally useful, even though it'd only be 3-4 lines to do manually: by being slightly more ergonomic, one is more likely to reach for it instead of just using comments
<bitflipper> yeah
<matthewd> Yeah. (Or straight in a god class, as Papierkorb said.)
kapil___ has joined #ruby
<bitflipper> yeah it seems alright
<bitflipper> def not nonsense anyway
<matthewd> So yeah, it's not high value.. but it's non-zero value, and very low cost
<bitflipper> it makes documentation hard tho -_-
<bitflipper> a doc tool has to know 'concerning :Foo' defines a module of Foo, which extends itself with AS::Concern, and then includes itself into the module calling 'concerning', in order to document stuff properly and accurately.
bruno-_ has quit [Read error: Connection reset by peer]
<bitflipper> which is diffilcult
<bitflipper> but such is meta programming i guess
bruno-_ has joined #ruby
<matthewd> Yeah.. I believe teaching yard that would be pretty easy, but not sure about rdoc
hahuang61 has joined #ruby
<bitflipper> yeah. yard is only the doc tool i know that has any potential to understand such complexity.
<bitflipper> but i still can't write a solution
<bitflipper> as of now
<matthewd> We don't actually use it anywhere in rails/rails 😅
bronson has joined #ruby
<bitflipper> yeah. i think it's prob inevitable it becomes more popular. i mean it's leaps and bounds ahead of rdoc but w/e...
bruno-_ has quit [Read error: Connection reset by peer]
<matthewd> I mean we don't use `concerning`.. but yeah, we don't use yard either
ta_ has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
hahuang61 has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
apparition47 has quit [Quit: Bye]
<bitflipper> right. true. 'concerning' is a particular use-case yard would be good at solving, but not sure how many people are interested in taking the effort of documenting meta stuff. it does provide pretty good facilitates for doing so though. i just don't like rdoc from start to finish. if its templates were better i probably wouldn't care about the lack of doc tool features.
bronson has quit [Ping timeout: 255 seconds]
<matthewd> I do like yard's seemingly deeper understanding of the code, but at least for Rails, the @foo tags are too unpopular
goyox86 has quit [Ping timeout: 248 seconds]
<bitflipper> yea. too java-docy maybe, but really don't see any other way to document the complexities of ruby at runtime.
<bitflipper> still: http://ruby-doc.org/core-2.4.1/File.html - pretty awful.
vondruch has quit [Client Quit]
vondruch has joined #ruby
tlaxkit has quit [Quit: Saliendo...]
mjolnird has quit [Ping timeout: 240 seconds]
<bitflipper> i don't think it makes much sense for a web language like ruby to produce docs that don't utilise browser tech to make reading and searching text easier. u could probably use bootstrap and make it look nicer.
alex`` has quit [Quit: WeeChat 1.9]
astrobunny has quit [Remote host closed the connection]
<matthewd> Ruby isn't a web language... and ruby-doc.org's template was custom developed for that (unofficial, 3rd party) site, I believe
cschneid_ has joined #ruby
goyox86 has joined #ruby
dionysus70 has joined #ruby
mjolnird has joined #ruby
lexruee has joined #ruby
dionysus70 has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 255 seconds]
dstrunk has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
rrod_error has quit [Quit: leaving]
t-recx has joined #ruby
conta3 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
<bitflipper> Ruby isn't a web language? then i think only our understanding of 'web language' differs. it's used primarily by web developers.
<bitflipper> unofficial or not, it ranks at the top of all SEO results, and the only alternative i know of is rubydoc.info (yard).
<bitflipper> i'm super doubtful that the stock rdoc template isnt garbage too
<darix> bitflipper: it isnt. there is plenty of other stuff in ruby. i think your perspective might be biased.
<matthewd> We're disagreeing about whether it's primarily used by web developers
<bitflipper> in the professional space, i think so
<bitflipper> most people who work with ruby do so through rails
<bitflipper> @darix then link me. i'm happy to be wrong
<matthewd> How are we supposed to prove that negative? :/
WeiJunLi has joined #ruby
<bitflipper> sorry, i misunderstood
<havenwood> bitflipper: Ruby is not a web language.
<bitflipper> i thought he was referring to rdoc
<havenwood> bitflipper: You're mistaken.
<bitflipper> it's primary use case is the web. majority employment with ruby is offered via Rails.
<bitflipper> the other professional case is Chef or sysadmin, but i think that's less so
<havenwood> bitflipper: You're so wrong.
<havenwood> bitflipper: It's unfortunate you're only aware of those two parts of the ecosystem.
<matthewd> Ah, okay. Yeah, I don't actually remember what the default template looks like (the Rails API doc uses a custom template too), but I imagine it's measurably less shiny than it could be.
<bitflipper> i'm not only aware of them.
<bitflipper> but i'm aware of the professional space around ruby
<bitflipper> it's focused around rails, and the web
jamesaxl has quit [Read error: Connection reset by peer]
<havenwood> bitflipper: Ruby is used widely in the automotive industry in Japan. It's been used in aerospace in the US recently to model jet fighter hardware and software. It's used in telephony. It's used in supercomputing (even matz was shocked by this). Etc, etc.
<bitflipper> yeah. sure. i'm not saying its exclusive to the web. i'm saying it's predominately a web-focused language when applied to the professional space.
pootiscoder has quit [Ping timeout: 240 seconds]
<matthewd> In Japan, Rails is considered fairly niche
<bitflipper> could be. my perspective is western-oriented.
jamesaxl has joined #ruby
naftilos76 has quit [Quit: Αποχώρησε]
<havenwood> bitflipper: There are actual web languages. They don't have expansive standard libraries that do non-web things. Ruby is not one of these web languages. It's a general purpose language.
harai has joined #ruby
<bitflipper> sure, i agree that it is general purpose and that its scope is not limited to the Ruby. in practical application tho, most people employed using Ruby (in USA/Europe/West) are doing so via Rails or web tech. Look at the job boards, 95% of everything is Rails.
<bitflipper> limited to Web*
<bitflipper> which comes back to the original point. most ruby programmers are familiar with web tech at the very least.
<havenwood> I guess about half the work I've done in Ruby was web-related. And of the web-related about half was rails.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<jonh> i think most people have to be familiar with web tech these days
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
goyox86 has quit [Quit: goyox86]
<darix> bitflipper: e.g. openSUSE's config tool yast is ruby
mathys has joined #ruby
<bitflipper> sure, and there's metasploit, and many other open source applications written in Ruby that aren't targeted at the web. i still think if you want to work with Ruby, you will do so through Rails, for majority of cases.
<matthewd> Either way, apparently no-one has found the current state of the various rdoc templates unpleasant enough to PR improvements. They're all open source.
BSaboia has quit [Read error: Connection reset by peer]
vondruch has quit [Client Quit]
<bitflipper> but who knows. it may change. at some level rubymotion is still ruby. mruby might open a whole new space.
vondruch has joined #ruby
<havenwood> bitflipper: I'm always surprised how many shops are hiring folk for Ruby tooling. Internal command line apps. Devops. Etc.
<bitflipper> sure @matthewd, but i think it would be time better spent to do so in yard.
<havenwood> At least in California.
harai has quit [Ping timeout: 255 seconds]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
<havenwood> bitflipper: A lot of folk around here have a bunch of internal tools in Ruby.
astrobunny has joined #ruby
<matthewd> I think it's pretty safe to say that yard's not going to become the default documentation system anytime soon (for various reasons)
<bitflipper> sure, i hope it only continues and takes up a bigger share of the market. atm my impression is most things are rails-oriented, and if you want something else, you gotta look a little bit.
<havenwood> ^ a telephony example
<havenwood> bitflipper: On the other hand there is plenty of non-Rails work. I worked in Ruby for four years before learning Rails.
<havenwood> I never had any trouble finding work.
<matthewd> It's worth noting you're in the Ruby-not-Rails IRC channel: Rails-specific topics are chased to #RubyOnRails instead
<bitflipper> right. these days there's better options for packaging & distributing ruby "apps", too. but i still think your case is an exception, not the rule.
<bitflipper> i cant join there
<matthewd> For that matter, RubyConf is similarly NotRailsConf
<havenwood> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<bitflipper> not worth it
<havenwood> Yeah, RubyConf's focus is very not Rails. RailsConf on the other hand...!
<havenwood> I'd love to go to a RailsConf one of these days.
<havenwood> RubyConf this year in New Orleans!! Tickets aren't sold out yet.
<havenwood> 9 days left for call for proposals!
<bitflipper> What happens to Ruby when Rails dies?
<bitflipper> But opinions codified in Rails are falling out of favor. We're not writing apps that do heavy server-side rendering. Our apps have complex domain logic that grates against "The Rails Way."
<bitflipper> Ruby rode the Rails rocketship to worldwide renown. While a handful of us were writing Ruby code before Rails came along, most of us owe Rails a debt of gratitude for taking Ruby mainstream, allowing us to make a living writing code in a language we love.
<bitflipper> basically this. i'm not alone at all in the opinion i have.
<darix> havenwood: personally everything that is more than a for loop here .. then my shell scripts get ruby
ta_ has joined #ruby
<havenwood> bitflipper: Yeah, you can find "Is X dead?" talks for every language that's more than a few years old. C and Java included.
vondruch has quit [Quit: vondruch]
<bitflipper> not the focus of my point
<matthewd> bitflipper: No-one's claiming Rails isn't a major part of what made Ruby mainstream. Getting from there to "is a web language", however, is quite the leap.
<bitflipper> Ruby rode the Rails rocketship to worldwide renown. While a handful of us were writing Ruby code before Rails came along, most of us owe Rails a debt of gratitude for taking Ruby mainstream, allowing us to make a living writing code in a language we love.
vondruch has joined #ruby
dymaxion_ has joined #ruby
<bitflipper> matthewd, in the professional space, i believe it mostly is. i'm not saying it is limited to that.
<havenwood> bitflipper: What language isn't mostly web in the professional space? Fortran?
<bitflipper> C, C++, Objective-C, .. should i go on?
<darix> golang!
<darix> havenwood: btw: by the usage rate it is probably php then java ;)
<havenwood> bitflipper: You could just say "Ruby is not a system language" and we'd agree.
goyox86 has joined #ruby
<havenwood> bitflipper: The "web language" stuff is nonsense. I agree Rails brought a bunch of folk to Ruby. And we're glad.
ta_ has quit [Ping timeout: 240 seconds]
WeiJunLi has quit [Remote host closed the connection]
<jonh> so if ruby is a web language not a general purpose language, if somenew new arises beyond the web and some fancy ruby framework becomes popular for that new fancy thing, what do we do
<jonh> :D
<matthewd> bitflipper: Following havenwood's point, would you call Java a web language?
vondruch has quit [Client Quit]
vondruch has joined #ruby
<bitflipper> i think you're perceiving "ruby is a web language" as a bad thing and/or incorrectly. i said "ruby is a web language" in the context of "how is the rdoc template so bad". and by, "ruby is a web language" i meant that professionally, a hell of it a lot, if not most work in Ruby is done with the web. the point is ruby programmers are not alien to the web, so the template should reflect that.
<jonh> does the universe as i know it explode
<havenwood> bitflipper: I guess if a "web language" wasn't an actual thing I'd have not been confused by what you meant.
<havenwood> But it is a real thing.
<bitflipper> context also is a real thing
<matthewd> Insert "popular" and I'd be fine
<havenwood> agreed
<bitflipper> sure, popular web language. i'm not trying to imply it can't do anything else.
<matthewd> But as is, it sounds like a "this solves problems for a particular niche" categorization, which yes I perceive as a bad thing, regardless of what that niche is
<bitflipper> yea. that wasn't my point. basically ruby programmers know the web. the rdoc templates don't reflect that.
<matthewd> To come back to your actual point, though, yes.. it'd be nice if the doc templates were nicer
<matthewd> PRs welcome ;)
<bitflipper> sure, i've thought of some things i'd like to do but all of them involve yard and rubydoc.info
<bitflipper> i'd like a browser extension that can lookup docs by class/method name
<bitflipper> on rubydoc.info
<bitflipper> then take me there or inline the docs i dunno. havent started yet
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<bitflipper> imo yard/rubydoc.info is good enough already
<bitflipper> the template
cadillac_ has quit [Read error: Connection reset by peer]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
cadillac_ has joined #ruby
moei has joined #ruby
dionysus69 has quit [Remote host closed the connection]
nadir has quit [Ping timeout: 255 seconds]
dionysus70 has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
dionysus70 is now known as dionysus69
houhoulis has joined #ruby
kies has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
dymaxion_ has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
^mtkd has joined #ruby
houhoulis has quit [Remote host closed the connection]
goyox86 has quit [Quit: goyox86]
goyox86_ has joined #ruby
runescape07rsps has quit [Quit: Leaving]
houhoulis has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
VladGh has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ryzokuken has quit [Read error: Connection reset by peer]
VladGh has quit [Remote host closed the connection]
ryzokuken has joined #ruby
VladGh has joined #ruby
ryzokuken has quit [Client Quit]
beilabs_ has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
conta1 has joined #ruby
hahuang61 has joined #ruby
bronson has joined #ruby
sagax has quit [Ping timeout: 276 seconds]
tomphp has joined #ruby
conta1 has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
tomphp has quit [Client Quit]
vondruch has joined #ruby
tomphp has joined #ruby
ta_ has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
nicoulaj has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 240 seconds]
nicoulaj has joined #ruby
vondruch has quit [Quit: vondruch]
bmurt has joined #ruby
vondruch has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
houhoulis has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
nicoulaj has joined #ruby
tomphp has joined #ruby
xcesariox has joined #ruby
gixxer1k1k has joined #ruby
tomphp has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
vondruch has quit [Client Quit]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
goyox86_ has quit [Ping timeout: 240 seconds]
WeiJunLi has joined #ruby
biberu has quit []
biberu has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
harai has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
bmurt has joined #ruby
bruno- has joined #ruby
phinxy has joined #ruby
chouhoulis has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
GodFather has quit [Read error: No route to host]
ta_ has joined #ruby
vondruch has quit [Quit: vondruch]
funkytwig has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
<clemens3> bitflipper: personally i love ruby and hate rails. personally i dont mind rails going away, but it is true, rails is what brought all the developers (and jobs) to ruby. python has the scientific libraries.. both to me are general purpose programming languages. is a pitty if ruby is not more used outside web development.. actually i do also web interfaces with ruby, but nothing fancy. lots of business logic and
<clemens3> stuff that could be done in perl or shell..
alfiemax has quit [Remote host closed the connection]
<clemens3> ups, a bit late to the party:)
<adam12> I've been shipping an insane amount of code using Roda+Sequel.
<adam12> (also late to the party :P)
beilabs_ has quit [Ping timeout: 240 seconds]
_sfiguser has quit [Quit: Leaving]
hahuang61 has joined #ruby
<clemens3> on that point, started using jekyll for statig web page generation for last two blogs..
<clemens3> anyway, besides rails i also dislike javascript.. :). but that one still seems to go strong..
vondruch has quit [Quit: vondruch]
beilabs__ has joined #ruby
vondruch has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
hahuang61 has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 248 seconds]
vondruch has quit [Client Quit]
vondruch has joined #ruby
dstrunk has joined #ruby
dionysus69 has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
dymaxion_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
<bitflipper> i don't hate rails, but i would wish other frameworks received the same sort of adoption.
<bitflipper> rails can still be useful. just not always the best tool for the job.
hahuang61 has joined #ruby
chmurifree has joined #ruby
phinxy has quit [Quit: Leaving]
alex`` has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
<mikecmpbll> :/
<havenwood> adam12: <3 Roda
vondruch has quit [Quit: vondruch]
beilabs__ has quit [Remote host closed the connection]
<clemens3> actually i am very happy with rack:)
vondruch has joined #ruby
goyox86_ has joined #ruby
<havenwood> clemens3: I just like a routing tree on top of Rack with plugins for commonly needed things. I really like the Rack and Sequel plugin systems.
cadillac_ has quit [Ping timeout: 255 seconds]
<bitflipper> webrick servlets are fine for a local http server too.
<bitflipper> that's what i use for cross-process communication between Chrome/browser and Ruby.
<bitflipper> low traffic, so works fine
cadillac_ has joined #ruby
danieli has quit [Ping timeout: 255 seconds]
<bitflipper> also don't need to worry about packaging any gems, which is nice.
reu has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
astrobunny has joined #ruby
<bitflipper> i like JS as it is.
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
<clemens3> bitflipper: yes, webrick is often just fine
<bitflipper> not sure how often but for some things it definitely is.
bronson has joined #ruby
<clemens3> bitflipper: e.g. inhouse applications
<bitflipper> yeah
<bitflipper> agreed
harfangk has joined #ruby
vondruch has quit [Quit: vondruch]
ShekharReddy has joined #ruby
vondruch has joined #ruby
goyox86_ has quit [Quit: goyox86_]
<clemens3> with ruby you can keep it very simple if you want, but that is why it is difficult to attract more developers after rails hype cooled off
<clemens3> havenwood: actually i didn
<havenwood> A nice JSON CGI app, mmhmm. ;-)
<clemens3> t dare to say, but besides performance, cgi actually is a nice simple interface
scottj has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
vondruch has quit [Client Quit]
<clemens3> havenwood: totally agree with the article.. just you can't put cgi programmer on your resume
vondruch has joined #ruby
<bitflipper> yeah, if you want to integrate with a non-ruby web server cgi may be okay. but when i use webrick, nothing a non-ruby web server offers me is of interest. like performance.
<havenwood> can't beat ngx_mruby for performance in Ruby land: https://github.com/matsumotory/ngx_mruby#readme
<havenwood> web rps at least
<havenwood> 400k JSON requests per second is quite respectable.
<havenwood> Compared to 650k top-performer.
<bitflipper> yup
vondruch has quit [Quit: vondruch]
<havenwood> Roda's 190K isn't quite there but considering gems are available and it's standard Ruby, not bad!
vondruch has joined #ruby
WeiJunLi has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
funkytwig has joined #ruby
<funkytwig> Hi, anyone know if there is a source level debuger I can use with ruby.
Azure has joined #ruby
<funkytwig> I am using Aptana as a IDE but dont mind installing another (FOSS) one in needed
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<bitflipper> there's a few debugging tools, rubymine sounds like what you want. there's other non-GUI methods for debugging as well.... irb, pry, byebug, ... cmd line tools.
dviola has joined #ruby
<funkytwig> bitflipper, being able to single step through code, set breakpoints and interrogate variables is what I am looking for.
astrobunny has quit [Ping timeout: 246 seconds]
<bitflipper> right. so pry and byebug can do that. rubymine appears it can too, on top of a GUI
<funkytwig> bitflipper, rubymine is a yearly subscription of around £120. but steep for me at the moment.
<funkytwig> bitflipper, I use pry, did not know it can do that
<bitflipper> oh. you use pry already, ok
* funkytwig googling
<bitflipper> btw rubymine has 30 day free trial
_sfiguser has joined #ruby
tomphp has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<funkytwig> bitflipper, looks promising. Have you used any of then, can you recoment?
<bitflipper> haven't used any of them
<funkytwig> bitflipper, would rather stay FOSS
<bitflipper> what's foss mean.. GPL?
<clemens3> funkytwig: the question is, is any experienced ruby developer using a debugger at all. i have no idea, but since Visual Basic times no debugger in other languages ever worked for me, e.g. Java at the time, so I got used using log statements and never looked back..
<funkytwig> Free Open Source Software
<darix> funkytwig: binding.pry
<bitflipper> all those github projects are open source software. they're not GPL though.
<darix> funkytwig: look up what it does.
<funkytwig> darix, have been, look they seem simeler, still looking
<darix> most of the time i end up coding a script up to a point then binding.pry. then tinkering with it in the pry shell. and then copy the code from .pry_history that i want to keep ;)
<clemens3> i use pry for debugging, but never as a debugger. didn't know it was possible..
<bitflipper> ah right. you were replying to the 30 day free trial.
<funkytwig> FOSS coment wasregarding not wanting to use RubyMine, all other are cool
<clemens3> darix: exactly my mode
<bitflipper> cool yeah
<funkytwig> I have been using log statements a lot but I have some verry odd stuff happening
<darix> funkytwig: binding.pry ;)
<darix> at the line before the weird stuff happens
<clemens3> darix: or a combinariont, using load "lib/myclass.rb" after editing the code and then tinkering in pry again
tomphp has quit [Ping timeout: 240 seconds]
<funkytwig> also in the past in various languages I have found a good source level debugger can really speed up problem solving.
<darix> you get a repl right at the point of the program
duper has quit [Ping timeout: 276 seconds]
<darix> all data set up and you can poke it
uZiel has quit [Ping timeout: 268 seconds]
<clemens3> and play with your variables data structures
<funkytwig> Have lost of log statements, suddenly the variable changes from a string to an array, for n apparent reason.
<bitflipper> yeah. binding.pry alone can do a lot. but pry-stack_explorer looks a nice addon.
oleo has quit [Read error: Connection reset by peer]
<bitflipper> pry-stack_explorer is a plugin for the Pry REPL that enables the user to navigate the call-stack.
<bitflipper> very easy to use
<bitflipper> show-stack
<bitflipper> frame X
<funkytwig> So binding.pry stops and I can single step with next, or so it seems so.
<bitflipper> binding.pry will give you a repl. pry-stack_explorer will give you the ability to walk the call stack up until the point `binding.pry` has been called. for moving forward/next, i think pry-nav/pry-byebug is what you want.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<bitflipper> try pry-stack_explorer, so you can see how it works.
<bitflipper> ah too bad. it doesn't work on ruby2+.
harfangk has quit [Ping timeout: 240 seconds]
dymaxion_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Client Quit]
vondruch has joined #ruby
jinie has quit [Read error: Connection reset by peer]
<clemens3> funkytwig: and i think exit if you just want to continue with the code in full speed
oleo has joined #ruby
milardovich has joined #ruby
<bitflipper> ah it does
<bitflipper> it works on ruby 2.3
<bitflipper> but breaks on 2.4
<clemens3> bitflipper: interesting, have to try soon. still camping on 2.3..
jinie has joined #ruby
<bitflipper> you can jump into any of those frames. `frame X`.
<funkytwig> Required: MRI 2.0.0 or higher, what is this?
<bitflipper> pry-byebug is ok but changes `binding.pry` is a fundamental and confusing way.
<bitflipper> in a*
<bitflipper> ruby 2.0.0 or later
<funkytwig> the docs for installing byebug sat
<funkytwig> add
<funkytwig> gem 'pry-byebug'
<funkytwig> goes this mean install the gem?
<bitflipper> that's the snippet for adding to your Gemfile. `gem install pry-byebug` if you're not using Bundler/Gemfile.
hahuang61 has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ta_ has joined #ruby
hahuang61 has quit [Ping timeout: 255 seconds]
iomotoko has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<funkytwig> OK, got it working, verry cool.
<funkytwig> buy how do I stop the script running, exit does not work
uZiel has joined #ruby
<clemens3> exit! maybe?
dionysus69 has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 240 seconds]
<clemens3> exit; exit 0
<clemens3> or something ctrl-c etc
gixxer1k1k has quit [Quit: Leaving]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<funkytwig> found the bugger
<funkytwig> venue.add_when( venue.add_when( d ) )
dstrunk has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<clemens3> good. as long as it is not a concurrency issue.. just a matter of time
govg has quit [Ping timeout: 240 seconds]
NeverTired has joined #ruby
astrobunny has joined #ruby
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
<funkytwig> also think this may be a bit OTT
<funkytwig> s = s.gsub( "\n"," " )
<funkytwig> s = s.strip
<funkytwig> s = s.gsub( "\n"," " )
<funkytwig> s = s.gsub(/\s+/, ' ')
<funkytwig> s = s.gsub( "\t"," " )
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
<bitflipper> >> "\n\t ".strip
<bitflipper> i think so. strip does everything you want already.
WeiJunLi has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
<bitflipper> if not, s.gsub /[:space]/, '' should work.
mathys has quit [Quit: Leaving]
<funkytwig> thought it only toped and tailed
jamesaxl has quit [Quit: WeeChat 1.8]
<funkytwig> Its been a frustrating day, fix one problem and another arises;(
<funkytwig> Anyone know Nokogiri scraping gem
<funkytwig> I hahave
<funkytwig> #<Nokogiri::XML::Element:0x9538dc name="description" children=[#<Nokogiri::XML::CDATA:0x953594 "Eddie Martin's Open Mic Night">]>
<funkytwig> and cart work out how to extract the string at end.
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bruno- has joined #ruby
<bitflipper> pry-stack_explorer works on 2.4 for me now. no idea what happened.
vondruch has quit [Client Quit]
vondruch has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
rikkipitt has joined #ruby
ruby[bot] has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
enterprisey has quit [Read error: Connection reset by peer]
marr has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
harai has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
vondruch has quit [Client Quit]
vondruch has joined #ruby
phinxy has joined #ruby
Dimik has joined #ruby
<funkytwig> bitflipper, Have been. thought .text would do it and it looks right but when I pass it into a method it wont .gsub as it says its an array
s3nd1v0g1us has joined #ruby
<funkytwig> bitflipper, but when I try to walk through it with map it ways map is an undefined method;(
TomyLobo has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
<funkytwig> bitflipper, anyway, thanks for your help today, think ime calling it a day
Sammichmaker has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
vondruch has quit [Client Quit]
vondruch has joined #ruby
milardovich has quit [Remote host closed the connection]
<bitflipper> funkytwig: e.children will return a NodeList, e.children.each might give you an Enumerator, so try: e.children.each.to_a.first.text
<bitflipper> sorry
<bitflipper> a NodeSet
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bitflipper> it has to_a
Dark_Arc has quit [Read error: Connection reset by peer]
dstrunk has joined #ruby
im314ous has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
t-recx has quit [Quit: t-recx]
ltem has quit [Quit: Leaving]
milardovich has joined #ruby
eljimmy has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
rikkipitt has quit [Quit: Leaving...]
enterprisey has quit [Remote host closed the connection]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
kn-928 has joined #ruby
hahuang61 has joined #ruby
biberu has quit []
seggy has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
ta_ has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 248 seconds]
Rodya_ has joined #ruby
_whitelogger has joined #ruby
madgen has joined #ruby
chouhoulis has joined #ruby
raynold has joined #ruby
astrobunny has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
astrobunny has quit [Ping timeout: 248 seconds]
eljimmy has joined #ruby
eljimmy has quit [Client Quit]
mostlybadfly has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
_sfiguser has quit [Quit: Leaving]
phinxy has quit [Read error: Connection reset by peer]
phinxy has joined #ruby
phinxy has quit [Client Quit]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
conta has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
ResidentBiscuit has joined #ruby
davic has quit [Quit: Connection closed for inactivity]
NeverTired has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
username_ has joined #ruby
NightMonkey has quit [Quit: ZNC - http://znc.in]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
NightMonkey has joined #ruby
username_ has quit [Ping timeout: 240 seconds]
nacsurte_ has joined #ruby
bruno- has quit [Quit: Lost terminal]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
gigetoo has quit [Ping timeout: 255 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
bmurt has joined #ruby
harai has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
milardovich has joined #ruby
eckhardt has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
harai has quit [Ping timeout: 255 seconds]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
naprimer has joined #ruby
uZiel has quit [Ping timeout: 268 seconds]
vondruch has quit [Quit: vondruch]
lasey has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
lasey has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
Rodya_ has quit [Remote host closed the connection]
madgen has joined #ruby
milardovich has quit [Ping timeout: 255 seconds]
AndBobsYourUncle has joined #ruby
PaulCapestany has quit [Quit: .]
vondruch has quit [Quit: vondruch]
vondruch has joined #ruby
armyriad has quit [Quit: Leaving]
Rodya_ has joined #ruby
AndBobsYourUncle has quit [Client Quit]
armyriad has joined #ruby
WeiJunLi has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
conta has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]