sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shuber_ has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
ChasedSpade has quit [Quit: No reason specified.]
ChasedSpade has joined #ruby
<al2o3-cr>
oh and matz :)
<al2o3-cr>
DeBot: hangman gems
<al2o3-cr>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr>
DeBot: a
<DeBot>
␣␣␣␣␣␣␣A␣␣␣␣␣␣␣␣ [] 0/12
evlute has quit [Quit: WeeChat 1.2]
<al2o3-cr>
DeBot: e
<DeBot>
␣␣␣␣␣␣␣A␣␣␣␣␣␣e␣ [] 0/12
<al2o3-cr>
DeBot: i
<DeBot>
␣␣I␣␣␣␣A␣␣␣i␣␣e␣ [] 0/12
<al2o3-cr>
DeBot: t
<DeBot>
␣␣I␣␣␣␣A␣␣␣i␣te␣ [] 0/12
ChasedSpade has quit [Client Quit]
<al2o3-cr>
DeBot: s
<DeBot>
␣␣I␣␣␣␣A␣␣␣i␣te␣ [s] 1/12
<al2o3-cr>
DeBot: d
<DeBot>
␣␣I␣␣␣DA␣␣␣i␣te␣ [s] 1/12
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<al2o3-cr>
DeBot: s
<DeBot>
␣␣I␣␣␣DA␣␣␣i␣te␣ [s] 1/12
<al2o3-cr>
DeBot: r
<DeBot>
␣RI␣␣␣DA␣␣␣i␣ter [s] 1/12
<al2o3-cr>
DeBot: u
<DeBot>
URI␣␣␣DA␣␣␣i␣ter [s] 1/12
<al2o3-cr>
DeBot: _
<DeBot>
URI␣␣␣DA␣␣␣i␣ter [s_] 2/12
<al2o3-cr>
DeBot: :
<DeBot>
URI::␣DA␣␣␣i␣ter [s_] 2/12
Notte has quit [Remote host closed the connection]
<al2o3-cr>
DeBot: l
<DeBot>
URI::LDA␣␣␣ilter [s_] 2/12
ChasedSpade has joined #ruby
<al2o3-cr>
DeBot: d
<DeBot>
URI::LDA␣␣␣ilter [s_] 2/12
<al2o3-cr>
oops
<al2o3-cr>
DeBot: p
<DeBot>
URI::LDAP␣␣ilter [s_] 2/12
<al2o3-cr>
DeBot: .
<DeBot>
URI::LDAP␣␣ilter [s_.] 3/12
Sawbones has joined #ruby
<al2o3-cr>
DeBot: ?
<DeBot>
URI::LDAP␣␣ilter [s_.?] 4/12
<al2o3-cr>
DeBot: f
<DeBot>
URI::LDAP␣filter [s_.?] 4/12
<ebonics>
apeiros
weemsledeux has joined #ruby
bruno- has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
nobitanobi has quit [Remote host closed the connection]
zreisman has joined #ruby
shuber_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dc has quit [Remote host closed the connection]
paradisaeidae has quit [Ping timeout: 256 seconds]
<al2o3-cr>
jhass: what else can DeBot do?
bruno- has quit [Ping timeout: 264 seconds]
tds5016 has quit [Quit: Page closed]
<al2o3-cr>
DeBot: #
<DeBot>
URI::LDAP#filter [s_.?] 4/12 You won!
<al2o3-cr>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<al2o3-cr>
DeBot: a
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [a] 1/12
<al2o3-cr>
DeBot: e
<DeBot>
␣␣e␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣e␣ [a] 1/12
<al2o3-cr>
DeBot: i
<DeBot>
␣␣e␣␣␣␣␣␣␣␣␣␣i␣␣␣␣e␣ [a] 1/12
<al2o3-cr>
DeBot: o
<DeBot>
O␣e␣␣␣␣␣␣␣o␣␣i␣␣␣␣e␣ [a] 1/12
<al2o3-cr>
DeBot: u
<DeBot>
O␣e␣␣␣␣␣␣␣o␣␣i␣␣␣␣e␣ [au] 2/12
<al2o3-cr>
DeBot: :
<DeBot>
O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au] 2/12
fabrice31 has joined #ruby
<al2o3-cr>
DeBot: #
<DeBot>
O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#] 3/12
<al2o3-cr>
DeBot: t
<DeBot>
O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#t] 4/12
<al2o3-cr>
DeBot: r
<DeBot>
O␣e␣␣␣␣::␣o␣␣i␣::␣e␣ [au#tr] 5/12
<al2o3-cr>
DeBot: f
<DeBot>
O␣e␣␣␣␣::␣o␣fi␣::␣e␣ [au#tr] 5/12
<al2o3-cr>
DeBot: n
<DeBot>
O␣en␣␣␣::␣onfi␣::ne␣ [au#tr] 5/12
car has quit [Ping timeout: 256 seconds]
<al2o3-cr>
DeBot: p
<DeBot>
Open␣␣␣::␣onfi␣::ne␣ [au#tr] 5/12
<al2o3-cr>
DeBot: w
<DeBot>
Open␣␣␣::␣onfi␣::new [au#tr] 5/12
<al2o3-cr>
DeBot: g
<DeBot>
Open␣␣␣::␣onfig::new [au#tr] 5/12
<al2o3-cr>
DeBot: s
<DeBot>
OpenSS␣::␣onfig::new [au#tr] 5/12
<al2o3-cr>
DeBot: l
<DeBot>
OpenSSL::␣onfig::new [au#tr] 5/12
<al2o3-cr>
DeBot: c
<DeBot>
OpenSSL::Config::new [au#tr] 5/12 You won!
vaedd has left #ruby [#ruby]
<adam12>
I think I already know the answer to this but does anybody know if you can swap out the entire object passed to a block for another like-object?
Joufflu has joined #ruby
<pipework>
Isn't that just wonderful.
<al2o3-cr>
adam12: how'd you think you would do it?
jpfuente_ has joined #ruby
baweaver has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<adam12>
al2o3-cr: I'm not sure...
<al2o3-cr>
adam12: but you said I think I already know
<adam12>
al2o3-cr: Yeah, as in 'not possible' :)
speakingcode has quit [Ping timeout: 272 seconds]
coetry has joined #ruby
<pipework>
I'm not sure about what you mean, exactly.
<pipework>
What kind of swapping? Where?
commondream has joined #ruby
jpfuentes2 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<al2o3-cr>
adam12: an an example of what you're really try to do would help:)
cht has joined #ruby
<adam12>
New HTTP wrapper client by technoweenie called Hurley. Need to add Digest Auth :\. I figured I would use the callbacks offered before and after the request to determine if the request was 401, and if so, retry with Auth digest.
mary5030 has joined #ruby
<adam12>
When I make a new request inside that callback, I receive a valid response object, the same type yielded to the callback in the first place. Trying to return the new one instead.
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
shuber_ has joined #ruby
<al2o3-cr>
adam12: why would you need to?
Sawbones has quit [Remote host closed the connection]
<adam12>
Because the original request is 401, the subsequent request is (hopefully) 20x.
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver>
<3
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jarboe has quit []
abuzze has quit [Ping timeout: 256 seconds]
cosmicexplorer has quit [Remote host closed the connection]
<baweaver>
Ah, and miah, if you're ever hacking over the weekend feel free to ping me some time. I tend to frequent coffee shops up and down the bay
<zenspider>
baweaver: which ones?
bkxd_ has joined #ruby
<baweaver>
There's a Five Barrel right down 2nd I tend to go to a lot as a default since it's on the way to work.
<miah>
im always hacking. but i rarely leave my house.
<miah>
i would be up to meeting up though
sandelius has joined #ruby
<baweaver>
*Four Barrel
<miah>
ya i used to work in that area of soma
Ropeney has joined #ruby
<baweaver>
We're over on 2nd and Harrison, so right by 21st Amendment
<miah>
cool
bkxd has quit [Ping timeout: 264 seconds]
<baweaver>
Have a friend that just moved up from KC and another friend that moved up a while back working for Google that just emerged to the light of day again I'm catching up with this weekend.
<zenspider>
I would like to find some places in the bay area that have the taste of blue bottle but without the snobbery
<baweaver>
Yeah, I need to try that
<baweaver>
I keep getting teas from Spicely, need to find some other good shops around there.
<zenspider>
blue bottle is very very good. just... asshats
<zenspider>
come up to seattle and I'll buy you the best cappuccino you'll ever have
paradisaeidae has joined #ruby
<baweaver>
I might actually be up there in July
<baweaver>
My Dad is from Centralia
<baweaver>
so he makes a point of going up for Seahawks games all the time, sometimes tries to fly me out too
<zenspider>
I've worked in centralia
<baweaver>
Still reeling from that Greenbay game
<baweaver>
Even though I rarely if ever watch football
Jackneill has joined #ruby
* baweaver
doesn't want to mention the superbowl
Xiti has quit [Read error: Connection reset by peer]
<miah>
mmm a super bowl of ceral. good idea.
krz has joined #ruby
<miah>
cereal too =)
<baweaver>
Heh
<baweaver>
I could do without the Giants games clogging BART though
shuber_ has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 250 seconds]
<Bermulium>
jhass, lol
<jhass>
what's funny?
<centrx>
must be one of those kids born after Sept 11
zotherstupidguy has quit [Ping timeout: 264 seconds]
<centrx>
everything changed
fabrice31 has quit [Ping timeout: 250 seconds]
zotherstupidguy has joined #ruby
sandelius has joined #ruby
zotherstupidguy has quit [Client Quit]
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
leafybasil has joined #ruby
<al2o3-cr>
oh, ok. only just seen what you said :)
leafybasil has quit []
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
spider-mario has joined #ruby
hardlin3r has quit [Ping timeout: 246 seconds]
iwishiwerearobot has quit [Ping timeout: 256 seconds]
ljarvis has joined #ruby
bkxd_ has quit [Quit: Reconnecting]
bkxd has joined #ruby
iwishiwerearobot has joined #ruby
bMalum has quit [Quit: bMalum]
mandarinkin has quit [Remote host closed the connection]
mandarinkin has joined #ruby
mandarinkin has quit [Read error: Connection reset by peer]
mandarinkin has joined #ruby
data-cat has joined #ruby
arietis has joined #ruby
tuelz has joined #ruby
<data-cat>
How can I do the opposite of Hash.inspect? So like, turn a string back in to a hash.
arietis has quit [Client Quit]
<apeiros>
data-cat: that bears the question: why?
<apeiros>
data-cat: take a look at literal_parser gem. it does that without eval.
<jhass>
data-cat: but do not just proceed, the why is important here, there's likely a better alternative to what you're doing
arietis has joined #ruby
<data-cat>
I have some hacky code that stores a simple hash in our database by turning it in to a string first.
<jhass>
serialize to yaml or json then
zotherstupidguy has joined #ruby
<data-cat>
ahh, I didn't think of that
<data-cat>
Thanks
<data-cat>
that will be much better, and easier to work with
<apeiros>
+ or marshal
<apeiros>
(as another option)
kraljev11 has joined #ruby
<apeiros>
personally I'd probably go with json if its data types suffice, yaml otherwise.
<apeiros>
marshal only if performance matters
mandarinkin has quit [Ping timeout: 255 seconds]
<data-cat>
Yea, json will work perfectly here.
n008f4g_ has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
multiscan has joined #ruby
juanpaucar has joined #ruby
bronson has joined #ruby
jottr_ has joined #ruby
jayeshsolanki has joined #ruby
platzhirsch has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
jayeshsolanki has quit [Max SendQ exceeded]
bkxd_ has joined #ruby
bkxd_ has quit [Client Quit]
P1RATEZ has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
jayeshsolanki has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
zotherstupidguy has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
jayeshsolanki has quit [Max SendQ exceeded]
bronson has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
bMalum has joined #ruby
jayeshsolanki has joined #ruby
zotherstupidguy has quit [Client Quit]
bkxd_ has quit [Ping timeout: 245 seconds]
AlphaAtom has joined #ruby
<atmosx>
Anyone knows how to run this 'R' script? http://pastebin.com/pgZVC6N1 - I'm kinda stuck with the syntax.
<ruboto>
atmosx, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<atmosx>
ruboto: okay sure
<atmosx>
ah n/m just made executable.
tubuliferous has quit [Ping timeout: 244 seconds]
kurtec has joined #ruby
<zenspider>
atmosx: is the question about how to run R scripts and pass args?
<atmosx>
zenspider: it was yes, but making the script +x solved the issue.
jgt1 has quit [Ping timeout: 272 seconds]
<zenspider>
atmosx: and running with `R script.R` args didn't?
<zenspider>
oops. `R script.R args`
ramfjord has quit [Ping timeout: 272 seconds]
zotherstupidguy has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
<atmosx>
zenspider: nope, didn't work for me. Not even after adding --no-save ... It was the first thing I've tried, since it's the std way or running script under nix
<zenspider>
oh looks like it should prolly be `R batch script.R args`
DynamicMetaFlow has joined #ruby
<atmosx>
I've seen that too on SO after a google search... But I thought that it was a windows-specific flag.
nfk has joined #ruby
<atmosx>
hm, my bad.
kurtec has quit [Client Quit]
Sawbones has joined #ruby
<zenspider>
*shrug* I try to avoid R... I was just looking at `R --help`
multiscan has quit [Remote host closed the connection]
sdothum has joined #ruby
multiscan has joined #ruby
arietis has quit [Quit: Leaving.]
kurtec has joined #ruby
arietis has joined #ruby
Bermulium has quit [Quit: Leaving]
wjimenez5271 has quit [Ping timeout: 252 seconds]
<atmosx>
zenspider: I'm still trying to run this thing, but doesn't produce an output. http://www.spinellis.gr/blog/20150113/index.html I thought the 2nd arg should be a directory where data will be exported, but hm it's not.
Sawbones has quit [Ping timeout: 256 seconds]
multiscan has quit [Ping timeout: 250 seconds]
<zenspider>
2nd arg is "name"... looks like it is only for the labels
<atmosx>
ah my bad it works
bMalum has quit [Quit: bMalum]
mercerist has joined #ruby
dingus_khan has joined #ruby
jbomo has quit [Ping timeout: 240 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
shuber_ has joined #ruby
dingus_khan has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
shuber_ has quit [Ping timeout: 244 seconds]
kurtec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
kamichi has joined #ruby
data-cat has quit [Quit: leaving]
ponga has quit [Quit: Leaving...]
kurtec has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
xfumihiro has quit [Quit: Connection closed for inactivity]
DEA7TH has joined #ruby
dc has joined #ruby
pandaant has quit [Remote host closed the connection]
commondream has joined #ruby
atmosx has quit [Quit: Lost in trance]
Solsist has joined #ruby
jgt1 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jgt1 has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
hectortrope has joined #ruby
bruno- has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
darkf_ is now known as darkf
hectortrope has quit [Client Quit]
bronson has joined #ruby
AlphaAtom has joined #ruby
jenrzzz has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
serivichi has joined #ruby
serivich has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
pardusf has quit []
<adaedra>
Hello
DynamicMetaFlow has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
Hounddog has joined #ruby
sgambino has joined #ruby
wildroman2 has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shuber_ has joined #ruby
bMalum has quit [Quit: bMalum]
kraljev11 has quit [Quit: kraljev11]
tkuchiki has quit [Ping timeout: 258 seconds]
kraljev11 has joined #ruby
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kamichi has quit [Quit: Lost terminal]
kamichi has joined #ruby
sigurding has joined #ruby
<HotCoder>
who here uses ruby on vim? report to me please
<sevenseacat>
report? lol
bMalum has joined #ruby
<apeiros>
probably just not english as mother tongue
<apeiros>
HotCoder: it's better if you ask a specific question instead of asking for people
<apeiros>
when/if somebody can help you, they will
<HotCoder>
sevenseacat, lol ye
<HotCoder>
i dont have a specific question
<HotCoder>
i just want to learn ruby
<sevenseacat>
so why do you need vim users?
<HotCoder>
and i am trying to ask vim users why they think vim is better
* apeiros
steals wizard hats again
<sevenseacat>
whats that got to do with learning ruby?
<HotCoder>
what is the advantage of vim over sublime in regards to learning ruby
<HotCoder>
is my question
shuber_ has quit [Ping timeout: 265 seconds]
<sevenseacat>
editors are about personal preference
<jhass>
none
<apeiros>
"in regards to learning ruby" probably none
<jhass>
move on
<HotCoder>
welp, moving on is my thing so..
jstanton has quit [Ping timeout: 252 seconds]
<sevenseacat>
if you dont already use vim, its just another thing to learn before you can do what you actually want to do
<wasamasa>
HotCoder: using vim or emacs won't magically make you a better programmer
<HotCoder>
sevenseacat, yea i agree. but im trying to learn as much as i can
<HotCoder>
so i guess i'll learn vim along the way too
<HotCoder>
wasamasa, it wont. but im trying to find out which is more powerful
<wasamasa>
HotCoder: knowing either of them however can make for a nicer editing experience
<wasamasa>
HotCoder: that question doesn't make much sense
<DLSteve>
I use a bloated IDE :P
<sevenseacat>
and then you'll spend the next week learning vim, then the week after that choosing extensions and plugins, and then you still wont know ruby
Ropeney has joined #ruby
kirun has joined #ruby
<HotCoder>
lol
<jhass>
I think we cleared that up, next topic please!
<HotCoder>
i've been putting it off for months now. still dont know ruby
<wasamasa>
then you might have greater problems than choosing a text editor
<sevenseacat>
ah, so we're into 'looking for excuses not to do it' phase?
<HotCoder>
i love how this channel comes with a free therapy session :D
<wasamasa>
it sure sounds that way :P
<sevenseacat>
in that case, let me point towards this list of editors, or even this list of alternate languages!
<wasamasa>
HotCoder: don't worry, we're experts on this topic
<HotCoder>
wasamasa, the therapy? ruby? or vim?
<sevenseacat>
i'm learning elixir atm. i quite like it.
<wasamasa>
HotCoder: procrastination
<HotCoder>
sevenseacat, do you now? i'm originally a java coder. its a little lengthy, little painful, little slow
<HotCoder>
in ways its just like me
<wasamasa>
lol
<sevenseacat>
btw, do you have a favorite colour scheme or theme for your editor? what about a font? :)
<HotCoder>
red and comic sans!
<wasamasa>
red is not a color scheme
<HotCoder>
sigh
<HotCoder>
orchard wonders
<HotCoder>
thats my favorite colour scheme
tuelz has joined #ruby
<sevenseacat>
I'm a Dobdark kind of woman.
<wasamasa>
I'm still hung up on solarized dark
<sevenseacat>
never liked solarized
<wasamasa>
since it avoids making my eyes hurt when staring on it for prolonged times
<HotCoder>
sevenseacat, and you know what they say about dobdark women
<wasamasa>
I assume the same goes for zenburn users
<HotCoder>
that i "installed" but it dont recognize the rvm command
<sevenseacat>
what os are you on?
<HotCoder>
rvm: command not found
<HotCoder>
raspbian
coventry` has quit [Ping timeout: 272 seconds]
<HotCoder>
so a variation of linux
<HotCoder>
do i have to set the default?
<sevenseacat>
is your terminal a login terminal?
<sevenseacat>
if not, you'll need to set it as one
<HotCoder>
then install again? or?
<sevenseacat>
no, then it will work
<jhass>
personally I just add the source line to the .$SHELLrc
<HotCoder>
jhass, how do i do that then?
* sevenseacat
shrugs
<jhass>
look at the profile, transfer that line to the rc
<sevenseacat>
I dont even use rvm
<jhass>
well, same for the other things
<HotCoder>
sevenseacat, yeah it works for the login terminal
<HotCoder>
i had the same problem with node
<sevenseacat>
:)
<HotCoder>
but i had to set the defaults or something
<HotCoder>
i need to know how to make it available to all terminals :P
davedev24_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Pupeno has joined #ruby
diegoviola has joined #ruby
<sevenseacat>
uh... you configure your terminal to be a login terminal
<sevenseacat>
which is what i just said
<jhass>
or transfer the source line to the rc
<jhass>
which is what I just said
<sevenseacat>
either will work :)
<HotCoder>
jhass, how to transfer source line
<jhass>
you open both files in your editor and do it
<sevenseacat>
you need to know how to edit a file?
<shevy>
you shout Cthulhu three times
<HotCoder>
what files
<HotCoder>
what files do i edit and what line do i put on there
<shevy>
lol
<jhass>
the profile your shell reads and the rc your shell reads
fabrice31 has joined #ruby
iwishiwerearobot has quit [Quit: Be back later ...]
<HotCoder>
i have no idea what this is
<HotCoder>
anyone got a link that explains
<HotCoder>
how to do this
<sevenseacat>
i guess thats a yes
bronson has joined #ruby
<sevenseacat>
you know the instructions that told you to put some lines in .bash_profile? do that, except for .bashrc
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
fabrice31 has quit [Ping timeout: 246 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
Alina-malina has joined #ruby
rodfersou has joined #ruby
<shevy>
anyone has an idea why this does not work? https://gist.github.com/shevegen/3acd16d8a92c6216253f the part "alias e puts" does not seem to work when it is put inside the module; it works when I put it on top outside the module
bkxd has quit [Ping timeout: 256 seconds]
<shevy>
hmm it does work when it is an instance method...
<apeiros>
shevy: alias aliases instance methods
<shevy>
aaaaaah
<apeiros>
shevy: you must put it into a self << class; end
<shevy>
cool, thanks
<apeiros>
if SOME_VALUE; class << self; alias e puts; end; end
bronson has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
DynamicMetaFlow has quit [Read error: Connection reset by peer]
Leef_ has quit [Quit: Leaving]
bkxd has quit [Client Quit]
pwattstbd has joined #ruby
bkxd has joined #ruby
pontiki has joined #ruby
michael_mbp has quit [Excess Flood]
DexterLB has quit [Read error: Connection reset by peer]
Alina-malina has quit [Ping timeout: 265 seconds]
Alina-malina has joined #ruby
michael_mbp has joined #ruby
wildroman2 has joined #ruby
DexterLB has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dingus_khan has joined #ruby
bkxd has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
c355E3B has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
_blizzy_ has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Ping timeout: 265 seconds]
shuber_ has joined #ruby
Solsist has quit [Ping timeout: 240 seconds]
e1nh4nd3r has joined #ruby
giuseppesolinas has joined #ruby
shuber_ has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Client Quit]
RegulationD has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
juanpaucar has joined #ruby
Alina-malina has joined #ruby
djbkd has joined #ruby
scripore has joined #ruby
michael_mbp has quit [Excess Flood]
<zotherstupidguy>
/away
RegulationD has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
doodlehaus has joined #ruby
Pupeno has quit [Quit: Leaving...]
djbkd has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
merceris_ has joined #ruby
irobevjodu has quit [Remote host closed the connection]
irobevjodu has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
mercerist has quit [Ping timeout: 276 seconds]
<shevy>
/I do not believe zotherstupidguy
e1nh4nd3r has quit [Quit: Leaving.]
scripore has quit [Quit: This computer has gone to sleep]
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OrbitalKitten has joined #ruby
mercerist has joined #ruby
dstarh has joined #ruby
wildroman2 has quit [Remote host closed the connection]
merceris_ has quit [Ping timeout: 240 seconds]
irobevjodu has quit [Remote host closed the connection]
bitch has joined #ruby
<pontiki>
morning
<apeiros>
moin pontiki
<adaedra>
hi
dopie has quit [Quit: This computer has gone to sleep]
Notte has quit [Remote host closed the connection]
<shevy>
king pontiki has arrived
<pontiki>
what mischief today, mavens of the gem?
bruno- has joined #ruby
<pontiki>
:/
<pontiki>
not king
bitch has quit [Remote host closed the connection]
<shevy>
hehe
prostitute has joined #ruby
sandelius has joined #ruby
coderhs has joined #ruby
c355E3B has quit [Quit: Leaving]
coderhs has quit [Client Quit]
arietis has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
bronson has joined #ruby
platzhirsch has quit [Quit: Leaving.]
<HotCoder>
sevenseacat, you seem to know a lot about this matter. what is the latest version of rvm?
<hasan>
hi :) is there any one know how can i disable query cach in rails 4.x?
sinequanon has quit [Remote host closed the connection]
sinequanon has joined #ruby
<jhass>
?rails hasan
<ruboto>
hasan, Please join #RubyOnRails for Rails questions.
<apeiros>
hasan: #rubyonrails
Hounddog has quit [Read error: Connection reset by peer]
<apeiros>
oh, we have ?rails. good :D
<jhass>
you know you're allowed to create these too? :P
<apeiros>
ooooh, I am?
* apeiros
does the happy dance
shuber_ has quit [Ping timeout: 246 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<HotCoder>
lele pons
<hasan>
ruboto , apeiros : thank you :) i will ask this question in #rubyonrails :)
shuber_ has joined #ruby
sinequanon has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubie has joined #ruby
bluOxigen has joined #ruby
amclain has joined #ruby
bmurt has quit []
banister has quit [Read error: Connection reset by peer]
arietis has joined #ruby
bmurt has joined #ruby
arietis1 has quit [Read error: Connection reset by peer]
vickleton has quit [Quit: Ex-Chat]
woodennails has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tautvydas has joined #ruby
QpQ4 has joined #ruby
woodennails has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
gizmore has quit [Ping timeout: 245 seconds]
cats has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
bmurt has quit []
hardlin3r has quit [Quit: Leaving]
bronson has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has joined #ruby
ragingcake has joined #ruby
longfeet has quit [Ping timeout: 244 seconds]
hololeap has quit [Quit: Leaving]
DenSchub has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
gizmore has quit [Ping timeout: 264 seconds]
Hirzu has joined #ruby
gizmore has joined #ruby
DenSchub has joined #ruby
cats has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
vickleton has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
IrishGringo has joined #ruby
devoldmx has joined #ruby
Deele has joined #ruby
devoldmx has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 265 seconds]
Hirzu_ has quit [Ping timeout: 245 seconds]
<apeiros>
any volunteer to write an article for ruby-community.org about nickname registration and identification (bonus points for mentioning sasl and showing config of some major clients)?
<apeiros>
the format would be .markdown
jottr_ has joined #ruby
devoldmx_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
mosheee has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
Havenn is now known as havenwood
jstanton has joined #ruby
jpfuentes2 has joined #ruby
shuber_ has quit [Remote host closed the connection]
Notte has quit [Remote host closed the connection]
arietis1 has joined #ruby
arietis has quit [Read error: Connection reset by peer]
Notte has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
Notte has quit [Remote host closed the connection]
<zotherstupidguy>
apeiros i may kickstart it, and others may fine-tune it
<apeiros>
sure
macmartine has joined #ruby
<apeiros>
I'm a fan of kaizen
<zotherstupidguy>
yeah
gizmore has quit [Ping timeout: 276 seconds]
<zotherstupidguy>
apeiros i'm forking the repo, where should i put it?
gizmore has joined #ruby
<apeiros>
zotherstupidguy: you don't need to fork the repo. you can just write a .markdown file and gist that
<apeiros>
but if you want to go via repo fork… let me see…
macmartine has quit [Remote host closed the connection]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
wildroman2 has quit [Remote host closed the connection]
<arietis1>
hello guys
shuber_ has joined #ruby
<arietis1>
anyone knows of any good state machine gem not tied to data model?
arietis1 is now known as arietis
bronson has joined #ruby
<arietis>
so i just create machine object, add states, events and callbacks
tuelz has quit [Ping timeout: 272 seconds]
affenhoden has quit [Remote host closed the connection]
rippa has joined #ruby
rgb-one has left #ruby [#ruby]
bronson has quit [Ping timeout: 246 seconds]
jottr_ has quit [Ping timeout: 272 seconds]
FernandoBasso has joined #ruby
Hirzu_ has joined #ruby
konsolebox has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
greenbagels has joined #ruby
jottr_ has joined #ruby
<arietis>
aasm looks good for my needs
cirn0 has joined #ruby
crdpink has joined #ruby
RegulationD has joined #ruby
juanpaucar has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
pwattstbd has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
commondream has joined #ruby
cirn0 has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 252 seconds]
commondream has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 276 seconds]
nfk|laptop has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
commondream has joined #ruby
mloveless has joined #ruby
nfk has joined #ruby
hackeron has quit [Ping timeout: 258 seconds]
hackeron has joined #ruby
shuber_ has quit [Remote host closed the connection]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mtakkman has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
goodcodeguy has joined #ruby
horsecowdog has joined #ruby
Cache_Money has joined #ruby
rhg135 has quit [Ping timeout: 255 seconds]
shuber_ has joined #ruby
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
tubuliferous has joined #ruby
bmurt has joined #ruby
DerisiveLogic has joined #ruby
P1RATEZ has quit []
zotherstupidguy has quit [Quit: WeeChat 1.2]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
ramfjord has joined #ruby
Notte has joined #ruby
nfk|laptop has quit [Quit: yawn]
dfockler has joined #ruby
baweaver has joined #ruby
havenwood has joined #ruby
<konsolebox>
if callcc is deprecated, how do we do long jumps now (multi-level loop breaks / continuations)?
bronson has joined #ruby
<apeiros>
multi-level "breaks": throw/catch
zotherstupidguy has joined #ruby
<konsolebox>
apeiros: slow
<apeiros>
callcc is still available via require 'continuation'
zotherstupidguy1 has joined #ruby
hasan1 has joined #ruby
<apeiros>
konsolebox: are you sure you're using the right language?
dfockler has quit [Ping timeout: 258 seconds]
<konsolebox>
apeiros: continuation?
<apeiros>
I can write it again if that helps…
bmurt has quit []
n008f4g_ has joined #ruby
rodferso1 has joined #ruby
<konsolebox>
apeiros: that feature shouldn't really be necessarily hacked.. ok i get it. too bad really how a simple necessary feature has never been added
hasan has quit [Ping timeout: 252 seconds]
hasan1 has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
<jhass>
I gather you worked with C for a long time? :P
Notte has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
commondream has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
mjuszczak has quit []
wildroman2 has quit [Ping timeout: 250 seconds]
commondream has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
finisherr has joined #ruby
rubie has quit [Remote host closed the connection]
mloveless has quit []
zotherstupidguy has joined #ruby
dopie has joined #ruby
yh__ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Takle has joined #ruby
davispuh has quit [Remote host closed the connection]
<jhass>
zotherstupidguy1: s/requires a/allows/
RegulationD has quit [Ping timeout: 276 seconds]
<konsolebox>
apeiros: i see you're actually trying to avoid something. so how would you directly implement 'continue n'? i'll let you go with the 'break n' for now as my current 'hack' makes use of throw for breaking.
hololeap has joined #ruby
<hololeap>
what would the yard documentation look like for a method with a "splat" parameter: def my_method(*args); p args; end
<zotherstupidguy1>
jhass?
<jhass>
I usually take the opportunity to extract into a small method and use return
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass>
zotherstupidguy1: first sentence in your gist ;)
<apeiros>
konsolebox: `ri Kernel#catch` in your console (assuming you have docs installed)
shuber_ has quit [Remote host closed the connection]
<konsolebox>
apeiros: i could give Ruby's actual implementation a chance but I find it likely that throw/catch is nothing like break -> but more of an exception handler (just a little faster maybe).
<jhass>
hololeap: you just make it part of the name
Papierkorb has joined #ruby
Takle has quit [Remote host closed the connection]
<hololeap>
jhass: could you give me an example?
weaksauce has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
zotherstupidguy1 has quit [Quit: WeeChat 1.2]
ndrei has quit [Ping timeout: 240 seconds]
<hololeap>
the method i'm trying to document should take 1-inf parameters
zotherstupidguy has joined #ruby
zotherstupidguy1 has joined #ruby
Pisuke has joined #ruby
davispuh has joined #ruby
<konsolebox>
"If +throw(tag2, val)+ is called, Ruby searches up its stack for a catch block whose tag has the same object_id as tag2. When found, the block stops executing and returns val (or nil if no second argument was given to throw)."
<konsolebox>
Mind the "searches"
sinequanon has joined #ruby
pwattstbd has quit [Remote host closed the connection]
<zotherstupidguy1>
jhass thanks, apeiros was that what you had in mind?
MyMind has quit [Ping timeout: 240 seconds]
<apeiros>
zotherstupidguy1: currently reading
<jhass>
hololeap: I just @param *args You pass this and that here
<apeiros>
zotherstupidguy1: so far looks good
<konsolebox>
apeiros: I've seen the manual. There's never a part that makes it continue. I could create a hack for it of course. But that's nowhere near a Ruby feature for 'continue n'.
sinequanon has quit [Client Quit]
<hololeap>
jhass: ok. wasn't sure if that was the "proper" way to do it
<zotherstupidguy1>
apeiros best writing is re-writing
<zotherstupidguy1>
its a kickstart
<jhass>
hololeap: I didn't find anything at least
Channel6 has joined #ruby
lidenskap has quit [Remote host closed the connection]
<hololeap>
jhass: the closest thing i found was yard's @overload tag
fabrice31 has joined #ruby
QpQ4 has quit []
<jhass>
konsolebox: if you share your code that needs it we may be able to suggest an idiomatic alternative
CustosLimen has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
dingus_khan has joined #ruby
<apeiros>
konsolebox: if by `continue n` you mean in the sense of a continuation, then I again refer you to `require 'continuation'` and callcc. additionally also see Fiber.
<konsolebox>
jhass: yeah, using a yielding function. that's a hack, not an idiomatic alternative.
Soda has quit [Read error: Connection reset by peer]
Pisuke has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
iwishiwerearobot has joined #ruby
<jhass>
hololeap: mmh, no, @overload I'd only use if behavior differs
<hololeap>
jhass: ok
<konsolebox>
apeiros: duh!!!!!!!!! didn't you see my first question????
<apeiros>
konsolebox: you can stop that attitude right now or go.
<apeiros>
konsolebox: and to remind you - I gave you that answer right with your first question
<konsolebox>
apeiros: callcc is deprecated referring to Fiber now as the preferred solution. And Fiber does not have that kind of feature.
codecop has quit [Remote host closed the connection]
<apeiros>
konsolebox: then amend your question accordingly.
Pisuke has joined #ruby
<baweaver>
konsolebox: probably not a good way to make friends
<konsolebox>
apeiros: there's nothing to be amended. it's pretty clear.
d1n has quit [Read error: Connection reset by peer]
<konsolebox>
baweaver: would you make friend with people judging you quickly as ignorant?
zotherstupidguy1 has quit [Ping timeout: 272 seconds]
f3lp has joined #ruby
<baweaver>
I could care less, but you've not exactly been a saint yourself.
zotherstupidguy1 has joined #ruby
<jhass>
baweaver: please just leave it
fabrice31 has quit [Ping timeout: 276 seconds]
<apeiros>
konsolebox: I refer you to jhass' suggestion. "jhass: konsolebox: if you share your code…"
dingus_khan has quit [Ping timeout: 250 seconds]
hasan has quit [Ping timeout: 246 seconds]
rubie has joined #ruby
CustosLimen has joined #ruby
<konsolebox>
baweaver: i don't think the one you should say that to is the one that hasn't started it
iwishiwerearobot has quit [Ping timeout: 272 seconds]
<apeiros>
konsolebox: I apologize for my aggressive behavior. What I said with regards to your behavior still stands, though.
shuber_ has quit [Remote host closed the connection]
shuber_ has joined #ruby
A205B064 has joined #ruby
<apeiros>
and to me, that marks the end of that branch of the discussion. I prefer on focusing on the problem at hand.
Sembei has joined #ruby
lavros has quit [Quit: leaving]
Pisuke has quit [Ping timeout: 255 seconds]
welsch4 has joined #ruby
welsch4 has quit [Client Quit]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
tuelz has joined #ruby
<apeiros>
zotherstupidguy: the part about sasl is irssi or weechat specific? or does it work the same for both?
Channel6 has quit [Quit: Leaving]
<konsolebox>
This is my solution using callcc: https://bpaste.net/show/0077fe881453. If I'd like to continue the loop, I'd call call() with object generated by callcc. If I'd like to break the loop, I'd throw the object. Now I need another good solution for that as callcc is already deprecated.
<zotherstupidguy>
apeiros about ssl?
<apeiros>
well, yes
spider-mario has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
<zotherstupidguy>
i checked it both on irssi and weechat and it seems it works for both. however the /save seems not to be really required by weechat, maybe someone with more experiance with weechat might wave in
<jhass>
konsolebox: idiomatic alternatives only work for specific code/usage
<jhass>
not for general things you deem missing
<apeiros>
zotherstupidguy: ok
<jhass>
zotherstupidguy: weechat autosaves every 10 minutes or so
<apeiros>
zotherstupidguy: I think we'll not get around to do the SSL/SASL part per client. so yes, looks great. I'll take the upper part for the generic article and put the bottom part into weechat/irssi specific articles
QpQ4 has joined #ruby
<jhass>
so it doesn't hurt
<konsolebox>
jhass: are you planning using another function to wrap-up code so you could "continue" it again if necessary? or you planning to use yet another outer loop for that?
tuelz has quit [Ping timeout: 276 seconds]
<jhass>
konsolebox: I do not plan anything, beyond looking if there's a way to restructure your code that doesn't need the functionality you desire in the first place
<zotherstupidguy>
great!
<zotherstupidguy>
it could be better, but its a start!
DexterLB has joined #ruby
michaeldeol has joined #ruby
<konsolebox>
zotherstupidguy: if you're talking to me, it doesn't always get better. most of the time it actually gets worse - the code's logic gets broken just to keep-up with these "idiomatic hacks"
umby24|offline is now known as umby24
shuber_ has quit [Remote host closed the connection]
<jhass>
konsolebox: if you want to rant, please do not direct it at people
doodlehaus has joined #ruby
shuber_ has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<konsolebox>
jhass: if people would stop the * sarcasm perhaps. am i the only one to be told unto here?
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
<apeiros>
I haven't seen anybody be sarcastic towards you, konsolebox.
<apeiros>
and zotherstupidguy didn't even talk to you.
<jhass>
I don't see any sarcasm either, I suggest you step back, cool down and then take another look at it then. If you stay inpolite I have to force that you do that
* zotherstupidguy
thinks he is a good person, in theory!
<ruboto>
atmosx, Just ask your question, if anyone has, they will respond.
<atmosx>
I'm having a hard-time placing tag.haml and calendar.haml ... they don't seem to work. I have gave a 'blog' prefix in the config.rb ... If I put them into blog/ dir middleman comes up with an error while if I put them in the source/ dir the sitemap clearly ingnores them...
<atmosx>
ah n/m there's a forum.
zotherstupidguy1 has left #ruby ["WeeChat 1.2"]
hasan has joined #ruby
<konsolebox>
jhass: btw, restructuring code would not apply to every code. continue 2 is a necessity. the alternative for it is using functions to wrap-up code, and sometimes even end up having unnecessary "recursive" calls. functions that only clutter-up the source file or the source tree which shouldn't have been necessary.
<jhass>
you're experience and mine differ there. If you can't accept that there's nothing to be said anymore
<jhass>
your*
bronson has quit [Remote host closed the connection]
<konsolebox>
jhass: i have enough experience to realize this. the one who thought he should always wrap-up code in functions - i've been there. only newcomers would do that.
<jhass>
(I did start with a programming language that provided that constructed, moved to python which doesn't have it and then to ruby that doesn't have it. I missed it in neither because both provide idiomatic alternatives to the usecases I had
doodlehaus has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
<jhass>
and on the risk of you interpreting that as insult, I think another point that differentiates us that I don't interpret my opinion as fact
<konsolebox>
jhass: if you try to balance efficiency and readability - you could be near there. but some only care about "false?" readability
<apeiros>
konsolebox: the experience you gained in another language does not necessarily port over to ruby
<konsolebox>
jhass: i'm not telling that it's you. i just met some
juanpaucar has joined #ruby
<jhass>
if you allow me to suggest something more on the meta level, maybe try to be less absolutistic (is that English?) about your opinion, voice and argue yours, but accept if somebody has a different opinion on a subject, let them make their own mistakes if you think they're wrong
<jhass>
I had to learn that too, language matters here, a "in my opinion/in my experience" in front of your argument helps a lot to keep a civil conversation
pokui has joined #ruby
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
hector__ has joined #ruby
tubuliferous_ has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
bronson has joined #ruby
pokui has quit [Read error: Connection reset by peer]
hasan2 has joined #ruby
lidenskap has joined #ruby
vickleton has quit [Ping timeout: 272 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
ziprar has quit [Ping timeout: 255 seconds]
dopie has quit [Quit: This computer has gone to sleep]
iasoon has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
lidenskap has quit [Remote host closed the connection]
iasoon has quit [Client Quit]
serivich has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
iasoon has joined #ruby
hasan has quit [Ping timeout: 272 seconds]
CustosLimen has joined #ruby
hasan2 has quit [Ping timeout: 258 seconds]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sent1nel has joined #ruby
aryaching has quit []
zotherstupidguy has quit [Ping timeout: 255 seconds]
QpQ4 has quit [Ping timeout: 265 seconds]
zotherstupidguy1 has joined #ruby
Takle has joined #ruby
zotherstupidguy1 has left #ruby [#ruby]
jstanton has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
iwaffles has joined #ruby
claw_ has quit [Ping timeout: 240 seconds]
arescorpio has quit [Read error: Connection reset by peer]
claw has joined #ruby
swgillespie has joined #ruby
jottr_ has joined #ruby
cek has joined #ruby
bronson has quit [Remote host closed the connection]
<cek>
is sslsocket .syswrite mri thread-safe?
mroark has joined #ruby
bronson has joined #ruby
iasoon has quit [Quit: WeeChat 1.2]
iasoon has joined #ruby
_seanc_ has quit [Quit: _seanc_]
finisherr has joined #ruby
dstarh has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
pipework is now known as grumpowl
mwlang has joined #ruby
<mwlang>
how do you write rspec scenarios for async interactions with external servers?
diegoviola has quit [Remote host closed the connection]
finisherr has quit [Client Quit]
<baweaver>
promises probably
<mwlang>
or in other words, I know that when I send an outgoing call to an external server, it’s eventually going to send a response back.
<baweaver>
Opal talked about something similar at least.
<mwlang>
right now, I just keep querying the database and sleeping until I detect a record’s inserted into the table (which I know my app’s going to do when it gets that response back)
<apeiros>
mwlang: stub external dependencies
dingus_khan has joined #ruby
<grumpowl>
mwlang: You don't make requests in tests.
<apeiros>
unless you explicitly want to test the external server
<baweaver>
You don't make requests in /unit/ tests. #ftfy
iasoon has quit [Ping timeout: 265 seconds]
<baweaver>
There are occasions by which you want integration testing on more critical calls
<mwlang>
so, what about integration tests to ensure what we’ve built really works as intended?
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<mwlang>
baweaver: I’m mostly concerned about more critical calls here.
<apeiros>
you'll probably block your test until the async call returns
<grumpowl>
I don't make external requests in the normal test suite. But I might with a double server implementation to ensure the double still acts like the real server.
<mwlang>
apeiros: so is there a way to detect that async call returns other than watching for side-effects in the db?
<baweaver>
but it'll be some combination of callbacks or promises
<apeiros>
mwlang: uh, an async call usually means you have a callback which is invoked when data is ready
<apeiros>
so you'll hook into that
balazs has joined #ruby
<apeiros>
if you can't, you probably have a case of bad coupling at hand
<mwlang>
apeiros: ah. now we’re getting to the meat of it. so I guess that brings up the next question: how to “hook into it” — it’s probably less that “I can’t” as “I’m not sure how to go about it"
<UnKnOwN|>
Hello all, anyone mind taking a quick look at an exercise I'm working on to see if the code example is valid, or if this was based on an old version of ruby and its no longer valid: 'http://tryruby.org/levels/4/challenges/1' at the very bottom of this where: books = {} makes the hash then the NEXT page has you assign values to the hash, but it says use: 'books["Gravity's Rainbow"] = :splendid', doesnt seem to work, and ruby2.2.2 m
<mwlang>
eam: yeah, that’s what I’m doing…except my polling is against the database. this was fine until latest scenario in which the external server responded in an unexpected way.
hectortrope has joined #ruby
<baweaver>
mwlang: promises
<mwlang>
baweaver: thanks! this kind of structure is what I was mentally picturing.
<mwlang>
baweaver: is promises part of opal as well?
hasan has joined #ruby
shuber_ has quit [Remote host closed the connection]
<baweaver>
a promise is an async concept that something promises to eventually return a value
<jhass>
UnKnOwN|: did I answer your question? If not could you go into why it doesn't work?
yokel has quit [Ping timeout: 244 seconds]
genpaku has quit [Ping timeout: 250 seconds]
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<baweaver>
Opal is Javascript in Ruby
<UnKnOwN|>
jhass, your answered my question, seems this IDE the tutorial wrongs on is just buggy
genpaku has joined #ruby
<baweaver>
I just figured they'd have RSPEC helpers for testing it
yokel has joined #ruby
<UnKnOwN|>
iit atfirst did not work, then with the given example, does, then if you add a non-given example, it no longer works...
tuelz has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwlang>
ah…opal more or less solves the problem the same way I did…running a rack-up server for testing purposes, but their async block syntax dries up the specs a good bit.
<grumpowl>
Opal is a ruby to JS transpiler, no?
<baweaver>
yeah
dingus_khan has joined #ruby
<baweaver>
I just thought that since it was ruby syntax they probably made RSPEC helpers for Javascript-ish concepts like promises and async
<ebonics>
is opal better than coffeescript ;o
tuelz has quit [Ping timeout: 252 seconds]
<baweaver>
Never tried it
<jhass>
?best
<ruboto>
"Best" and "better" are subjective. Try to use a different term.
<baweaver>
I just write straight JS
RegulationD has joined #ruby
<ebonics>
best and better arent subject
<ebonics>
ive
* baweaver
grabs popcorn
<ljarvis>
?help
<ruboto>
I don't know anything about help
<jhass>
ebonics: let's say whether they are subjective is subjective then ;)
<ebonics>
no
<ljarvis>
is ruboto apeiros'?
<baweaver>
meta
goodcodeguy has joined #ruby
Solsist has joined #ruby
<jhass>
ljarvis: yeah
<ebonics>
i have some problems with js
<ebonics>
i mean coffeescript
<ebonics>
ffs
<ljarvis>
everyone has problems with js
<ebonics>
it does like absolutely no type analysis
<apeiros>
ljarvis: I run it. and at the moment it's fully closed source. but it'll eventually be mostly open sourced (mostly because it runs opper tasks and I want to keep those parts closed)
<ljarvis>
apeiros: makes sense
bruno- has joined #ruby
<mwlang>
ok, I think I’m just going to keep on with the test suite I’ve been working on but set up some rspec around filters to get rid of the tedious setup/wait code I’m repeating in the tests. i.e. as described here http://arjanvandergaag.nl/blog/using-abusing-rspec-metadata.html
* baweaver
actually likes Javascript
<ebonics>
in coffeescript
jottr_ has joined #ruby
<ebonics>
for index in [0..(aList.length-1)] <- that
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ebonics>
gets converted to this -> for (index = _i = 0, _ref = aList.length - 1; 0 <= _ref ? _i <= _ref : _i >= _ref; index = 0 <= _ref ? ++_i : --_i) {
<ebonics>
like :|
_seanc_ has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
<ebonics>
well i should be more clear, even this does too: for index in [0..aList.length]
grumpowl is now known as pipework
RegulationD has quit [Ping timeout: 256 seconds]
doodlehaus has joined #ruby
<ljarvis>
lgtm
balazs has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<balazs>
anyone knows how to change the default port for dashing ?
zotherstupidguy1 has joined #ruby
<ljarvis>
balazs: dashing start -p [port]
finisherr has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby
zotherstupidguy1 has left #ruby [#ruby]
_blizzy_ has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
<zotherstupidguy>
balazs dashing is just a sinatra app, same rules apply
<balazs>
ljarvis: thanks !
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy>
balazs i thought it was discountined?
finisherr has quit [Client Quit]
<zotherstupidguy>
or was that batmanjs
Solsist has quit []
<balazs>
hmm, haven't heard. Any recommendation to use something instead ?
<zotherstupidguy>
whats your project about?
<mwlang>
jhass / baweaver - thanks for your feedback. I think I have a good plan of attack now that will reduce my spec authoring burden.
<ljarvis>
the last dashing update was less than 20 days ago
<balazs>
zotherstupidguy: displaying system monitoring info
<zotherstupidguy>
i played with dashing and gridsterjs to do some cool server monitoring stuff, but that was like 2 years ago
<zotherstupidguy>
yeah its perfect for that
<zotherstupidguy>
ljarvis then batmanjs is the one discounined
gusrub has joined #ruby
<zotherstupidguy>
let me check
<zotherstupidguy>
Batman.js is no longer in production at Shopify and is not actively developed. :(
<mwlang>
dang!…dashing is nice.
dopie has joined #ruby
<zotherstupidguy>
one of the coolest featuers of dashing that never got picked with other frameworks the that compnent thingy.
<mwlang>
has anybody hooked up dashing to system monitoring? cpu, memory, page requests, etc.
<zotherstupidguy>
its like aspx web components, but better ofcourse
<zotherstupidguy>
nwlang i used it for api monitoring
<mwlang>
zotherstupidguy: yeah..I liked it. The first thing popping into my mind is to have a sidebar of widget names…as soon as you drag from the sidebar to the main area, you get a full sized widget for dropping somewhere in the layout.
<zotherstupidguy>
dashing got this right, and no other framework picked it up
<zotherstupidguy>
the only cruel thing was they used batmanjs which is not widely used
Rickmasta has joined #ruby
<zotherstupidguy>
also it really takes a js guy to play around comfortably with all the scss stuff and widgets, i hacked a lot
<mwlang>
zotherstupidguy: I thought batmanjs lived and died an early death…kinda surprised it’s still around.
<zotherstupidguy>
its not
konsolebox has quit [Quit: Leaving]
<mwlang>
can they be built with coffeescript?
<zotherstupidguy>
but dashing still use it, i think
<zotherstupidguy>
i belive dashing uses coffeescript by default,
rodfersou has quit [Remote host closed the connection]
<mwlang>
zotherstupidguy: its still using batman bindings.
<zotherstupidguy>
i also remmber there was a widget compitetion once by shopify
<jhass>
because the , binds to the array a is assigned
claptor has quit [Quit: this channel is bakas]
lidenskap has joined #ruby
<jhass>
you probably seek a, b, c = 10, 20, 30
<FernandoBasso>
jhass: So, a receives the value of b and c which were assigned 20 and 30?
<FernandoBasso>
jhass: I am aware of that syntax. Just that I tried this other one and was surprised by the result.
<jhass>
not quite, it receives the value of the assignment expression, which its rhs
lidenskap has quit [Remote host closed the connection]
<FernandoBasso>
But why isn't b assigned [20, 30] if a was [10, 20, 30] ?
<jhass>
a = [(10), (b = 20), (c = 30)]
<atmosx>
Guys any quick way to turn this string -> 2015-04-18 12:01:05 into this "201504181201.05" I manage to do it, but the code is ugly as hell. I call gsub 3 times..
<jhass>
strptime().strftime?
tubuliferous_ has quit [Ping timeout: 272 seconds]
c_nick has joined #ruby
dingus_khan has joined #ruby
<atmosx>
strptime >
<atmosx>
let me check it
<jhass>
or .sub(/:(?=\d{2}$)/, ".").delete("-: ") I guess
<c_nick>
How can i achieve this is a better coding way .. if obj.nil? == true #set default value else #set given value
bronson has quit [Remote host closed the connection]
<FernandoBasso>
Ah, I remember reading something that doing `myvar = a, b, c` creates an array.
<jhass>
c_nick: obj ||= "default" ?
<FernandoBasso>
Thanks for all clarification.
<c_nick>
jhass: ok so there is an OR and || (like C)
segfalt has quit [Quit: segfalt]
Ox0dea has joined #ruby
<baweaver>
careful though as one has much lower priority (or)
<c_nick>
jhass: no i think in my case archive_name.nil? ? @archive_name = 'Run' : @archive_name = archive_name
UnKnOwN| has quit [Quit: Page closed]
<baweaver>
@archive_name = archive_name || 'Run'
<jhass>
^
<c_nick>
i am setting the class variables based on the arguments passed in the contructor
<baweaver>
then put it in the constructor as a default
<jhass>
atmosx: seems to expect a Time, so you can throw away the string munging and go for strptime straight :P
<c_nick>
why do i get temp_dir_loc as nil
<c_nick>
in make dir fn
<atmosx>
jhass: hm. right
<baweaver>
Sent a suggestion to the meetup group to get some casual coffee meetups around later. cc miah dudedudeman eam / anyone else in SF
mjs2600_ has joined #ruby
<Ox0dea>
c_nick: You're using "temp" in some places and "tmp" in others.
EllisTAA has joined #ruby
<jhass>
c_nick: also please work on your indention (ruby community standard is two spaces btw)
ebonics has quit [Quit: Leaving]
<c_nick>
Ox0dea: Shit your right .. my bad.. i never realized it
<jhass>
a classes methods should be indented a level towards the class definition
lidenskap has joined #ruby
<c_nick>
jhass: oh its the ubuntu Pastebin when i copy code it goes bizzare !
<jhass>
then use gist ;P
<Ox0dea>
c_nick: You
<Ox0dea>
are using hard tabs.
<EllisTAA>
can anyone link me to code that is a good example of recursion, i’m trying to get better at thinking recursively
<c_nick>
Ox0dea: hehe yeah :P Scite And i guess thats the reason why it got such an indent in paste.ubuntu
<atmosx>
jhass: I should really buy you a beer at some point in time (maybe via paypal)
<c_nick>
I will customize it to two spaces
lidenskap has quit [Remote host closed the connection]
<jhass>
EllisTAA: I can give you a nice exercise: you have a hash of hashes and other values, nested arbitrarily, you don't know how deep. Open the Hash class and add a method recursive_each that yields all key/value pairs whose values are not hashes
jpfuentes2 has joined #ruby
<c_nick>
Thanks all works fine now
michael_mbp has quit [Excess Flood]
bronson has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<EllisTAA>
jhass: so i have a hash of hashes and those nested hashes can have more hashses but they can also not have more hashes?
<eam>
EllisTAA: towers of hanoi is a good recursive exercise
<EllisTAA>
i guess my problem is i want to be able to identify when recursion might be a good solution … any tips on how to spot recursive problems?
<jhass>
EllisTAA: well, the idea is there, it's missing passing around the block you should yield to, but for the recursive part that was too easy I guess :P
<eam>
at the risk of sounding flippant, any algorithm that repeats itself
<EllisTAA>
jhass: what do u mean “itsmissing passing around the block you should yield to”?
towski_ has quit [Remote host closed the connection]
vsipuli has joined #ruby
<eam>
EllisTAA: often applications are in the form of traversing a linked structure, or anywhere else you might use a while loop and state variables
<EllisTAA>
jhass: what does the &block refer to? why not just calli it hash?
<EllisTAA>
eam: thanks ill look more into that
<jhass>
&block refers to the passed block
<EllisTAA>
jhass: but aren’t we passing it a hash?
<jhass>
no, I reopened Hash there ;)
<EllisTAA>
haha im confused but thanks for helping
doodlehaus has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 264 seconds]
<eam>
while (condition) { state = do_thing(state_change) } => def f(state) { if condition; return []; else return do_thing(state - state_change) }
wildroman2 has quit [Remote host closed the connection]
<eam>
to use a super generic pseudocode example
<vsipuli>
When packaging a Ruby application that depends on Gems, but is itself not supposed to be a reusable Ruby library, does it make sense to package the Ruby application as a Gem itself? (A Bundler Gemfile takes care of the application Gem dependencies)
mercerist has quit [Quit: Computer has gone to sleep.]
hector__ has quit [Quit: Leaving]
<apeiros>
vsipuli: yes
wildroman2 has joined #ruby
<eam>
EllisTAA: the state could be a linked list, it could be a chess board representing pieces, it could be an integer
<apeiros>
gem with an executable in bin and dependencies
lidenskap has joined #ruby
<eam>
do_think could be "next element", or it could be "next move" or some math function
<EllisTAA>
eam: 0_o i think i’m going to have to look into linked lists. thanks for helping me out
strendom has quit [Remote host closed the connection]
Takle has joined #ruby
baweaver has quit [Remote host closed the connection]
bb010g has joined #ruby
wildroman2 has quit [Ping timeout: 245 seconds]
tuelz has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
Channel6 has joined #ruby
segfalt has joined #ruby
cranq has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
<existensil>
did you hand obfuscate that?
<vsipuli>
Why does invoking a function like "foo" work, but "Bar.foo" gives an error about an undefinedmethod "foo" on module "Bar"? (Invoking with "Bar.foo()" works though)
<jhass>
code to reproduce?
gusrub has quit [Quit: Leaving]
fabrice31 has joined #ruby
iwishiwerearobot has joined #ruby
<vsipuli>
apeiros: What added value does packaging a Ruby application as a proper Gem provide compared to just using a Bundler Gemfile, in your opinion?
phutchins has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
Rollabunna has joined #ruby
<Ox0dea>
existensil: Maybe...
<apeiros>
vsipuli: makes it easy to share and install.
<vsipuli>
jhass: Sorry, can't reproduce it. Seems like I had messed up my IRB environment somehow.
<jhass>
would've surprised me otherwise :P
<apeiros>
vsipuli: you don't need any custom instructions.
pontiki has joined #ruby
iwishiwerearobot has quit [Ping timeout: 255 seconds]
ebonics has joined #ruby
horsecowdog has joined #ruby
<ebonics>
how do you guys usually track where classes, methods, etc are in a big ruby application?
<Ox0dea>
ebonics: Method#source_location is pretty great.
crdpink2 has joined #ruby
<ebonics>
Ox0dea, so you run code to find out where stuff is? :o
lidenskap has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<apeiros>
ebonics: conventions
<apeiros>
ebonics: always map class names to filenames
decoponio has joined #ruby
<apeiros>
ebonics: Foo::BarBaz --> foo/bar_baz.rb
crdpink has quit [Ping timeout: 265 seconds]
<ebonics>
apeiros, i'm working with a pretty massive ruby applicaiton with many dependencies and hierarchies etc
<apeiros>
s/class names/constants/ (classes and modules are usually assigned to constants)
<ebonics>
it's basically a nightmare trying to find stuff
<ebonics>
current i'm using grep lol
<apeiros>
ebonics: why?
<apeiros>
did they not follow the above convention? most ruby code bases do…
Rollabunna has quit [Ping timeout: 265 seconds]
<apeiros>
also when in pry, I simply use $ and ?
marr has joined #ruby
<ebonics>
apeiros, like there's a method called log_call in this class
<ebonics>
and it's no where to be find inside that class
<ebonics>
so what's your process for finding where it is
<apeiros>
ebonics: check the ancestors
<ebonics>
there's like a huge hierarchy
<apeiros>
ebonics: why don't you generate the API docs?
<apeiros>
ebonics: that's uncommon
<ebonics>
that would probably help
<ebonics>
apeiros, not specifically for this class
<apeiros>
I've rarely ever seen more than 2 levels of inheritance (except rails, rails is crazy in that regard)
<ebonics>
but there are classes that have like 10+ super classes
horsecowdog has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
<apeiros>
ebonics: anyway, without api docs - fire up pry and introspect the class. $/? are a huge help.
<ebonics>
apeiros, it's pretty well documented actually
<ebonics>
i will generate them now
maletor has quit [Quit: Computer has gone to sleep.]
lidenskap has quit [Remote host closed the connection]
<Ox0dea>
ebonics: Did you not try `Foo.method(:log_call).source_location`?
<ebonics>
Ox0dea, i could do that, but that would require me to run the application whenever i wnated to trace something
<ebonics>
which is bad
<Ox0dea>
It would nevertheless help you to better understand the structure of the project.
mary5030 has joined #ruby
swgillespie has joined #ruby
<ebonics>
i hate global namespaces
<ebonics>
it's actually pretty cancerous
<ebonics>
lucky for me there's good docs
cranq has joined #ruby
Palmer11 has joined #ruby
Matachines has joined #ruby
dru` has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
Notte has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dingus_khan has quit []
kirun has quit [Quit: Client exiting]
beltranzz3 has joined #ruby
_seanc_ has joined #ruby
zotherstupidguy has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
zotherstupidguy has joined #ruby
zotherstupidguy1 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tuelz has quit [Quit: WeeChat 1.1.1]
juanpaucar has joined #ruby
doodlehaus has joined #ruby
tubuliferous has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
beltranzz3 has quit [Ping timeout: 265 seconds]
MasterPiece has quit [Read error: Connection reset by peer]
mordof has joined #ruby
tubuliferous has quit [Ping timeout: 272 seconds]
platzhirsch has joined #ruby
<mordof>
i know of find, and find_all... but i'm not sure if either of those work in this scenario. I have an array of hashes, and inside about 8 keys in each hash. then I have another hash which contains say, 6 out of 8 of those keys. What's the best way to find a match between those keys that exist?
<mordof>
i can iterate over them inside the find if i have to, just wondering if there's a better way
macmartine has quit [Remote host closed the connection]
<jhass>
mordof: yeah, nest .all? inside .find
zotherstupidguy1 has quit [Ping timeout: 255 seconds]
macmartine has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
zotherstupidguy1 has joined #ruby
<mordof>
does .all work on hashes?
<jhass>
sure, it's in Enumerable
<mordof>
ah. so it's just {}.all? {|k,v| }.. alright, thanks :)
sent1nel has quit [Remote host closed the connection]
platzhirsch has quit [Client Quit]
macmartine has quit [Remote host closed the connection]
macmartine has joined #ruby
doodlehaus has joined #ruby
jottr_ has joined #ruby
Palmer11 has quit [Quit: Palmer11]
tcrypt has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<apeiros>
mordof: you can gist your code. depending on what you do, there might be a more efficient way.
Matachines has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mroark has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
i'm not sure which would be more efficient, but i think the first is easier to read anyway.
doodlehaus has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
zotherstupidguy1 has quit [Ping timeout: 264 seconds]
Channel6 has joined #ruby
<mordof>
oh .. the values_at essentially does the same amount of hash lookups also. wow that's a heavy operation, heh
xxneolithicxx has quit [Ping timeout: 255 seconds]
zotherstupidguy1 has joined #ruby
tjbiddle has joined #ruby
coderhs has joined #ruby
ItSAN____ has joined #ruby
mroark has quit [Ping timeout: 265 seconds]
ItSANgo_ has quit [Ping timeout: 276 seconds]
kobain has joined #ruby
phutchins has joined #ruby
lidenskap has joined #ruby
Olipro_ has joined #ruby
Olipro_ is now known as Guest70052
<jhass>
it has less transitions between ruby and c land
RegulationD has joined #ruby
m8 has quit [Quit: Sto andando via]
phutchins has quit [Ping timeout: 245 seconds]
lidenskap has quit [Ping timeout: 252 seconds]
<atmosx>
jhass: what are you working on?
<jhass>
nothing, built carc.in the last days
<mordof>
jhass, the way apeiros did it?
<jhass>
mordof: yeah
AlphaAtom has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
<apeiros>
it also has less hash lookups
<apeiros>
but given your dataset, I doubt it'll matter anyway
<apeiros>
so go with what you find more readable
<mordof>
apeiros, given a large dataset, would the way you wrote it actually be faster?
Juanchito has quit [Quit: Connection closed for inactivity]
RegulationD has quit [Ping timeout: 245 seconds]
<mordof>
i suppose i'll have to benchmark it to find out
<apeiros>
I'm not quite sure how ruby does argument passes. but I could imagine that every iteration in all? { |k,v| will actually create an array.
<apeiros>
mordof: I'm convinced. but a good benchmark tells you the truth.
bronson has joined #ruby
<atmosx>
jhass: crystal as a new programming language?
<jhass>
as a=is a ?
<atmosx>
yes
<mordof>
apeiros, oh right - because it's doing [k,v] and passing that into the block?
<jhass>
then yeah
<atmosx>
never have to specify a type of variable and Have compile-time evaluation?
<jhass>
that are the goals, not quite achieved yet, but close ;)
<atmosx>
ah k, so you're one of the devs? and apeiros too?
<jhass>
uh? no
<apeiros>
I'm not, no
dseitz has joined #ruby
<jhass>
well, I contributed a bit to its stdlib, yet have to touch parser/codegen/semantic phase
umby24 is now known as umby24|offline
<apeiros>
mordof: yes. but as said, I actually never bothered to figure how ruby does argument passing.
<apeiros>
could easily check using the new GC stats tools
spider-mario has quit [Read error: Connection reset by peer]
<mordof>
apeiros, *nods* noted. that's an interesting though. i haven't looked under the hood very much at all now that i think about it
<apeiros>
mordof: anyway, such things going on under the hood can easily turn something which theoretically *should* be faster into something which is in truth slower. hence always bench if performance matters.
<apeiros>
and if performance doesn't matter - don't prematurely optimize :) optimize for readability instead.
<mordof>
indeed :)
<balazs>
does anyone have experience with dashing where the widgets pull the data, and not the jobs push it ?
<apeiros>
or clarity
bronson has quit [Ping timeout: 245 seconds]
<mordof>
apeiros, i like to think about it just in case, but usually until something actually becomes noticably slow i don't try and optimize
<mordof>
however i aim to learn how to do things with speed+readability to begin with.. if that makes sense
* mordof
shrugs
<apeiros>
sure
<apeiros>
makes sense. I do the same.
<apeiros>
if I know A will be faster than B and is similarly readable, of course I'll choose A. and in order to know that, I have had to do research first.
<ebonics>
i think if you need to worry too much about that stuff for your use case then youre using the wrong language
<ebonics>
:p
<apeiros>
ebonics: nah
_seanc_ has quit [Quit: _seanc_]
<ebonics>
im not saying thats true in cases where you just want to learn or improve yourself
phizzbuzz has joined #ruby
<ebonics>
but if youre constantly having to optimize your code because its too slow, even before you start writing any code.. then yeah you should consider another language
<ebonics>
ruby is pretty slow
_seanc_ has joined #ruby
<apeiros>
ok. if that's what you're saying, then I agree.
<apeiros>
constantly having to optimize is indeed a symptom of "wrong tool for the task".
<apeiros>
(or for you needing a serious beef up in basic CS)
<mordof>
yeah - the other side of that is, for example, when i first started writing active record stuff
<mordof>
and i'd write queries that were readable, but just spammed the DB like mad, lol
<ebonics>
that's when you rm -rf and chalk it up as a learning experience :D
<mordof>
xD
<ebonics>
then rewrite it
<ebonics>
honestly its pretty bad when youre forced into a project where you know very little, and you keep getitng progressively better at the concept/language
<ebonics>
then you have to look back at the ass code you wrote
<mordof>
haha, yeah i always hate the looking back
<ebonics>
and probably rig it to work properly, compounding the problem
bronson has joined #ruby
<mordof>
i started learning ruby/rails when i began my job a year ago. i'd hate to go back to the first project i did
<mordof>
i know it was terrible :/
scripore has joined #ruby
<ebonics>
like idk, you see the ridiculous chaining and filtering you do with ruby... it's pretty intuitive to realise youre not being memory efficient :p
xxneolithicxx has joined #ruby
<ebonics>
but it's fun and pretty rapid, thats why i like using it
<ebonics>
the only nitpick i have is it needs namespaces badly
<ebonics>
and maybe ease up on the attr_accessor boiler plate
iasoon has quit [Ping timeout: 272 seconds]
<mordof>
aren't modules there for namespaces?
<apeiros>
yes
<mordof>
they aren't quite the same thing i guess
<ebonics>
i mean as a legitimate language feature
<apeiros>
that's one of their purposes
<mordof>
alright
<ebonics>
that's not a true solution for namespaces
f3lp has quit [Ping timeout: 272 seconds]
<apeiros>
what would be a true solution?
Nedfo has joined #ruby
<Nedfo>
map and collect are the same?
bronson has quit [Ping timeout: 255 seconds]
<apeiros>
Nedfo: usually
<Nedfo>
usually?
<apeiros>
Nedfo: anybody can implement any method with any name.
<ebonics>
like, i define a namespace at the top of my code and any modules that are defined there are inaccessible to other namespaces unless specified, not just by including the rb file
<mordof>
Nedfo, collect is an alias for map, yes (or the other way around, i forget)
<apeiros>
but core's Enumerable#map and #collect are aliases.
<ebonics>
atm it's too much like php or something pre psr
<apeiros>
ebonics: private_constant. though I don't see the need.
<apeiros>
ebonics: that's hand-holding developers. and I'm very grateful ruby doesn't do that.
mjuszczak has joined #ruby
<ebonics>
that's hardly handholding, it's a good idiom
<apeiros>
e.g. it doesn't do it either with regards to private/protected. you can always send
<apeiros>
putting up "you shall not pass!" shields? yeah, that's hand-holding.
<ebonics>
that's hyperbole
<apeiros>
no
<apeiros>
if you think I should not use some of your code, document that.
<ebonics>
can you explain what you just said
<apeiros>
but don't force me off your code. that's just silly.
mjuszczak has quit [Client Quit]
<ebonics>
why?
<apeiros>
because I'm a grown up and will decide on my own what I want to use?
<apeiros>
and you're not my mom or dad to tell me what I can and can't use
<ebonics>
it requires you to know exactly how to use it, that would be the point of using a namespace
<ebonics>
if you want to use it you just include the namespace
<ebonics>
otherwise you use it passively
<apeiros>
you can tell me about the risks. as in "this is internal, don't go here". and I decide whether I take it.
davispuh has quit [Remote host closed the connection]
<ebonics>
yeah good luck reading through a whole codebase that isn't trivially small before you decide which classes you want to use
leafybasil has joined #ruby
shuber_ has quit [Remote host closed the connection]
bogdanteleaga has quit [Ping timeout: 256 seconds]
<ebonics>
you're going to document every method that has side effects? "this method calls this method which calls this method which has this side effect"
<mordof>
I think the two of you are talking about different cases...
<mordof>
somewhat
<jhass>
mordof: I think both are bound to the same C function, so it's really two names for the same thing, hard to say one is an alias for the other (real) one
<mordof>
jhass, ah, true
20WABBVY2 has joined #ruby
<apeiros>
ebonics: I don't see how that's related
<mordof>
ebonics, if you want it in a namespace, put it in a module. then it's ModuleName::ClassName unless you've included the module in your current class
lidenskap has joined #ruby
shuber_ has joined #ruby
<ebonics>
apeiros, it's relevant in that you're forced to make the decision of putting your code in that namespace or not
<apeiros>
I don't follow
<ebonics>
otherwise you can have your little enclosed pod where nothing is redefined and you can be completely safe from side effects
<apeiros>
o0
<apeiros>
how does making stuff hidden change anything about side-effects?
ItSAN____ has quit [Ping timeout: 244 seconds]
<apeiros>
that doesn't make sense
<ebonics>
that's the whole reason for namespaces
<ebonics>
you either have to put your code in it to use everything in it
<ebonics>
or you have to delegate to it
<ebonics>
with limited access
<ebonics>
brb need food
<apeiros>
maybe make an example. either I'm misunderstanding you, or you're really not making sense. atm I hope for the former :)
<ebonics>
okay, well. i think that it's a pointless discussion first of all ebcause as you said there's no real encapsulation in ruby
<apeiros>
i.e. start with how you'd do it in ruby without the namespaces, and then where/how you'd add namespaces and what that'd achieve
fabrice31 has joined #ruby
<apeiros>
there is
<ebonics>
but the point would be you either include the namespace, where you can have only redefined methods apply directly to what you apply to it