havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com | Ruby 2.6.5, 2.5.7, 2.7.0-preview3: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.de/ and select Ruby as the language | Rails questions? Ask in #RubyOnRails | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | Can't talk? Register/identify with Nickserv first!
<dG___> goldfish: right, but I also need to check if "settings" exist or not
ellcs has joined #ruby
<dG___> basically, here's the scenario: I have a default setting (global_enabled = true), and a list of items composed by dictionaries where these can have or not the "settings" nested dictionary (e.g. `items = [{"id" => 1, "settings" => {"enabled" => false}, {"id" => 2}, ...]`
nowhere_man has quit [Ping timeout: 276 seconds]
<dG___> So, when iterating through that list (or array or whatever is called in Ruby), I need to check if the current item has `settings` enabled or not, and default it to `global_enabled` if `settings` does not exist.
<kaleido> a dictionary in python is a hash in ruby, no? just collections of key/value pairs?
<dG___> right
<kaleido> sorry i cant answer but this should provide all the methods available on a hash https://ruby-doc.org/core-2.6.5/Hash.html
<kaleido> i imagine the answer is there, but it's more advanced with ruby than i am :/
drincruz has quit [Ping timeout: 276 seconds]
<dG___> yeah, I'll find a way
<kaleido> {}.empty? sems like a fit?
<leftylink> okay, well
<leftylink> remember that #dig will be `nil` if something in the middle doesn't exist
<leftylink> and that `nil || x` is x
phaul has quit [Ping timeout: 240 seconds]
<leftylink> with these facts combined
<leftylink> captain planet
<leftylink> I mean, captain solution, I guess
GodFather has quit [Ping timeout: 265 seconds]
hutch1 has quit [Ping timeout: 276 seconds]
akemhp_ has joined #ruby
akem has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
<dG___> well, this is what I got: https://pastebin.com/j9tf4MRD
<ruby[bot]> dG___: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<dG___> anyway to simplify this?
drale2k has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
phaul has joined #ruby
davispuh has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leftylink> as I mentioned
<leftylink> &>> nil || :whatever
<rubydoc> # => :whatever (https://carc.in/#/r/851m)
phaul has joined #ruby
<leftylink> however, note that it doesn't even matter. you have on a later line `if !is_disabled`, so there's no point changing `nil` to `false`
<leftylink> &>> if nil; puts "doing the thing" end
<rubydoc> # => nil (https://carc.in/#/r/851n)
<leftylink> it did not do the thing.
<leftylink> &>> if true; puts "doing the thing" end
<rubydoc> # => doing the thing... check link for more (https://carc.in/#/r/851o)
ellcs has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
<leftylink> er I guess I should negate that
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
<leftylink> &>> if !nil; puts "doing the thing" end
<rubydoc> # => doing the thing... check link for more (https://carc.in/#/r/851p)
<leftylink> it did the thing.
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
<leftylink> enjoy.
greengriminal has joined #ruby
thomas_25 has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 276 seconds]
greengriminal has quit [Client Quit]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
nacsurte has quit [Ping timeout: 276 seconds]
greengriminal has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has joined #ruby
AJA4351 has joined #ruby
NODE has quit [Quit: changing servers]
AJA4350 has quit [Ping timeout: 265 seconds]
AJA4351 is now known as AJA4350
NODE has joined #ruby
<dG___> thank you sir
rainmanjam has joined #ruby
<dG___> btw, I'm defaulting to `false` there, yes, but that might change
NODE has quit [Client Quit]
<leftylink> ah.
<leftylink> indeed indeed then
nacsurte has joined #ruby
phaul has joined #ruby
greengriminal has quit [Quit: This computer has gone to sleep]
NODE has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
rainmanjam has quit [Read error: Connection reset by peer]
nacsurte has quit [Ping timeout: 240 seconds]
rainmanjam has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
Aszuos has joined #ruby
nacsurte has joined #ruby
greengriminal has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
phaul has joined #ruby
AJA4350 has quit [Quit: AJA4350]
thomas_25 has joined #ruby
Nicmavr has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 268 seconds]
orbyt_ has joined #ruby
phaul has joined #ruby
NL3limin4t0r_afk has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
NL3limin4t0r_afk has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
phaul has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Read error: Connection reset by peer]
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
fphilipe_ has joined #ruby
Aszuos has quit []
troulouliou_dev has joined #ruby
drincruz has joined #ruby
troulouliou_dev has quit [Client Quit]
fphilipe_ has quit [Ping timeout: 276 seconds]
cthulchu has quit [Ping timeout: 265 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nacsurte has quit [Ping timeout: 240 seconds]
skx86 has quit [Quit: Connection closed for inactivity]
TCZ has quit [Quit: Bye Bye]
skx86 has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
duderonomy has joined #ruby
nacsurte has joined #ruby
evdubs has quit [Quit: Leaving]
evdubs has joined #ruby
dev-rfc83 has joined #ruby
cd has quit [Quit: cd]
MrCrackPot has quit [Ping timeout: 250 seconds]
nacsurte has quit [Ping timeout: 265 seconds]
brool has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 265 seconds]
nacsurte has joined #ruby
yokel has joined #ruby
teclator has quit [Ping timeout: 276 seconds]
drincruz has quit [Ping timeout: 250 seconds]
oncall-pokemon has quit [Quit: Connection closed for inactivity]
nacsurte has quit [Ping timeout: 250 seconds]
nacsurte has joined #ruby
xall has joined #ruby
teclator has joined #ruby
cd has joined #ruby
hutch1 has joined #ruby
fphilipe_ has joined #ruby
sagax has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
MrCrackPot has joined #ruby
bruce_lee has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
nacsurte has quit [Ping timeout: 265 seconds]
bsdbandit-01 has joined #ruby
bsdband24 has quit [Ping timeout: 265 seconds]
itarato has quit [Ping timeout: 276 seconds]
sphex has quit [Remote host closed the connection]
greenhat has quit [Ping timeout: 250 seconds]
dinfuehr has quit [Ping timeout: 268 seconds]
dinfuehr has joined #ruby
greenhat has joined #ruby
akem__ has joined #ruby
akemhp_ has quit [Ping timeout: 240 seconds]
akem__ has quit [Ping timeout: 240 seconds]
greenhat has quit [Ping timeout: 265 seconds]
jinie has quit [Ping timeout: 250 seconds]
jinie has joined #ruby
greenhat has joined #ruby
kapil_ has joined #ruby
ur5us__ has quit [Ping timeout: 250 seconds]
teclator has quit [Ping timeout: 268 seconds]
drale2k has joined #ruby
Technodrome has joined #ruby
sergioro has joined #ruby
drale2k has quit [Ping timeout: 276 seconds]
teclator has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Read error: Connection reset by peer]
akemhp has joined #ruby
xall has quit [Ping timeout: 268 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
greenhat has quit [Ping timeout: 265 seconds]
teclator has quit [Ping timeout: 246 seconds]
galaxie has quit [Remote host closed the connection]
bsdbandit-01 has quit [Ping timeout: 265 seconds]
galaxie has joined #ruby
greengriminal has joined #ruby
galaxie has quit [Ping timeout: 260 seconds]
lineus has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
iNs has quit [Ping timeout: 260 seconds]
nisstyre has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby
nacsurte has joined #ruby
TzilTzal has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
greenhat has joined #ruby
nacsurte has quit [Ping timeout: 268 seconds]
greenhat has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
lineus has joined #ruby
iNs has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jinie_ has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
jinie_ is now known as jinie
al2o3-cr has joined #ruby
galaxie has joined #ruby
titanbiscuit has joined #ruby
greengriminal has quit [Quit: Leaving]
bsdbandit-01 has joined #ruby
dionysus69 has joined #ruby
Mrbuck has joined #ruby
schne1der has joined #ruby
sergioro has quit [Quit: leaving]
sauvin has joined #ruby
rainmanj_ has joined #ruby
rainmanjam has quit [Read error: Connection reset by peer]
rainmanjam has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
buckworst has quit [Ping timeout: 240 seconds]
rainmanj_ has quit [Ping timeout: 268 seconds]
schne1der has quit [Ping timeout: 245 seconds]
Xiti` has joined #ruby
xco has joined #ruby
Xiti has quit [Ping timeout: 268 seconds]
Mrbuck has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
<TzilTzal> Hi
<TzilTzal> What does including a module inside an unless block do exactly?
<ytti> unsure if block is relevant here
<ytti> it adds the methods from the module
<ytti> as if you had defined them there
<TzilTzal> I thought it was only used in classes
<ytti> module and class are almost the same thing
infinityfye has joined #ruby
<TzilTzal> So it just makes the module methods available in that block?
<ytti> in the scope, yes
phaul has quit [Ping timeout: 240 seconds]
<TzilTzal> Thanks.
im0nde has quit [Ping timeout: 245 seconds]
phaul has joined #ruby
im0nde has joined #ruby
<ytti> enumerable is module in ruby
<ytti> which often gets included due to its great method collection
maasha has joined #ruby
maasha has left #ruby [#ruby]
maasha has joined #ruby
<maasha> What is the correct template for this: format('%04d', index + 1) - Rubocop complains: Prefer annotated tokens (like `%<foo>s`) over unannotated tokens (like `%s`). (convention:Style/FormatStringToken)
phaul has quit [Ping timeout: 240 seconds]
<ytti> [1] pry(main)> puts "%04<moi>d" % {moi: 42}
<ytti> 0042
phaul has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
MrCrackPot has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 265 seconds]
<maasha> Ah
nacsurte has joined #ruby
phaul has joined #ruby
<maasha> ytti this is how rubocop wants it: format('%04<index>d', index: index + 1)
nacsurte has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 265 seconds]
prestorium has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
dev-rfc83 has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
phaul has joined #ruby
maasha has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
infinityfye has quit [Remote host closed the connection]
phaul has joined #ruby
cd has quit [Quit: cd]
ur5us__ has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
bsdband90 has joined #ruby
fig-le-deunch has joined #ruby
phaul has joined #ruby
bsdbandit-01 has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
fig-le-deunch has quit [Quit: Konversation terminated!]
schne1der has joined #ruby
phaul has joined #ruby
MrCrackPot has joined #ruby
MrCrackPotBob has joined #ruby
Koshian has quit [*.net *.split]
volix has quit [*.net *.split]
Keltia has quit [*.net *.split]
S007 has quit [*.net *.split]
chamunks has quit [*.net *.split]
haylon has quit [*.net *.split]
salvor has quit [*.net *.split]
Flonk has quit [*.net *.split]
darkphnx4805 has quit [*.net *.split]
phaul has quit [Ping timeout: 268 seconds]
MrCrackPot has quit [Ping timeout: 265 seconds]
darkphnx4805 has joined #ruby
chamunks has joined #ruby
volix has joined #ruby
S007 has joined #ruby
salvor has joined #ruby
Koshian has joined #ruby
Keltia has joined #ruby
haylon has joined #ruby
Flonk has joined #ruby
Flonk has quit [Max SendQ exceeded]
Flonk has joined #ruby
phaul has joined #ruby
lineus has quit [Ping timeout: 260 seconds]
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
hutch1 has quit [Ping timeout: 265 seconds]
titanbiscuit has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
postmodern has quit [Quit: Leaving]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
ur5us__ has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
lxsameer has joined #ruby
infinityfye has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
nacsurte has joined #ruby
phaul has joined #ruby
helpa has quit [Remote host closed the connection]
_whitelogger has joined #ruby
clemens3 has joined #ruby
helpa has joined #ruby
Koshian has quit [*.net *.split]
volix has quit [*.net *.split]
Keltia has quit [*.net *.split]
S007 has quit [*.net *.split]
darkphnx4805 has quit [*.net *.split]
chamunks has quit [*.net *.split]
haylon has quit [*.net *.split]
salvor has quit [*.net *.split]
johnny56_ has quit [*.net *.split]
lnx has quit [*.net *.split]
ua has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
SanguineAnomaly has quit [*.net *.split]
reaVer has quit [*.net *.split]
IsoLinCHiP has quit [*.net *.split]
endorama has quit [*.net *.split]
ged has quit [*.net *.split]
rainer_tm has quit [*.net *.split]
schne1der has quit [*.net *.split]
bsdband90 has quit [*.net *.split]
NODE has quit [*.net *.split]
leah2 has quit [*.net *.split]
sammi`_ has quit [*.net *.split]
mahlon has quit [*.net *.split]
Furai has quit [*.net *.split]
nibbo has quit [*.net *.split]
teej has quit [*.net *.split]
vqrs_ has quit [*.net *.split]
EvilJStoker has quit [*.net *.split]
MentalPower has quit [*.net *.split]
Rush has quit [*.net *.split]
integral has quit [*.net *.split]
graphicsv_ has quit [*.net *.split]
WA9ACE has quit [*.net *.split]
LtHummus has quit [*.net *.split]
wnd has quit [*.net *.split]
rafadc has quit [*.net *.split]
nixy37 has quit [*.net *.split]
sparc has quit [*.net *.split]
SlavicBohemian has quit [*.net *.split]
samdixon[m] has quit [*.net *.split]
ytti has quit [*.net *.split]
ruby[bot] has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
Retr0Punk has quit [*.net *.split]
ctp has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
JJonah_ has quit [*.net *.split]
fowlduck has quit [*.net *.split]
jetpack_joe has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
Lewix has quit [*.net *.split]
canton7 has quit [*.net *.split]
bhaak has quit [*.net *.split]
darkf has quit [*.net *.split]
VSpike has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
themoonmaster has quit [*.net *.split]
jokester has quit [*.net *.split]
e has quit [*.net *.split]
voker57 has quit [*.net *.split]
csaunders has quit [*.net *.split]
zipkid has quit [*.net *.split]
seb_ has quit [*.net *.split]
jnix has quit [*.net *.split]
chromis has quit [*.net *.split]
raggi- has quit [*.net *.split]
darthThorik has quit [*.net *.split]
Net has quit [*.net *.split]
gmcintire has quit [*.net *.split]
phaul has quit [*.net *.split]
MrCrackPotBob has quit [*.net *.split]
prestorium has quit [*.net *.split]
rainmanjam has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
bvdw has quit [*.net *.split]
Technodrome has quit [*.net *.split]
CalimeroTeknik has quit [*.net *.split]
sh7d has quit [*.net *.split]
nofxx has quit [*.net *.split]
vondruch has quit [*.net *.split]
Guest78351 has quit [*.net *.split]
Milos has quit [*.net *.split]
duckpuppy has quit [*.net *.split]
m17 has quit [*.net *.split]
sixty4bit has quit [*.net *.split]
asio has quit [*.net *.split]
kloeri has quit [*.net *.split]
zxq2 has quit [*.net *.split]
BTRE has quit [*.net *.split]
ccooke has quit [*.net *.split]
j416 has quit [*.net *.split]
aef has quit [*.net *.split]
jmcgnh has quit [*.net *.split]
redlegion has quit [*.net *.split]
ropeney has quit [*.net *.split]
greypack has quit [*.net *.split]
bluetown has quit [*.net *.split]
MasterNayru has quit [*.net *.split]
eam has quit [*.net *.split]
woodruffw has quit [*.net *.split]
joast has quit [*.net *.split]
Bish has quit [*.net *.split]
pizzaiolo has quit [*.net *.split]
_whitelogger has joined #ruby
MrCrackPotBob has joined #ruby
Net has joined #ruby
jokester has joined #ruby
gmcintire has joined #ruby
voker57 has joined #ruby
jetpack_joe has joined #ruby
JJonah_ has joined #ruby
Lewix has joined #ruby
KrzaQ has joined #ruby
fowlduck has joined #ruby
ctp has joined #ruby
Fridtjof has joined #ruby
ruby[bot] has joined #ruby
Retr0Punk has joined #ruby
samdixon[m] has joined #ruby
nixy37 has joined #ruby
ytti has joined #ruby
SlavicBohemian has joined #ruby
rafadc has joined #ruby
WA9ACE has joined #ruby
LtHummus has joined #ruby
wnd has joined #ruby
MentalPower has joined #ruby
Rush has joined #ruby
integral has joined #ruby
graphicsv_ has joined #ruby
EvilJStoker has joined #ruby
vqrs_ has joined #ruby
Furai has joined #ruby
nibbo has joined #ruby
leah2 has joined #ruby
sammi`_ has joined #ruby
mahlon has joined #ruby
schne1der has joined #ruby
bsdband90 has joined #ruby
justache has joined #ruby
teej has joined #ruby
galaxie has joined #ruby
electrostat has joined #ruby
iNs has joined #ruby
phI||Ip has joined #ruby
rcs has joined #ruby
tris has joined #ruby
tabakhase has joined #ruby
woodruffw has joined #ruby
booboy has joined #ruby
joast has joined #ruby
MasterNayru has joined #ruby
eam has joined #ruby
greypack has joined #ruby
bluetown has joined #ruby
ropeney has joined #ruby
aef has joined #ruby
j416 has joined #ruby
redlegion has joined #ruby
ccooke has joined #ruby
zxq2 has joined #ruby
kloeri has joined #ruby
BTRE has joined #ruby
asio has joined #ruby
Bish has joined #ruby
m17 has joined #ruby
Milos has joined #ruby
duckpuppy has joined #ruby
Guest78351 has joined #ruby
sixty4bit has joined #ruby
sh7d has joined #ruby
vondruch has joined #ruby
nofxx has joined #ruby
CalimeroTeknik has joined #ruby
Technodrome has joined #ruby
bvdw has joined #ruby
rainmanjam has joined #ruby
dionysus69 has joined #ruby
prestorium has joined #ruby
phaul has joined #ruby
ellcs has joined #ruby
Jonopoly has joined #ruby
brer has joined #ruby
jtdowney has joined #ruby
baweaver has joined #ruby
gdonald_ has joined #ruby
sauvin has joined #ruby
al2o3-cr has joined #ruby
jinie has joined #ruby
teclator has joined #ruby
TzilTzal has joined #ruby
dinfuehr has joined #ruby
yokel has joined #ruby
bruce_lee has joined #ruby
Nicmavr has joined #ruby
matthewd has joined #ruby
rwb has joined #ruby
cxl has joined #ruby
jcalla has joined #ruby
chalkmonster has joined #ruby
whiis has joined #ruby
gigetoo has joined #ruby
dalpo has joined #ruby
justinmrkva has joined #ruby
bier has joined #ruby
kke has joined #ruby
gsingh93 has joined #ruby
arthurnn has joined #ruby
dorian has joined #ruby
MuffinPimp has joined #ruby
nirix has joined #ruby
tomaw has joined #ruby
teardown has joined #ruby
SuperLag has joined #ruby
znz_jp has joined #ruby
Nowaker has joined #ruby
Emmanuel_Chanel has joined #ruby
DarthGandalf has joined #ruby
Xeago has joined #ruby
nius has joined #ruby
jdeen has joined #ruby
wymillerlinux has joined #ruby
rubyguy_ has joined #ruby
n1v has joined #ruby
baemazhen has joined #ruby
lol768_ has joined #ruby
peteretep has joined #ruby
entel has joined #ruby
jud has joined #ruby
DTZUZU has joined #ruby
rapha has joined #ruby
funnel has joined #ruby
qbrd[m] has joined #ruby
otaznik[m] has joined #ruby
foxxx0 has joined #ruby
Mrgoose845701915 has joined #ruby
reyfi9e has joined #ruby
vrih has joined #ruby
uplime has joined #ruby
lypsis has joined #ruby
JayDoubleu has joined #ruby
ExoUNX has joined #ruby
cliffindor[m] has joined #ruby
ryzokuken has joined #ruby
Arahael has joined #ruby
unreal has joined #ruby
FastJack has joined #ruby
TvL2386 has joined #ruby
cadeskywalker has joined #ruby
mniip has joined #ruby
ropeney_ has joined #ruby
x0f has joined #ruby
Yxhuvud has joined #ruby
csaunders has joined #ruby
e has joined #ruby
seb_ has joined #ruby
zipkid has joined #ruby
raggi- has joined #ruby
darthThorik has joined #ruby
SegFaultAX has joined #ruby
VSpike has joined #ruby
themoonmaster has joined #ruby
chromis has joined #ruby
sparc has joined #ruby
bhaak has joined #ruby
canton7 has joined #ruby
iamdevnul has joined #ruby
lakrivite[m] has joined #ruby
pizzaiolo has joined #ruby
darkf has joined #ruby
RiPuk has joined #ruby
akosednar_ has joined #ruby
mr-kumar has joined #ruby
fmccann has joined #ruby
edwardly has joined #ruby
antholog has joined #ruby
jordanm has joined #ruby
d^sh has joined #ruby
CrazyEddy has joined #ruby
someGmrGrl[m] has joined #ruby
danielk43[m] has joined #ruby
Hanma[m] has joined #ruby
kira_rose[m] has joined #ruby
Hanspolo[m] has joined #ruby
turt2live has joined #ruby
mariusz-kowalski has joined #ruby
Corey[m] has joined #ruby
kp666[m] has joined #ruby
sepp2k has joined #ruby
guardian has joined #ruby
IGnorAND has joined #ruby
RickyAtRigor has joined #ruby
shalok has joined #ruby
cranq has joined #ruby
arekushi has joined #ruby
zenspider has joined #ruby
Fraeon has joined #ruby
thecoffemaker has joined #ruby
Nanuq has joined #ruby
Rudd0 has joined #ruby
`Alison has joined #ruby
michael_mbp has joined #ruby
badeball_ has joined #ruby
hagabaka has joined #ruby
quintasan has joined #ruby
KramerC has joined #ruby
cats has joined #ruby
d10n-work has joined #ruby
wbnns has joined #ruby
matti has joined #ruby
Fenhl has joined #ruby
hsiktas has joined #ruby
jerme_ has joined #ruby
Liothen has joined #ruby
strmpnk has joined #ruby
Iambchop has joined #ruby
pitastrudl has joined #ruby
sariyar has joined #ruby
Hobbyboy has joined #ruby
tweaks has joined #ruby
shanks8080 has joined #ruby
KnownSyntax has joined #ruby
klaas has joined #ruby
dhollinger has joined #ruby
shortdudey123 has joined #ruby
Yuyu0 has joined #ruby
trif has joined #ruby
ChrisBr has joined #ruby
nfsnobody has joined #ruby
matled has joined #ruby
go|dfish has joined #ruby
sevvie has joined #ruby
olblak has joined #ruby
bga57 has joined #ruby
daemonwrangler has joined #ruby
pabs has joined #ruby
aspiers has joined #ruby
priodev has joined #ruby
meinside has joined #ruby
ltp has joined #ruby
kenichi has joined #ruby
xpitr has joined #ruby
jhass has joined #ruby
contradictioned has joined #ruby
iamayam has joined #ruby
TheBrayn has joined #ruby
russt has joined #ruby
infernix has joined #ruby
leftylink has joined #ruby
r3my has joined #ruby
lurkless has joined #ruby
marens has joined #ruby
towo has joined #ruby
ByronJohnson has joined #ruby
arooni has joined #ruby
Junaos has joined #ruby
Jello_Raptor has joined #ruby
xMopx has joined #ruby
Seich has joined #ruby
mcspud has joined #ruby
mgxm has joined #ruby
rann has joined #ruby
JasonO has joined #ruby
Mon_Ouie has joined #ruby
sapphyrus_ has joined #ruby
linuus has joined #ruby
Prira_ has joined #ruby
sirecote has joined #ruby
thebetra2 has joined #ruby
ErhardtMundt_ has joined #ruby
vcavallo_ has joined #ruby
Sp4rKy has joined #ruby
tw1sted has joined #ruby
Guest21040 has joined #ruby
Radar has joined #ruby
Lyubo1 has joined #ruby
Exagone313 has joined #ruby
ouemt has joined #ruby
madhatter has joined #ruby
gavlee has joined #ruby
infinityfye has joined #ruby
titanbiscuit has joined #ruby
xco has joined #ruby
justinmcp_ has joined #ruby
pelegreno__ has joined #ruby
ozzloy has joined #ruby
kaleido has joined #ruby
camilasan has joined #ruby
ammar has joined #ruby
lxsameer has joined #ruby
jidar has joined #ruby
NightMonkey has joined #ruby
darris has joined #ruby
stooj has joined #ruby
segy has joined #ruby
daed has joined #ruby
shaman42 has joined #ruby
Nightmare has joined #ruby
Pillus has joined #ruby
cpallares has joined #ruby
Davey has joined #ruby
thebetrayer has joined #ruby
twe4ked has joined #ruby
BuildTheRobots has joined #ruby
rprimus has joined #ruby
gajus has joined #ruby
mattwc has joined #ruby
IceDragon has joined #ruby
maxmanders has joined #ruby
siasmj has joined #ruby
DEac- has joined #ruby
liKe2k1 has joined #ruby
ghormoon has joined #ruby
pilcrow has joined #ruby
vircung has joined #ruby
Vashy has joined #ruby
larissa has joined #ruby
mkaito has joined #ruby
manveru has joined #ruby
timmow has joined #ruby
mnemon has joined #ruby
hahuang65 has joined #ruby
coffeejunk has joined #ruby
oz has joined #ruby
nuck has joined #ruby
ule has joined #ruby
vdl has joined #ruby
manakanapa has joined #ruby
chihhsin has joined #ruby
englishm has joined #ruby
marahin has joined #ruby
_Tristan_ has joined #ruby
rheddry has joined #ruby
depesz has joined #ruby
swistak35 has joined #ruby
shansen has joined #ruby
gnufied has joined #ruby
mr_rich101 has joined #ruby
dumptruckman has joined #ruby
noodle has joined #ruby
CommanderViral1 has joined #ruby
phenom has joined #ruby
marcellus has joined #ruby
p3ps1 has joined #ruby
kevinsjoberg has joined #ruby
ec has joined #ruby
Mutsuhito has joined #ruby
interruptinuse has joined #ruby
justache has quit [Max SendQ exceeded]
jhill has quit [Max SendQ exceeded]
nisstyre has quit [Max SendQ exceeded]
kapil_ has quit [Max SendQ exceeded]
teej has quit [Max SendQ exceeded]
donofrio has joined #ruby
nisstyre has joined #ruby
kapil_ has joined #ruby
justache has joined #ruby
salvor has joined #ruby
S007 has joined #ruby
Keltia has joined #ruby
haylon has joined #ruby
chamunks has joined #ruby
Koshian has joined #ruby
volix has joined #ruby
darkphnx4805 has joined #ruby
lnx has joined #ruby
connor_goodwolf has joined #ruby
ua has joined #ruby
reaVer has joined #ruby
SanguineAnomaly has joined #ruby
endorama has joined #ruby
rainer_tm has joined #ruby
ged has joined #ruby
IsoLinCHiP has joined #ruby
linuus[m] has joined #ruby
teej has joined #ruby
jhill has joined #ruby
im0nde has joined #ruby
jnix has joined #ruby
r3m has joined #ruby
havenwood has joined #ruby
shenghi has joined #ruby
zululee_ has joined #ruby
nchambers has joined #ruby
Cork has joined #ruby
universa1 has joined #ruby
tobiasvl has joined #ruby
shokohsc has joined #ruby
adam12 has joined #ruby
Caerus has joined #ruby
c0san0stra has joined #ruby
rcvu has joined #ruby
gremax has joined #ruby
kent\n has joined #ruby
jtperreault has joined #ruby
mistym has joined #ruby
timeless has joined #ruby
podman has joined #ruby
snk has joined #ruby
G has joined #ruby
danielvu has joined #ruby
thebetra- has joined #ruby
claw has joined #ruby
psmolen has joined #ruby
genpaku has joined #ruby
chunkypuffs has joined #ruby
mpp has joined #ruby
d0liver has joined #ruby
Kuukunen has joined #ruby
gbristol has joined #ruby
axsuul has joined #ruby
mjacob has joined #ruby
mkroman has joined #ruby
bougyman has joined #ruby
tjbp has joined #ruby
dan64 has joined #ruby
spectra has joined #ruby
Spitfire has joined #ruby
Caius has joined #ruby
Skarlso has joined #ruby
lucas has joined #ruby
balo has joined #ruby
JoL1hAHN has joined #ruby
Fire-Dragon-DoL has joined #ruby
gorsuch has joined #ruby
afisher has joined #ruby
jrhorn424 has joined #ruby
Scient has joined #ruby
snapcase has joined #ruby
eldritch has joined #ruby
cjohnson has joined #ruby
nemesit|znc has joined #ruby
wmoxam has joined #ruby
miah has joined #ruby
agrecascino has joined #ruby
Raboo has joined #ruby
Nilium has joined #ruby
llua has joined #ruby
Benett has joined #ruby
davor has joined #ruby
mozzarella has joined #ruby
NL3limin4t0r has joined #ruby
dG___ has joined #ruby
DTZUZO has joined #ruby
Inside has joined #ruby
dostoyevsky has joined #ruby
PaulePanter has joined #ruby
m27frogy has joined #ruby
aloy has joined #ruby
creat has joined #ruby
SCHAPiE has joined #ruby
kashike has joined #ruby
ruskie has joined #ruby
kreantos has joined #ruby
xtsee has joined #ruby
bodqhrohro_ has joined #ruby
m3ssia_ has joined #ruby
Tempesta has joined #ruby
ta1 has joined #ruby
rubydoc has joined #ruby
lipoqil has joined #ruby
mkaito_ has joined #ruby
Argorok has joined #ruby
jnix has quit [Changing host]
jnix has joined #ruby
teej has joined #ruby
jhill has quit [Changing host]
jhill has joined #ruby
teej has quit [Changing host]
nchambers has quit [Max SendQ exceeded]
SCHAPiE has quit [Max SendQ exceeded]
chunkypuffs has quit [Max SendQ exceeded]
shokohsc has quit [Max SendQ exceeded]
jhill has quit [Max SendQ exceeded]
teej has quit [Max SendQ exceeded]
mozzarella has quit [Remote host closed the connection]
nchamber- has joined #ruby
teej has joined #ruby
mozzarella has joined #ruby
shokohsc has joined #ruby
jhill has joined #ruby
johnny56_ has joined #ruby
yann-kaelig has joined #ruby
NODE has joined #ruby
romanblanco has joined #ruby
SCHAPiE has joined #ruby
rafadc has quit [Quit: ZNC - https://znc.in]
rafadc has joined #ruby
rafadc_ has joined #ruby
rafadc has quit [Ping timeout: 268 seconds]
clemens3 has joined #ruby
jmcgnh has joined #ruby
jdeen has left #ruby [#ruby]
titanbiscuit has quit [Read error: Connection reset by peer]
titanbiscuit has joined #ruby
gregf_ has joined #ruby
rafadc_ has quit [Ping timeout: 268 seconds]
<Bish> havenwood: i don't quite follor your "object crawling" approach
<Bish> i would just look at the sourcecode of it
<Bish> there is Net::SSH::BufferedIO which is similiar, and i suspect it does the same thing
<Bish> (instead of sending stuff, enqueue it into a buffer)
gregf_ has quit [Remote host closed the connection]
galaxie has quit [Ping timeout: 260 seconds]
galaxie has joined #ruby
TzilTzal has quit [Remote host closed the connection]
TzilTzal has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
antholog has quit [Ping timeout: 265 seconds]
TzilTzal has quit [Ping timeout: 276 seconds]
darkerbit has joined #ruby
<darkerbit> I am just starting Ruby development, and am wondering: is it idiomatic Ruby to "check for types" (in practice check for missing methods) for API-facing functions, or is it better to not check and leave it to the caller?
<Bish> darkerbit: generally u can do what you like
<Bish> but most times u name the parameter accordingly and check it with a "case-when-block"
bvdw has quit [Read error: Connection reset by peer]
<Bish> >> 1
<Bish> &> 1
<rubydoc> parser error at position 0 around `>'
<ruby[bot]> Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<Bish> &> puts 1
<rubydoc> parser error at position 0 around `>'
<Bish> > puts 1
tsrt^ has joined #ruby
bvdw has joined #ruby
<Bish> &> string_or_number = "1"; case string_or_number when String then string_or_number.to_i+1 when Integer then string_or_number+1 else raise StandardError, "Wrong Type" end
<rubydoc> parser error at position 0 around `>'
<Bish> > string_or_number = "1"; case string_or_number when String then string_or_number.to_i+1 when Integer then string_or_number+1 else raise StandardError, "Wrong Type" end
<Bish> & string_or_number = "1"; case string_or_number when String then string_or_number.to_i+1 when Integer then string_or_number+1 else raise StandardError, "Wrong Type" end
<rubydoc> parser error at position 0 around ` '
<Bish> *shrugs*
<Bish> >> puts "hi"
<ruby[bot]> Bish: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<darkerbit> >> 1 + 1
<ruby[bot]> darkerbit: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
phaul has quit [Ping timeout: 268 seconds]
<Bish> darkerbit: to explain how this works: parallel to the == method ruby has a === method, which is not to be mistaken with javascript's ===
<Bish> and the switch-case of equivalent of ruby uses this triple equal
<Bish> and you can do object === Class which is true when object is an instance of that class(or "subclass")
<darkerbit> What about `rescue`?
<Bish> you mean different types of errors?
<darkerbit> Oh sorry, I don't know why my brain decided that IRC is markdown but obviously it isn't
<Bish> rescue has that builtin
<Bish> you can just specifiy multiple error handlers like this:
<Bish> rescue StandardError => e; rescue NetworkError => e; and inside the rescue block e will be the error of that type
<darkerbit> As in if something goes horrendously wrong with the code the rescue part of any function can check if it's a problem with the parameters
prestorium has quit [Ping timeout: 268 seconds]
<Bish> but that is equivalent to case-when-ing the current exception, i guess
<Bish> maybe stack search is faster, though
<darkerbit> actually if I just rescue NoMethodError I can cleanly check the caller's provided parameters
<darkerbit> cleanly and separately
<Bish> never seen that done, though
<Bish> and do you get nomethoderror if you call a existing method with wrong number of arguments?
<darkerbit> does ruby catch wrong number of arguments or does it nil the missing arguments?
<Bish> i think the error will differ
<Bish> it will be NoMethodError and ArgumentError, checking that right now
<darkerbit> if it nils then nomethoderror will occur if you try to get something from nil
<Bish> #<ArgumentError: wrong number of arguments (given 2, expected 3)>
<Bish> #<NoMethodError: undefined method `pix' for main:Object
<Bish> yeah you have access to the parameters inside the exception ahndler of the caller
<Bish> but this design sounds whacky to me
<darkerbit> So it's better to not worry about it and let the caller's mistakes be caller's mistakes?
<Bish> it shouldn't be a methods responsability to know what another function is doing
<Bish> well there i no better, it just doesn't feel right to me
<Bish> it's opinion i guess
<Bish> my argument is: if you do it this way.. and change the called-method's behaviour
chunkypuffs has joined #ruby
<Bish> you have to change the one of ALL callers as well
<darkerbit> though if it's a billion functions deep and throws a NoMethodError it would look like it's a problem with the library even though you supplied the wrong object
<Bish> which would make these association between methods seem like they're one method
<Bish> rather break and have good error messages
<Bish> or even support the "wrong" parameters
<Bish> by, for example, transforming them
<darkerbit> oh, a good base class has methods that throw exceptions so you get good error messages if you forget to implement one
<darkerbit> so often there isn't a need to check them in the function manually, just let ruby do it's thing
<Bish> well your library could have a rescue block around the methods the user of your library calls
<darkerbit> that's what I was talking about the whole time wasn't it?
<Bish> i guess so, yes, but what do you except this handler to do?
<Bish> if you supllied an int, while it wants a string automatic conversion?
<Bish> you will also have to have a convention so that handler knows what was actually meant to be sent
<Bish> s/except/expect
fig-le-deunch has joined #ruby
<darkerbit> the problem is this: suppose you call a library with a wrong object of some kind. then it tells you: "NoMethodError: argument obj does not have method buy_chips_and_salsa" how would you know if it's a problem with your arguments or the library
<darkerbit> because the function you're calling calls another function
skx86 has joined #ruby
<Bish> well your method itself should check what parameter it wants
<darkerbit> which has differently named arguments
<Bish> and throw argumenterror if, for example, the first argument is not an array
<darkerbit> I am very confused, though not by your fault
<darkerbit> I keep seeing conflicting answers everywhere on the internet
phaul has joined #ruby
<Bish> why would it _not_ be the responsability of a method to check it's parameters (in a language that has loose-typing)
<Bish> if you want to make sure, go with strictly typed
<Bish> but putting type-checks everywhere combines the worst of both worlds :D
<darkerbit> I am stupid, the reason I haven't seen any type-checking code is because I only checked standalone applications, not libraries
<darkerbit> And attempted to check Nokogiri but apparently it has Java jars in the source code
<Bish> everyone is stupid in coding, aren't we?
phaul has quit [Ping timeout: 265 seconds]
romanblanco has quit [Ping timeout: 240 seconds]
<darkerbit> Okay, so I'll probably put type checking oneliners in the functions intended to be called by the library user, but not in internal functions
nacsurte has joined #ruby
<Bish> that's probably the rough guideline i'd follow
<Bish> important part is that you can do it where you think it's neccessary
<Bish> darkerbit: what language are you coming from?
<darkerbit> several, mainly c#
<darkerbit> most of them are statically typed except python and lua
<Bish> i figured
<darkerbit> I haven't done any type checking in Python since I've never written production code in Python
<darkerbit> and Lua is Lua
* Bish doesn't have typechecks in his biggest projects
* Bish doesn't have tests either
Nicmavr has quit [Read error: Connection reset by peer]
* Bish is stupid
<darkerbit> Any good guides to Ruby by the way for programmers coming from other languages? Most quickstart guides I've seen only cover IRB and treat the reader like a first-time programmer and Poignant Guide is too much for my terrible attention span
Nicmavr has joined #ruby
nacsurte has quit [Ping timeout: 276 seconds]
<darkerbit> every time I read a quickstart guide I'm like "Now I know how to do this" and then I go and check actual code and see things like "class << self" and "extend self"
<Bish> i never learned languages with guides, sorry
<Bish> replace "irb" with pry is a good suggestion and most of the metaprogramming, object extending is really advanced and almost never used
<Bish> i learn languages by writing stupid shit in it until i can tackle something more complicated
<darkerbit> Meh, if I go without a guide it always ends up being "Okay, I've written this program and it uses this class I wrote that does X" "Why didn't you just use Library::XXX::YYY and this operator that does ZZZ?" "The what?"
<Bish> pry helps me navigating these X::Y::Z things easily
<Bish> it's an irb, but you can navigate through modules like it was a filesystem
<Bish> you can "cd" into an object and list all it's attributes with "ls"
phaul has joined #ruby
<Bish> and with "$ method" you can see it's code
<darkerbit> When I was doing Java for the first time I didn't know what interfaces or abstract casses were
<darkerbit> s/casses/classes/
* Bish still doesn't know why they are
<darkerbit> turns out they're the most important thing in Java it would seem
<Bish> maybe because everyone uses them, but i would disagree that you actually need that
rafadc has joined #ruby
<darkerbit> Well, gonna finish the Koans and get working on a project, from what I gather Ruby is the kind of language you learn best by doing and a lot of things are really obvious
<Bish> maybe, yes
<darkerbit> I still don't understand "class << self" though, I know it allows you to make class methods and the like but don't know much else
<Bish> take it as a way to add "class"-methods
<Bish> it's almost equivalent to class A; def A.a; 1;end; end;
<darkerbit> the syntax is strange in my opinion
<Bish> yep it is
<Bish> it's unique even for ruby
<Bish> i think it wasn't extended to be used as much as it is
<darkerbit> it would almost suggest "append self to class *inexplicable block*"
<Bish> expected*
phaul has quit [Ping timeout: 240 seconds]
<Bish> well, ruby would allow it to replace it with something if you want to do some metaprogramming
<darkerbit> oh I just got it
<Bish> i think the only difference between class << self and def Class.a is when inheritance kicks in
<darkerbit> "append block to instance's class" where class << instance
<Bish> jup
<Bish> kinda
<Bish> thing is: in ruby classes are also objects, and you're "opening the singleton object of the class"
<Bish> you can not only do that to classes, it works with every object
<darkerbit> it's one of those things where "do it like this, don't ask any questions"
<Bish> yep at some point you know enough to ask yourself and then you google it
<Bish> and find this singleton answer
<Bish> and it only matters on inheritance, i think
<Bish> x = "1"; x.instance_eval { class << self; def xyz; to_i ;end; end; }
<Bish> bam, i created a string that has a "xyz" method
<Bish> all other strings don't have that
<darkerbit> as far as I'm concerned it's a fancy way to add static methods (and I call them static methods anyway in my head because every other language ever calls them that but ruby calls them class methods)
<Bish> i use it because i dislike the def Classname.method_name syntax
<darkerbit> also how do you access class variables in a class << self block, is it @@ or self. or @ or what
<Bish> inside the class A; ...; end; it's always @@ no matter if you're changing an instance method or not
<Bish> that's why it has 2 @ and not one
<Bish> it gets confusing, when you think about that classes can have instance variables, too, so don't do that :D
<Bish> if you set @@something = 1 it will be 1 for everyone, for the klass and the objects
<darkerbit> so @@ works inside "class << self" as well?
<Bish> without having it tried: yes
<Bish> with having it tried: no
<Bish> well, i don't know
sphex has joined #ruby
Guest78351 has quit [Quit: All for nothing]
olspookishmagus has joined #ruby
galaxie has quit [Ping timeout: 260 seconds]
<Bish> i have tried using @ inside class << self because i thought: an instance variable of the class should be a class variable from the POV of the object
<Bish> but rubey abstract this away
<Bish> @ is @ and @@ is @@ always
cadeskywalker has quit [Ping timeout: 240 seconds]
galaxie has joined #ruby
<Bish> if you create a variable with 2 @ it will be accessed with 2 @
<Bish> no expcetion
lineus has joined #ruby
<Bish> god i have it with these 2 words today
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
fig-le-deunch has quit [Quit: Konversation terminated!]
suukim has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 252 seconds]
AJA4350 has joined #ruby
grilix has joined #ruby
itarato has joined #ruby
phaul has joined #ruby
drincruz has joined #ruby
Jonopoly has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 276 seconds]
yann-kaelig has quit [Quit: yann-kaelig]
phaul has joined #ruby
cadeskywalker has joined #ruby
flughafen has joined #ruby
lucasb has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
phaul has joined #ruby
itarato has quit [Ping timeout: 276 seconds]
TzilTzal_ has joined #ruby
NL3limin4t0r has quit [Ping timeout: 276 seconds]
phaul has quit [Ping timeout: 250 seconds]
dG___ has quit [Remote host closed the connection]
TzilTzal_ has quit [Remote host closed the connection]
rwb has quit [Quit: rwb]
NL3limin4t0r has joined #ruby
rwb has joined #ruby
NODE has quit [Quit: changing servers]
BTRE has quit [Remote host closed the connection]
BTRE has joined #ruby
NODE has joined #ruby
phaul has joined #ruby
rwb has quit [Ping timeout: 250 seconds]
<Bish> if i have a daemon that is run by a default user
<Bish> what would be the linux-idomatic way to expose a .sock
<Bish> do i put it into the home folder? can i put it into /var/run ?
<Bish> it's not supposed to be a service
TzilTzal has joined #ruby
phaul has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Quit: AJA4350]
AJA4350 has joined #ruby
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has joined #ruby
NODE has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
NODE has quit [Client Quit]
NODE has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
Mrgoose845701915 has quit [Read error: Connection reset by peer]
TzilTzal_ has joined #ruby
Mrgoose845701915 has joined #ruby
phaul has joined #ruby
TzilTza__ has joined #ruby
TzilTzal has quit [Ping timeout: 245 seconds]
akemhp_ has joined #ruby
TomyWork has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
donofrio_ has joined #ruby
TzilTzal_ has quit [Ping timeout: 265 seconds]
akemhp has quit [Ping timeout: 250 seconds]
donofrio has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
shokohsc has quit [Ping timeout: 250 seconds]
drincruz has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
AJA4351 has joined #ruby
akemhp_ has quit [Read error: Connection reset by peer]
nacsurte has joined #ruby
phaul has joined #ruby
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
TzilTza__ has quit [Remote host closed the connection]
TzilTzal has joined #ruby
TzilTzal_ has joined #ruby
drincruz has quit [Ping timeout: 265 seconds]
nacsurte has quit [Ping timeout: 250 seconds]
phaul has quit [Ping timeout: 276 seconds]
TzilTzal_ has quit [Remote host closed the connection]
TzilTzal has quit [Ping timeout: 240 seconds]
TzilTzal has joined #ruby
AJA4351 has joined #ruby
phaul has joined #ruby
NODE has quit [Quit: changing servers]
kapil_ has quit [Quit: Connection closed for inactivity]
AJA4350 has quit [Ping timeout: 265 seconds]
TzilTzal has quit [Remote host closed the connection]
AJA4350 has joined #ruby
shokohsc has joined #ruby
AJA4351 has quit [Ping timeout: 265 seconds]
phaul has quit [Ping timeout: 276 seconds]
Benett has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
Benett has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
romanblanco has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
chalkmonster has joined #ruby
phaul has joined #ruby
TomyWork has quit [Ping timeout: 246 seconds]
Jonopoly has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
graphicsv_ is now known as graphicsv
reber has joined #ruby
phaul has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
jnix has quit [Changing host]
jnix has joined #ruby
NODE has quit [Client Quit]
phaul has quit [Ping timeout: 252 seconds]
NODE has joined #ruby
grilix has quit [Ping timeout: 276 seconds]
NODE has quit [Client Quit]
Benett has quit [Quit:  ]
phaul has joined #ruby
Benett has joined #ruby
drincruz has joined #ruby
phaul has quit [Ping timeout: 250 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
phaul has joined #ruby
TomyWork has joined #ruby
leitz has joined #ruby
romanblanco has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
NODE has quit [Client Quit]
infinityfye has quit [Quit: Leaving]
romanblanco has joined #ruby
NODE has joined #ruby
phaul has joined #ruby
NODE has quit [Client Quit]
BH23 has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has quit [Ping timeout: 250 seconds]
NODE has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
phaul has joined #ruby
darkerbit has quit [Ping timeout: 250 seconds]
yann-kaelig has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
phaul has quit [Ping timeout: 250 seconds]
darkerbit has joined #ruby
Inline has joined #ruby
teclator has joined #ruby
phaul has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
phaul has joined #ruby
schne1der has joined #ruby
skx86 has quit [Quit: Connection closed for inactivity]
phaul has quit [Ping timeout: 268 seconds]
<TomyWork> hi
<Bish> TomyWork: howdy
<TomyWork> I'm looking for a file-based sql DB that i can use with ruby and only ruby. no interop with other languages necessary
DTZUZO has joined #ruby
<TomyWork> anything besides sqlite? :)
<Bish> what is your problem with sqlite?
<TomyWork> native dependencies
<Bish> there i no option, afaik, i looked for the same thing
<TomyWork> ok
<Bish> TomyWork: like.. you want a pure ruby alternativeh
<TomyWork> basically
<Bish> TomyWork: there is amalgalite, a gem that includes a heavily modified version of sqlite
phaul has joined #ruby
<Bish> inside the gem itself
<Bish> so there i no extra package
<TomyWork> well, either that or an external postgres db :)
<Bish> well that would require a native extension, too
<Bish> atleast if you like performance
<TomyWork> or i just dump it in flat files organized hierarchically in the file system :D
<TomyWork> ACID, out the window!
<Bish> well, if you don't need it
<Bish> that would require a native kernel though
<Bish> just kidding
phaul has quit [Ping timeout: 268 seconds]
<Bish> whats your problem with native dependencies?
<TomyWork> takes long to build and my target system *might* be a sles11
<Bish> poor you
<TomyWork> probably a more modern system though... like a debian 7
<TomyWork> or possibly an ubuntu 12.04
BH23 has quit [Remote host closed the connection]
spacesuitdiver has joined #ruby
rainmanj_ has joined #ruby
rainmanjam has quit [Read error: No route to host]
j`ey has joined #ruby
<j`ey> can I base64 encode an array of bytes somehow?
nacsurte has joined #ruby
phaul has joined #ruby
j`ey has left #ruby [#ruby]
<havenwood> &>> require "base64"; Base64.strict_encode64 ["\x01", "\x02", "\x03"].join
<rubydoc> # => "AQID" (https://carc.in/#/r/855l)
phaul has quit [Ping timeout: 250 seconds]
nacsurte has quit [Ping timeout: 268 seconds]
Esa_ has joined #ruby
<Bish> a magician
<Bish> what is a byte array
<leftylink> ah yes, the classic
<Bish> [0-255] ?
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
<leftylink> atomicity, qonsistency, isolation, durability
<Bish> or [\x0-ff]
spacesuitdiver has joined #ruby
<TomyWork> &>> require "base64"; Base64.strict_encode64 [0x01, 0x02, 0x03]
<rubydoc> stderr: /usr/lib/ruby/2.6.0/base64.rb:66:in `pack': no implicit conversion of Array into String (TypeError)... check link for more (https://carc.in/#/r/855n)
<havenwood> Bish: Yes, those are the same numbers.
<TomyWork> eh?
<Bish> yeah well i mean "\x0-ff"
<TomyWork> &>> require "base64"; Base64.encode64 [0x01, 0x02, 0x03]
<rubydoc> stderr: /usr/lib/ruby/2.6.0/base64.rb:39:in `pack': no implicit conversion of Array into String (TypeError)... check link for more (https://carc.in/#/r/855o)
<havenwood> TomyWork: Join the Array
<TomyWork> join an array of numbers? that works?
<TomyWork> &>> require "base64"; Base64.encode64 [0x01, 0x02, 0x03].join
<rubydoc> # => "MTIz\n" (https://carc.in/#/r/855p)
<havenwood> TomyWork: Or if you want bytes here: map(&:chr).join
bsdband69 has joined #ruby
<havenwood> &>> [0x01, 0x02, 0x03].join.bytes # TomyWork
<rubydoc> # => [49, 50, 51] (https://carc.in/#/r/855q)
<TomyWork> M somehow doesn't look like a byte 01
Technodrome has joined #ruby
<havenwood> TomyWork: it isn't! it's: 49
bsdband90 has quit [Ping timeout: 246 seconds]
phaul has joined #ruby
<TomyWork> i know, so why did you tell me to join? :)
<havenwood> TomyWork: I don't know what bytes you're trying to show. ¯\_(ツ)_/¯
<TomyWork> 1 2 and 3
<havenwood> 49 is a perfectly fine byte.
<havenwood> &>> [0x01, 0x02, 0x03]
<rubydoc> # => [1, 2, 3] (https://carc.in/#/r/855r)
<havenwood> &>> [0x01, 0x02, 0x03].map(&:chr)
<rubydoc> # => ["\x01", "\x02", "\x03"] (https://carc.in/#/r/855s)
<TomyWork> that can't be the best solution
spacesuitdiver has quit [Client Quit]
Xeago has quit [Quit: Xeago]
<havenwood> TomyWork: Solution for what? I just thought you were trying to show that "1" is the byte value 49. Now I'm not sure what you were trying to show?
TzilTzal has joined #ruby
<TomyWork> how did you get that idea?
<havenwood> TomyWork: You showed an Array with the numbers `1, 2, 3` when someone had already shown the bytes `"\x01", "\x02", "\x03"`.
<Inside> \o\
<Inside> havenwood!
phaul has quit [Ping timeout: 240 seconds]
NODE has quit []
Benett has quit [Quit:  ]
<havenwood> /o/
<leftylink> \o/ non oc /o\
<TomyWork> havenwood, well j`ey wanted an array of bytes. "\x01" is not a byte
<TomyWork> it's a string
<leftylink> it's time to stay at the \o/ non oc /o\
<Inside> non oc?
<leftylink> uh.... hammer?
<leftylink> I guess?
<leftylink> if you ask me what comes to mind immediately?
TzilTzal has quit [Ping timeout: 276 seconds]
<havenwood> TomyWork: Looks like a byte to me!
TzilTzal has joined #ruby
<TomyWork> &>> "\x01".class
<rubydoc> # => String (https://carc.in/#/r/855t)
<havenwood> TomyWork: It's just a character rather than ordinal representation of a byte. There isn't a Byte class.
<havenwood> TomyWork: Nonetheless, that there is a byte!
<TomyWork> you're right
greenhat has joined #ruby
<TomyWork> &>> require 'objspace'; ObjectSpace.memsize_of("\x01") # in fact, 40 of them
<rubydoc> # => 40 (https://carc.in/#/r/855u)
zapata has quit [Ping timeout: 250 seconds]
grilix has joined #ruby
Exuma has joined #ruby
<TomyWork> so, any other ORMs in ruby, apart from ActiveRecord
<havenwood> TomyWork: If it's 40 bytes, why are 65,000 of them also 40 bytes? Riddle me that!
<havenwood> &>> foo = "\x01" * 0xFFFF; foo.byteslice(foo.length - 100, 100); require 'objspace'; ObjectSpace.memsize_of(foo)
<rubydoc> # => 40 (https://carc.in/#/r/8560)
<havenwood> TomyWork: ^ :P
<leftylink> I think I heard of Sequel???
TzilTzal has quit [Remote host closed the connection]
<havenwood> <3 Sequel.
<TomyWork> havenwood, because that value is not the byte. it's the String object
<havenwood> Such a great gem and so well maintained!
TzilTzal has joined #ruby
<cliffindor[m]> is the sequel any good?
<havenwood> cliffindor[m]: Yes.
dev-rfc83 has joined #ruby
<TomyWork> yes, but i hear the prequels are bad
<havenwood> TomyWork: I know how the internals work. The size of an RVALUE isn't relevant to whether something is or isn't a byte. A byte is 8 bits and can be represented any which way. "Byte" is just number between 00000000 and 11111111, or between "\x00" and "\xFF" or between 0 and 255, or however you want to represent those numbers - as byte characters/strings, ordinals,
cd has joined #ruby
<havenwood> You could represent a byte with eight tiny yodas, and I'd be fine with that.
phaul has joined #ruby
spacesuitdiver has joined #ruby
Benett has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 250 seconds]
<Bish> TomyWork: uh uh that is my topic
<Bish> sequel
<Bish> ohshit it already has been said
<Bish> yeah sequel is the best ORM inside and outside ruby
<havenwood> I dig Sequel's plugin system. Nice to keep it light until you need a particular weight.
<Bish> yeah all of jeremyevans projects are fking awesome in that regard
<Bish> im writing a program right now with that system in mind
<Bish> his ruby performance talk is also great
<TomyWork> yeah sequel looks nice... does it help you with creating the tables like hibernate does?
<Bish> and sane defaults and configurateable until the last bit
<Bish> yeah, it has a ruby ⇐⇒ sql mapping
phaul has joined #ruby
<Bish> that even works beyond different dbs
<Bish> if your schema doesn't use db-specific features you can even migrate between databases
<Bish> but it also works with db-specific stuff, you can just use a different mode
chalkmonster has joined #ruby
NODE has joined #ruby
<Bish> DB.create_table(:table_name) { primary_key :id; String :name,:unique => true; check { length(name) > 0 }}
<Bish> whambo
NODE has quit [Client Quit]
leather-s has joined #ruby
NODE has joined #ruby
<TomyWork> Bish, that only creates it if needed?
phaul has quit [Ping timeout: 240 seconds]
<Bish> no you have create_table? for that
<Bish> you wouldn't do it like this if you wrote a real program anyways
<Bish> you would use the migration-tooling from sequel
NODE has quit [Client Quit]
<Bish> which would look kinda like Sequel.migration { up { DB.create_table(...) } down { DB.drop_table(...) } }
<Bish> where you specify the delta between database schema versions
<Bish> those migrations than have versions (001_initial_schema.rb) and sequel checks automagicially if you're on that version
NODE has joined #ruby
reber has quit [Ping timeout: 265 seconds]
<Bish> there is also a timestamp migrator which checks each individual migration if it has been applied to the database
<TomyWork> does it keep a changelog?
<Bish> no
<Bish> i mean isn't the migration itself kinda the changelog?
<TomyWork> i mean in the database
NODE has quit [Client Quit]
<TomyWork> how does it know which version it's at?
<Bish> the integermigrator uses a table named "schema_info" with 1 row in it
<Bish> the timestamp migrator uses a table with the timestamps of the migrations applied
<Bish> but that's not really a changelog.. rather a "is migration applied"-log
<TomyWork> i see
NODE has joined #ruby
<Bish> well it could be that there is a timetsamp
<Bish> lemme check
<TomyWork> well i'm used to liquibase
<TomyWork> that has a changelog table
reber has joined #ruby
TzilTzal has quit [Remote host closed the connection]
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
davidw has joined #ruby
NODE has quit [Client Quit]
titanbiscuit has joined #ruby
<Bish> well extending sequel to have that wouldn't be hard
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
NODE has joined #ruby
phaul has joined #ruby
duderonomy has joined #ruby
<Bish> but no it doesn't save when the migration has been applied
<Bish> it's just a table with a string of the migration filename
NODE has quit [Client Quit]
Xeago has joined #ruby
happyhans has joined #ruby
<ytti> sequel really is the bees knees
<Bish> what does that mean, im not a native speaker
<ytti> cats pyjamas!
duderonomy has quit [Client Quit]
jinie has joined #ruby
<Bish> okay.
<Bish> yeah it has really clean code, easily extensible, contributing to it is a charm
phaul has quit [Ping timeout: 252 seconds]
<Bish> if you have a bug report, the fix is released in a week
SeepingN has joined #ruby
NODE has joined #ruby
duderonomy has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
lucasb has quit [Quit: Connection closed for inactivity]
phaul has joined #ruby
nacsurte has joined #ruby
dev-rfc83 has quit [Quit: Bye bye!]
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
leitz has quit [Quit: Leaving]
phaul has quit [Ping timeout: 268 seconds]
galaxie has quit [Ping timeout: 260 seconds]
titanbiscuit has quit [Read error: Connection reset by peer]
bluvinyl has joined #ruby
titanbiscuit has joined #ruby
phaul has joined #ruby
orbyt_ has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
titanbiscuit has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 265 seconds]
titanbiscuit has joined #ruby
Technodrome has joined #ruby
phaul has joined #ruby
NODE has quit [Quit: changing servers]
Benett has quit [Quit:  ]
phaul has quit [Ping timeout: 265 seconds]
phaul has joined #ruby
duderonomy has joined #ruby
Benett has joined #ruby
duderonomy has quit [Client Quit]
clemens3 has quit [Quit: WeeChat 1.6]
phaul has quit [Ping timeout: 250 seconds]
duderonomy has joined #ruby
<TomyWork> Bish, ok this is a really nice library. just one problem: contrary to the docs, creating a table with a String column on a postgres db gave me text instead of varchar(255)
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
reber_ has joined #ruby
phaul has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reber has quit [Ping timeout: 268 seconds]
<TomyWork> text: false fixed it, and i read the docs wrong
<TomyWork> it's just commonly varchar(255), not on all databases
NODE has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 265 seconds]
galaxie has joined #ruby
phaul has joined #ruby
NL3limin4t0r is now known as NL3limin4t0r_afk
andikr has quit [Remote host closed the connection]
duderonomy has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
NODE has quit []
Benett has quit [Remote host closed the connection]
Technodrome has joined #ruby
Benett has joined #ruby
phaul has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has joined #ruby
NODE has joined #ruby
NODE has quit [Client Quit]
cxl has quit [Quit: bye]
NODE has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
skx86 has joined #ruby
duderonomy has joined #ruby
phaul has joined #ruby
duderonomy has quit [Client Quit]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
phaul has quit [Ping timeout: 276 seconds]
cthulchu has joined #ruby
fphilipe_ has quit [Ping timeout: 250 seconds]
phaul has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
r29v has joined #ruby
phaul has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
titanbiscuit has joined #ruby
howdoi has joined #ruby
titanbiscuit has quit [Read error: Connection reset by peer]
reber_ has quit [Ping timeout: 268 seconds]
phaul has quit [Ping timeout: 276 seconds]
titanbiscuit has joined #ruby
Technodrome has joined #ruby
phaul has joined #ruby
dionysus69 has quit [Quit: dionysus69]
duderonomy has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
BTRE has quit [Remote host closed the connection]
phaul has joined #ruby
itarato has joined #ruby
BTRE has joined #ruby
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 240 seconds]
AJA4351 is now known as AJA4350
itarato has quit [Ping timeout: 240 seconds]
TzilTzal has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
TomyWork has quit [Ping timeout: 246 seconds]
jesfre has joined #ruby
phaul has joined #ruby
TzilTzal has quit [Ping timeout: 246 seconds]
phaul has quit [Ping timeout: 250 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
hutch1 has joined #ruby
titanbiscuit has joined #ruby
phaul has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phaul has quit [Ping timeout: 268 seconds]
r29v has quit [Quit: WeeChat 2.6]
Benett has quit [Quit:  ]
NODE has quit []
phaul has joined #ruby
chalkmonster has joined #ruby
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
jesfre has quit [Ping timeout: 265 seconds]
r29v has joined #ruby
Benett has joined #ruby
spacesuitdiver has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
linoespinoza has joined #ruby
phaul has joined #ruby
umjisus has joined #ruby
bsdband69 has quit [Read error: Connection reset by peer]
NODE has joined #ruby
linoespinoza has quit [Quit: Textual IRC Client: www.textualapp.com]
phaul has quit [Ping timeout: 250 seconds]
NODE has quit [Client Quit]
reber has joined #ruby
NODE has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
NODE has quit [Client Quit]
phaul has joined #ruby
NODE has joined #ruby
leather-s has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
happyhans has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 250 seconds]
titanbiscuit has quit [Quit: ZNC 1.7.4 - https://znc.in]
titanbiscuit has joined #ruby
phaul has joined #ruby
leather-s has joined #ruby
dionysus69 has joined #ruby
yann-kaelig has quit [Quit: yann-kaelig]
phaul has quit [Ping timeout: 265 seconds]
sameerynho has joined #ruby
phaul has joined #ruby
drale2k has joined #ruby
NODE has quit [Quit: changing servers]
lucasb has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has quit [Ping timeout: 268 seconds]
NODE has joined #ruby
NODE has quit [Client Quit]
phaul has joined #ruby
orbyt_ has joined #ruby
NODE has joined #ruby
phaul has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
millerti has joined #ruby
suukim has quit [Quit: Konversation terminated!]
happyhans has joined #ruby
jinie_ has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
jinie_ is now known as jinie
happyhans has quit [Ping timeout: 268 seconds]
akemhp_ has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
akem__ has joined #ruby
akemhp has quit [Ping timeout: 265 seconds]
hiroaki has joined #ruby
akemhp_ has quit [Ping timeout: 265 seconds]
akemhp has joined #ruby
akemhp has quit [Remote host closed the connection]
darkerbit has quit [Quit: Leaving]
akem__ has quit [Ping timeout: 276 seconds]
reber has quit [Read error: Connection reset by peer]
fphilipe_ has joined #ruby
happyhans has joined #ruby
fphilipe_ has quit [Ping timeout: 276 seconds]
fphilipe_ has joined #ruby
Xiti` has quit [Quit: Xiti`]
reber has joined #ruby
anoob has joined #ruby
<anoob> How can I translate my ruby gem? It's used with Rails...
Xiti has joined #ruby
<havenwood> anoob: What to you mean by "translate?"
<havenwood> anoob: Do you want to write it in a language other than Ruby? Implement i18n? Say more?
hutch1 has quit [Ping timeout: 252 seconds]
<anoob> I18N actually
NODE has quit [Quit: changing servers]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fphilipe_ has quit [Ping timeout: 245 seconds]
NODE has quit [Client Quit]
NODE has joined #ruby
akemhp has joined #ruby
rkoller has joined #ruby
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
chalkmonster has joined #ruby
hutch1 has joined #ruby
graft has joined #ruby
<graft> what is the order of Dir.glob on linux? it isn't time or alphabet
<uplime> I'd assume its just whatever the order the filesystem returns it in, which is usually based on locality
<graft> like reference order or something?
<uplime> if its locality then it goes by whatever the filesytem considers first in the alphabet
<graft> well Dir.glob is decidedly non-alphabetic in its ordering
<uplime> Dir.glob isn't ordering it. your system is
<graft> i mean whatever the order is, it isn't the alphabet
<uplime> and locality doesn't always mean A B C D E ordering
romanblanco has quit [Ping timeout: 246 seconds]
fphilipe_ has joined #ruby
galaxie has quit [Remote host closed the connection]
spacesuitdiver has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 250 seconds]
galaxie has joined #ruby
sergioro has joined #ruby
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
jinie has joined #ruby
jenrzzz has joined #ruby
evdubs has quit [Quit: Leaving]
GodFather has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.6]
GodFather has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
evdubs has joined #ruby
fphilipe_ has quit [Ping timeout: 245 seconds]
gdonald_ is now known as gdonald
wildtrees has joined #ruby
grilix has quit [Ping timeout: 240 seconds]
anoob has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
jinie has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
sergioro has quit [Quit: Lost terminal]
jinie has joined #ruby
itarato has joined #ruby
rwb has joined #ruby
jrdiaz33 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
hutch1 has quit [Ping timeout: 276 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drincruz has quit [Ping timeout: 268 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
mwlang has joined #ruby
achempion has joined #ruby
jenrzzz has joined #ruby
itarato has quit [Ping timeout: 240 seconds]
drincruz has joined #ruby
uplime is now known as Rudolph
jrdiaz33 has quit [Ping timeout: 240 seconds]
xco has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jesfre has joined #ruby
jrdiaz has joined #ruby
schne1der has quit [Ping timeout: 268 seconds]
chalkmonster has joined #ruby
ellcs has quit [Ping timeout: 265 seconds]
jrdiaz has quit [Remote host closed the connection]
RiPuk has quit [Ping timeout: 240 seconds]
happyhans has quit [Quit: Leaving...]
jesfre has quit [Ping timeout: 250 seconds]
reber has quit [Read error: Connection reset by peer]
RiPuk has joined #ruby
sameerynho has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #ruby
jesfre has joined #ruby
AJA4350 has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
chalkmonster has quit [Quit: WeeChat 2.6]
jenrzzz has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
bluvinyl has quit [Ping timeout: 250 seconds]
g_w has joined #ruby
NODE has quit [Quit: changing servers]
<g_w> what is the difference between .map { |n| n += 1 } and [1, 2, 3].map { |n| n += 1 }
NODE has joined #ruby
NODE has quit [Client Quit]
NODE has joined #ruby
Exuma has joined #ruby
<Rudolph> those blocks are exactly the same
Exuma has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nacsurte has quit [Ping timeout: 250 seconds]
nacsurte has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
davidw has quit [Ping timeout: 252 seconds]