<chekcmate>
would it make a difference to switch the router or do I have to change both?
wudofyr_ has quit [Remote host closed the connection]
<chekcmate>
ah
<Paradox>
i shouldnt be giving technical advice
<Paradox>
its 4 am
<Paradox>
lol
wudofyr_ has joined #ruby-lang
<Paradox>
im trying to brush up on my weakest part of development
<Paradox>
testing
<Paradox>
but god damn rspec is boring
<Paradox>
i know the rspec book tries to be interesting
<Paradox>
but i dont care about cucumber
megha has quit [Quit: WeeChat 0.4.0]
<injekt>
cucumber is shit, and i dont really like or use rspec either
<chekcmate>
Paradox: trying to learn at 4am is like trying to learn at 7am... no use
<Paradox>
well
<Paradox>
its not the individual testing tool
<Paradox>
its getting myself to write tests
<Paradox>
i either go full retard
<Paradox>
or null retard
<Paradox>
one is i dont test anything
lcdhoffman has joined #ruby-lang
<Paradox>
the other is i test if 2 + 2 = 4
<chekcmate>
aw.. I thought the first one was funnier
<chekcmate>
like testing how mustard and honey tastes on a burger or something
<chekcmate>
become food tester!
Rarrikins_q_e_y has quit [Remote host closed the connection]
fsvehla has quit [Read error: Connection reset by peer]
<Paradox>
i wish developers would spend more time writing decent documentation than writing tess
<Paradox>
tests
<Paradox>
yard makes writing docs so fucking bloody easy
fsvehla has joined #ruby-lang
sush24 has joined #ruby-lang
<chekcmate>
Paradox: that's what I thought several times, even as an apprentice. There's often way too less documentation. Instead there are knowledge-islands in the worst case too..
<Paradox>
one thing that bothered me about working at pivotal last summer
<Paradox>
i asked about comments for gnarly piece of code
<Paradox>
like products.each.map { |k, v| "#{k}#{v}" }.sort
<Paradox>
or whatever
<Paradox>
and the answer was "tests are the documentation"
<Paradox>
no
<Paradox>
i dont want to have to pull up harpdarpdurrhurr_request_spec.rb
<Paradox>
to figure out what line 345 does
<Paradox>
could have been the pivots i worked with but w/e
<Paradox>
seemed to be a fairly prevalent view
chimkan has joined #ruby-lang
<Paradox>
(that code example i gave was purely fictional, but is a good example, its a way of making "map" accept k,v style values for a hash
<chekcmate>
Paradox: we'll talk later, gtg eat :)
<Paradox>
i gtg too
<Paradox>
sleep
<Paradox>
ill be on in 7 hours
vesan has quit [Ping timeout: 245 seconds]
vesan has joined #ruby-lang
banister`sleep has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
fsvehla has joined #ruby-lang
postmodern has quit [Quit: Leaving]
g0bl1n has joined #ruby-lang
glebm has quit [Ping timeout: 245 seconds]
wudofyr_ has quit [Remote host closed the connection]
krz has joined #ruby-lang
rippa has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby-lang
madish has joined #ruby-lang
megha has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
lunarjar has joined #ruby-lang
banister`sleep has quit [Ping timeout: 260 seconds]
_tockitj has joined #ruby-lang
wiboon has joined #ruby-lang
spuk has quit [Ping timeout: 256 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
rippa has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
wiboon has quit [Remote host closed the connection]
Bearproof has joined #ruby-lang
retro|cz has joined #ruby-lang
r0bby has joined #ruby-lang
imajes has quit [Excess Flood]
robbyoconnor has quit [Ping timeout: 255 seconds]
<yorickpeterse>
Ugh, I don't like people who write code like `foo( "bar" )`
xcombelle has joined #ruby-lang
* yorickpeterse
shakes cane
megha has quit [Ping timeout: 240 seconds]
imajes has joined #ruby-lang
security has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
sepp2k has quit [Remote host closed the connection]
r0bby has quit [Ping timeout: 246 seconds]
jxie has quit [Quit: leaving]
<injekt>
you'd hate pistos :D
<injekt>
well, his code, not him, he's cool
<yorickpeterse>
I should probably clarify: I don't like the code
<yorickpeterse>
and sometimes not the people, but that generally comes after I meet them
creede has joined #ruby-lang
GarethAdams has joined #ruby-lang
JohnBat26 has joined #ruby-lang
krz has quit [Quit: krz]
dr_bob has quit [Quit: Leaving.]
goatish_mound has joined #ruby-lang
<charliesome>
quick question everyone
<charliesome>
say you have obj.is_a?(klass)
<charliesome>
what would you call the method for klass.some_method?(obj)
<apeiros_>
klass === obj
<apeiros_>
Array === [] # => true
<charliesome>
if you had to pick a name
<charliesome>
this is not for ruby btw
<charliesome>
but i thought it'd be good to ask here ;)
<apeiros_>
hm
chendo_ has joined #ruby-lang
<yorickpeterse>
charliesome: what
<yorickpeterse>
You want a name for a method that checks if a method exists?
<apeiros_>
no, he wants the reverse of .is_a?
<charliesome>
yorickpeterse: i want a name for a method on Class objects that checks if the argument is an instance of the class
<chekcmate>
darix: yea, I'm from Hamburg, but injekt started with "moin" somehow... heh
<chekcmate>
darix: just saw your qry, sorry for the late answer ^^
<yorickpeterse>
Well, it depends on the implementation. In Ruby you can't abuse, say `.new` (it doesn't exist for Fixnum for example), in other languages you might be able to do something like that
<yorickpeterse>
However, I'd stick with something like is_a?() that checks the ancestor tree
<yorickpeterse>
Instead of saying "THIS MUST BE A STRING!!!"
<yorickpeterse>
If you do the latter you might as well implement static typing
ddd has joined #ruby-lang
<darix>
chekcmate: well that could be my fault ;)
cultureulterior has quit [Read error: Connection reset by peer]
<injekt>
I dont think I like has_instance either, String:has_instance('') reads wrong imo
<injekt>
but I'm not really helping here as I can't think of anything nicer
Gekz has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
nkr has quit [Read error: Connection reset by peer]
fsvehla_ has joined #ruby-lang
GarethAdams has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
fsvehla_ is now known as fsvehla
nkr has joined #ruby-lang
<yorickpeterse>
charliesome: y u use <%
<yorickpeterse>
This is not PHP
<yorickpeterse>
I hope
<charliesome>
this is supposed to be a non-crap php
<yorickpeterse>
haha
<yorickpeterse>
Just use X instead
<yorickpeterse>
I take it this it not actually based on PHP?
<charliesome>
of course not :)
<Spaceghost|cloud>
apeiros_: instantiated?
<Spaceghost|cloud>
charliesome: Also, I dig better_errors.
<charliesome>
Spaceghost|cloud: cheers
<Spaceghost|cloud>
charliesome: If I can get the time to try it, I might be able to help a bit on jruby support.
<Spaceghost|cloud>
For the advanced features.
<charliesome>
not possible
<Spaceghost|cloud>
No?
<charliesome>
at least that's what i gather from my conversations with headius
<Spaceghost|cloud>
Oh hm. I would have thought the stacktrace stuff was possible.
<charliesome>
the binding of caller stuff?
<Spaceghost|cloud>
Stack frames, sorry.
<Spaceghost|cloud>
charliesome: Well, the jruby stuff couldn't use binding of caller.
<charliesome>
yeah
mossplix has quit [Quit: mossplix]
<charliesome>
all the advanced stuff relies on getting bindings from the call stack
<Spaceghost|cloud>
charliesome: And that's just not possible in jruby?
glebm has joined #ruby-lang
<Spaceghost|cloud>
At all?
<charliesome>
nope
<Spaceghost|cloud>
Well gosh.
imajes has quit [Excess Flood]
mjolk has joined #ruby-lang
imajes has joined #ruby-lang
chimkan_ has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
fsvehla has joined #ruby-lang
lunarjar has joined #ruby-lang
chimkan has quit [Ping timeout: 260 seconds]
chimkan_ is now known as chimkan
<mjolk>
Is there no ruby1.9.3dev ?
lunarjar has quit [Max SendQ exceeded]
dr_bob has joined #ruby-lang
lunarjar has joined #ruby-lang
<workmad3>
mjolk: not anymore
<workmad3>
mjolk: seeing as it's no longer in development
<workmad3>
mjolk: now there's head ;)
* workmad3
realises that 'no longer in development' is potentially ambiguous and inaccurate
<yorickpeterse>
"No longer super unstable"
<workmad3>
what I meant was that it has been released
<mjolk>
okay, so how would i go about using gem to install something if i don't have the goodies that -dev usually carries?
<workmad3>
oh, are you talking about system packages?
<mjolk>
yeah, hah, sorry
<workmad3>
bleh, I never use them
<ddd>
Y U NO USE?
<workmad3>
hence the confusion :)
<ddd>
muahaha! Morning :)
<workmad3>
morning :)
<workmad3>
ddd: give me one good reason I should use the system packaged ruby :P
<workmad3>
ddd: that isn't counteracted by 'it's shit' ;)
<ddd>
workmad3: I can't. I'd be lying to you if I said I could think of one
<ddd>
I don't lie to friends
<workmad3>
hehe
<yorickpeterse>
mjolk: what OS/distro are you on?
<mjolk>
workmad3 because you can get 1.9.3 from apt
<mjolk>
yorickpeterse : ubuntu 12.04
<ddd>
yeah, you can get a chopped up to hell and back 1.9.3
<ddd>
and ri19, and rdoc19, and libruby19, and ruby19, and..
<workmad3>
mjolk: you can also get it from RVM, and it actually works then ;)
<yorickpeterse>
THe required -dev packages depend on the gem. I'm on Xubuntu on this laptop but I don't remember the exact names of them all
<yorickpeterse>
Some of them are a bit weird like zlib0-dev (or whatever it was)
<workmad3>
mjolk: same if you use rbenv... or rbfu... or chruby...
dhruvasagar has quit [Ping timeout: 252 seconds]
<mjolk>
fuck rvm in the face
<yorickpeterse>
And as mentioned, use some Ruby version manager
* ddd
lets out a low growl
lunarjar has quit [Ping timeout: 260 seconds]
<yorickpeterse>
Ubuntu applies some patches to your Rubies as well
<workmad3>
yorickpeterse: well, zlib is actually an obvious requirement
<workmad3>
yorickpeterse: rubygems uses zipped files with a .gem extension ;)
<yorickpeterse>
well yeah, but you'd still have to figure out the exact package name
<workmad3>
yorickpeterse: oh, right, in that sense yeah... zlib0-dev is odd
* workmad3
just does 'rvm requirements' on servers and installs what it says :) )
<yorickpeterse>
zlib1g-dev apparently
huydx has quit [Quit: huydx]
<yorickpeterse>
At least my own laptop doesn't have to go through this trouble
<ddd>
you can find out the requirements ahead of time. grab RVM's script/requirements file and look for your OS
<mjolk>
thanks yorickpeterse for the helpful direction. this is for a vagrant/auto-provisioning script, so using rvm/rbenv/other-multi-version thing makes me want to get killed repeatedly
<ddd>
you'll even get a C&P capable line
huydx has joined #ruby-lang
<yorickpeterse>
mjolk: heh
fsvehla has quit [Read error: Connection reset by peer]
<ddd>
curl -L https://get.rvm.io | bash -s stable —ruby will install RVM and install a ruby for you. single line in your provisioning script. You can also curl -L https://get.rvm.io | bash -s stable && rvm update && rvm —create —install 1.9.3-p327
<ddd>
just pull the required pacakges line from the installer ahead of time and make sure all the req'd packages are in and its painless
fsvehla has joined #ruby-lang
<ddd>
I use it like that for Jenkins, VBs, and scripted vmware installs
<mjolk>
yeah no
<mjolk>
i'm not installing dvm like that
idkazuma has joined #ruby-lang
<mjolk>
curling from some arbitrary thing is insane
<ddd>
uhh thats how you install rvm
<ddd>
its not arbitrary
<mjolk>
uhhh it's dumb and bad (™)
<ddd>
now you're talking out your ass
<mjolk>
i know it's what the page suggests, but then you're relying on the package management system and the bash script to be happy together
<yorickpeterse>
tbh I don't like curling and passing stuff to bash that way either
<ddd>
guess, you might as well forget doing a git clone or apt-get troo then.
<ddd>
same exact thing
<mjolk>
lol
<mjolk>
yes, just pipe all scripts to bash and call it a day
<yorickpeterse>
ddd: ehm, the latter is not the case
<mjolk>
and hope to god no one ever does a simple man in the middle attack
<yorickpeterse>
apt packages are signed so unless the keys get stolen you can more or less trust that whatever you install is what you're installing
<injekt>
uh, just wget the source and build it? so many tools there to do these things but all of them do the exact same thing
<ddd>
mjolk: oh you mean like could happen with getting packages from a debian site?
<mjolk>
those are signed
<ddd>
all it takes is adding a dep on one of the MITM injected packages that requires an update to the signature package and inject your new keys
<ddd>
just as is done right now with debian and ubuntu. their key packages have both been updated. so it would appear as a normal update
<yorickpeterse>
And you think apt won't go batshit crazy when it detects a key mismatch?
<mjolk>
look how many words you're typing to somehow rationalize your solution of "let bash run arbitrary scripts"
<mjolk>
good lord.
<ddd>
yorickpeterse: it uses the keys from the debian-keys package
<yorickpeterse>
Key signing is only as secure as the person safe guarding the keys but the whole point of it is to prevent people from being able to inject stuff into something
<injekt>
this is why things dont get done ^
<mjolk>
So anyway! the answer to "where can i get a package with the files needed to build things with gem" is "idk ruby is shitty and bad in package managers"
<mjolk>
which is pretty much expected
<injekt>
mjolk: my answer is download the source code from the ruby-lang website and compile and build it yourself
<mjolk>
lol
<mjolk>
seriously?
<injekt>
yes seriously
<mjolk>
that's insane.
<yorickpeterse>
Well, you have 3 options: Use a decent package manager that can easily install the dev dependencies 2. use something like chruby 3. do it yourself
<ddd>
if you're THAT worried about it then injekt's comment is bang on
<injekt>
how is THAT insane?
<injekt>
that would be the most sane way of doing it
<yorickpeterse>
I hate being an Arch cunt but on my own laptop it's just a matter of `pacman -S ruby` and I have all the deps I need (even though I use chruby)
<workmad3>
mjolk: that's *exactly* what is still the recommended procedure for *all* software on bastion hosts
<mjolk>
i'm not that worried about it ddd, it's just that i don't/shouldn't need RVM when i only need one version of ruby on a system
<injekt>
EXACTLY
<injekt>
So you build it yourself
<injekt>
if you only need one version of ruby then you do not need a ruby version/env manager
<injekt>
so you compile the source code yourself and put ruby where you want it
megha has quit [Quit: WeeChat 0.4.0]
<mjolk>
injekt yeah, i'll end up doing that, but good lord. i just want the mkmf library
<workmad3>
mjolk: tools like rvm appeared because the packages for ruby on pretty much all the distros are truly horrendous for any non-packaged ruby software
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<ddd>
and not have to worry about chopped up meta packages and giving the pkg manager the ability to change your ruby underneath you (there is zero chance you can say that the pkg manager can't push an update that breaks something on your system within that update)
<workmad3>
mjolk: and the situation with the distros hasn't changed
x0F_ is now known as x0F
<mjolk>
don't blame the distros for a ruby-specific ugliness
<ddd>
thus injekt's way of doing it minimizes any chance of external 'messing around'
<apeiros_>
we don't
<mjolk>
even php doesn't have this facefuck
<apeiros_>
we blame the distros for distro-specific ugliness
<ddd>
exactly
<workmad3>
mjolk: no, because the distros haven't fucked up php like they have with ruby
<mjolk>
php seems to work on every distro without having to do a "lol just use this tool with a fucking cartoon header (RVM)"
<workmad3>
mjolk: right... because the distros haven't managed to fuck up the packages
<yorickpeterse>
it does the moment you want to install a C extension
<ddd>
and what yorickpeterse just pointed out is in no way shape or form 'rvm specific'. Those packages would be required to build ruby in the first place.
<injekt>
this has nothing to do with distros and packages
<mjolk>
workmad3 it's open source. if there was a better solution, it would be pulled in
<ddd>
the same packages that your distro would have used to build *its* ruby package
<mjolk>
yorickpeterse you are cool.
<apeiros_>
mjolk: all I hear from you is "cry whine I have no idea what I'm talking about but I just keep on blabbering"
lunarjar has joined #ruby-lang
<yorickpeterse>
Keep it civil folks, this isn't #c
<ddd>
hehehe
<mjolk>
apeiros_ , no, it's that this is the worst distro/OS-language interaction i've ever seen
<apeiros_>
mjolk: I think on that point we agree
<mjolk>
Cool.
<mjolk>
And you should also agree that piping random scripts to bash is also bad
<ddd>
name me one good solid reason for debian, ubuntu or any other package to chop up ruby into *that* many sub packages.
<apeiros_>
lots of things you do to install stuff is bad
<injekt>
ddd: because fuck you
<mjolk>
And that I _shouldn't_ need a virtualenv style setup like RVM when I only have _one_ version of the lang
<apeiros_>
plain sudos to install things is bad too, yet I bet you do it probably daily
<ddd>
injekt: hah! :)
<injekt>
you dont need a version manager
<mjolk>
ddd : minimal required software, go longer between potentially dangerous upgrades, increase modularity, reduce vulnerabilities
<workmad3>
mjolk: agreed, you shouldn't... you can compile from source, or figure out what the hell is going on with the distro packages
<workmad3>
mjolk: using something like rvm is easier though
<injekt>
I dont use ruby version managers
<mjolk>
rvm is a clusterfuck.
<mjolk>
it re-aliases your cd.
<injekt>
i dont use rvm, rbenv, chruby or anything else, because i dont need them
<mjolk>
anyway.
<mjolk>
one version. one love.
<mjolk>
i'll just roll my own package
<workmad3>
mjolk: wow, you're trotting out that old piece of garbage FUD now? :)
<yorickpeterse>
I use a Ruby version manager written in PHP
<mjolk>
it's not fud.
* yorickpeterse
pukes
<ddd>
mjolk: it has always been an opt-in/out aliasing. it was originally turned OFF actually. it was turned back on because the *community* requested it.
<apeiros_>
mjolk: make it good, market it, get the distro to use yours instead of the currently fucked up, and you'll actually be a hero.
<ddd>
it IS fud
<mjolk>
the community is fucking insane then.
<ddd>
riiight
<mjolk>
what other solution has "just modify one of the most common general linux commands, LOL" as a function
<mjolk>
anyway.
<yorickpeterse>
Ok, here's something that creeps me out: Ruby devs with furry Twitter profile photos/backgrounds
<ddd>
too funny
fsvehla has quit [Read error: Connection reset by peer]
<yorickpeterse>
mostly because I know the original as well
<mjolk>
yeah, let me seriously use this solution with some sort of furry cartoon site linked
<injekt>
ok dude I don't like rvm either but that banner is awesome
lunarjar has quit [Ping timeout: 252 seconds]
<mjolk>
that banner is awful good lord.
fsvehla has joined #ruby-lang
<injekt>
anyway, I don't like rvm so I dont use it, I dont waste my time complaining about it and certainly don't complain about the banner of all things, just use something else and move on
<ddd>
and wtf does that have to do with the capability of a peice of software
<mjolk>
ddd nothing, but just lol.
<yorickpeterse>
mjolk: I'd suggest you go drink some tea/coffee instead of raging on the internet
<mjolk>
it's so apropos
<ddd>
hell Maya has a butt ugly logo but its a damned solid peice of 3D modeling software
<mjolk>
i'm not raging
<mjolk>
i'm perfectly calm
<ddd>
yeah riiight you're not
<mjolk>
i'm not at all, really
<mjolk>
i think it's endlessly hilarious
<injekt>
judofyr: yo!
<judofyr>
injekt: yo yo
<ddd>
exactly what comics are supposed to invoke. the logo beig a cartoon couldn't *possibly* reflect that you shold be having fun with ruby.. no not at all
<injekt>
judofyr: what was your talk proposal?
dustint has joined #ruby-lang
<judofyr>
injekt: MDD. but going to submit Zoid later
<mjolk>
to me it says "bleep blorp pipe to bash lol webscale"
<injekt>
judofyr: oh cool
<ddd>
(which incidently was one of the things wayne was trying to point out)
<yorickpeterse>
I should poke my CTO about this if it isn't the same time as Euruko
<injekt>
it's a few days before euruko iirc
<charliesome>
judofyr: "Don't: Use your presentation to present a particular library or other piece of technology, unless doing so serves the purpose of sparking discussion or inspiring others with new ideas."
<injekt>
or after
<charliesome>
there is a fine line
<yorickpeterse>
holy shit that's expensive
<judofyr>
charliesome: it's not my fault that no-one has implemented proper mockup-driven development frameworks
<judofyr>
yorickpeterse: everything is included though. hotel, dinners, parties, lunch
<charliesome>
oh i thought you were talking about zoid?
kwargs has quit [Client Quit]
<judofyr>
charliesome: ah, well, yeah, that's a finer line :)
<yorickpeterse>
judofyr: hmm, that makes it somewhat more acceptable
<charliesome>
i think a zoid talk would be amazingly interesting
<yorickpeterse>
zoid?
kwargs has joined #ruby-lang
<judofyr>
yorickpeterse: my zecret project :)
<yorickpeterse>
Oh, that ORM thing?
<judofyr>
(it's basically secret because I never manage to finish it)
<injekt>
no
<judofyr>
oh, no. that's my other secret project
<yorickpeterse>
Ah, it's your forever project
<judofyr>
well, I haven't actually started on Zorm yet
<judofyr>
or, not really
<judofyr>
it was just a Christmas hack
<judofyr>
Zoid is more like my forever project, yes
<yorickpeterse>
that's what I meant
<judofyr>
:)
<judofyr>
I think I conference deadline would do me good
<yorickpeterse>
zomg, the nordic Ruby lineup so far only has white males
<charliesome>
also slash performs somewhat respectably now
<chekcmate>
is the fight over?
<chekcmate>
who won?
dous_ has joined #ruby-lang
<charliesome>
i added fancy schmancy things like method caching
swav has quit [Ping timeout: 260 seconds]
<chekcmate>
wrong channel again...
<charliesome>
judofyr: ah yes you showed this off a while ago in here
<charliesome>
looks cool
<judofyr>
charliesome: cool. I'm going to start work on some static-analysis for Uno.
dous has quit [Ping timeout: 256 seconds]
<judofyr>
charliesome: but yeah, I think I need to just write some shit it in. right now it only has immutable values.
<judofyr>
not sure how that's actually going to work out
Glass_saga has joined #ruby-lang
<judofyr>
but we'll give it a try!
Glass_saga has quit [Remote host closed the connection]
<charliesome>
with slash i'm in the cycle of i want to write something in it
<charliesome>
but first i need to implement something
<charliesome>
or bind to some c library
<judofyr>
what do you miss?
banister`sleep has quit [Ping timeout: 255 seconds]
<charliesome>
a lot of string munging stuff
<charliesome>
that's always handy
<charliesome>
i need to rejigger how strings work
<judofyr>
how do they work now?
<mjolk>
anyway, the packages I needed were 'libxslt-dev libxml2-dev', in case this chat gets archived/searched later by someone else in the same boat as needing mkmf on ubuntu's aptitude repo
<charliesome>
the current implementation is some misguided attempt to support both utf-8 and binary data
<charliesome>
i want to kick that out the door
<judofyr>
ah, encodings
<judofyr>
what are you going for?
<charliesome>
i'm gonna make String utf-8 only
<charliesome>
the constructor enforces that
melter has joined #ruby-lang
<charliesome>
then add a ByteString class
<judofyr>
cool
<charliesome>
my favourite new feature is use statements
<charliesome>
sort of like perl's
<judofyr>
oo
<judofyr>
how do they work?
scampbell has joined #ruby-lang
<charliesome>
use Foo::Bar turns into require("foo/bar") and returns Foo::Bar
<charliesome>
if foo/bar.sl doesn't define Foo::Bar, it throws
<judofyr>
I like it
<chekcmate>
guys, are there any Ruby-Conventions?
<chekcmate>
(does this exist at all in Europe?)
<judofyr>
Conventions?
<apeiros_>
chekcmate: yes
<chekcmate>
er.. like meetings, where people talk/learn from each other
<apeiros_>
next euruko is in athen
<yorickpeterse>
chekcmate: Euruko, Nordic Ruby
outoftime has joined #ruby-lang
<apeiros_>
there are a ton of other conferences
<yorickpeterse>
and small national ones probably
<chekcmate>
aw Greece...
<yorickpeterse>
FOSDEM is also in the EU
<chekcmate>
they're a fan of Merkel I heard
<chekcmate>
oh alright, I thought the most ones are based in Japan/USA
<apeiros_>
the bigger ones are
<chekcmate>
at least those were the only ones I read about (:
<apeiros_>
there's nothing as big as a railsconf in europe to my knowledge
<chekcmate>
haven't been to a programming event yet
<yorickpeterse>
Though "conferences" is the official term
<chekcmate>
hm, how do you like: guys-who-will-reign-the-world-someday-event ?
<whitequark>
sigh
arooni-mobile has quit [Remote host closed the connection]
<chekcmate>
heh
nkr has quit [Ping timeout: 256 seconds]
Glass_saga has joined #ruby-lang
Glass_saga has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
fsvehla has joined #ruby-lang
Glass_saga has joined #ruby-lang
Glass_saga has quit [Remote host closed the connection]
RubyHead has joined #ruby-lang
ephialtes480 has quit [Quit: Leaving...]
rippa has joined #ruby-lang
ephialtes480 has joined #ruby-lang
chimkan_ has joined #ruby-lang
dous_ is now known as dous
banister`sleep has joined #ruby-lang
banister`sleep has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
jonahR has joined #ruby-lang
Uranio has joined #ruby-lang
chimkan has quit [Ping timeout: 260 seconds]
chimkan_ is now known as chimkan
Mon_Ouie has quit [Ping timeout: 260 seconds]
tomzx_mac has joined #ruby-lang
fsvehla has quit [Read error: Connection reset by peer]
marcostoledo has quit [Quit: Leaving...]
wudofyr_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby-lang
banisterfiend has quit [Ping timeout: 256 seconds]
fsvehla has joined #ruby-lang
<injekt>
man i hate lexers
goatish_mound has quit [Read error: Connection reset by peer]
<yorickpeterse>
that's like saying you hate people
<yorickpeterse>
can you be a bit more broad?
<judofyr>
yorickpeterse: who doesn't hate people?
nkr has joined #ruby-lang
<injekt>
well, I hate trying to figure out the best way of writing what I'm writing
<judofyr>
injekt: isn't that kinda the definition of programming?
<injekt>
judofyr: yeah :(
<injekt>
so many routes to go
<injekt>
none of them comfortable
mistym has quit [Remote host closed the connection]
vbatts|mobile has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 260 seconds]
<injekt>
jesus date_parse is messy
imajes has quit [Excess Flood]
<injekt>
and it's just one big regexp anyway
<injekt>
yay
fsvehla has quit [Read error: Connection reset by peer]
ryanv-raptor has joined #ruby-lang
vlad_starkov has joined #ruby-lang
imajes has joined #ruby-lang
fsvehla has joined #ruby-lang
megha has joined #ruby-lang
KA_ has joined #ruby-lang
cored has quit [Quit: leaving]
unlikely_monkey has joined #ruby-lang
fsvehla has quit [Client Quit]
g0bl1n has quit [Quit: g0bl1n]
totallymike has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
<chekcmate>
where the hell do I get this (Errno::ENAMETOOLONG) from?
sailias has joined #ruby-lang
<mistym>
chekcmate: Without seeing your code it's hard to say. Are you hitting the filesystem in your code?
<injekt>
chekcmate: pathname looks like it's too long
<chekcmate>
yes sir
<injekt>
chekcmate: are you using find?
<chekcmate>
yea, I googled that and it's pretty obvious that something's "too long" ... I don't get it since I don't even have output, but get output which is that long
<injekt>
chekcmate: are you on windows?
<chekcmate>
no
krz has joined #ruby-lang
<chekcmate>
but I have 28k files to iterate over
<lianj>
trying to open or write a file with long name?
<mistym>
You're iterating over 28k files; what are you doing with them?
<chekcmate>
hm, not really - the file names are set by myself...
fsvehla has joined #ruby-lang
<chekcmate>
mistym: I delete them afterwards?
<mistym>
chekcmate: OK, but what do you do before that?
<mistym>
So can we see some code that raises this?
<chekcmate>
if I knew which part raises it... heh
<chekcmate>
I'll take a look at it, maybe it's another blindness-mistake
<ryanv-raptor>
isn't there a line number in the backtrace?
<chekcmate>
where's my title? I want "Yorickpeterse-Corrector"
<yorickpeterse>
heh
<chekcmate>
tehe, thanks yorick
<chekcmate>
(do you play league of legends by any chance?)
<yorickpeterse>
Actually I do
<yorickpeterse>
and yes, I know there's a character with my name
<chekcmate>
I have one too!
<chekcmate>
<- darius
<yorickpeterse>
heh
<chekcmate>
hahh
RubyHead has quit [Remote host closed the connection]
<chekcmate>
great talk again with you guys, going home now - have a great day everyone!
jonahR has joined #ruby-lang
chekcmate has quit [Quit: Page closed]
methods has joined #ruby-lang
cirenyc has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
lcdhoffman has quit [Ping timeout: 260 seconds]
<yorickpeterse>
Naming question: I have a method called `has_definition?` which checks for X in the current object as well as in all parent objects. What would be a good name for a similar method that *only* checks for X in the current object
<yorickpeterse>
(thus ignoring all the parents)
<ericwood>
the object is going through its rebellious teenage phase, and thus ignoring its parents
<yorickpeterse>
has_emo_definition?
<ericwood>
I think that's a pretty good name
<yorickpeterse>
or has_teenager_definition
<ericwood>
has_angst?
<yorickpeterse>
haha
<yorickpeterse>
has_issues
<ericwood>
I think I've seen that ina ra rails app lol
<ericwood>
*in a rails app
KA_ has quit [Quit: KA_]
krohrbaugh has quit [Quit: Leaving.]
Axsuul has joined #ruby-lang
mercwithamouth has joined #ruby-lang
<yorickpeterse>
In all seriousness though, something like `has_definition_directly?` is too long.
<yorickpeterse>
Though I feel that might be a bit confusing in combination with has_definition?
carloslopes has quit [Remote host closed the connection]
<GarethAdams>
yorickpeterse: is `has_definition?` like `respond_to?` ?
<yorickpeterse>
No, it checks for a combination of a data type and name
<yorickpeterse>
e.g. `has_definition?(:constant, 'String')`
Rarrikins has joined #ruby-lang
<GarethAdams>
sure, not in behaviour but it's the same kind of approach. You're wanting the same kind of thing as if you wanted respond_to? to apply to that one instance
<elux>
so ive just read in an older blog post that Timeout.timeout spawns a new thread each time it runs a block.. i had no idea.. i checked Net::HTTP .. and it looks like it uses a Timeout as well for when opening connections.
<elux>
i just want to make sure this is still the case.. but for 1.9.3 (mri), jruby and other ruby vm's .. a new thread is spawned to carry out a connection within a Timeout.timeout() .. ? that kinda sucks..
vlad_starkov has joined #ruby-lang
wudofyr_ has quit [Read error: Connection reset by peer]
wudofyr_ has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
elux has left #ruby-lang [#ruby-lang]
srbaker has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
shtirlic has quit [Remote host closed the connection]
samlt has joined #ruby-lang
gregf has joined #ruby-lang
bg451 has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
edilsrevoc has joined #ruby-lang
edilsrevoc has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
mercwithamouth has quit [Ping timeout: 256 seconds]
jtoy has quit [Quit: jtoy]
chimkan has joined #ruby-lang
jtoy has joined #ruby-lang
vbatts|mobile has quit [Ping timeout: 240 seconds]
edilsrevoc has joined #ruby-lang
thufir_ has joined #ruby-lang
edilsrevoc has quit [Remote host closed the connection]
edilsrevoc has quit [Remote host closed the connection]
mephux has quit [Excess Flood]
mephux has joined #ruby-lang
<banisterfiend>
though methods are probably just as good if you're not going to be using it as a debugger (commands really just exist so they dont interfere with methods in a running app)
bg451 has quit [Quit: bg451]
thufir_ has quit [Remote host closed the connection]
dustint has quit [Quit: Leaving]
carloslopes has quit [Remote host closed the connection]
wudofyr_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby-lang
<ddfreyne>
banisterfiend: Hmm, I may be able to use that… maybe a “run” command that you can use to invoke CLI commands, e.g. “run compile --verbose” or so
<banisterfiend>
sounds cool. Yeah that's another advantage of commands, they have flags and you dont need to quote things :)
<ddfreyne>
sadly it doesn’t integrate with slop directly though :)
thone has joined #ruby-lang
<banisterfiend>
i dont think we wrap slop very much at all, the opt that's passed to def options() is just your normal Slop::Options iirc
richardburton has joined #ruby-lang
<injekt>
Slop*
thone_ has quit [Read error: Operation timed out]
edilsrevoc has joined #ruby-lang
edilsrevoc has quit [Excess Flood]
<ddfreyne>
banisterfiend: I mean, nanoc doesn't
<banisterfiend>
oh
mephux has quit [Excess Flood]
carloslopes has joined #ruby-lang
edilsrevoc has joined #ruby-lang
edilsrevoc has quit [Excess Flood]
mephux has joined #ruby-lang
<injekt>
it would probably be fairly easy to sub the slop instance for a cri command instance
edilsrevoc has joined #ruby-lang
edilsrevoc has quit [Excess Flood]
<ddfreyne>
I don’t think it’ll be necessary though… I’ll see!
<ddfreyne>
sleep, night!
sailias has quit [Ping timeout: 240 seconds]
scampbell has quit [Quit: Leaving]
edilsrevoc has joined #ruby-lang
edilsrevoc has quit [Remote host closed the connection]
mjio has joined #ruby-lang
drbrain has quit [Read error: Connection reset by peer]
<bluepojo>
yeah, that's what I was trying to avoid with this bit of code.
<bluepojo>
I can do that
Asher has joined #ruby-lang
<whitequark>
just do obj.to_sym.
<whitequark>
both Symbol === obj and String === obj will work.
<bluepojo>
hm, ok.
<bluepojo>
I thought the code was nice and clean when I could do keytype.new(my_string) instead of adding another conditional, but I can just do a conditional