<benzrf>
some programs just use a single dash for long flags, like '-trim'
<benzrf>
but in that case you cannot cluster 1-letter flags
<benzrf>
because how can it tell between '-trim' and '-t -r -i -m'
<CuriousMind>
benzrf: What do those flags mean
<benzrf>
CuriousMind: which ones
<pipework>
CuriousMind: `man man`
<CuriousMind>
-a
<benzrf>
CuriousMind: depends on the program
<benzrf>
ls interprets the -a flag as meaning "list all files, even the ones that start with ."
icebourg has quit [Ping timeout: 260 seconds]
threesixes has joined #ruby
<benzrf>
gnu/linux has no notion of "hidden files", but most programs will not show you files whose names start with a . by default
<CuriousMind>
benzrf: Hm
<benzrf>
keep in mind that your shell has *no idea about flags*
<benzrf>
flags are entirely up to the program that parses the arguments
<benzrf>
if i write "ls -Ra .foo"
<CuriousMind>
benzrf: Why and how are files hidden
<CuriousMind>
?
<pipework>
dat argv
Shidash has joined #ruby
<benzrf>
then ls gets called with the strings "-Ra" and ".foo"
<benzrf>
and it's up to ls to read that as a flag cluster and an argument
astav has joined #ruby
cap has quit [Remote host closed the connection]
<pipework>
Ruby is the best place to learn the linuxes.
<benzrf>
CuriousMind: because you shouldnt care about some of them most of the time
<benzrf>
CuriousMind: if you look at your home dir, you normally only want to see the files that you put there
<benzrf>
not the config for all your programs
cap has joined #ruby
philcrissman has quit [Ping timeout: 246 seconds]
<benzrf>
i have 17 normally-named files & dirs in my home dir
<benzrf>
but 229 in total, including all dotfiles
<threesixes>
my $HOME is a nightmare
<waxjar>
you should move :)
ixti has quit [Ping timeout: 240 seconds]
<Nilium>
I have 334.
<Nightmare>
same
<pipework>
You should burn the place down.
<Nilium>
218 are normally-named
<benzrf>
Nilium: jeezus
<Nilium>
I dump a lot of test code in my home directory.
<benzrf>
CuriousMind: you need to learn about your SHELL vs what the SYSTEM does
<threesixes>
lol $HOME is a TB drive / is wipeable 60gb over the years $HOME's collected a lot of hidden .garbage
<benzrf>
do you know what a shell is
<pipework>
threesixes: spinning rust, awesome.
patrick99e99 has quit [Ping timeout: 260 seconds]
<waxjar>
a shell is the $HOME of a snail
<benzrf>
& what a terminal is
<CuriousMind>
benzrf: no I don't know what a shell is
sylvanica has quit [Ping timeout: 255 seconds]
<CuriousMind>
is terminal and shell the same
<benzrf>
no!
<CuriousMind>
dont kill me, I am new to this linux thuing. Sorry sorry sorry!
<benzrf>
its fine man
<benzrf>
CuriousMind: u see back in the olden days of yore, there were mainframes
fgo has joined #ruby
<benzrf>
which were a single giant computer
<CuriousMind>
mainframes?
<benzrf>
then anybody who wanted to compute would use a TERMINAL, which was basically a monitor and a keyboard
<benzrf>
the terminal would send the keys you pressed to the mainframe, which would send back text to display on the monitor
<pipework>
Can you both move to a lunix channel for the lesson, or did you get comfy already?
<benzrf>
there were also teletypes, which preceded terminals, and were like typewriters that typed what the mainframe sent back instead of showing it on a screen
cap has quit [Ping timeout: 255 seconds]
<Nilium>
$HOME is not a Linux thing
OffTheRails has joined #ruby
pipework has left #ruby ["waiting for the offtopic to be interesting"]
<CuriousMind>
what does mainframe look like, what is it? benzrf
<Nilium>
It looks like a snake and it can be found strangling interns
<brothmars>
benzrf have you tried xiki? what are your thoughts on it?
<benzrf>
dunno what that is
<benzrf>
CuriousMind: before computers were small & affordable, big businesses and universities would buy a single giant computer
<benzrf>
a mainframe
<benzrf>
09:23 < benzrf> then anybody who wanted to compute would use a TERMINAL, which was basically a monitor and a keyboard
<benzrf>
09:23 < benzrf> the terminal would send the keys you pressed to the mainframe, which would send back text to display on the monitor
<Nilium>
The fun part is that computer used to be something you called a person
<benzrf>
so the mainframe would run multiple user sessions at once
diegoviola has joined #ruby
skysploit has joined #ruby
<benzrf>
CuriousMind: anyway, this notion continues to exist today
<brothmars>
benzrf xiki is a new terminal, looks good but haven't tried yet
<benzrf>
but instead of hardware terminals we have software terminals
<CuriousMind>
benzrf: so a mainframe is a terminal?
<benzrf>
CuriousMind: have you ever tried reading what somebody is saying instead of looking at the first 3 words and guessing the rest
<CuriousMind>
benzrf: is it the computer?
<CuriousMind>
benzrf: ok sorry
<CuriousMind>
a mainframe is a single giant computer benzrf ?
kuzushi has joined #ruby
wallerdev has quit [Quit: wallerdev]
maestrojed has quit [Quit: Computer has gone to sleep.]
<benzrf>
ye
<CuriousMind>
benzrf: what about the difference between shell and terminal?
<benzrf>
a terminal is what i just explained
OrangePeel has joined #ruby
<benzrf>
a shell is a text-based program that you may know as a "command line"
<CuriousMind>
benzrf: I don't even know what they are really. I think the terminal directly talks to the computer or something?
<benzrf>
however "command line" conflates terminal and shell
<CuriousMind>
like I think a terminal is a program(code) and it allows you to access files and stuff
<benzrf>
CuriousMind: in a modern OS, a terminal is a program that reads your keystrokes and sends them through a terminal interface to whatever program is listening
<benzrf>
and then takes text back and displays it
robustus has quit [Ping timeout: 255 seconds]
mojo619 has quit [Quit: mojo619]
<benzrf>
a terminal is to a text-based program as a mouse/monitor is to a GUI
<benzrf>
except that nowadays terminals run as programs instead of being hardware
<benzrf>
so the actual window is a terminal, and programs can attach to it and use it for keyboard input and text output
<benzrf>
the SHELL is usually the program that opens by default when you make a new terminal
<CuriousMind>
thank you benzrf
nanoyak has quit [Quit: Computer has gone to sleep.]
<benzrf>
it prints a prompt that, by default, will look something like 'benzrf@benzrf-laptop:~$'
<benzrf>
it reads commands and runs TheMoonMaster
<CuriousMind>
this isgood information! benzrf
<benzrf>
*them
robustus has joined #ruby
<CuriousMind>
is good*
<benzrf>
so when u type 'cat /var/www/index.html', your shell reads that, looks up the cat program, then passes it the argument "/var/www/index.html"
sylvanica has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
gccostabr has joined #ruby
pigram86 has joined #ruby
pigram86 has left #ruby [#ruby]
<cy>
benzrf: for some reason i've always found it a bit silly that cat needs to be a program. heh
chipotle has quit [Quit: cya]
<benzrf>
its for concatenating files
<benzrf>
but people use it for echoing them too
jerikl has joined #ruby
fgo has quit [Remote host closed the connection]
<sylvanica>
cat is just perfect :)
<benzrf>
cat foo bar baz => prints contents of foo followed by bar followed by baz
nat2610 has quit [Quit: Leaving.]
mosoj is now known as omosoj
<cy>
benzrf: i'm aware, it just seems like such a simple concept, though
fgo has joined #ruby
nat2610 has joined #ruby
mkaesz has joined #ruby
tylerkern has joined #ruby
<CuriousMind>
benzrf: Wow, thank you sir. I appreciate it
<cy>
benzrf: basically it seems more like something that would be a shell builtin than a binary
<cy>
to me
tylerkern has quit [Client Quit]
jmbrown412 has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
jmbrown412 has joined #ruby
OrangePeel has left #ruby [#ruby]
fgo has quit [Ping timeout: 260 seconds]
pietr0 has joined #ruby
mkaesz has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
toordog_ has joined #ruby
jmbrown412 has quit [Ping timeout: 272 seconds]
toordog has quit [Ping timeout: 260 seconds]
_2_tiny_dancer has joined #ruby
_2_tiny_dancer has left #ruby [#ruby]
sylvanica has quit [Ping timeout: 250 seconds]
cap has joined #ruby
kuzushi has quit [Ping timeout: 272 seconds]
kuzushi has joined #ruby
emmesswhy has joined #ruby
gilest has joined #ruby
chipotle has joined #ruby
skysploit has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
icebourg has joined #ruby
thomasxie has joined #ruby
bricker`LA has joined #ruby
yfeldblum has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
yfeldblum has joined #ruby
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brothmars has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 272 seconds]
sylvanica has joined #ruby
lamasnik has quit [Ping timeout: 240 seconds]
jeramyRR has quit [Quit: jeramyRR]
jeramyRR has joined #ruby
fgo has joined #ruby
freerobby has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
dorei has quit []
fgo has quit [Ping timeout: 240 seconds]
deric_skibotn has quit [Ping timeout: 260 seconds]
starless has quit [Quit: Leaving]
sylvanica has quit [Quit: Leaving]
sylvanica has joined #ruby
K4IS3I2 has joined #ruby
austin has joined #ruby
austin has quit [Client Quit]
K4IS3I2 has quit [Client Quit]
aewffwea has joined #ruby
juz88 has quit [Ping timeout: 240 seconds]
d2dchat has quit [Remote host closed the connection]
jhass is now known as jhass|off
nateberkopec has joined #ruby
ptrrr has quit [Quit: ptrrr]
djbkd has quit [Remote host closed the connection]
gilest has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
sdwrage has joined #ruby
kuzushi has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
tectonic has joined #ruby
lamasnik has joined #ruby
gilest has joined #ruby
melik has joined #ruby
tjr9898 has joined #ruby
mary5030_ has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 264 seconds]
<hakunin>
i wonder if it would pass as a bag that h={}; h.fetch(nil) { 'foo' }; h # => {}
<hakunin>
*bug
xcv_ has quit [Remote host closed the connection]
<hakunin>
h[nil] = 'foo' however works
diegovio1 has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
tjr9898 has quit [Ping timeout: 244 seconds]
<hakunin>
i think i'm using fetch wrong, disregard
AlexRussia has quit [Quit: WeeChat 1.0-dev]
Shidash has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
kuzushi has joined #ruby
sevvie has joined #ruby
vsoftoiletpaper has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
bclune_ has quit [*.net *.split]
M-Technic has quit [*.net *.split]
Cache_Money has quit [*.net *.split]
micah`_ has quit [*.net *.split]
donofrio has quit [*.net *.split]
jpiche has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
segv has quit [*.net *.split]
dyreshark has quit [*.net *.split]
marcel has quit [*.net *.split]
niharvey has quit [*.net *.split]
zastern has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
lazyguru has quit [*.net *.split]
malcolmva has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
pietr0 has quit [*.net *.split]
threesixes has quit [*.net *.split]
omosoj has quit [*.net *.split]
snath has quit [*.net *.split]
quarcu has quit [*.net *.split]
jamespw has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
fold has quit [*.net *.split]
Photism has quit [*.net *.split]
Matadoer has quit [*.net *.split]
lkba has quit [*.net *.split]
kaspergrubbe_ has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
cnj has quit [*.net *.split]
cgj has quit [*.net *.split]
hephaestus_rg has quit [*.net *.split]
maloik has quit [*.net *.split]
kotk_ has quit [*.net *.split]
axisys has quit [*.net *.split]
chridal has quit [*.net *.split]
wackobobby has quit [*.net *.split]
LACP has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
yliu has quit [*.net *.split]
pontiki has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
matrixise has quit [*.net *.split]
zenspider has quit [*.net *.split]
moshee has quit [*.net *.split]
Muz has quit [*.net *.split]
xiphias has quit [*.net *.split]
sdwrage has quit [*.net *.split]
aewffwea has quit [*.net *.split]
icebourg has quit [*.net *.split]
wallerdev has quit [*.net *.split]
diegoviola has quit [*.net *.split]
gigetoo has quit [*.net *.split]
mbwe has quit [*.net *.split]
cid404 has quit [*.net *.split]
niklasb has quit [*.net *.split]
wakingideas has quit [*.net *.split]
amclain has quit [*.net *.split]
smuckk has quit [*.net *.split]
cajone has quit [*.net *.split]
agjacome_ has quit [*.net *.split]
wchun has quit [*.net *.split]
cherry_l1n has quit [*.net *.split]
phreax has quit [*.net *.split]
gtc has quit [*.net *.split]
mattp_ has quit [*.net *.split]
gizmore has quit [*.net *.split]
neersighted has quit [*.net *.split]
Eiam has quit [*.net *.split]
mgv has quit [*.net *.split]
aledovsky has quit [*.net *.split]
v0n has quit [*.net *.split]
s_e_ has quit [*.net *.split]
minecoins has quit [*.net *.split]
cuqa has quit [*.net *.split]
daed has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
kallen has quit [*.net *.split]
Platini has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
peeja has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
edwardly has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
hydrajump has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
Kruppe has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
oz has quit [*.net *.split]
saltsa has quit [*.net *.split]
dserodio has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
davidcelis has quit [*.net *.split]
sfiggins has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
Davey has quit [*.net *.split]
dphase has quit [*.net *.split]
helpa has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
patteh has quit [*.net *.split]
jeaye has quit [*.net *.split]
cout has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
Nowaker has quit [*.net *.split]
Cork has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
Zespre has quit [*.net *.split]
kenndel has quit [Read error: Connection reset by peer]
diegovio1 is now known as diegoviola
timonv_ has joined #ruby
astav has quit [Quit: astav]
kuzushi has quit [Ping timeout: 245 seconds]
cnj has joined #ruby
fold has joined #ruby
kaspergrubbe_ has joined #ruby
chrishough has quit [Quit: chrishough]
Shidash has joined #ruby
timonv_ has quit [Ping timeout: 272 seconds]
Cork has joined #ruby
Kerber0s has quit [Quit: Leaving]
Kerber0s has joined #ruby
cap has quit [Remote host closed the connection]
cap has joined #ruby
chipotle_ has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
Somekindabitcoin has joined #ruby
Somekindabitcoin has left #ruby [#ruby]
Kerber0s has quit [Client Quit]
Kerber0s has joined #ruby
Kerber0s has quit [Remote host closed the connection]
Kerber0s has joined #ruby
whyy has joined #ruby
Kerber0s has quit [Client Quit]
sent-hil has quit [Quit: Connection closed for inactivity]
frankle has quit [Quit: Connection closed for inactivity]
Bira has quit [Ping timeout: 245 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
Kerber0s has joined #ruby
whyy has quit [Ping timeout: 250 seconds]
<kies>
metaprogramming is sexy :o
jerikl has joined #ruby
Vile` has quit [Quit: .]
jmbrown412 has joined #ruby
braincrash has quit [Quit: bye bye]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
Shidash has joined #ruby
sdwrage has joined #ruby
fgo has joined #ruby
<TheMoonMaster>
benzrf: Wow, I never knew I was such a vital part of your workflow.
<TheMoonMaster>
You're welcome
<benzrf>
its true
jmbrown412 has quit [Ping timeout: 250 seconds]
braincrash has joined #ruby
thomasxie has quit [Remote host closed the connection]
barhum2013 has quit [Quit: barhum2013]
<CuriousMind>
What does it mean if the stack level is too deep?
<CuriousMind>
Did I hurt ruby's feelings or something
yfeldblum has joined #ruby
jmbrown412 has joined #ruby
snath has joined #ruby
vsoftoiletpaper has joined #ruby
elaptics`away has joined #ruby
lkba has joined #ruby
Photism has joined #ruby
segv has joined #ruby
quarcu has joined #ruby
axisys has joined #ruby
dyreshark has joined #ruby
malcolmva has joined #ruby
Emmanuel_Chanel has joined #ruby
chihhsin_cloud has joined #ruby
threesixes has joined #ruby
cgj has joined #ruby
cHarNe2 has joined #ruby
Mon_Ouie has joined #ruby
franks2 has joined #ruby
Mattias has joined #ruby
hephaestus_rg has joined #ruby
marcel has joined #ruby
niharvey has joined #ruby
bclune_ has joined #ruby
kotk_ has joined #ruby
lazyguru has joined #ruby
Muz has joined #ruby
pontiki has joined #ruby
jamespw has joined #ruby
Zespre has joined #ruby
M-Technic has joined #ruby
Cache_Money has joined #ruby
donofrio has joined #ruby
Gnubie_ has joined #ruby
GeekOnCoffee has joined #ruby
micah`_ has joined #ruby
zenspider has joined #ruby
Lewix has joined #ruby
seph429 has joined #ruby
Matadoer has joined #ruby
Sou|cutter has joined #ruby
yliu has joined #ruby
maloik has joined #ruby
jpiche has joined #ruby
xiphias has joined #ruby
matrixise has joined #ruby
LACP has joined #ruby
wackobobby has joined #ruby
moshee has joined #ruby
chridal has joined #ruby
zastern has joined #ruby
sn0wb1rd has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
asteve has joined #ruby
mbwe has joined #ruby
aewffwea has joined #ruby
gigetoo has joined #ruby
icebourg has joined #ruby
wallerdev has joined #ruby
cid404 has joined #ruby
niklasb has joined #ruby
cajone has joined #ruby
agjacome_ has joined #ruby
cuqa has joined #ruby
gtc has joined #ruby
cherry_l1n has joined #ruby
amclain has joined #ruby
dserodio has joined #ruby
wakingideas has joined #ruby
mgv has joined #ruby
Eiam has joined #ruby
phreax has joined #ruby
neersighted has joined #ruby
minecoins has joined #ruby
aledovsky has joined #ruby
BeanDip_ has joined #ruby
v0n has joined #ruby
wchun has joined #ruby
gizmore has joined #ruby
peeja has joined #ruby
AlyssaDaemon has joined #ruby
Platini has joined #ruby
kallen has joined #ruby
daed has joined #ruby
hydrajump has joined #ruby
edwardly has joined #ruby
samuelkadolph has joined #ruby
mattp_ has joined #ruby
s_e_ has joined #ruby
smuckk has joined #ruby
saltsa has joined #ruby
jumblemuddle has joined #ruby
Nowaker has joined #ruby
pdtpatr1ck has joined #ruby
avelldiroll has joined #ruby
oz has joined #ruby
cout has joined #ruby
patteh has joined #ruby
isomorphismes has joined #ruby
jeaye has joined #ruby
dazeddev_ has joined #ruby
sfiggins has joined #ruby
Davey has joined #ruby
helpa has joined #ruby
_KaszpiR_ has joined #ruby
davidcelis has joined #ruby
ClarusCogitatio has joined #ruby
dphase has joined #ruby
Kruppe has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
mojo619 has joined #ruby
cap has quit [Ping timeout: 260 seconds]
sylvanica has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
chrishough has joined #ruby
Cache_Money has quit [Ping timeout: 246 seconds]
Vile` has joined #ruby
Kerber0s has quit [Ping timeout: 260 seconds]
jonr22 has joined #ruby
cap has joined #ruby
sylvanica has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: Leaving]
MatthewsFace has joined #ruby
jonr22 has quit [Quit: WeeChat 0.4.2]
jonr22 has joined #ruby
_mikedugan has joined #ruby
<benzrf>
CuriousMind: the stack is the call stack
<benzrf>
it's a stack of calls
<benzrf>
CuriousMind: imagine that you were a ruby interpreter
<benzrf>
i give u ruby code & you manually figure out the result
<_mikedugan>
do you guys have a preferred paste service here?
<benzrf>
what if i give you this code:
<benzrf>
def foo
<benzrf>
bar + 1
<benzrf>
end
<benzrf>
def bar
_mikedugan is now known as mikedugan
<benzrf>
baz + 2
<benzrf>
end
<benzrf>
def baz
<benzrf>
3
<benzrf>
end
<benzrf>
then i ask u to figure out `foo'
<benzrf>
what would you do
<CuriousMind>
ummmmmmmmmmmmmmmmmmmm
<CuriousMind>
that looks complicated as hell soooooooooooooooo
<jeaye>
Definitely not the channel.
_0xf_ has quit [Ping timeout: 240 seconds]
<CuriousMind>
foo == foo?
_0xf_ has joined #ruby
<CuriousMind>
I don't get what a stack call is still
crdpink has joined #ruby
<benzrf>
CuriousMind: dw
<benzrf>
CuriousMind: ok nvm 1 SecretAgent
<benzrf>
*sec
<CuriousMind>
or what it means when it says stack deep
* benzrf
writes up some stuff
<CuriousMind>
benzrf: ok
* CuriousMind
waits patiently for benzrf to write his stuff
<mikedugan>
I'm trying to do some seemingly simple matching of CSS rgb codes...my MatchData only contains one group when there should be 2...advice? http://pastebin.com/pk4HHMLB
<benzrf>
ok u know what?
<benzrf>
somebody needs to invent a ubiquitous, easy-to-use, performant parser combinator lib for ruby
<benzrf>
im sick of complex regexes
<mikedugan>
ha, mines not for any *real* purpose, just learning value
chipotle_ has quit [Ping timeout: 260 seconds]
_0xf_ has quit [Ping timeout: 264 seconds]
<mikedugan>
I've always figured if you can figure out how a language's regex works, you can do anything else you need to
<CuriousMind>
mikedugan: can you teach me how to learn from mines?
<benzrf>
CuriousMind: did u read that code
<mikedugan>
indeed, step on one and your mind wil be blown :)
<benzrf>
parser combinators are hella
<benzrf>
if only ruby had innate support for them instead of regex
<pipework>
Mon_Ouie: (a = a if defined?(a)) || (a = b) # This is the correct expansion.
<Mon_Ouie>
The way it works: if the lhs is an undefined local variable, it is implicitly defined as being nil. The lhs is then evaluated. If it evaluates to either nil or false, the rhs is evaluated and the lhs is set (possibly using a method call) to the resulting object.
InhalingPixels has joined #ruby
<Mon_Ouie>
pipework: I just showed you a program that doesn't behave in the same way
<pipework>
Showed how?
<Mon_Ouie>
with your expansion and the real one
<Mon_Ouie>
>> class Foo; attr_writer :bar; end; Foo.new.bar ||= 4
<pipework>
oh didn't put 4 in the rhs of the first.
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<pipework>
Mon_Ouie: Yeah, I can see how ||= will send messages depending on whether it's a local or a method on the LHS.
cap has quit [Ping timeout: 246 seconds]
whyy has joined #ruby
<Mon_Ouie>
Also other problem while writing the paste: Foo.new.bar ||= 3 # only ever creates one instance of Foo
<Mon_Ouie>
All the expansions shown will create multiple ones
<pipework>
Yeah, there's definitely a little more needed.
<pipework>
but it's just checking the output of defined? and calling on the LHS after it's defined.
tjr9898 has joined #ruby
melik has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
philcrissman has joined #ruby
cap has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
mr-foobar has quit [Read error: Connection reset by peer]
mr-foobar has joined #ruby
wjimenez5271 has joined #ruby
toastynerd has joined #ruby
tjr9898 has quit [Ping timeout: 272 seconds]
mkaesz has joined #ruby
relix has joined #ruby
philcrissman has quit [Ping timeout: 260 seconds]
chipotle has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Read error: Connection reset by peer]
mkaesz has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
jmbrown412 has joined #ruby
wald0 has quit [Ping timeout: 260 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bearish has joined #ruby
oo_ has joined #ruby
SilkFox has quit [Read error: Connection reset by peer]
SilkFox has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 260 seconds]
bearish has quit [Ping timeout: 246 seconds]
jerikl has quit [Quit: jerikl]
<benlieb>
pipework: Mon_Ouie: just checking back in. did you guys reach a conclusion? One of you should write up a blog post.
<benlieb>
:)(
<benlieb>
oops :)
memph1s has joined #ruby
mary5030 has quit [Remote host closed the connection]
<pipework>
benlieb: I don't know, I've never felt that surprised or perplexed by its behaviour. If Mon_Ouie likes to blag, I formally withdraw any claim I have to the finding.
Ankhers has joined #ruby
chipotle has joined #ruby
bearish has joined #ruby
diegoviola has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
nateberkopec has joined #ruby
lukeholder has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
coca_rails has joined #ruby
smuck has joined #ruby
timonv_ has joined #ruby
amacou has quit []
<Mon_Ouie>
I'd explain the behavior in English without expanding it to Ruby code. Indeed, the way it is implemented is by adding entries to the vtable and generating bytecode (||= has its own rule), not in terms of an equivalent ruby construct
cap has quit [Remote host closed the connection]
aspires has joined #ruby
cap has joined #ruby
<kies>
any suggestions on improving this? this is some code i wrote to convert rrd data to json https://gist.github.com/anonymous/0cbcca0b39fd85be499e, ive only been programming ruby a year so wondering if some pros could give me some thoughts on patterns/structure i may be missing on
nateberkopec has quit [Ping timeout: 240 seconds]
smuckk has quit [Ping timeout: 255 seconds]
diegoviola has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Ping timeout: 250 seconds]
diegovio1 has joined #ruby
smuck has quit [Ping timeout: 250 seconds]
diegovio1 is now known as diegoviola
smuck has joined #ruby
fgo has joined #ruby
cap has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
aspires has quit []
hellangel7 has joined #ruby
Matadoer has quit [Remote host closed the connection]
coca_rails has quit [Read error: Connection reset by peer]
coca_rails has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
koderok has quit [Quit: koderok]
hellangel7 has quit [Max SendQ exceeded]
hellangel7 has joined #ruby
Bira has quit [Ping timeout: 250 seconds]
darkxploit has quit [Ping timeout: 240 seconds]
patric100e99 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
_0xf_ has joined #ruby
Emmanuel_Chanel has joined #ruby
cap has joined #ruby
axl_ has joined #ruby
axl_ has quit [Client Quit]
patric100e99 has quit [Ping timeout: 255 seconds]
_0xf_ has quit [Ping timeout: 264 seconds]
OffTheRails has quit [Ping timeout: 272 seconds]
r_s has joined #ruby
mityaz has quit [Quit: See ya!]
merqlove has joined #ruby
_0xf_ has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
I am unsure how to find out that it has failed, from within ruby, though
<jhass>
how do you call it ?
startupality has joined #ruby
<apeiros>
shevy: I'd expect make to have a proper exit status
<shevy>
jhass mostly via ``
merqlove has quit [Quit: Connection closed for inactivity]
arup_r has quit [Ping timeout: 245 seconds]
<jhass>
try $?.success?
<shevy>
hmm
<shevy>
$?.success? # => false
<shevy>
$? gets automatically set?
<jhass>
yes
binw_ has quit [Read error: Connection reset by peer]
_2_Lily97 has joined #ruby
<shevy>
cool, I think that may work then, thanks
<shevy>
I tried it with htop just now, make works fine there, and $? seems to get set correctly: $?.success? # => true
linojon has quit [Quit: linojon]
j416 has quit [Ping timeout: 245 seconds]
_2_Lily97 has quit [Read error: Connection reset by peer]
binw has joined #ruby
j416 has joined #ruby
_2_Lily97 has joined #ruby
ptrrr has joined #ruby
fold has quit [Ping timeout: 240 seconds]
LexicalScope has joined #ruby
blackgoat has quit [Ping timeout: 272 seconds]
niklasb has joined #ruby
blackgoat has joined #ruby
coca_rails has quit [Quit: coca_rails]
Fractional has joined #ruby
<Fractional>
Is there a way to 'sync' a array with another? Like, add a object to the array only if it is not in the array?
pd has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
InhalingPixels has joined #ruby
<jhass>
If I ignore the first sentence what you want is a Set
<shevy>
hehe
<shevy>
"if i ignore your whole sentence, I'm gonna give a great answer"
<jhass>
so maybe try to describe that again
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Fractional>
Are you referring to me jhass, shevy?
<jhass>
yes
<Fractional>
Ok, I want something in the lines of this. (@player.projectiles.each {|projectile| @objects += projectile if @objects.include? projectile})
<Fractional>
Should be a ! infront of @objects.include?
<jhass>
so no second array
<jhass>
first of all use << over +=
<Fractional>
Roger
<jhass>
a += b is a = a+b, so creating new object and assigning it to the same variable
<jhass>
and then as said, you want a set
fgo has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
>> require 'set'; set = Set.new; set << :a; set << :b; set << :a; set
<Fractional>
jhass: I got my dummy code to work, thank you a lot for taking the time though! :)
InhalingPixels has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
startupality has quit [Quit: startupality]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
toastynerd has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
toastynerd has quit [Read error: No route to host]
j416 has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
toastynerd has joined #ruby
ayaz has joined #ruby
timonv_ has joined #ruby
ghr has joined #ruby
<apeiros>
Fractional: @objects |= @player.projectiles # alternative to set, but set is IMO better
<apeiros>
btw., the |= also works with @objects being a Set and @player.projectiles being either a Set or an Array
jottr_ has joined #ruby
arup_r has joined #ruby
hasan has quit [Read error: Connection reset by peer]
klaut has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
<jhass>
hm, wait, he's just building the uniq set of projectiles? @player.projectiles.uniq then
toastynerd has quit [Ping timeout: 250 seconds]
<shevy>
does anyone know how I could google for the docu of $? ?
m8 has joined #ruby
<jhass>
symbolhound.com
klaut has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
timfoo has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
spider-mario has joined #ruby
<Fractional>
apeiros: What is '|=' operation called?
<Mon_Ouie>
It's just syntax sugar for @objects = @objects | @player.projectiles
<klaut>
conditional assignment
<jhass>
klaut: that's ||=
<Mon_Ouie>
And Array#| is a method that does set union
<klaut>
jhass: ahh, true! :)
startupality has joined #ruby
timfoo has joined #ruby
whyy has joined #ruby
Bira has joined #ruby
kirun has joined #ruby
_2_Lily97 has quit [Read error: Connection reset by peer]
<apeiros>
and Set#| is also a method that does set union
niklasb has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
Bira has quit [Ping timeout: 245 seconds]
pd has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 244 seconds]
<CuriousMind>
shevy: I am awake now
<CuriousMind>
shevy: I am going to a hackathon with my friend today
<CuriousMind>
shevy: I only got like 6 hours of sleep, the hackathan is from 10AM to 7PM,
<CuriousMind>
hahahah
fgo has quit [Remote host closed the connection]
<Fractional>
Question regarding ruby style guide. When you call a method with a argument, what is more commonly used in Ruby of those two? foo(bar) or foo bar?
klaut has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 244 seconds]
fgo has joined #ruby
<jhass>
feels like 50/50
<apeiros>
depends on the context IMO
<apeiros>
DSL things like attr_* are almost exclusively without ()
philcrissman has quit [Ping timeout: 264 seconds]
<Fractional>
apeiros: What if you pass multiple arguments along?
<apeiros>
other calls, I'm not consistent I think. I don't use it for stuff like puts. but I think I do use it for lots of other things.
<apeiros>
funny… I think I have to go read my own code to answer that :D
<jhass>
I pretty much always leave them out for the outer method
timonv_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
InhalingPixels has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
MartinCleaver has joined #ruby
zz_anildigital is now known as anildigital
cap has joined #ruby
whyy has joined #ruby
shtirlic has joined #ruby
doodlehaus has joined #ruby
shtirlic has quit [Client Quit]
Grantlyk has quit [Remote host closed the connection]
Grantlyk has joined #ruby
toastynerd has joined #ruby
iamjarvo has joined #ruby
philcrissman has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
shtirlic has joined #ruby
toastynerd has quit [Read error: No route to host]
iamjarvo has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
whyy has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
pandaant has quit [Quit: Lost terminal]
philcrissman has quit [Ping timeout: 244 seconds]
pandaant has joined #ruby
jeramyRR has quit [Quit: jeramyRR]
toastynerd has quit [Ping timeout: 240 seconds]
Grantlyk has quit [Read error: Connection reset by peer]
e4xit has joined #ruby
nateberkopec has joined #ruby
Grantlyk has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
sptq has quit [Ping timeout: 240 seconds]
paul_k has quit [Ping timeout: 240 seconds]
cap has quit [Ping timeout: 240 seconds]
bearish_ has quit [Remote host closed the connection]
thalweg has quit [Quit: No Ping reply in 180 seconds.]
gf3 has quit [Ping timeout: 272 seconds]
orionstein has quit [Ping timeout: 272 seconds]
sindork has quit [Ping timeout: 244 seconds]
ianco has quit [Ping timeout: 264 seconds]
thalweg has joined #ruby
shaquile has quit [Ping timeout: 255 seconds]
sweeper has quit [Ping timeout: 255 seconds]
Kovensky has quit [Ping timeout: 255 seconds]
philtr_ has quit [Ping timeout: 260 seconds]
SirFunk has quit [Ping timeout: 260 seconds]
Gnubie_ has quit [Ping timeout: 272 seconds]
xcv has joined #ruby
rmill has quit [Ping timeout: 272 seconds]
bearish has joined #ruby
malcolmva has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
centrx has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
DanKnox has quit [Ping timeout: 244 seconds]
marr has joined #ruby
mechanicalduck has joined #ruby
tallyon has joined #ruby
DanKnox has joined #ruby
<mechanicalduck>
hii
<mechanicalduck>
So there is each with which I iterate over a ruby hash (| key, value |)
<mechanicalduck>
Now I want an index, I thought about using each_with_index (nice), but it does seem only to work with arrays, not with hashes (no key)
<mechanicalduck>
So is there also an each or each_with_index with index / for hashes?
<tallyon>
what new books about ruby you guys consider competent? any favourites?
<Mon_Ouie>
mechanicalduck: That's already what each does
<shevy>
every subclass has another default constant assigned
cap has quit [Ping timeout: 240 seconds]
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<jhass>
shevy: you can make FOO a (protected) method and call that Foo#test, see Template (Method) pattern
<jhass>
*that in
hakunin has quit [Ping timeout: 240 seconds]
<jhass>
shevy: or maybe FOO actually isn't constant but a instance variable
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
InhalingPixels has joined #ruby
iamjarvo has joined #ruby
ohwhoa has joined #ruby
<jhass>
shevy: or maybe just resolve the constant with self.class::FOO
fdelacruz has joined #ruby
fold has joined #ruby
<mechanicalduck>
hi again!!
<mechanicalduck>
Pardon my ignorance, so I use the following construct, right?: a_hash.each do | key, value | p[key, value] [...]
<mechanicalduck>
and I can use p as index?
<jhass>
no
treehug88 has quit []
<jhass>
sorry, put you completely misunderstood Mon_Ouie
<jhass>
his argument was that in .each do |key, value| key already is the index of the hash
InhalingPixels has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby
toastynerd has joined #ruby
marr has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
jonr22 has quit [Ping timeout: 240 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
<mechanicalduck>
oh!
<mechanicalduck>
Now I see, I misformulated my question, at least I missed something to describe.
<mechanicalduck>
I want a running number, starting from 0.
toastynerd has quit [Ping timeout: 255 seconds]
<mechanicalduck>
I need it because I don't want to print the last comma (not valid in output language).
<mechanicalduck>
I could use some join thing, but I would like to have it directly inline.
<apeiros>
mechanicalduck: most likely you should use .map + .join
<jhass>
^
<jhass>
mechanicalduck: as always make a gist with input and desired output
<apeiros>
you can get an index for anything which can return an Enumerator using .with_index, and anything which includes Enumerable can use .each_with_index
<jhass>
posh, not before we presented him the nice solution that doesn't need that apeiros :P
<apeiros>
mechanicalduck: also note that p[a, b] is NOT the same as p [a, b]
<mechanicalduck>
jhass: What is an 'apeiros'? Can I eat it?
<mechanicalduck>
apeiros: oh, it is a nickname
<mechanicalduck>
sorry
<apeiros>
p[a, b] --> p.[](a,b)
<dorei>
apeiros is the greek word for infinity :p
<apeiros>
p [a, b] --> p([a,b])
<mechanicalduck>
ah
<Mon_Ouie>
[apeiros, engl.: “ah.pay.ross”] from the greek ἄπειρος, the boundless, infinite :p
havenwood has joined #ruby
<dorei>
yeap, infinite is the correct, not infinity
<mechanicalduck>
tried to look it up in google, but couldn't found a description of the word.
<apeiros>
apeiron would be infinity iirc
<dorei>
apeiro in modern greek, i guess apeiron in ancient greek
<apeiros>
possible
<apeiros>
I got told that in modern greek it's pronounced differently too :-/
saarinen has joined #ruby
<txdv>
cool story
<mechanicalduck>
First it sounded like something to me
* mechanicalduck
is ignorant
<mechanicalduck>
*to drink
<dorei>
a-pi-ros, pi like in the letter pi, 'ei' is pronounced 'i' (the i in 'did') in modern greek
nobitanobi has joined #ruby
<apeiros>
I actually took anaximandros' "apeiron" (which is the source of everything) and took the male form of it :)
<PixelCrumbs>
I need to go through a file and get all characters up until a certain sequence. Eg. abcdefghiJKLmnop (we would stop at JKL). Any ideas on how I could do this?
cap has joined #ruby
<jhass>
PixelCrumbs: do you need to stop reading or just extract the part prior it?
<shevy>
jhass hmm let me think a moment
<apeiros>
PixelCrumbs: inefficient, but maybe all you need: File.read(path)[/.*?SEQUENCE/]
<shevy>
jhass the self.class::FOO, how do you mean?
<apeiros>
(?=SEQ) if you want it excluded
<PixelCrumbs>
jhass: I need to extract the part prior to it
yfeldblum has joined #ruby
<jhass>
shevy: like I wrote
<apeiros>
dorei: you're greek or you just happen to speak it? :)
<PixelCrumbs>
apeiros: the char sequence is different each time though
<shevy>
cool
<shevy>
that works
<jhass>
PixelCrumbs: then apeiros solution or .split('sequence', 2).first
<shevy>
now if only I'd understand it
<apeiros>
PixelCrumbs: so?
metadave has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Excess Flood]
<apeiros>
PixelCrumbs: you hopefully know how to use variables?
<apeiros>
Regexp.escape if it may contain special chars
<jhass>
shevy: You understand Foo::FOO right? Do you follow bar = Foo; bar::FOO ?
<shevy>
hmm
<shevy>
yeah
metadave has joined #ruby
<jhass>
nothing different here, we get the current Class object and resolve the constant under it
hakunin has joined #ruby
mojo619 has joined #ruby
<shevy>
it looks very strange
<shevy>
def foo(i = self.class::SOME_CONSTANT)
Grantlyk has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<shevy>
I don't think I have seen that before
patrick99e99 has joined #ruby
<PixelCrumbs>
jhass: apeiros: I forgot to mention that I only want the stuff between two certain points
<PixelCrumbs>
so if I had asdjfkasdjfkasdjaksdjf_A_jasdfkjasdkfjasdjkfaskdjfaksjdf_B_asdfkjasdkjfaskjdfa -- I would only want the stuff between _A_ and _B_
<PixelCrumbs>
could you still use split for that?
_0xf_ has joined #ruby
<apeiros>
PixelCrumbs: what have you tried so far?
toastynerd has joined #ruby
sigurding has joined #ruby
cpruitt has quit [Quit: cpruitt]
<PixelCrumbs>
apeiros: Nothing :3 I have no idea where to start
jottr has joined #ruby
<jhass>
PixelCrumbs: you could with a .split('_A_', 2).last.split('_B_', 2).first but string[/_A_(.+)_B_/, 1] might be more elegant (both given the tokens are unique)
j416 is now known as noshi
fgo has quit [Remote host closed the connection]
<apeiros>
PixelCrumbs: did you think about how to adjust the regex solution to your initial question for your new one?
fgo has joined #ruby
<apeiros>
PixelCrumbs: other approaches: String#index + String#[]
<apeiros>
String#gsub
<apeiros>
I'm sure there are even more possible approaches
<PixelCrumbs>
Yeah
<nobitanobi>
morning guys
<Hanmac>
apeiros: String#scan ?
<PixelCrumbs>
I've never really done anything with regex patterns tbh
patrick99e99 has quit [Ping timeout: 255 seconds]
<apeiros>
Hanmac: true. but IMO wrong tool for single occurrence.
<PixelCrumbs>
I'll research it a bit more and then come back to you if i'm still stuck
<apeiros>
Hanmac: that said, maybe that's his next thing he forgot…
<PixelCrumbs>
cheers
<jhass>
PixelCrumbs: especially if you stop making up examples and reveal what you're really trying to parse
mojo619 has quit [Quit: mojo619]
<nobitanobi>
anybody needs some help on any of their open source projects?
mojo619 has joined #ruby
L3top has joined #ruby
<havenwood>
yes
<PixelCrumbs>
jhass: so basically, I have all of this data. https://gist.github.com/anonymous/53b9cd7ee691d1f117e4 -- I need to find "Minecraft Server", and replace it with all of the text after "Minecraft Serverip" up until "hideAddress
cap has quit [Ping timeout: 240 seconds]
<nobitanobi>
havenwood: please link me to the repo! I am willing to try to help and get feedback
L3mce has quit [Ping timeout: 260 seconds]
<jhass>
PixelCrumbs: where did you get that from?
mijicd has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<PixelCrumbs>
jhass: the data? It's basically just how Minecraft stores the servers that you add to your favourites list
fdelacruz has quit [Ping timeout: 244 seconds]
<jhass>
So some kind of serialization format
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<havenwood>
nobitanobi: i'm sure i know some ruby stuff, but the first thing that came to mind was shell, since it's what i'm working on :O
<havenwood>
nobitanobi: shell okay? :P
<PixelCrumbs>
Yeah, all of the wierd shit is serialized data
<nobitanobi>
oh ugh, ideally I wanted to do some Ruby stuff. Pair up with somebody who I can help and at the same time learn from
<havenwood>
nobitanobi: oh, nice
<PixelCrumbs>
or at least some form of serialization
<havenwood>
nobitanobi: good idea
<nobitanobi>
havenwood: So, if you have any Ruby projects, I would be really happy to try to help
axilla has quit [Ping timeout: 272 seconds]
jottr_ has joined #ruby
iamjarvo has joined #ruby
asteve has joined #ruby
asteve has quit [Changing host]
asteve has joined #ruby
zeroNones has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<smuck>
You guys are awewsome. i have spent 2week time to learn ruby and still i have learn nearly nothing. :)
fdelacruz has joined #ruby
axilla has joined #ruby
<banister>
smuck you must be slightly mentally deficient then ;)
nobitanobi has quit [Read error: Connection reset by peer]
koderok has joined #ruby
koderok has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<smuck>
banister: maybe you are right :)
<nobitanobi>
agh. Sorry havenwood I got disconnected.
toastynerd has quit [Remote host closed the connection]
OffTheRails has joined #ruby
<havenwood>
nobi, oh vanished
philcrissman has joined #ruby
<shevy>
hmm
<nobitanobi>
havenwood: anyway, if you think of any of your projects that have some issues I could take a look, ping me!
<havenwood>
nobitanobi: ah, was gunna say i was looking at the `naturally` gem yesterday and it could use a /bin
<havenwood>
nobitanobi: also (a real easy PR) it needs `gem.license = 'MIT'` in the gemspec
<fdelacruz>
excuse me, but why are the names 'el' and 'arr' traditionally used in arrays iterations?
<havenwood>
nobitanobi: the gemspec is actually already wired to detect the bin, so that file is all that's needed - and doc changes
<shevy>
hmm
<nobitanobi>
havenwood: let me see
alexju has joined #ruby
<shevy>
when I run system './configure' I get output. if I do: result = `./configure` I don't get output, but I need to capture the string into a variable. is there a way to get the same output via `` as with system() ?
<nobitanobi>
havenwood: so pardon my ignorance on this aspect, how do you tell your shell to use that gem without being in IRB or PRY?
<havenwood>
hem, although could you just use Open3#capture2e?
andrewlio has quit [Quit: Leaving.]
ghr has quit [Ping timeout: 272 seconds]
ctp has joined #ruby
jottr has joined #ruby
<havenwood>
i guess not
nobitanobi has quit [Remote host closed the connection]
Darkchaos has quit [Ping timeout: 240 seconds]
<havenwood>
blocky block
chipotle has quit [Quit: cya]
<shevy>
hehehe
<shevy>
blocky block
<shevy>
stabby stab
<havenwood>
stabby stab stab!
<havenwood>
->(){}
adamski2600 has joined #ruby
Snowstormer is now known as ^42
Fractional has joined #ruby
Kilobyte|StupidC is now known as Kilo`byte
sepp2k has joined #ruby
<Fractional>
Hello, I have come a far way on my 2D ruby game. As such, I would like to ask if there is anyone around here who could help me go through the code and help me improve it. I would prefer to discuss around it. Please, if you think you can help me hit me up. Would appreciate it a lot! :-)
tjr9898 has quit [Remote host closed the connection]
siukit2014 has joined #ruby
timonv_ has joined #ruby
patrick99e99 has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<enali>
ruby game?
<Fractional>
enali: Yes, a retro 2D spaceshooter :)
cap has quit [Ping timeout: 240 seconds]
<enali>
PC or Android?
<Fractional>
enali: PC
<enali>
win, linux?
<Fractional>
enali: So far only tested on win 8 and OS X 10.8.5 :P
bMalum has quit [Quit: Computer has gone to sleep.]
marr has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
<enali>
you code it with pure ruby?
bMalum has joined #ruby
<Fractional>
enali: Correct
RustyShackleford has quit [Ping timeout: 272 seconds]
adamski2600 has left #ruby [#ruby]
philcrissman has joined #ruby
<dorei>
there're a couple of gem for ruby game dev if I remember correct
<havenwood>
shevy: oh, i guess the point was return value >.>
RustyShackleford has joined #ruby
<enali>
can you email it to me? I want to play it.
<enali>
I just use RoR
<Fractional>
Yes, I am using the Gosu gem as of now. But I am a little bit worried about my codestyle :/
barhum2013 has quit [Quit: barhum2013]
jerikl has quit [Quit: jerikl]
<Fractional>
enali: Its up on my Github page. However, its not really a game yet. You can not take damage nor deal damage to the enemies. Let me grab the link for you.
<enali>
make thing happen, the style is not import , I think
<jhass>
you know you need to post the code if you want a review, right?
<shevy>
I'd like to find out that I have 1 up to 4 arguments, the default values (should they have one), and the name of the respective variable there (though that latter part is not so important)
<Hanmac>
shevy i wanted to show with that sample that you cant have a function that returns the default values of some parameters for a method
Butcho has joined #ruby
fold has quit [Ping timeout: 250 seconds]
kaspertidemann has quit []
robustus has quit [Ping timeout: 250 seconds]
anaeem1 has quit [Remote host closed the connection]
klmlfl has quit [Quit: klmlfl]
yfeldblum has joined #ruby
shredding has quit [Quit: shredding]
tjr9898 has joined #ruby
SilkFox has joined #ruby
<shevy>
I've not seen a method with raise inside there in the argument list yet
maximski has joined #ruby
toastynerd has joined #ruby
<jhass>
I hope you never will again
tkuchiki has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
nemesit|znc has quit [Ping timeout: 244 seconds]
sylvanica has joined #ruby
<shevy>
hehe
<shevy>
Hanmac code has hidden easter eggs
hakunin has joined #ruby
maximski has quit [Client Quit]
<Hanmac>
jhass: doctorWho fan? ;P
<jhass>
no
nemesit|znc has joined #ruby
<Hanmac>
oh bad, your sentence did remind me of a scene from the 50th years special ... like "i have seen that" and next generationDoctor did say "and i never want to see it again" ;P
tkuchiki has quit [Ping timeout: 260 seconds]
ringarin has joined #ruby
kireevco has joined #ruby
eivindml has joined #ruby
eivindml has quit [Max SendQ exceeded]
michaeldeol has joined #ruby
eivindml has joined #ruby
benzrf|offline is now known as benzrf
Photism has joined #ruby
machete has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
if I have a class like
<shevy>
class Foo; def test1; end; def test2; end; end
iamjarvo has joined #ruby
sylvanica has quit [Ping timeout: 246 seconds]
<shevy>
how to get only methods defined in that very class - excluding all other sources?
Fractional has joined #ruby
doev has quit [Ping timeout: 260 seconds]
f_vosberg has joined #ruby
<Fractional>
jhass: I have returned! You said you had lots to come? Enlighten me :D
<shevy>
hmm
<shevy>
.class.instance_methods(false)
cpruitt has quit [Read error: Connection reset by peer]
machete has joined #ruby
<jhass>
Fractional: okay, in Loot you have "Health" and "Ammo" and use them as identifiers. Use symbols (:health and :ammo) instead
cpruitt has joined #ruby
<Fractional>
jhass: Instead of the variables? Is there a reason for this? :P
Butcho has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
instead of the strings
<jhass>
the reason is that the whole purpose of symbols is to be used as identifiers
<jhass>
so it's much cheaper and safer to do so
<havenwood>
shevy: Foo.new.public_methods false
<Fractional>
jhass: Ok I need to give that a read. Added to my to-do list :P
<jhass>
Fractional: Loot#get_health/ammo have side effects which I wouldn't expect from a getter. Besides we skip the get_ and set_ in accessor methods
<jhass>
so I'd rename them to reset_health or something
<shevy>
why public_methods and not instance_methods?
arup_r has quit [Ping timeout: 272 seconds]
<jhass>
Fractional: you can also make them slightly shorter with @health.tap { @health = 0 }
kireevco has quit [Quit: Leaving.]
<Fractional>
jhass: I am so bad at naming methods. What would you say they should be called, if you were to name them? :P
atmosx has quit [Ping timeout: 260 seconds]
<jhass>
reset_health / reset_ammo I guess
<jhass>
Fractional: Loot#update feels like having a logic error, you check if it moved out of the window and then move it again anyways
<shevy>
"Returns the list of public methods accessible to obj. If the all parameter is set to false, only those methods in the receiver will be listed."
atmosx has joined #ruby
<havenwood>
shevy: omitting protected methods
<shevy>
cool. now I only have to remember... aaaaah
<jhass>
Fractional: probably no harm in doing so, but seems odd
<Fractional>
jhass: Hold on here! :D Need to fix one thing at a time haha, you are too fast :P
<jhass>
Don't have history and a scroll wheel? :P
robustus has joined #ruby
<shevy>
he only looks at the last thing in chat
<shevy>
P3NIS!
Symbiosisz has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
f_vosberg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
or a 1 line buffer
<shevy>
like the guy in the movie memento
_0xf_ has joined #ruby
SilkFox has joined #ruby
<jhass>
Fractional: same logic oddness in Projectile#update
<havenwood>
shevy: or don't use protected and use instance_methods(false) ;)
<shevy>
hmm
<wasamasa>
zenspider: yay, I think I'm on the bug
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
<Fractional>
jhass: The get_health/ammo methods were unused, ugh, will remove them.
<shevy>
you are sitting on a bug?
<wasamasa>
not yet
<wasamasa>
but I've come closer
<wasamasa>
I can sense it
<Fractional>
jhass: I see what you mean in Loot#Update, it has been adressed.
nateberkopec has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
Fractional: I'd try to split up the condition in RectangularCollision#rectangular_collision? by giving the individual parts names by extracting them into (private) methods
cpruitt has quit [Quit: cpruitt]
_0xf_ has quit [Ping timeout: 245 seconds]
<jhass>
Fractional: small indentation error in ResourceManager.rb:3 :P
<jhass>
lots of if ! -> unless in that file
<jhass>
also the :: -> . method call point
<Fractional>
In ResManag...rb?
<jhass>
yes
siukit2014 has quit [Ping timeout: 250 seconds]
<jhass>
in the #[] method there you don't need the return keyword in the last line
centrx has quit [Quit: Mead error: Connection reset by beer]
toastynerd has quit [Remote host closed the connection]
<jhass>
also you're doing a .map there: keys.map {|key| @resources[key] }
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional>
jhass: Question regarding namespace.
<jhass>
or even just @resources.values_at(*keys)
<Fractional>
jhass: #19, I have written Gosu::Image::Load_tiles. Should it be replaced with Gosu.Image::Load_tiles?
<jhass>
no
<jhass>
Gosu is a module
<jhass>
Image is a module or a class
heftig has quit [Quit: Quitting]
<jhass>
load_tiles is a method
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
resolve constants (includes modules and classes) with ::
<jhass>
call methods with .
<jhass>
so Gosu::Image.load_tiles
<Fractional>
jhass: Ok great, that explains it :D
amclain has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
gilest has quit [Remote host closed the connection]
<jhass>
SpaceshipFighter#initialize has another use symbols instead of strings case
machete has quit [Ping timeout: 260 seconds]
carraroj has quit [Quit: Konversation terminated!]
<jhass>
in SpaceshipFighter#update write @projectiles.select!(&:alive?)
j_mcnall_ has joined #ruby
machete has joined #ruby
<Fractional>
jhass: That is a way better way of doing it! Cheers
<jhass>
In AIFighter#dodge_projectile if closest_projectile != nil -> unless closest_projectile
iamjarvo has joined #ruby
banister is now known as banistergalaxy
<jhass>
AIFighter#threatening is a select: objects.select {|object| condition_you_have_in_the_if }
bMalum has joined #ruby
<Fractional>
jhass: Got a error replacing if closest_projectile != nil to unless closest_projectile.
shredding has quit [Quit: shredding]
<jhass>
er, yeah just if closest_projectile, remove the != nil
<jhass>
or can it be false ?
<shevy>
is .parameters actually useful Hanmac?
kaspergrubbe_ has joined #ruby
<Fractional>
jhass: It can be nil.
CorySimmons has joined #ruby
<Hanmac>
shevy better than arity
<shevy>
hehe
<shevy>
I can decude arity from .parameters?
<shevy>
*deduce
<jhass>
Fractional: then just remove the != nil
<shevy>
.parameters.size ?
<Fractional>
jhass: Yep, not sure why I even had that there in the first place, ugh :P
<jhass>
Fractional: do you ever call AIFighter#clean_from_class with opposite = false ?
<jhass>
also it's more like a filter_by_class ?
toastynerd has joined #ruby
fgo has joined #ruby
fold has joined #ruby
<jhass>
since I can only find that one call: def filter_by_class(objects, klass); objects.select {|object| object.is_a? klass }
<jhass>
; end
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has quit [Ping timeout: 264 seconds]
<jhass>
You might want to implement <=> in all your objects so you can just compare them and don't need that code on the caller side like in AIFighter#closest_entity
sigurding has quit [Quit: sigurding]
<Fractional>
jhass: Once again you are right! Nope, I have adressed this now. Probably thought I would use it later.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum has quit [Ping timeout: 246 seconds]
poulet_a has joined #ruby
<jhass>
In AIFighter you set @objects but then explicitly pass it to all methods, decide on one, don't do both
maximski has joined #ruby
<jhass>
on a general node exceeding 80-100 characters per line should be an exception
<jhass>
you can insert newlines in many places
sylvanica has joined #ruby
obs has quit [Quit: Saliendo]
fgo has quit [Ping timeout: 272 seconds]
toastynerd has quit [Remote host closed the connection]
linojon has quit [Quit: linojon]
<jhass>
In Play#update you can do @objects |= @player.projectiles, that won't include duplicates
MartinCleaver has joined #ruby
ringaring has joined #ruby
whyy has joined #ruby
<Fractional>
jhass: No longer passing @objects explicitly to all methods.
philcrissman has joined #ruby
armyriad has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
<jhass>
Play#update has that same .select!(&:alive?) we had earlier
<jhass>
maybe you're doing that check one time too much?
armyriad has joined #ruby
ringarin has quit [Ping timeout: 240 seconds]
Matadoer has quit [Remote host closed the connection]
Matadoer has joined #ruby
klmlfl has joined #ruby
<bMalum>
is there a way to get S.M.A.R.T Attributes with Ruby out from a HDD?
<Fractional>
jhass: Replaced the each with a select! like we had earlier, and yes I am most likely checking if they are dead twice.
<jhass>
Fractional: I'd make Play#generate_loot: def generate_loot; type, resource = [[:health, @rm["health"], [:ammo, @rm["ammo"]].sample; Loot.new(type, resource, ...); end
<Fractional>
alive*
davedev24_ has quit [Read error: Connection reset by peer]
whyy has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
shredding has joined #ruby
<Fractional>
Ok I will after we have gone through everything do one thorough check and replace the string identifiers with symbols.
philcrissman has quit [Ping timeout: 264 seconds]
ringaring has quit [Ping timeout: 245 seconds]
brothmars has joined #ruby
<jhass>
Fractional: there's a convention to mark unused variables with a leading _ or even name them just _, like you have couple of cases in GUI for example
<jhass>
GUI#add_text: if @font == nil -> unless @font
<Fractional>
jhass: Could you name one of those variables?
Neomex has joined #ruby
<jhass>
key (twice)
r_s has joined #ruby
<jhass>
also avoid things like key and value if possible, even object or item is better
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Fractional>
jhass: Avoid naming the variables that?
<jhass>
yeah
ohwhoa has quit [Quit: woah!]
Takle has quit [Remote host closed the connection]
gilest has joined #ruby
j_mcnall_ has quit [Read error: Connection reset by peer]
<Fractional>
jhass: Ok, got it! My notes are becoming quite long (Y)
<jhass>
Fractional: last note I have is about project structure: Usually when we have a class with a namespace like MyGame::Bots::Intelligent, module MyGame; end; would end up in lib/my_game.rb module MyGame::Bots; end; would end up in lib/my_game/bots.rb and the class itself in lib/my_game/bots/intelligent.rb
Matadoer has quit [Remote host closed the connection]
Photism has quit [Quit: Leaving]
Takle has joined #ruby
Matadoer has joined #ruby
bMalum has quit [Ping timeout: 246 seconds]
t0rc has joined #ruby
<Fractional>
jhass: Thank you, I have written that down as well. Will have to change my project structure a bit :D
Photism has joined #ruby
havenwood has quit [Remote host closed the connection]
<Fractional>
jhass: Thank you a lot for taking your time going through all my code. I really appreciate it mate! Thanks! :D
<jhass>
you're welcome
<Fractional>
jhass: How often do you stumble across meta programming in Ruby? Would you say its useful in programs like mine?
gilest has quit [Ping timeout: 255 seconds]
<jhass>
metaprogramming isn't too well defined but the common denominator probably is that it is code that generates code. As such calling attr_accessor etc. is metaprogramming
michaeldeol has joined #ruby
<Fractional>
jhass: Yes, I followed along a couple of examples but I am yet find out when it can be useful. Its my first time stumbling across 'code that generates code' :P
jsodini has quit [Read error: Connection reset by peer]
jsodini has joined #ruby
atmosx has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<jhass>
it's occasionally useful, for example if you have a bunch of similar methods or want to override them in the same way you can do %i(a b c).each do |method| define_method(method) { ... }; end
cap has quit [Ping timeout: 240 seconds]
TheNet has joined #ruby
cap has joined #ruby
_0xf_ has joined #ruby
shredding has quit [Quit: shredding]
heftig has joined #ruby
AntelopeSalad has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Remote host closed the connection]
_0xf_ has quit [Ping timeout: 260 seconds]
maximski has quit []
claymore has joined #ruby
amclain has quit [*.net *.split]
Pharaoh2 has quit [*.net *.split]
axilla has quit [*.net *.split]
Bumptious has quit [*.net *.split]
marr has quit [*.net *.split]
IceDragon has quit [*.net *.split]
xcesariox has quit [*.net *.split]
yeticry has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
craigbowen3 has quit [*.net *.split]
oso96_2000 has quit [*.net *.split]
toordog has quit [*.net *.split]
EvanR_ has quit [*.net *.split]
gigetoo has quit [*.net *.split]
mbwe has quit [*.net *.split]
cid404 has quit [*.net *.split]
agjacome_ has quit [*.net *.split]
wchun has quit [*.net *.split]
cherry_l1n has quit [*.net *.split]
phreax has quit [*.net *.split]
gtc has quit [*.net *.split]
mattp_ has quit [*.net *.split]
gizmore has quit [*.net *.split]
neersighted has quit [*.net *.split]
Eiam has quit [*.net *.split]
mgv has quit [*.net *.split]
aledovsky has quit [*.net *.split]
v0n has quit [*.net *.split]
s_e_ has quit [*.net *.split]
minecoins has quit [*.net *.split]
cuqa has quit [*.net *.split]
daed has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
kallen has quit [*.net *.split]
Platini has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
peeja has quit [*.net *.split]
AlyssaDaemon has quit [*.net *.split]
edwardly has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
hydrajump has quit [*.net *.split]
pdtpatr1ck has quit [*.net *.split]
Kruppe has quit [*.net *.split]
_KaszpiR_ has quit [*.net *.split]
oz has quit [*.net *.split]
saltsa has quit [*.net *.split]
dserodio has quit [*.net *.split]
sfiggins has quit [*.net *.split]
davidcelis has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
jumblemuddle has quit [*.net *.split]
Davey has quit [*.net *.split]
dphase has quit [*.net *.split]
helpa has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
patteh has quit [*.net *.split]
jeaye has quit [*.net *.split]
cout has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
Nowaker has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
Takle has quit [*.net *.split]
davedev2_ has quit [*.net *.split]
Symbiosisz has quit [*.net *.split]
agent_white has quit [*.net *.split]
cesurasean1 has quit [*.net *.split]
L3top has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
bclune_ has quit [*.net *.split]
M-Technic has quit [*.net *.split]
micah`_ has quit [*.net *.split]
donofrio has quit [*.net *.split]
jpiche has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
segv has quit [*.net *.split]
dyreshark has quit [*.net *.split]
marcel has quit [*.net *.split]
niharvey has quit [*.net *.split]
zastern has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
lazyguru has quit [*.net *.split]
seph429 has quit [*.net *.split]
franks2 has quit [*.net *.split]
Matadoer has quit [*.net *.split]
kaspergrubbe_ has quit [*.net *.split]
cy has quit [*.net *.split]
klaut has quit [*.net *.split]
jmbrown412 has quit [*.net *.split]
mechanicalduck_ has quit [*.net *.split]
RandyT has quit [*.net *.split]
mr-foobar has quit [*.net *.split]
snath has quit [*.net *.split]
quarcu has quit [*.net *.split]
jamespw has quit [*.net *.split]
cHarNe2 has quit [*.net *.split]
Mattias has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
cgj has quit [*.net *.split]
hephaestus_rg has quit [*.net *.split]
maloik has quit [*.net *.split]
kotk_ has quit [*.net *.split]
axisys has quit [*.net *.split]
chridal has quit [*.net *.split]
wackobobby has quit [*.net *.split]
LACP has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
yliu has quit [*.net *.split]
pontiki has quit [*.net *.split]
pipework has quit [*.net *.split]
matrixise has quit [*.net *.split]
zenspider has quit [*.net *.split]
moshee has quit [*.net *.split]
Muz has quit [*.net *.split]
xiphias has quit [*.net *.split]
chihhsin_cloud has quit [*.net *.split]
Zespre has quit [*.net *.split]
ClarusCogitatio_ has joined #ruby
tomaw is now known as 5EXAAABVN
amclain has joined #ruby
xcesariox has joined #ruby
axilla has joined #ruby
Pharaoh2 has joined #ruby
Bumptious has joined #ruby
IceDragon has joined #ruby
marr has joined #ruby
yeticry has joined #ruby
oso96_2000 has joined #ruby
toordog has joined #ruby
craigbowen3 has joined #ruby
Fire-Dragon-DoL has joined #ruby
Gnubie_ has joined #ruby
cuqa has joined #ruby
EvanR_ has joined #ruby
agjacome_ has joined #ruby
wchun has joined #ruby
gigetoo has joined #ruby
mbwe has joined #ruby
cherry_l1n has joined #ruby
phreax has joined #ruby
gtc has joined #ruby
mattp_ has joined #ruby
dserodio has joined #ruby
gizmore has joined #ruby
kallen has joined #ruby
Eiam has joined #ruby
aledovsky has joined #ruby
neersighted has joined #ruby
mgv has joined #ruby
v0n has joined #ruby
peeja has joined #ruby
daed has joined #ruby
samuelkadolph has joined #ruby
Platini has joined #ruby
BeanDip_ has joined #ruby
minecoins has joined #ruby
s_e_ has joined #ruby
edwardly has joined #ruby
hydrajump has joined #ruby
AlyssaDaemon has joined #ruby
pdtpatr1ck has joined #ruby
isomorphismes has joined #ruby
_KaszpiR_ has joined #ruby
Kruppe has joined #ruby
davidcelis has joined #ruby
oz has joined #ruby
jumblemuddle has joined #ruby
sfiggins has joined #ruby
Davey has joined #ruby
saltsa has joined #ruby
dazeddev_ has joined #ruby
avelldiroll has joined #ruby
patteh has joined #ruby
cout has joined #ruby
dphase has joined #ruby
jeaye has joined #ruby
helpa has joined #ruby
Nowaker has joined #ruby
_0xf_ has joined #ruby
gigetoo has quit [Max SendQ exceeded]
Rylee has quit [Excess Flood]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
Rylee has joined #ruby
AntelopeSalad_ has joined #ruby
Takle has joined #ruby
davedev2_ has joined #ruby
Symbiosisz has joined #ruby
cesurasean1 has joined #ruby
agent_white has joined #ruby
L3top has joined #ruby
M-Technic has joined #ruby
micah`_ has joined #ruby
elaptics`away has joined #ruby
bclune_ has joined #ruby
Emmanuel_Chanel has joined #ruby
donofrio has joined #ruby
Mon_Ouie has joined #ruby
segv has joined #ruby
jpiche has joined #ruby
marcel has joined #ruby
niharvey has joined #ruby
dyreshark has joined #ruby
seph429 has joined #ruby
franks2 has joined #ruby
lazyguru has joined #ruby
sn0wb1rd has joined #ruby
zastern has joined #ruby
Fractional has quit [Remote host closed the connection]
nateberkopec has joined #ruby
gigetoo has joined #ruby
Matadoer has joined #ruby
RandyT has joined #ruby
kaspergrubbe_ has joined #ruby
jmbrown412 has joined #ruby
mechanicalduck_ has joined #ruby
cy has joined #ruby
klaut has joined #ruby
jamespw has joined #ruby
snath has joined #ruby
mr-foobar has joined #ruby
pipework has joined #ruby
cHarNe2 has joined #ruby
quarcu has joined #ruby
Mattias has joined #ruby
maloik has joined #ruby
cgj has joined #ruby
hephaestus_rg has joined #ruby
kotk_ has joined #ruby
Sou|cutter has joined #ruby
wackobobby has joined #ruby
axisys has joined #ruby
chridal has joined #ruby
LACP has joined #ruby
yliu has joined #ruby
pontiki has joined #ruby
GeekOnCoffee has joined #ruby
matrixise has joined #ruby
zenspider has joined #ruby
xiphias has joined #ruby
moshee has joined #ruby
Muz has joined #ruby
barhum2013 has joined #ruby
chihhsin_cloud has joined #ruby
Zespre has joined #ruby
5EXAAABVN is now known as tomaw
CorySimmons has quit [Quit: Zzz...]
brothmars has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Read error: Connection reset by peer]
<shevy>
"I know some of you will read this and say ?Evan left EY? Rubinius is dead.? I ask that you reserve judgement."
<shevy>
projects under new management often change their identity
<shevy>
like when _why left and the shoes as of today
Bumptious has quit [Ping timeout: 255 seconds]
<txdv>
is rubinius dead?
kyb3r_ has joined #ruby
dcas has joined #ruby
<shevy>
nah
<waxjar>
last time i heard they had a new sponsor
<shevy>
just under new management
Ankhers has joined #ruby
Olipro has quit [Ping timeout: 256 seconds]
<asteve>
I have found a solution to a problem being triple recursion, I have to do have done something wrong
<asteve>
heh
<txdv>
I never needed high performance ruby runtime
<txdv>
day changed
klmlfl has quit [Quit: klmlfl]
<txdv>
not again
dcas has quit [Client Quit]
Ankhers has quit [Remote host closed the connection]
<shevy>
well
<shevy>
I would not mind if ruby would be much faster
<shevy>
perhaps it has to become much simpler for that too
Olipro has joined #ruby
Ankhers has joined #ruby
<txdv>
compile it to javascript and use v8
<txdv>
:D
bearish has quit [Remote host closed the connection]
threesixes has joined #ruby
nateberkopec has joined #ruby
realDAB has joined #ruby
<shevy>
:(
bearish has joined #ruby
Celm_ has joined #ruby
<shevy>
everything is about javascript these days
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
<Nilium>
Fuck JS ಠ_ಠ
eka has joined #ruby
realDAB has quit [Client Quit]
<shevy>
hehe
philcrissman has joined #ruby
whyy has joined #ruby
<Nilium>
I've been using PHP at work recently. PHP still sucks.
art-solopov has joined #ruby
<kephra>
there are no (sane) alternatives for JS in the browser - but on server side, JS sucks
<Nilium>
And it was my choice D:
jerikl has joined #ruby
<Nilium>
I could've picked ruby but I just didn't have time to figure out how to get a test server up and running with Ruby working
<kephra>
those who can not curse a language for hours, have not used it
nateberkopec has quit [Client Quit]
<Nilium>
Javascript is one of those languages that at a very basic, fundamental level, it's kind of nice
<Nilium>
But when you start trying to do anything more than manipulate a DOM element in it, shit falls apart real fast
<art-solopov>
Excuse me, do we have a separate Rails channel or is it okay to ask Rails questions here?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium>
Yes, there's a separate rails channel, please use it.
bearish has quit [Ping timeout: 272 seconds]
<Nilium>
No, I don't know what it's called.
<jhass>
art-solopov: join #rubyonrails
Takle has joined #ruby
<art-solopov>
jhass: Thanks.
<Nilium>
What I can confirm is that rails is taboo.
<Nilium>
Tabooooo.
Lewix has joined #ruby
<shevy>
Nilium can't you sneakily replace the php at work with ruby?
fgo has joined #ruby
<Nilium>
I have a week to finish the project and I've never done web dev before
<shevy>
damn
<jhass>
Nilium: have you been to the rails channel? Just too many people who just can't explain themselves
<jhass>
:P
<Nilium>
So I picked the thing I'd at least used for web stuff before, meaning PHP
<shevy>
one week to learn web dev with ruby
decoponio has quit [Quit: Leaving...]
<Nilium>
Meaning I'm not comfortable with swapping languages part-way through
<Nilium>
Literally half-way through, actually.
whyy has quit [Ping timeout: 255 seconds]
philcrissman has quit [Ping timeout: 272 seconds]
<Nilium>
I'm just waiting on the designer guy to get his stuff done 'cause otherwise I don't actually know what I'm going to be doing on Monday
<Nilium>
There is one upside: PHP 5.3 onward is at least not the worst thing I've ever used.
JoshGlzBrk has joined #ruby
<kephra>
I normally avoid monoliths - e.g. my stock trading application is using: R, FORTRAN, Java, Lua, C and PHP - each at the place where it suits best
<Nilium>
Also the documentation is still probably the best I've ever seen despite it being PHP, which is just weird.
<Nilium>
That'd make sense if the app were larger than it is, but it's just not
Ankhers has quit [Ping timeout: 264 seconds]
mijicd has joined #ruby
jdj_dk has joined #ruby
<kephra>
the main problem with PHP are its tutorials - i would be rich, if I get a $ for every tutorial that teaches how to implement SQL injection and cross site scripting
jdj_dk has quit [Remote host closed the connection]
<shevy>
yeah
<Nilium>
I just ended up using mysqli and forcing everything to go through prepared statements.
<shevy>
I keep on trying to convince pipework that php has a good docu and ruby's docu ought to be improved but he does not listen to me
krisquigley has joined #ruby
<kephra>
but its common that languages are dangerous at same point where they are powerful - e.g. C is dangerous in memory handling
<shevy>
even python has had its homepage changed not too long ago
fgo has quit [Ping timeout: 255 seconds]
<Nilium>
PHP's documentation's nice mostly because I like that it has comments in the documentation
<Nilium>
I don't know why that worked out or why it made them good but it did
Bumptious has joined #ruby
<kephra>
best documentation for the base language has Lua, imho - but Lua also had the lowest quality of 3rd party modules and libraries
<kephra>
so low, that the church decided to remove the module keyword from the language, to deprecicate all 3rd party modules
<Nilium>
True. Lua's upside though is that it's small enough and the language is really well-defined.
<shevy>
mruby to the rescue
<Nilium>
Also, for most purposes, Lua's just really fast.
<Nilium>
Even without LuaJIT
Tohsig has joined #ruby
linojon has joined #ruby
iamjarvo has joined #ruby
<Nilium>
I still haven't tried using mruby
charliesome has joined #ruby
iamjarvo has quit [Client Quit]
tylerkern has joined #ruby
bmurt has quit []
chipotle has joined #ruby
<kephra>
does mruby offer both light weight and heavy weight user objects?
<agent_white>
Anyone know of a good hashing function for abitrary output digest length?
<agent_white>
kephra: Ooo thank you! :D -- Essentially, I'm just wanting an string size of 50 for my hash's output.
claymore has quit [Quit: Leaving]
freerobby has quit [Client Quit]
ji0n has quit [Read error: Connection reset by peer]
<shevy>
kephra I think right now it does not offer much at all :(
<kephra>
*hm* so you need long hashes with variable length? Try Buz Hash or Zobrist Hash
skysploit has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<kephra>
SHA-3 and Skein are also arbitrary length - but they are much slower, as they are crypto secure
<shevy>
class ArchiveType
<shevy>
so I look at old code I wrote
<shevy>
and wonder why I wrote it
<shevy>
hmmmmm
<agent_white>
kephra: Aye! I'm not good at explaining it since I'm new to it... but basically like how SHA1 or SHA2 have 40 and 64 length digests, I want a 50 length digest.
ARCADIVS has quit [Quit: WeeChat 0.4.3]
nobitanobi has quit [Remote host closed the connection]
<agent_white>
kephra: Yeah I was looking at sha3... but all the implementations in Ruby don't have the option for arbitrary length :(
<kephra>
agent_white, does it need to be crypto secure?
newUser1234 has quit [Remote host closed the connection]
jerikl has quit [Quit: jerikl]
<agent_white>
Oh boy... that may be a bit more than I need. I might just use sha2 and chop the leftovers I don't need. ;P
<agent_white>
kephra: Thank you for the links!
<kephra>
you need an arbibtrary precission library to implement buzhash for arbitrary length of course
newUser1234 has joined #ruby
<agent_white>
Ahhh,
<Nilium>
kephra: What's the difference between light- vs heavyweight objects?
<Nilium>
Just heap vs. stack allocation?
<kephra>
mainly the way the GC handles them
<Nilium>
Or vice versa I guess, to keep with light/heavy
cesurasean1 is now known as cesurasean
<kephra>
both are user space object, so its an object where the prototypes are implemented in C
skysploit has quit [Remote host closed the connection]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jheg has quit [Quit: jheg]
<kephra>
basically a light user data is just a pointer, while heavy user data is a lua object, that is managed by C
<Nilium>
So you're just referring to how Lua handles pointers vs. userdata
descala has quit [Read error: Connection reset by peer]
mikepack has quit []
<Nilium>
I believe Ruby and mruby should currently handle that
<Nilium>
Well, Ruby meaning MRI
kaspergrubbe_ has quit [Remote host closed the connection]
dseitz has joined #ruby
Sauvin has joined #ruby
nateberkopec has joined #ruby
newUser1234 has quit [Remote host closed the connection]
eka has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
cesurasean1 has joined #ruby
bedouin_ has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
ssut has quit [Ping timeout: 272 seconds]
cesurasean has quit [Ping timeout: 246 seconds]
<Tohsig>
New here; is it appropriate to ask for advice on code style/organization? Just starting out with Ruby and am at a point where critiques would be helpful for my sanity :D
<apeiros>
tohsig: sure, just ask
benlakey has quit [Ping timeout: 272 seconds]
ssut has joined #ruby
cesurasean has joined #ruby
dseitz has quit [Read error: Connection reset by peer]
jrhe_ has quit [Ping timeout: 272 seconds]
<Nilium>
Long as you know that Ruby isn't Rails ಠ_ಠ
<Tohsig>
And it works, but I don't know anyone who knows enough Ruby to tell me if there are any glaring issues with how I've organized the project.
bedouin__ has joined #ruby
<Nilium>
What's the point of the gemfile?
jrhe_ has joined #ruby
<Tohsig>
My experimentation with Bundler, heh. When I'm happier with it, I was going to push it to Rubygems.
benlakey has joined #ruby
<Nilium>
I'm still not comfortable with bundler.
cesurasean1 has quit [Ping timeout: 272 seconds]
<Tohsig>
Yeah, I haven't done much with it since I'm not using anything outside of the standard library yet.
cesurasean has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
niklasb has joined #ruby
cesurasean has joined #ruby
<kephra>
tohsig, you might investigate old mainframe tools for that: RPG, OGL, PPFA (report generator, overlay generation language, page printer formatting aid)
newUser1_ has joined #ruby
bluish has quit []
andrewlio has quit [Quit: Leaving.]
newUser1234 has quit [Ping timeout: 272 seconds]
<Nilium>
Also maybe just code in RPG IV
<Nilium>
Entirely.
<kephra>
Nilium, s/RPG/AWK/ <- I did that in early 80s ;-)
freerobby has joined #ruby
Matadoer has joined #ruby
chipotle has quit [Quit: cya]
<Tohsig>
Ha, am I that far off base with this?
cesurasean2 has quit [Ping timeout: 240 seconds]
mr-foobar has quit [Quit: Leaving...]
axilla has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
mr-foobar has joined #ruby
phutchins has joined #ruby
<Nilium>
kephra: I've never used it, but a friend of mine graduated and ended up working in RPG IV and Cobol
newUser1_ has quit [Ping timeout: 245 seconds]
bmurt_ has joined #ruby
<jhass>
tohsig: when you install the gem lib/ is available in the load path, so in bin/penknife you can just do require 'penknife_csv'
<Nilium>
He left that job fairly shortly afterward because it was all old people and they were all supposedly very weird
<Nilium>
Plus he didn't know either
<jhass>
tohsig: for development bundle exec should make that work too
<jhass>
tohsig: you should put all your classes into module PenknifeCSV
<Nilium>
Speaking of require, the lack of that in Javascript is probably the biggest impediment I can think of to that language being taken seriously
<Tohsig>
jhass: you know, that was one of my major questions, thanks
<jhass>
tohsig: also I'm not a huge fan of automated requires via Dir[], I prefer to list them out by hand
Deele has quit [Ping timeout: 244 seconds]
raddazong has quit [Ping timeout: 272 seconds]
klmlfl has joined #ruby
<Nilium>
It's probably a good idea to avoid those
klmlfl has quit [Remote host closed the connection]
bmurt has quit [Ping timeout: 255 seconds]
fold has quit [Ping timeout: 244 seconds]
madhatter has joined #ruby
<benzrf>
ruby's require sucks
<benzrf>
python's import is gr8
<benzrf>
haskell's import is about even
<Tohsig>
jhass + Nilium: Good to know. Was playing around with that line to see if it would affect load speed. Obviously not ^^
<jhass>
tohsig: since you properly declare your executable in the gemspec rubygems will link it into a directory that's most likely already in the $PATH,, so need to add support for manual symlinking
<art-solopov>
Nilium: But Node.JS has 'require'...
klmlfl has joined #ruby
<Nilium>
node.js is a piece of crap and I can't forgive it for that.
freerobby has quit [Quit: Leaving.]
<gizmore>
i use rand(min, max) ... does the distribution look linear or gauss?
<art-solopov>
Nilium: Ouch. Why so serious?
<jhass>
tohsig: your filenames should match the module/class names. For example in cli_check_options.rb I'd expect class CliCheckOptions
bricker`LA has joined #ruby
<Nilium>
Because I disapprove of forking for concurrency/parallelism (depending on which one you care more about)
wald0 has quit [Read error: Connection reset by peer]
<jhass>
gizmore: see docs of Random
<art-solopov>
Nilium: But it's the most native way...
<gizmore>
jhass: what is stopping you from answering? i read the docs a bit
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium>
Native/expensive/pointless/dumb
<art-solopov>
gizmore: Logically, it should be uniform.
<gizmore>
art-solopov: like a linear line? -------
<jhass>
gizmore: oh sorry, confused it with SecureRandom that lists what sources it tries to read
Bumptious has quit [Remote host closed the connection]
<jhass>
gizmore: still, "PRNGs are currently implemented as a modified Mersenne Twister with a period of 2**19937-1."
<art-solopov>
gizmore: I mean, equal probability for each outcome.
<gizmore>
it is for a game dicing... items can have weight: 600..900 ... and i want the resul being like gauss curve, but a bit shifted to the right
<gizmore>
art-solopov: yeah, i also think it should be like y=1 for all values
<art-solopov>
gizmore: I think you'd need a function that *specifically* states it's Gauss. Or try to generate Gauss from uniform.
Bumptious has joined #ruby
<Tohsig>
jhass: Thanks for the comments! Some of that was for local testing (e.g. manual symlinks); I should get it out of the master branch.
<gizmore>
art-solopov: yeah, until i got some nice idea i just use rand for now :) ... but it´s FIXME
wald0 has joined #ruby
<jhass>
tohsig: so those are more minor things, what bothers me a bit that you have the main script in lib/, lib is for libraries though, it should contain almost no logic on the top level
AntelopeSalad_ is now known as AntelopeSalad
<jhass>
tohsig: so the two most common options here are putting the flow control into the script in bin/ and let lib/ just provide the auxiliary classes, or make a Cli class that's handed ARGV and instantiated by the script in bin/
<gizmore>
art-solopov: thank you very very much :)
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Wolland_ is now known as Wolland
_mikedugan has joined #ruby
<Nilium>
3pm
<Nilium>
I need coffee
<art-solopov>
gizmore: You're welcome. Honestly, I expected a library. V_V
Bumptious has quit [Remote host closed the connection]
<gizmore>
art-solopov: it cries for a gem? ;)
Bumptious has joined #ruby
sylvanica has quit [Ping timeout: 260 seconds]
<Tohsig>
jhass: ahhh, that makes sense; I'll fix that
fgo has joined #ruby
Bumptious has quit [Remote host closed the connection]
eka has joined #ruby
<art-solopov>
gizmore: Heh. Sure does.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bumptious has joined #ruby
pandaant has joined #ruby
<art-solopov>
Bye fellows!
bmurt_ has quit []
workmad3 has joined #ruby
art-solopov has quit [Quit: Bye!]
St_Marx has quit [Ping timeout: 264 seconds]
<jhass>
tohsig: code style wise the only bad things I see are a return where an implicit one would work, a == nil check and building a string with + instead of interpolation
fgo has quit [Ping timeout: 244 seconds]
seydar has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<jhass>
tohsig: of course the business logic is all intertwined with the presentation logic, but changing that would require a few larger changes ;)
<seydar>
two questions: where should i go in the czech republic this xmas/new years, and how can i generate unicode characters from integers? i'm genuinely stumped.
<kephra>
seydar, I can answer the 2nd question in C - http://kephra.de/src/WylieUTF8/ - look at newUTF8encode in WylieUTF8.c
<seydar>
jhass: well that's easy, thank you
stef_204 has joined #ruby
<kephra>
*oh* nice Ruby has a function for this
<seydar>
now i just need to figure out the czech republic
riotjones has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
<Tohsig>
jhass: O:) definitely learning, haha. I'll have to research the different logic types next.
<pontiki>
snowman! :)))
nahtnam has joined #ruby
<jhass>
seydar: why does it have to be the czech republic? Come to the C3 at Hamburg ;P
<nahtnam>
hey! I have a number (n). how can I find the next prime number LARGER than (n). I am trying to learn how RSA works and want to make a simple demo app.
riotjones has joined #ruby
<seydar>
jhass: i'm flying into germany so i *could* do hamburg, but i really want to see czechland
<nahtnam>
I know there is a built in library but I don't know how to find the next largest prime number
krisquigley has quit [Remote host closed the connection]
<jhass>
nahtnam: require 'prime'; Prime.find {|p| p > n }
<pontiki>
prague is in czech, isn't it? that's supposed to be just gorgeous
kaspertidemann has joined #ruby
<seydar>
pontiki: prague is the main goal. i also want to see the surrounding countryside as well though. gonna see how much czech i can learn between now and then
<nahtnam>
jhass: thanks
alekst has joined #ruby
axsuul has quit [Ping timeout: 260 seconds]
<pontiki>
that sounds wonderful, seydar
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<waxjar>
there is a church (i think) close to prague somewhere entirely decorated with human bones and skulls
<waxjar>
i want to see that thing one day
icebourg has joined #ruby
<pontiki>
yes, a reliquarium i think?
<seydar>
waxjar: i'll see it for you and tell you how it is
cesurasean has quit [Ping timeout: 240 seconds]
<waxjar>
that's very kind
<pontiki>
it used to be standard practice that after bodies were fully decomposed, they'd dig up the bones and store them, freeing up cemetary space
nahtnam has quit [Quit: nahtnam left! You can find him @ http://nahtnam.com]
<waxjar>
they still do that where i live
cesurasean has joined #ruby
WormDrink has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
* pontiki
nods
froggy__ has joined #ruby
<Tohsig>
The conversation just changed dramatically, but it's true here too :P
<seydar>
tohsig, waxjar: where do you live?
<waxjar>
netherlands
poulet_a has quit [Quit: Quitte]
wallerdev has joined #ruby
<Tohsig>
seydar: Guatemala
tkuchiki has joined #ruby
mikedugan has quit [Disconnected by services]
_mikedugan is now known as mikedugan
froggy_ has quit [Ping timeout: 255 seconds]
DEA7TH has quit [Ping timeout: 250 seconds]
mdugan_ has joined #ruby
CoffeeDrivenC0de has joined #ruby
bmurt has joined #ruby
cesurasean has quit [Ping timeout: 250 seconds]
cesurasean has joined #ruby
Sonny|3oy has quit [Quit: Leaving]
m8 has quit [Quit: Sto andando via]
tkuchiki has quit [Ping timeout: 246 seconds]
chipotle has joined #ruby
axilla has joined #ruby
krisquigley has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
echevemaster has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Tohsig has left #ruby [#ruby]
blackmesa has quit [Quit: WeeChat 1.0]
axilla has quit [Ping timeout: 245 seconds]
philcris_ has joined #ruby
chars6 has joined #ruby
axilla has joined #ruby
whyy has joined #ruby
<chars6>
hi, i am very new to ruby
<chars6>
i am trying to build a project (also using a gem called slinky) and i am getting the error
<chars6>
Compilation failed on main.sass: uninitialized constant Sass::Engine
<chars6>
the sass gem is installed. what am i doing wrong?
newUser1_ has joined #ruby
mikedugan has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
philcris_ has quit [Ping timeout: 255 seconds]
whyy has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
dioms_ has quit [Ping timeout: 240 seconds]
newUser1_ has quit [Ping timeout: 250 seconds]
dioms_ has joined #ruby
kaspertidemann has quit []
bmurt has joined #ruby
gregf has joined #ruby
Symbiosisz has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 260 seconds]
axilla has joined #ruby
seydar has quit [Ping timeout: 260 seconds]
bmurt has quit [Client Quit]
newUser1234 has joined #ruby
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
Akagi201_ has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
klaut has quit [Remote host closed the connection]
mkaesz has joined #ruby
cesurasean has quit [Ping timeout: 260 seconds]
fgo has quit [Ping timeout: 264 seconds]
Wolland has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Wolland has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
timonv_ has quit [Remote host closed the connection]
klmlfl has quit [Quit: klmlfl]
Lewix has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
newUser1234 has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 250 seconds]
phoo1234567 has quit [Quit: Leaving]
cesurasean has joined #ruby
sshaw has joined #ruby
nobitanobi has joined #ruby
nat2610 has joined #ruby
<nobitanobi>
hihi
<sshaw>
what's the state of ruby-electric.el and ruby-insert-end?
kaspertidemann has joined #ruby
newUser1234 has joined #ruby
<sshaw>
the ruby repo comes with ruby-mode 0.9 which has ruby-insert-end
<sshaw>
but emacs ships with ruby-mode 1.2 which does not have it
codebrah has quit [Quit: Computer has gone to sleep.]
<zenspider>
sshaw: ruby-mode w/ emacs is the "official" one now. there IS some divergance between the two, but it should be considered the canonical one
patrick99e99 has joined #ruby
<zenspider>
as far as electric goes... I dunno. I don't use electric modes
mordocai` is now known as mordocai
tylerkern has joined #ruby
Wolland has joined #ruby
<sshaw>
zenspider: would be nice to get this fixed (finally), the ruby-electric has been broken since '08, maybe
<sshaw>
he he, yah that's what I do, but just installed a new emacs version and noticed that it *still* wasn't fixed
cesurasean1 has joined #ruby
icebourg has quit []
r_s has quit [Ping timeout: 244 seconds]
<zenspider>
it isn't a problem in emacs' ruby-mode, since it doesn't ship ruby-electric. this is on you for mixing the two
zenojis has joined #ruby
Takle has quit [Remote host closed the connection]
codebrah has quit [Quit: Computer has gone to sleep.]
Wolland has quit [Ping timeout: 272 seconds]
newUser1234 has joined #ruby
<zenspider>
if this is a problem anywhere, it is with ruby-electric being published as a package at all, instead of forked and patched to work against emacs' ruby-mode
<zenspider>
you'd have to take that up to the package maintainer, or do it yourself
cesurasean has quit [Ping timeout: 245 seconds]
<zenspider>
again, I don't use electric. it doesn't provide me anything worthwhile
kaspertidemann has quit []
<sshaw>
yes, with yas there's not much, except auto closing object literals and quotes
techietrash has joined #ruby
<zenspider>
meh. never been a problem for the 14 years I've been doing ruby in emacs. *shrug*
<sshaw>
wasn't sure were ruby-electric lived, considering ruby-mode's version w/ emacs and its version ruby repo