mangold has quit [Quit: This computer has gone to sleep]
Xiti has joined #ruby
raulp has quit [Remote host closed the connection]
Dreamer3_ has quit [Quit: Computer has gone to sleep.]
raulp has joined #ruby
Hobbyboy has joined #ruby
elphe has joined #ruby
Inline has quit [Quit: Leaving]
elphe has quit [Ping timeout: 268 seconds]
dellavg_ has quit [Ping timeout: 244 seconds]
elphe has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
elphe has quit [Ping timeout: 250 seconds]
reber has joined #ruby
Xiti has joined #ruby
hiroaki has joined #ruby
jaddison has joined #ruby
conta has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 268 seconds]
conta1 is now known as conta
sauvin has joined #ruby
armyriad has quit [Ping timeout: 268 seconds]
armyriad has joined #ruby
sepp2k has joined #ruby
awkwords has quit [Quit: sleepy time]
dviola has quit [Quit: WeeChat 2.3]
aupadhye has joined #ruby
crankhar1er has joined #ruby
jaddison has quit [Quit: jaddison]
crankhar1er has quit [Ping timeout: 250 seconds]
venmx has quit [Ping timeout: 246 seconds]
reber has quit [Remote host closed the connection]
mangold has joined #ruby
Aqo has joined #ruby
roshanavand has joined #ruby
eckhardt has joined #ruby
apparition has joined #ruby
dbz has quit [Remote host closed the connection]
dbz has joined #ruby
uplime has quit [Quit: WeeChat 2.2]
cnsvc_ has joined #ruby
dbz has quit [Ping timeout: 244 seconds]
roshanavand has quit [Remote host closed the connection]
cnsvc has quit [Ping timeout: 256 seconds]
alem0lars has joined #ruby
alem0lars has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
Puffball has quit [Remote host closed the connection]
Azure has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
<Aqo>
hey guys, I would like to look at some real Ruby projects to learn good practices for writing Ruby
<Aqo>
can someone recommend some open source repos that have good quality code in them to review
<Aqo>
as a newcomer to the language I can't judge what's "good style" or "bad style" in Ruby so it would be nice to get a reference from a regular Ruby user
clemens3 has joined #ruby
<baweaver>
Aqo: what type of projects interest you?
waheedi has joined #ruby
<sezuan>
zenspider: Thanks.
Burgestrand has joined #ruby
roshanavand has joined #ruby
<Aqo>
at the very least I want to try making an http server (rest api / simple frontend thing) and a simple windowing app (maybe a gui for some file format decoder/encoder)
<baweaver>
Rack is typical for Ruby.
Burgestrand has quit [Quit: Closing time!]
dkmueller has joined #ruby
Burgestrand has joined #ruby
mikecmpbll has joined #ruby
vondruch has quit [Quit: vondruch]
asphyxia has quit [Ping timeout: 246 seconds]
vondruch has joined #ruby
venmx has joined #ruby
spectra has quit [Ping timeout: 252 seconds]
spectra has joined #ruby
Guest21835 has joined #ruby
<_ikke_>
Is there an easy way to execute a process as a specific user (when run as root) with something like Open3, or do I have to rely on sudo?
keden has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
cnsvc_ has quit [Ping timeout: 256 seconds]
asphyxia has joined #ruby
dhollinger has quit [Read error: Connection reset by peer]
dhollinger has joined #ruby
LinuxKnight has quit [Remote host closed the connection]
LinuxKnight has joined #ruby
mangold has joined #ruby
tdy has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
phaul has joined #ruby
cnsvc_ has joined #ruby
postmodern has quit [Quit: Leaving]
c0ncealed4 has quit [Remote host closed the connection]
Bish has joined #ruby
<Bish>
proc does not have a operator to chain methods right?
<Bish>
marz_d`ghostman: well the thing that logs could have a reference to the logger
<bougyman>
but it doesn't complain if you change it
<Bish>
kinda like
<Bish>
App.loggers << Logger.new($stdout)
<bougyman>
yeah, that's the most common pattern I see
<marz_d`ghostman>
ah so you can just access it via MyApp::log
<Bish>
marz_d`ghostman: rather MyApp.log
<marz_d`ghostman>
oh right cause it's a class method
<Bish>
yip
<bougyman>
module method
<Bish>
same thing, really :p
<Bish>
>> Class.is_a? Module
<marz_d`ghostman>
Iwhat's the difference of :: and . then?
<bougyman>
it's considered good style to use .
<Bish>
marz_d`ghostman: you access constants of a module with ::
<bougyman>
and weird to use :: for anything other than nesting namespaces.
<Bish>
methods aren't constants
<bougyman>
or accessing ... yeah
<bougyman>
:: _works_, but it's ruby idiom to use . for calling methods, not ::
<Bish>
why does that work in the first place, hm
<Bish>
what's a pretty way to get month,weeks,days,hours out of a time difference
<Bish>
i can only think of some ugly inject
<marz_d`ghostman>
By the way, if I have a Configuration module on my module MyApp, can I call the Configuration module directly or do I still have to prepend it with MyApp::Configuration?
<Bish>
if you're inside MyApp you can ask Configuration without prefix
<Bish>
if you're deeper, or higher, you can't
<phaul>
are you sure about deeper? I think being deeper would work...
<phaul>
altough each_with object could write it into the accum like inject does, but then it couldn't return
<Bish>
yeah thing is i need to carry through 2 values
<Bish>
so i would carry on an array, which is the same thing
apparition has quit [Quit: Bye]
aufi has quit [Remote host closed the connection]
BTRE has joined #ruby
<Bish>
guess there is no real pretty way to do that
<phaul>
in a code that's in a real project I would just spell out 3-4 lines in a method, with local vars for months, weeks, days.. Much easier to understand
FastJack has quit [Ping timeout: 264 seconds]
Guest21835 has quit [Ping timeout: 250 seconds]
dviola has joined #ruby
FastJack has joined #ruby
akem__ has quit [Read error: Connection reset by peer]
akem__ has joined #ruby
mangold has joined #ruby
sheepman has quit [Ping timeout: 264 seconds]
mangold has quit [Client Quit]
cnsvc_ has joined #ruby
sheepman has joined #ruby
thinkpad has quit [Ping timeout: 246 seconds]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
thinkpad has joined #ruby
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
Guest21835 has joined #ruby
bmurt has joined #ruby
AJA4350 has joined #ruby
reber has joined #ruby
elomatreb has quit [Quit: mep mep]
elomatreb has joined #ruby
Guest21835 has quit [Ping timeout: 245 seconds]
roshanavand has quit [Remote host closed the connection]
Guest21835 has joined #ruby
dkmueller has quit [Ping timeout: 250 seconds]
awkwords has joined #ruby
Dreamer3_ has joined #ruby
awkwords has quit [Quit: sleepy time]
awkwords has joined #ruby
cnsvc_ has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
dkmueller has joined #ruby
conta has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
aufi has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
conta has joined #ruby
thinkpad has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
waheedi has quit [Quit: waheedi]
mrbirkov has joined #ruby
<mrbirkov>
hello
asphyxia has quit [Ping timeout: 240 seconds]
<jhass>
hi
asphyxia has joined #ruby
cnsvc_ has joined #ruby
elphe has joined #ruby
crankhar1er has joined #ruby
asphyxia has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
waheedi has joined #ruby
blackmesa has quit [Quit: WeeChat 2.3]
waheedi has quit [Quit: waheedi]
roshanavand has quit [Remote host closed the connection]
mrbirkov has quit [Remote host closed the connection]