<freedrull>
trying to refactor some big classes, and i feel like i'm running into the same problem i always do...i end up passing a lot of objects around as arguments to methods, and this just doesn't feel much cleaner to me... :\
chendo has quit [Read error: Operation timed out]
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
chad__ has joined #ruby-lang
methods has joined #ruby-lang
methods has quit [Client Quit]
chad__ has quit [Remote host closed the connection]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
ttilley has joined #ruby-lang
charliesome has joined #ruby-lang
jperry2 has joined #ruby-lang
Axsuul has joined #ruby-lang
Axsuul has quit [Excess Flood]
slaytanic has joined #ruby-lang
sepp2k1 has quit [Read error: Connection reset by peer]
arubin_ has joined #ruby-lang
isale-eko has joined #ruby-lang
postmodern has joined #ruby-lang
blazes816 has joined #ruby-lang
achiu1 has joined #ruby-lang
achiu has quit [Ping timeout: 252 seconds]
isale-eko has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
areil has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
headius has quit [Quit: headius]
aetcore has quit [Ping timeout: 246 seconds]
aetcore has joined #ruby-lang
<rking>
tpope: Hi. Do you want to chat for a bit about pry-editline ?
<rking>
I can put it in the form of a Github issue if you prefer.
<tpope>
you can ask me here
<rking>
OK
<rking>
tpope: Have you by any chance seen the Github pry addition of the Bond gem?
<tpope>
no
<rking>
Long story short is that it alters the completion code a bit in a way incompatible with pry-editline.
<rking>
It falls back to the old code if you don't have the bond gem installed, so perhaps editline is working in that case still, but the goal is to use bond (it's smarter, e.g. having cool contexts, like require 'x<tab> and my_hash[:<tab><tab> )
<rking>
But in general, as you demonstrated with the slaughter* in pry-editline, Readline isn't very extensible.
<rking>
* like a hack but exponentiated
<rking>
So I was thinking it'd be great to make pry-editline capable of being extended. My #1 goal would be to get F8, etc, into pry-debugger so you can step/next/continue like classical F8, etc debugger bindings.
<rking>
(And I know you can do the `$if Ruby` thing, but having people paste around snippets isn't super)
<tpope>
sounds like you're asking two different things?
<rking>
Yep.
<rking>
1 being getting it working with Bond (which I can tinker with on my end), but 2 being some kind of extensibility (which I need your thoughts on)
<tpope>
yes, please tinker
havenn has quit [Ping timeout: 252 seconds]
<rking>
K.
<tpope>
I'm not absolutely opposed to extensibility, but it seems like it might just be easier to make a separate gem
<tpope>
I mean, the technique I used should daisy chain
<rking>
Hehe, and 3rd thing — did you get a chance to look at the 1:1 mapping between implementation and test files for vim-rails ?
<rking>
Will it?
<rking>
I was thinking it wouldn't…
sn0wb1rd_ has joined #ruby-lang
<tpope>
rking: tbh, I got annoyed with the unicode in the commit message, and decided to wait till I got home to see what it looked like in my linux terminal
<tpope>
so I could decide if I was principally opposed or practically opposed
<tpope>
rking: I override ENV['INPUTRC'] and $include the original value inside my generated one
<rking>
Interesting. I do like Unicode, so if you can explain how it was a negative, I'd like to know.
sn0wb1rd__ has joined #ruby-lang
<tpope>
you could do the same, and no matter which order they load, it should work
siyusong has joined #ruby-lang
<rking>
So perhaps we could extract hijack_inputrc_with and then make hijack_inputrc pass its current here-doc to that?
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd__ is now known as sn0wb1rd
<tpope>
rking: yeah, or just copy and paste the darn thing
sn0wb1rd_ has quit [Ping timeout: 252 seconds]
<rking>
=~(
jackhammer2022 has joined #ruby-lang
<tpope>
rking: it has an extremely low rate of change, man
<tpope>
like, I wrote it once and have never had to tweak it
<rking>
Actually, there is a some turbulence in the vicinity of the input design, basically they're going to decouple R and P from the E and L of REPL.
<rking>
But yeah, I mostly only want it for pry-debugger's F-keys, anyway.
<tpope>
even so, all hijack_inputrc does is change an environment variable an write a tempfile
<rking>
Yeah, k.
<tpope>
rking: I oftentimes use commit messages verbatim in the changelog on vim.org. and vim.org is iso-8859-1 (yes really)
<tpope>
that's my pragmatic reason
<rking>
Aha. Thanks for explaining.
<rking>
I'll redo the pull req if you want.
<tpope>
squash and force push
<tpope>
and let me know
<rking>
OK
<rking>
tpope: BTW the core thing that I'm unsure about with the pull req is which filename gets the "pole position" — only one shows up in the error message when you :A an implementation file without a test file.
<rking>
And I put the 1:1 one in that spot‚ because it's my preference, but I can go with the other one just as easily, if you like.
<rking>
Though probably better would be to show the whole list.
<rking>
Which I can also do if you like.
<tpope>
rking: historically it's been the first file
<tpope>
which I'm fine with. I don't want some super long message that triggers a "press enter" prompt
<rking>
Actually, I was wondering what you thought about making an option to auto-vivify. Even :A! or something.
arubin__ has joined #ruby-lang
arubin__ is now known as arubin-
<tpope>
rking: you can with the commands like :Runittest foo!
arubin_ has quit [Ping timeout: 240 seconds]
<rking>
Aha. Thanks.
<tpope>
rking: I didn't want to use :A! because that looks like forcefully discarding changes
<tpope>
and ":A !" just looks ridiculous
<tpope>
so I never did it for :A
<rking>
Works for me.
methods has joined #ruby-lang
datanoise has joined #ruby-lang
sush24 has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
anannie has quit [Ping timeout: 246 seconds]
senekis has quit [Quit: leaving o/]
svyatov has quit [Quit: svyatov]
Serial_Killer_C has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
kentos has joined #ruby-lang
chendo_ has quit [Ping timeout: 256 seconds]
siyusong has quit [Quit: Computer has gone to sleep.]
<kentos>
I'd like to use a gem on my shared webhost, but I'm having trouble installing it due to permissions. Does anyone know how to use bundler to run something like $ ruby server.rb
chendo_ has joined #ruby-lang
<rking>
kentos: You mean?: bundle exec ruby server.rb
<kentos>
oohhh... 1 sec let me try that
<kentos>
I left out the 'ruby' word
<rking>
You could get that if you put the bangpath at the top ( #!/usr/bin/env ruby ) and chmod +x server.rb
<rking>
Then it'd be: bundle exec ./server.rb
<kentos>
kk, I think that fixed it, I've got the next bug in the series to sort out now =D
<kentos>
it's kinda exciting, been doing mostly frontend stuff for a while now
Mon_Ouie has joined #ruby-lang
methods has quit [Quit: Leaving.]
faces has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
methods has joined #ruby-lang
brianpWins has quit [Ping timeout: 268 seconds]
ilyam has quit [Quit: ilyam]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
d3vic3 has quit [Read error: Operation timed out]
sush24 has quit [Quit: This computer has gone to sleep]
siyusong has joined #ruby-lang
d3vic3 has joined #ruby-lang
svyatov has joined #ruby-lang
ilyam has joined #ruby-lang
chendo_ is now known as chendo
CaptainJet has quit []
methods has quit [Quit: Leaving.]
<rking>
kentos: Sounds like fun. ☺
cosah has joined #ruby-lang
kjr has quit [Quit: kjr]
nXqd has quit [Ping timeout: 248 seconds]
sush24 has joined #ruby-lang
datanoise has joined #ruby-lang
krz has joined #ruby-lang
chendo has quit [Ping timeout: 245 seconds]
ruby-lang702 has joined #ruby-lang
chendo has joined #ruby-lang
siyusong has quit [Quit: Computer has gone to sleep.]
datanoise has quit [Ping timeout: 252 seconds]
nXqd has joined #ruby-lang
rub has joined #ruby-lang
<kentos>
It is fun, it's been a pain figuring out deployment, but now that that's over with it should all be fun stuff ahead. Here's a demo app link for anybody who's interested. https://github.com/TheNotary/jcoglan
<kentos>
i'll be watching old school Dr. Who for a while so send me a msg if I've left something out and you can't get it to function
Asher has quit [Ping timeout: 248 seconds]
EvilJStoker has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby-lang
xalei has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
kith has joined #ruby-lang
ryanf has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
lun_ has joined #ruby-lang
ryanf has quit [Quit: broken pipes |||]
cantonic has quit [Quit: cantonic]
EvilJStoker has joined #ruby-lang
nXqd has quit [Ping timeout: 255 seconds]
gsav has quit [Read error: Connection reset by peer]
svyatov has quit [Quit: svyatov]
lun_ has quit [Remote host closed the connection]
Rizzle has joined #ruby-lang
ilyam has quit [Quit: ilyam]
gsav has joined #ruby-lang
ViperMaul|_ has quit [Ping timeout: 240 seconds]
<Harzilein>
is there some "backdoor" in bundler that'd allow for loading arbitrary gems? our team has some problems agreeing which development gems are necessary for our product and one solution would be to allow them to use any debuggin tool they deem necessary
<Harzilein>
debugging*
nXqd has joined #ruby-lang
tenderlove has joined #ruby-lang
ilyam has joined #ruby-lang
projectdelphai has joined #ruby-lang
tenderlo_ has joined #ruby-lang
tenderlo_ has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby-lang
gix has quit [Ping timeout: 248 seconds]
tenderlove has joined #ruby-lang
gix has joined #ruby-lang
tenderlove has quit [Ping timeout: 256 seconds]
woollyams has joined #ruby-lang
yanovitchsky has quit [Quit: yanovitchsky]
kingcrawler has joined #ruby-lang
<rking>
Harzilein: Huge pain
<rking>
Harzilein: Do you know how pry-debundler works?
<rking>
Harzilein: First of all, what would be wrong with the superset?
<rking>
E.g. one guy wants to use pry-debugger, another guy the stock debugger, it all goes in the same group :development, no big deal.
xalei has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
nXqd has quit [Ping timeout: 260 seconds]
kentos has quit [Quit: Leaving]
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
dhruvasagar has joined #ruby-lang
tenderlove has joined #ruby-lang
KnowTheLedge has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 255 seconds]
chendo has quit [Read error: Operation timed out]
nXqd has joined #ruby-lang
anannie has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
dc5ala has joined #ruby-lang
chendo has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
tenderlo_ has joined #ruby-lang
brianpWins_ has joined #ruby-lang
crankharder has quit [Ping timeout: 248 seconds]
brianpWins has quit [Ping timeout: 252 seconds]
brianpWins_ is now known as brianpWins
chendo has quit [Ping timeout: 252 seconds]
tenderlove has quit [Ping timeout: 264 seconds]
chendo has joined #ruby-lang
ananna has joined #ruby-lang
anannie has quit [Ping timeout: 246 seconds]
crankharder has joined #ruby-lang
faces has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
KnowTheLedge has joined #ruby-lang
projectdelphai has quit [Quit: leaving]
faces has joined #ruby-lang
solars has joined #ruby-lang
mistym has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
datanoise has joined #ruby-lang
vlad_starkov has joined #ruby-lang
datanoise has quit [Ping timeout: 276 seconds]
tenderlo_ has quit [Remote host closed the connection]
<burgestrand>
How can I specify in my gemspec that it’s available for either darwin (mac os), linux 32bit or linux 64bit? I’ve released my gem with "universal-darwin" for Mac OS now, but JRuby does not pick it up and install the pure-ruby version.
<burgestrand>
(also have gem with platforms i686-linux and x86_64-linux released)
tenderlove has joined #ruby-lang
Dreamer3 has quit [Quit: Leaving...]
qwerxy has joined #ruby-lang
<steveklabnik>
burgestrand: precompile a binary gem for those platforms, just ruby for the rest?
vlad_starkov has quit [Remote host closed the connection]
lsegal has joined #ruby-lang
ttilley has quit [Quit: ttilley]
kitallis has joined #ruby-lang
tenderlo_ has joined #ruby-lang
<burgestrand>
steveklabnik: the only ruby code in the gem is a path to a binary, which is specific to darwin, linux 32bit and linux 64bit — I have a pure ruby version, but it does not bundle the binary, so that I can still depend on it on platforms I do not yet support, but still allow people using those platforms to install the binary manually and use it that way.
<freedrull>
anyone ever tried to use eventmachine with ruby-processing?
<burgestrand>
It’s really just a convenience gem, and you could do without it, I was just surprised "universal-darwin" platform didn’t install on jruby, but did on MRI.
<steveklabnik>
hmmmmmm
tenderlove has quit [Ping timeout: 246 seconds]
<steveklabnik>
yeah, i'm pretty sure that jruby is a separate platfor
<steveklabnik>
m
<burgestrand>
So in summary: install this gem platform on any mac os, this gem platform on any linux 32bit, and this gem platform on any linux 64bit; no matter if you use ironruby, macruby, ruby motion, mri, jruby or what have you.
<burgestrand>
Yeah, the Gem.platforms is just ["ruby", "universal-java-1.6"], substituting the OS for "java". Perhaps that’s in the spirit of being platform independent.
<steveklabnik>
i'm guessing this correlates very closelt yo the actual rubygems ones
<steveklabnik>
even though it's bundeler
<burgestrand>
I could possibly depend on arch alone; if not I’ll just let jruby users install the binary themselves, given they’re probably used to being special-cased in other circumstances this shouldn’t be too much of a hassle.
<burgestrand>
steveklabnik: thanks for the discussion, I have to be off now.
vlad_starkov has joined #ruby-lang
dr_bob has joined #ruby-lang
<steveklabnik>
peace!
cschwartz has joined #ruby-lang
GarethAdams has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
bluepojo has quit [Ping timeout: 246 seconds]
ilyam has quit [Quit: ilyam]
richardjapenga has joined #ruby-lang
heftig has quit [Quit: leaving]
areil has quit [Ping timeout: 246 seconds]
Asher has joined #ruby-lang
areil has joined #ruby-lang
tenderlo_ has quit [Ping timeout: 245 seconds]
lun_ has joined #ruby-lang
bryno has quit [Ping timeout: 246 seconds]
<rking>
I need a mnemonic or cheat sheet to help me know which methods are Engrish (#include? #respond_to?) and which are English (most of the others)
kingcrawler has quit [Quit: Computer has gone to sleep]
<freedrull>
what
wallerdev has quit [Quit: wallerdev]
<rking>
[1,2,3].include? 2 # ☒ Not English
<rking>
obj.respond_to? :foo # ☒ Not English
<rking>
I'm amazed that no one has patched in aliases with 's's.
<oddmunds>
#incrude
<oddmunds>
#lespond_to
<freedrull>
included?
<freedrull>
responded_to?
<freedrull>
i'm amazed there are not past tense versions either
<steveklabnik>
yes, let's add more methods on object
maek has joined #ruby-lang
<steveklabnik>
sounds great
<maek>
if I have a .gem file locally on disk how can I install that please?
<freedrull>
gem install mygem.gem
<yorickpeterse>
Morning
<zzak>
require 'English'
<maek>
freedrull: derp. ty :)
Averna has quit [Quit: Leaving.]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
bryno has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
dr_bob has joined #ruby-lang
gnufied has joined #ruby-lang
tenderlove has joined #ruby-lang
tenderlove has quit [Read error: Connection reset by peer]
Stereokitsune has quit [Ping timeout: 268 seconds]
<Gekz>
so why does viewstate even exist when no other framework ever has needed it
<andrewvos>
oddmunds: IF that page doesn't just show a picture of a burning house, I don't want to read it.
<andrewvos>
Gekz: Because Windows Forms.
<Gekz>
I don't even know what that is
<andrewvos>
Gekz: They wanted to make it easy for Windows Forms developers to move into the future of web.
<Gekz>
which is probably a good thing
<Gekz>
andrewvos: oh god.
<andrewvos>
Gekz: It's for making desktop applications in Windows under .NET.
<andrewvos>
Gekz: They wanted to make the web not stateless.
<Gekz>
there are better ways, obviously
<Gekz>
it's called a sessionid.
<Gekz>
and server-side caching of data.
Hakon has quit [Excess Flood]
carloslopes has joined #ruby-lang
<Gekz>
so given we're talking about scraping and ASP.net and I'm using ruby, here's the site I'm scraping: http://www.classification.gov.au
<Gekz>
it's epic slow, so I tried rewriting my scraper to be concurrent using Typhoeus
<Gekz>
it's still not much faster, but I'm sure that's because I'm doing it wrong.g
<andrewvos>
Gekz: What are you scraping?
<Gekz>
basically, do a search from 1970 to now, order by oldest, then from that first result page, queue up the getting of the other 9 pages available, then queue the 20 results in each of those pages, then scrape the "11th" page and repeat the process.
<Gekz>
andrewvos: the entire classification database.
ruby-lang056 has joined #ruby-lang
<oddmunds>
Gekz: maybe you are being throttled?
<andrewvos>
Gekz: Maybe contact them and ask for the data :)
<Gekz>
andrewvos: I did. And I freedom of information requested it. They want to charge me $4000 to run SELECT * from CLASSIFICATIONS;
<Gekz>
invert cases somewhere.
<Gekz>
oddmunds: nah, I'm not being throttled. My router died from having too many concurrent connections a few times though.
<Gekz>
and it's a Cisco 837 >_>
jarib has quit [Excess Flood]
<oddmunds>
doesn't sound like FREEdom
<Gekz>
nope
<Gekz>
government here is trying to impede FOI requests even further.
<oddmunds>
more like holding information hostage
<Gekz>
apparently it's burdensome.
<Gekz>
they don't understand the definition of data access
<Gekz>
or public information.
<Gekz>
nesting on_complete was fun.
ruby-lang056 has quit [Ping timeout: 245 seconds]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
jarib has joined #ruby-lang
rue|w has joined #ruby-lang
toretore has joined #ruby-lang
Hakon has joined #ruby-lang
vlad_starkov has joined #ruby-lang
svyatov has joined #ruby-lang
NOKAH has joined #ruby-lang
leopard_me has joined #ruby-lang
Hakon has quit [Ping timeout: 245 seconds]
beiter has joined #ruby-lang
NOKAH has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby-lang
toretore has quit [Quit: Leaving]
banisterfiend has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
toretore has joined #ruby-lang
krz has quit [Quit: krz]
dhruvasagar has joined #ruby-lang
banisterfiend has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
kurko_ has joined #ruby-lang
bpuzzled has joined #ruby-lang
andrenkov has joined #ruby-lang
Assurbanipal has quit [Quit: Konversation terminated!]
Mon_Ouie has joined #ruby-lang
gaveen has quit [Ping timeout: 264 seconds]
lun__ has joined #ruby-lang
lun_ has quit [Ping timeout: 240 seconds]
jxie has quit [Quit: leaving]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
postmodern has quit [Quit: Leaving]
woollyams has quit [Quit: Computer has gone to sleep.]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
banisterfiend has quit [Ping timeout: 252 seconds]
lcdhoffman has joined #ruby-lang
wyhaines_ has quit [Ping timeout: 276 seconds]
wyhaines has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
sush24 has quit [Quit: Leaving]
<soahccc>
Anyone uses Sublime Text and has a working do-end snippet? The one from TM does not work
cschwartz has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
Hakon has joined #ruby-lang
cantonic has joined #ruby-lang
qwerxy has joined #ruby-lang
baniste__ has joined #ruby-lang
cschwartz has joined #ruby-lang
erichmenge has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
erichmenge has quit [Quit: Be back later]
erichmenge has joined #ruby-lang
stardiviner has joined #ruby-lang
runeb has quit [Read error: Connection reset by peer]
stardiviner has quit [Client Quit]
runeb has joined #ruby-lang
beiter has quit [Quit: beiter]
jperry2 has joined #ruby-lang
thinkdevcode has joined #ruby-lang
svyatov has quit [Quit: svyatov]
znake has joined #ruby-lang
kith_ has joined #ruby-lang
voker57__ has joined #ruby-lang
kurko_ has quit [Ping timeout: 276 seconds]
kith has quit [Read error: Connection reset by peer]
kurko_ has joined #ruby-lang
fsvehla has joined #ruby-lang
fsvehla has quit [Client Quit]
voker57_ has quit [Ping timeout: 276 seconds]
lun__ has quit [Ping timeout: 240 seconds]
lun_ has joined #ruby-lang
tallship has quit [Read error: Connection reset by peer]
intellitech|away has quit [Quit: Leaving]
tbuehlmann has joined #ruby-lang
lele|w has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
lake has joined #ruby-lang
rippa has quit [Ping timeout: 265 seconds]
cosah has quit [Ping timeout: 245 seconds]
methods has joined #ruby-lang
lele|w has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
erichmenge has quit [Quit: Be back later]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
burgestrand has quit [Ping timeout: 256 seconds]
ruby-lang290 has joined #ruby-lang
ruby-lang290 has quit [Client Quit]
outoftime has joined #ruby-lang
burgestrand has joined #ruby-lang
aetcore has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 252 seconds]
Serial_Killer_C has joined #ruby-lang
tallship has joined #ruby-lang
thatdutchguy has joined #ruby-lang
Serial_Killer_C has joined #ruby-lang
kith_ is now known as kith
Serial_K_ has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
Serial_Killer_C has quit [Ping timeout: 276 seconds]
voker57__ has quit [Remote host closed the connection]
amaya_ has joined #ruby-lang
rub has quit [Ping timeout: 246 seconds]
amaya_ has quit [Client Quit]
jxie has quit [Quit: leaving]
tallship has quit [Remote host closed the connection]
kingcrawler has joined #ruby-lang
jxie has joined #ruby-lang
sailias has joined #ruby-lang
tubbo has left #ruby-lang [#ruby-lang]
<whitequark>
probably too old or trying to be too clever
TommyBlue has quit [Quit: Coyote finally caught me]
TommyBlue has joined #ruby-lang
<whitequark>
oh sorry, wrong channel
TommyBlue is now known as TommyBlue
marr has quit [Ping timeout: 246 seconds]
znake is now known as znake|away
Serial_K_ has quit [Remote host closed the connection]
znake|away is now known as znake
mwjcomputing has joined #ruby-lang
cschwartz has quit [Ping timeout: 240 seconds]
justinram has joined #ruby-lang
cschwartz has joined #ruby-lang
senekis has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
nitti has joined #ruby-lang
aetcore has joined #ruby-lang
jkyle has quit [Quit: leaving]
Austin__ has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
senekis has quit [Ping timeout: 252 seconds]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
znake has quit [Ping timeout: 244 seconds]
kjr has joined #ruby-lang
dous_ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
bpuzzled has quit [Changing host]
bpuzzled has joined #ruby-lang
senekis has joined #ruby-lang
dous has quit [Ping timeout: 240 seconds]
thinkdevcode has joined #ruby-lang
erichmenge has joined #ruby-lang
baniste__ has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
intellitech has joined #ruby-lang
rippa has joined #ruby-lang
erichmenge has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby-lang
znake has joined #ruby-lang
jakob- has joined #ruby-lang
rue|w has quit [Ping timeout: 256 seconds]
cantonic has quit [Quit: cantonic]
kingcrawler has quit [Quit: [kingCrawler release]]
<whitequark>
afaik no other parser can perform roundtripping or report anything more meaningful at all
<whitequark>
(than a single line number
<yorickpeterse>
Well, I'm not entirely sure if I eventually want to use a different parser for each implementation. Then again I doubt I have much of a choice when I start working on that
<yorickpeterse>
hmm
vlad_starkov has joined #ruby-lang
<yorickpeterse>
What annoys me most about Ripper is that for certain nodes the line number is set to the line number of the last line of code
<yorickpeterse>
Instead of the start
<whitequark>
yorickpeterse: I've posted that link for a reason
<whitequark>
jrubyparser works on every implementation with C exts
tbuehlmann has quit [Remote host closed the connection]
<whitequark>
it's not jruby-parser, but rather java-rubyparser.
erichmenge has joined #ruby-lang
<yorickpeterse>
hmm
<yorickpeterse>
But that would require Java/jruby, no?
<yorickpeterse>
Which is annoying for those who'd only write MRI code. Blegh
<yorickpeterse>
This isn't an issue for the near future since I'll be sticking with Ripper for the time being, but it is something I want to address in the future
<whitequark>
java yes
<whitequark>
jruby no
<whitequark>
it's basically reverse JNI
<yorickpeterse>
hm
lcdhoffman has joined #ruby-lang
thinkdevcode has quit [Ping timeout: 246 seconds]
<yorickpeterse>
In that case I'd say RubyParser would be best. It has the least deps and probably the smallest time required for fixing issues.
erichmenge has quit [Client Quit]
thatdutchguy has quit [Read error: Connection reset by peer]
ananna has quit [Read error: Connection reset by peer]
emptyflask has joined #ruby-lang
thatdutchguy has joined #ruby-lang
<yorickpeterse>
My main issue is that I want it to be stupid simple to get my linter running (once it works of course), without having to install Java, compile C extensions, yadya
wyhaines has quit [Remote host closed the connection]
jashank has quit [Ping timeout: 245 seconds]
anannie has joined #ruby-lang
crankharder has quit [Remote host closed the connection]
richardjapenga has quit [Quit: Leaving]
lun_ has quit [Ping timeout: 246 seconds]
d3vic3 has quit [Ping timeout: 246 seconds]
marr has joined #ruby-lang
jperry2 has quit [Quit: jperry2]
erichmenge has joined #ruby-lang
sailias has quit [Ping timeout: 240 seconds]
erichmenge has quit [Client Quit]
d3vic3 has joined #ruby-lang
<yorickpeterse>
Anyway, I'm heading home
mytrile has quit [Remote host closed the connection]
intellitech has quit [Quit: Leaving]
headius has joined #ruby-lang
jashank has joined #ruby-lang
nitti has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
_lenny has quit [Ping timeout: 260 seconds]
erichmenge has quit [Client Quit]
thatdutchguy has quit [Remote host closed the connection]
thinkdevcode has joined #ruby-lang
wyhaines has joined #ruby-lang
anachronistic has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
sailias has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
intellitech has joined #ruby-lang
banisterfiend has joined #ruby-lang
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
rue|w has joined #ruby-lang
marr has quit [Ping timeout: 246 seconds]
gregmoreno has joined #ruby-lang
lun_ has joined #ruby-lang
ilyam has joined #ruby-lang
wallerdev has joined #ruby-lang
siyusong has joined #ruby-lang
datanoise has joined #ruby-lang
mistym has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
nitti has joined #ruby-lang
dfanjul has joined #ruby-lang
runeb has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
nitti_ has joined #ruby-lang
agarcia has quit [Quit: Konversation terminated!]
nitti_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
nitti has quit [Ping timeout: 268 seconds]
dous_ has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby-lang
lun_ has quit [Ping timeout: 255 seconds]
sailias has quit [Ping timeout: 240 seconds]
cultureulterior_ has quit [Quit: cultureulterior_]
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
cosah has joined #ruby-lang
nitti has joined #ruby-lang
sailias has joined #ruby-lang
brianpWins has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
GarethAdams has quit [Quit: Leaving...]
ruby-lang309 has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
cschwartz has quit [Ping timeout: 252 seconds]
devn has quit [Quit: leaving]
d3vic3 has quit [Quit: leaving]
crankharder has joined #ruby-lang
runeb has joined #ruby-lang
devn has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
ilyam has quit [Quit: ilyam]
svyatov has joined #ruby-lang
devn has quit [Client Quit]
gnufied has quit [Quit: Leaving.]
lcdhoffman has joined #ruby-lang
runeb has quit [Ping timeout: 252 seconds]
yanovitchsky has quit [Quit: yanovitchsky]
yanovitchsky has joined #ruby-lang
Gekz has quit [Ping timeout: 260 seconds]
bfreeman has joined #ruby-lang
ruby-lang309 has quit [Ping timeout: 245 seconds]
norbert has joined #ruby-lang
yanovitchsky has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby-lang
methods has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
norbert has quit [Client Quit]
methods has left #ruby-lang [#ruby-lang]
methods1 has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
erichmenge has joined #ruby-lang
erichmenge has quit [Read error: Connection reset by peer]
<zenspider>
apeiros_: refinements are not well thought out at all... when they announced it I asked what sort of support they were going to add to debugging, metaprogramming, and backtraces so you could tell where a refinement was coming from and they gave me a blank stare
<zzak>
i wonder if flonum is gonna make it
<zenspider>
we do NOT need this type of complication
<apeiros_>
:-/
<zzak>
refinements have been available as patch for a year or more
headius has quit [Quit: headius]
<zzak>
and committed a while back, just for experiment
<zenspider>
I may just become an mruby coder
<zenspider>
zzak: and?
<zzak>
but too few people were helping improve it
<zzak>
im just now seeing tickets on it
mjio has joined #ruby-lang
<zzak>
it could still be reverted by release
<zenspider>
I highly doubt it will be
<zenspider>
and I expect it to be a clusterfuck once the railz0rs jump all over it.
<yorickpeterse>
clearly the best way to resolve issues like this is to use something else :>
<zenspider>
because if it is new... they need to use it
<zenspider>
I'm tempted to fork ruby 1.9, make utf-8 the only option, and see how it feels
<apeiros_>
using it isn't the bad part
<apeiros_>
they'll use it for all sorts of things where it is the utterly wrong tool…
<zenspider>
not that I want to deal with that C code... :/
<zenspider>
apeiros_: I said "railz0r", right? that was implied :P
blacktulip has quit [Remote host closed the connection]
<apeiros_>
hah
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
rue|w has joined #ruby-lang
<zzak>
zenspider: you're right to a certain degree
<zzak>
but given the amount of metaprogramming already included in rails, refinements would make sense throughout
<zzak>
an all utf-8 ruby would be neat, i think there's a ticket already to convert most of the source files
qwerxy has quit [Quit: offski]
solars has quit [Ping timeout: 246 seconds]
wyhaines has joined #ruby-lang
savage- has joined #ruby-lang
ryanlecompte has quit [Read error: Connection reset by peer]
gsav_ has quit [Ping timeout: 255 seconds]
nitti___ has quit [Remote host closed the connection]
<zenspider>
zzak: no, I mean do not allow other encodings. convert on in/out, utf8 throughout internally tho
grandy has quit [Ping timeout: 240 seconds]
grandy has joined #ruby-lang
<steveklabnik>
lolrefinements
<zenspider>
and refinements won't do anything to address the metaprogramming in rails (or otherwise). that just doesn't even make sense. all it does is address the ... globalness(?) of monkeypatching ... not a good word for that
<workmad3>
it allows for the containment of monkeypatching
<zenspider>
containment... that's better :P
<workmad3>
contained monkeys are safer than unrestricted monkeys
rue|w has quit [Remote host closed the connection]
<ddd>
zenspider: i've never heard you speak out against Metaprogramming in ruby. Might I ask what you see wrong with it? (Not starting an argument, truly just wondering)
<ddd>
or are you specifically speaking the way rails does it?
<steveklabnik>
contained monkeys impose a global performance loss
<steveklabnik>
even if you dont contain your monkeys
<steveklabnik>
n00bs will still not contain monkeys
<steveklabnik>
it's such a terrible feature
<ddd>
can n00bs define a monkey? :)
<zzak>
planet of the apes?
stiang has quit [Quit: stiang]
Serial_Killer_C has quit [Remote host closed the connection]
<Spaceghostc2c>
Personally, I'm more happy with the named parameters.
thinkdevcode has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
wnd^ has quit [Excess Flood]
wnd has joined #ruby-lang
thorncp has quit [Ping timeout: 268 seconds]
vesan_ has quit [Ping timeout: 260 seconds]
corundum has joined #ruby-lang
robbyoconnor has joined #ruby-lang
vesan has joined #ruby-lang
thorncp has joined #ruby-lang
aetcore has quit [Read error: Connection reset by peer]
aetcore has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
jbsan has joined #ruby-lang
anachronistic has quit [Quit: anachronistic]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
jperry2 has joined #ruby-lang
<andrewvos>
Yeah fuck refinements. Don't need that shit ever.
<andrewvos>
And if you do, then you're part of the problem.
Kingy has joined #ruby-lang
<apeiros_>
:(
<apeiros_>
I love the idea of refinements, especially on core classes
<steveklabnik>
booooo
<steveklabnik>
you're a bad person
<steveklabnik>
and you should feel bad
<apeiros_>
there's so many things that feel utterly wrong in other places
<steveklabnik>
:p
<chris2>
i like the idea of not fucking touching core classes
<apeiros_>
some_string.format_phone_number
<apeiros_>
I don't want to add that to String
<apeiros_>
I don't want to extend individual objects
<apeiros_>
and I don't want PhoneNumberFormatter.new(some_string).to_s
leopard_me has quit [Quit: Computer has gone to sleep.]
<chris2>
you want a phone number class
<apeiros_>
no I don't
<steveklabnik>
^^^^^^^^^
<steveklabnik>
yes, you do
<apeiros_>
no, totally not
<steveklabnik>
l2design
<chris2>
or a plain module function
<apeiros_>
a module function is not really better than PhoneNumberFormatter.new(some_string).to_s
<chris2>
yes it is
<apeiros_>
no, module functions are giving up a core aspect of OO - self
<chris2>
low overhead, and its really a function
<apeiros_>
it's really ugly
<steveklabnik>
module functions are bad
<chris2>
if you want self, make a phone number class
<chris2>
oo sucks anyway
<apeiros_>
and that's stupid, as I need only 1 functionality, the formatting
<apeiros_>
that's javaism going through a full class just to get a single method
<chris2>
one functionality, one function
<chris2>
whats the deal
lun_ has quit [Remote host closed the connection]
<apeiros_>
one functionality, one context, one refinement
<chris2>
it certainly doesnt belong into string class
<apeiros_>
it doesn't *yet*
<apeiros_>
because being global, it's more pollution than anything
lun_ has joined #ruby-lang
<apeiros_>
but with something like refinements, it makes perfect sense in String
<chris2>
i dont know the current variant of these
<chris2>
are they lexical?
<apeiros_>
otherwise you're going on a limb to argue that most methods currently in string don't really belong into string
<apeiros_>
why not have an UpperCasing class?
<apeiros_>
why not have a Gsubbing class?
<chris2>
because uppercase and substitution is stuff you do with a string
<chris2>
regarding it as phone number isnt
<steveklabnik>
^^^^^
<apeiros_>
oh, and guess what, so is formatting
<steveklabnik>
right
<steveklabnik>
hence strf
<steveklabnik>
etc
<steveklabnik>
but not 'as a phone number'
methods has left #ruby-lang [#ruby-lang]
<apeiros_>
but as an integer, yes?
<apeiros_>
sorry, but that's silly borders you're drawing there…
<steveklabnik>
do what you want
<chris2>
i could argue about String#to_phone_number
<steveklabnik>
but refinements make me pay a cost
<steveklabnik>
for your poor design
<steveklabnik>
therefore, they're bad.
<steveklabnik>
COMMUNISM
<steveklabnik>
EVERYONE LOSES
<steveklabnik>
;)
<apeiros_>
boilerplate is a cost of its own too
<apeiros_>
and not having boilerplate is the reason we chose ruby
<apeiros_>
everything is a tradeoff
<chris2>
you can even subclass string ffs :P
<steveklabnik>
that's an even worse idea
workmad3 has quit [Ping timeout: 276 seconds]
Kingy has quit [Quit: Leaving]
<apeiros_>
chris2: anyway, think again about it
<apeiros_>
what's so substantially different from knowing how to transform a lower case to an upper case
<apeiros_>
vs. where to insert spaces?
<chris2>
its a general feature of strings
<apeiros_>
both is not knowledge inherent in "a bunch of bytes"
<apeiros_>
no
<apeiros_>
it's not
<chris2>
vs a specific feature of strings
<chris2>
yes it is
<apeiros_>
it's sooo totally not
<apeiros_>
then why "ä".upcase # => "ä"?
<apeiros_>
it needs so much knowledge
<chris2>
not every string is a phone number
<apeiros_>
not every string is words
<apeiros_>
again, silly borders
<apeiros_>
not every string is a binary packed format (String#unpack)
<apeiros_>
not every string is an integer (String#to_i)
Hakon has joined #ruby-lang
<chris2>
why not define Object#format_phone_number then?
<apeiros_>
not every string is… insert whatever
<banisterfiend>
chris2: he's not giving the functionality to every string, only to strings in a certain scope wehre it makes sense, such as in a DSL of some sort
<chris2>
perhaps i want 112.format...
<apeiros_>
really, going down that line of argumentation paints yourself in a corner where most methods in string do not belong into string
outoftime has quit [Quit: Leaving]
<chris2>
not a corner :P
<apeiros_>
the upcase/downcase is excellent
<apeiros_>
as it needs knowledge about encoding too
<chris2>
i wouldnt mind if that were the case
<apeiros_>
which even happens to be encapsulated in a different object
<chris2>
and 1.9 string has encoding
<apeiros_>
so why should downcase/upcase be handled by string, which doesn't know the internals of an encoding, and not by the encoding class?
<chris2>
i wonder where you learned about oo
<apeiros_>
bertrand meyer
<apeiros_>
you should look him up and read his books.
<steveklabnik>
lol
<chris2>
i know his work
<steveklabnik>
apeiros_ uses 'bertrand meyer'
<steveklabnik>
it's not very effective
<apeiros_>
chris2: tell me how many encodings are there?
<steveklabnik>
steveklabnik uses 'alan kay'
<chris2>
;)
<chris2>
steveklabnik: classboxes exist :P
<apeiros_>
and then tell me why it makes more sense to let *string* know about the transformation of *each* encoding instead of an encoding instance
<apeiros_>
and then tell me again where you heard about OO
<apeiros_>
srsly
<steveklabnik>
chris2: that's true. refinements are not classboxes
<apeiros_>
you're fixated to a view to which you've grown accustomed.
<apeiros_>
maybe it's time you take a couple of steps backwards and reevaluate.
jperry2 has quit [Quit: jperry2]
<apeiros_>
instead of getting all ad-hominem…
<steveklabnik>
NO U
<steveklabnik>
(see how that works?)
<chris2>
apeiros_: i did not mean to attack you
<apeiros_>
steveklabnik: I doubt that you studied with alan kay btw.
<steveklabnik>
sometimes we call each other on the phone
<steveklabnik>
'hey alan.... how are you? no, nothing special, i was just thinking about you *blush*'
<steveklabnik>
:p
<chris2>
it just seems weird to put a string internal thing into a seperate class
<steveklabnik>
you miss my point
<steveklabnik>
my point is that argument from authority means nothing
<steveklabnik>
especially when you can find so many conflicting authorities
<steveklabnik>
alan kay, the guy who invtented OO, thinks he got OO wrong.
<steveklabnik>
for example
<apeiros_>
steveklabnik: I wasn't making a point. read the backlog.
<chris2>
and the actual conversion in 1.9 is done by the encoding thingies i think
<steveklabnik>
you invoked meyer
<apeiros_>
If I'd wanted to use BM to make a point I'd have quoted him
enebo has joined #ruby-lang
<apeiros_>
steveklabnik: read. the. backlog. I did not invoke it. it was a reply.
<steveklabnik>
now you're playing semantics
<steveklabnik>
i didnt invoke it
<steveklabnik>
i just said it
<steveklabnik>
....?
<apeiros_>
you say I used him to make a point which is so obviously not true that it hurts. seriously.
emptyflask has quit [Ping timeout: 276 seconds]
<chris2>
eiffel has string to_uppper btw
<steveklabnik>
8:47 < apeiros_> you should look him up and read his books. <- not a point?
<steveklabnik>
anyway
<steveklabnik>
i'm done
<apeiros_>
steveklabnik: no
<steveklabnik>
regardless
<apeiros_>
you misunderstand how argumentation works. again, if I'd had wanted to use him, I'd have quoted him. I did not make any connection between his works and this discussion.
<steveklabnik>
lolololololololol
Carnage\ has quit []
<apeiros_>
feel free to show how I did. will be fun to see…
<Spaceghostc2c>
I think you're both using some very hilarious logical fallacies. :D