tonni has quit [Remote host closed the connection]
savagecroc has quit [Remote host closed the connection]
Fretta has quit [Ping timeout: 255 seconds]
Rarrikins_x has quit [Ping timeout: 255 seconds]
S2kx has quit [Quit: Leaving]
x2q has quit [Ping timeout: 248 seconds]
x2q has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
Rarrikins has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Rarrikins has quit [Ping timeout: 276 seconds]
Rarrikins has joined #ruby-lang
tonni has joined #ruby-lang
christeraustad_ has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
dankest is now known as dankest|away
christeraustad has quit [Ping timeout: 244 seconds]
christeraustad_ has quit [Ping timeout: 252 seconds]
Rarrikins_p has joined #ruby-lang
blahwoop has quit [Ping timeout: 276 seconds]
Rarrikins has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
Rarrikins_p_d has joined #ruby-lang
gaveen has joined #ruby-lang
Rarrikins_p has quit [Ping timeout: 256 seconds]
Rarrikins_p_d has quit [Ping timeout: 240 seconds]
dankest|away is now known as dankest
vlad_starkov has joined #ruby-lang
Rarrikins has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
Rarrikins_i has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
Rarrikins_i_g has joined #ruby-lang
Rarrikins_i has quit [Ping timeout: 246 seconds]
Rarrikins_i_g has quit [Ping timeout: 244 seconds]
Sinestro has quit [Ping timeout: 246 seconds]
ViPi has joined #ruby-lang
gaveen has joined #ruby-lang
Rarrikins has joined #ruby-lang
Rarrikins_s has joined #ruby-lang
Rarrikins has quit [Ping timeout: 255 seconds]
tonni has quit [Read error: Connection reset by peer]
christeraustad has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
ViPi has quit [Quit: Computer has gone to sleep.]
v0lta has quit [Quit: Bye]
apeiros has quit [Remote host closed the connection]
headius has joined #ruby-lang
cableray has quit [Quit: cableray]
mytrile has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
faces has quit [Ping timeout: 248 seconds]
headius has quit [Quit: headius]
faces has joined #ruby-lang
cableray has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 276 seconds]
zmack has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tjadc has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
havenn has joined #ruby-lang
dankest has quit [Quit: Leaving...]
agarcia has joined #ruby-lang
owen1 has joined #ruby-lang
Averna has quit [Quit: Leaving.]
<owen1>
how to parse big json file? i currently use httparty to access an API that return a json file. it takes about 50 seconds to process it and my request is blocked.
serhart has quit [Quit: Leaving.]
<Spaceghost|cloud>
owen1: IO object.
<Spaceghost|cloud>
And do a chunked read/write/whatever
<Spaceghost|cloud>
I don't know if this is good, but at least look at it to do yourself if you can't use it. Or look for something better: https://github.com/dgraham/json-stream
maja_ has joined #ruby-lang
maja_ has quit [Client Quit]
<yorickpeterse>
Morining
<yorickpeterse>
*Morning
jimmyy has joined #ruby-lang
jonahR has quit [Quit: jonahR]
ryanf has quit [Quit: leaving]
waffleau has joined #ruby-lang
justinram has joined #ruby-lang
rue|w has joined #ruby-lang
ViPi has joined #ruby-lang
maxmanders has joined #ruby-lang
havenn has quit [Remote host closed the connection]
gnufied1 has joined #ruby-lang
krzkrzkrz has joined #ruby-lang
krz has quit [Ping timeout: 276 seconds]
krzkrzkrz is now known as krz
tonni has joined #ruby-lang
zarubin has joined #ruby-lang
runeb has joined #ruby-lang
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
zarubin has quit [Read error: Connection reset by peer]
zarubin has joined #ruby-lang
zarubin has quit [Client Quit]
rue|w has quit [Remote host closed the connection]
klebervirgilio has quit [Ping timeout: 248 seconds]
KM|2 has quit [Ping timeout: 246 seconds]
jimmyy has quit [Ping timeout: 276 seconds]
jxie has quit [Quit: leaving]
jimmyy has joined #ruby-lang
blacktulip has joined #ruby-lang
zz_chrismcg is now known as chrismcg
solars has joined #ruby-lang
robotmay has joined #ruby-lang
S1kx has joined #ruby-lang
dwu2 has quit [Quit: Leaving.]
lele|w has quit [Read error: Connection reset by peer]
lele|w has joined #ruby-lang
adambeynon has joined #ruby-lang
toretore has joined #ruby-lang
cableray has quit [Quit: cableray]
rue|w has joined #ruby-lang
workmad3 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
solars has quit [Ping timeout: 256 seconds]
jimmyy has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
retro|cz has quit [Ping timeout: 248 seconds]
klebervi_ has joined #ruby-lang
s1n4 has joined #ruby-lang
r0bby has joined #ruby-lang
robbyoconnor has quit [Disconnected by services]
r0bby is now known as robbyoconnor
rue has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
dc5ala has joined #ruby-lang
judofyr has joined #ruby-lang
<judofyr>
whitequark: heya
<judofyr>
or
<injekt>
moin
<injekt>
HELO
<judofyr>
Hey all folks!
<judofyr>
injekt \o/
<injekt>
judofyr /o\
<judofyr>
I started on a new language this weekend /o\
s1n4 has quit [Quit: leaving]
<injekt>
writing one?
<judofyr>
yes
<judofyr>
designing/implementing
<injekt>
so you have an orm, a sekret project, and new language
<injekt>
and you have a gf and social life
<injekt>
do you outsource the latter?
<injekt>
I struggle to find time just for work :(
<judofyr>
well, there's a reason none of them are release ;)
<injekt>
heh
<judofyr>
(ehm, I meant the projects, not my gf)
<judofyr>
released*
<injekt>
so your gf is released
<injekt>
i am confuse
<injekt>
but cool, what's the plan for the language?
<judofyr>
I feel like this is a "have you stopped beating your wife?"-kinda trap…
<injekt>
notacop
<judofyr>
injekt: functional programming. no mutation.
runeb has quit [Remote host closed the connection]
<judofyr>
injekt: so: dynamically typed, records are heavily used ({a:1, b:2}), yet it supports object-oriented programming with inheritance (both class and prototype-based)
robbyoconnor has quit [Ping timeout: 260 seconds]
<injekt>
judofyr: what are you building it on?
<injekt>
sounds interesting
<judofyr>
all values are immutable
<injekt>
lots of challenges
solars has joined #ruby-lang
<judofyr>
injekt: well, I'm using http://github.com/judofyr/kramer for the parser. so the first interpreter is going to be built in Ruby.
<judofyr>
injekt: then: bootstrap and write a compiler to some other language. maybe JS.
<injekt>
judofyr: neat :)
<judofyr>
injekt: aiming for a lot of static analysis for performance
<injekt>
judofyr: did you think of a name yet? does it begin with a z and have 3 letters?
<judofyr>
injekt: it's called "uno" for now
<judofyr>
injekt: but if I like the idea, I might rename it to "zero"
<injekt>
like the card game?
<judofyr>
yeah
<injekt>
cool
<judofyr>
if not, I'll create a new language and name it "dos"
<judofyr>
and so on
<injekt>
haha
<injekt>
been tempted to write someone on top of rbx but never find the time
sulo has joined #ruby-lang
<judofyr>
now I just want the shortest way to bootstrapping
<judofyr>
injekt: today is the first day of DailyContributions, so I hope to push some uno-lang code out :D
wudofyr has quit [Remote host closed the connection]
<injekt>
judofyr: nice!
wudofyr has joined #ruby-lang
zarubin has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
runeb has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
<chris2>
judofyr: do you know mlpolyr?
MaddinXx_ has joined #ruby-lang
<judofyr>
chris2: yes, a bit. I've seen the paper, but not really fully digested it.
<chris2>
ok
<judofyr>
chris2: do you know it? I just briefly looked at it and saw the cases-concept. seems very nifty.
<chris2>
yes
<chris2>
just the paper
<chris2>
pondering to implement a typechecker for it
<judofyr>
chris2: I don't really get all the type math/proofs though :P
<judofyr>
chris2: I should probably start reading "Types and Programming"
<chris2>
the semantics are not very detailed
<chris2>
i guess i'll port the ml implementation
<judofyr>
my language will be dynamically typed though. but I will still probably add a type interferer to be able to optimize stuff
<chris2>
need to implement and grok algorithm w first, tho
<judofyr>
and I'll also add something akin to pattern matching
<chris2>
i need to figure if mlpolyr is good enough for general programming
<judofyr>
I have a weird mix of features though. I have both prototype- and class-based OOP with inheritance, but it's all really just sugar on top of the extensible records
<lupine>
hmm, ruby-tftp is a mess
shtirlic has joined #ruby-lang
jimmyy has joined #ruby-lang
r0bby_ has joined #ruby-lang
shtirlic_ has joined #ruby-lang
r0bby_ is now known as robbyoconnor
dwu1 has joined #ruby-lang
shtirlic has quit [Read error: Connection reset by peer]
r0bby has quit [Ping timeout: 248 seconds]
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
sulo has quit [Read error: No route to host]
Sinestro has joined #ruby-lang
m3nd3s has joined #ruby-lang
emocakes has joined #ruby-lang
madish has joined #ruby-lang
rue has joined #ruby-lang
pythonsnake has quit [Read error: Operation timed out]
sspiff has quit [Read error: Operation timed out]
andrewvos has quit [Read error: Operation timed out]
vbatts has quit [Read error: Operation timed out]
tonni_ has joined #ruby-lang
vbatts has joined #ruby-lang
andrewvos has joined #ruby-lang
ozzloy has quit [Read error: Operation timed out]
LanceHaig has quit [Read error: Operation timed out]
LanceHaig has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
sspiff has joined #ruby-lang
sspiff has quit [Changing host]
sspiff has joined #ruby-lang
ozzloy has joined #ruby-lang
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
pythonsnake has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
karasawa has joined #ruby-lang
rue has quit [Ping timeout: 260 seconds]
waffleau has quit [Quit: waffleau]
nkr has joined #ruby-lang
rue|w has quit [Ping timeout: 255 seconds]
rue|w has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
RWN has joined #ruby-lang
Sinestro has quit [Quit: Computer has gone to sleep.]
gaveen has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby-lang
leopard_me has joined #ruby-lang
Rarrikins_s has quit [Ping timeout: 264 seconds]
RWN has quit [Ping timeout: 276 seconds]
Rarrikins has joined #ruby-lang
ronaldo__ has joined #ruby-lang
burgestrand has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
Rarrikins has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
ronaldo__ has left #ruby-lang [#ruby-lang]
madish_ has joined #ruby-lang
retro|cz has joined #ruby-lang
esad has joined #ruby-lang
madish has quit [Ping timeout: 248 seconds]
gaveen has joined #ruby-lang
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
postmodern has quit [Quit: Leaving]
madish has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
carloslopes has joined #ruby-lang
madish_ has quit [Ping timeout: 276 seconds]
madish_ has joined #ruby-lang
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
madish has quit [Ping timeout: 255 seconds]
madish_ has quit [Remote host closed the connection]
glebm has quit [Ping timeout: 246 seconds]
madish has joined #ruby-lang
cjs226 has quit []
sn0wb1rd has quit [Quit: I will be right back]
sulo has joined #ruby-lang
glebm has joined #ruby-lang
sulo has quit [Read error: No route to host]
Nisstyre-laptop has quit [Quit: Leaving]
sulo has joined #ruby-lang
sulo_ has joined #ruby-lang
michi|work has joined #ruby-lang
<Silex>
is using the "Money" gem a good idae compared to plain BigDecimal?
dustint_ has quit [Remote host closed the connection]
dustint has quit [Remote host closed the connection]
sulo has quit [Ping timeout: 256 seconds]
<yorickpeterse>
that's like asking if it's a better idea to use a plane or a unicycle
<yorickpeterse>
They both have completely different use cases
<injekt>
always a plane
<judofyr>
Silex: just use integers?
<injekt>
you can ride your unicycle around the plane
dhruvasagar has quit [Ping timeout: 246 seconds]
<yorickpeterse>
injekt: false, it can't go in the hand luggage
<yorickpeterse>
At least I don't think it can
<Silex>
my issue is that "5320.to_money * 9.73/100" yields 517.63 instead of 517.64
<injekt>
hey man i said nothing about hand luggage and you said nothing about this being a domestic flight
<yorickpeterse>
injekt: Fuck you, now I'm tempted to bring one the next time I fly
<injekt>
yorickpeterse: :D
<Silex>
it's in a rails app... if I'd switch to decimal datatype I wouldn't have that problem
<Silex>
maybe I'd convert to money only once the value has been calculated
<Silex>
but for value manipulation, I'd use BigDecimal instead?
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<judofyr>
Silex: just always use the smallest unit (e.g. cents) and then you can use plain integers instead?
justinram has quit [Remote host closed the connection]
<yorickpeterse>
^
<Silex>
judofyr: ah wait, this gave me an idea
rue|w has quit [Read error: Connection reset by peer]
<yorickpeterse>
Storing dollars/euros/etc isn't a good idea in general
<yorickpeterse>
Stick to cents, save yourself trobule
<yorickpeterse>
* trouble
rue|w has joined #ruby-lang
<Silex>
this is what I'm doing, this is what the Money gem is supposed to do
<judofyr>
Silex: so why are you * 9.73/100 ?
<Silex>
ah fuck it I can't multiply Money objects together
rue|w has quit [Read error: Connection reset by peer]
<Silex>
judofyr: right now I'm trying 5320.to_money * 9.73.to_money/100.to_money
rue|w has joined #ruby-lang
<judofyr>
USD²?
<judofyr>
:D
<Silex>
anyway, what you're advicing is 532000 * 973 / 10000 ?
<judofyr>
Silex: yeah
<Silex>
what good is the money gem is if I have to do such operations manually?
<Silex>
why is it ROUNDING_HALF_EVEN by default tho. ROUND_HALF_UP makes more sense to me
karasawa has quit [Remote host closed the connection]
karasawa has joined #ruby-lang
<Silex>
ah apparently it's what is used in banks
<judofyr>
Silex: yeah, Thus, for example, +23.5 becomes +24, as does +24.5; while −23.5 becomes −24, as does −24.5.
<Silex>
wait. It still doens't work actually... 517.636 should be 517.64
<Silex>
if I do (517.636).to_money I get the right number (.64), but when I do (5320.to_money * 973) / 10000
<Silex>
I get 517.63
<Silex>
do you understand my problem? sorry if I'm unclear and thanks for the help so far
<judofyr>
I do understand and no: I'm sorry I can't help you :/
<Silex>
what do you reckon I'd do?
<Silex>
I'm basically doing a tax application, I'll need to compute percentages on some values, and then sum those values together etc
<lianj>
tried using all money objects for the calc?
<Silex>
lianj: you can't multiply two money objects together
<Silex>
ArgumentError etc
<badeball>
Silex: you can always implement the #*-method.
flexd has quit [Quit: WeeChat 0.3.6]
<Silex>
anyway, even using plain values in cents has this problem too: (532000 * 973) / 10000
<Silex>
this yields 51763
flexd has joined #ruby-lang
<Silex>
badeball: hum, what's that? :)
<badeball>
if you imeplement a method named * in your money object, you will be able to multiply to money objects together, using your own money logic.
<Silex>
you mean monkey patching, well I guess if the guys doing the Money gem thoguht it was a bad idea there's probably a reason
<badeball>
it's not monkey patching if it's your object.
MaddinXx_ has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
<lianj>
Silex: why is .64 the 'right' number, if you are a back you lose money with it
dc5ala has quit [Quit: Ex-Chat]
<Silex>
lianj: 0.636.to_money yields 0.64 itself, anyway I just found something very interesting:
<badeball>
judofyr: not entirely. the process of moving the code over til Rails is rather large, so at the momement, some parts are on Rails and the other part is on PHP and Zend.
<badeball>
(and it's a small nightmare, I assure you)
<judofyr>
badeball: heh. ah, the pleasures of crappy PHP
<badeball>
judofyr: oh yes, our legacy system of doom
* imperator
looks up how many followers he has on github
<judofyr>
badeball: don't worry. they exist everywhere :)
<judofyr>
heh, I just read that as "36 factorial"…
<imperator>
judofyr, nope, djberg96
<judofyr>
imperator: 96 as in 1996?
<imperator>
yep, when i first got on the intertubes, back in the bad old aol days
rue|w has quit [Ping timeout: 246 seconds]
<judofyr>
imperator: ooooo. I thought you were born in 1996…
<judofyr>
(first)
<imperator>
fucking a dude
<imperator>
how long have i been on irc here?
<judofyr>
longer than me
<judofyr>
so that should be a hint
rue|w has joined #ruby-lang
<imperator>
"I first discovered ruby when I was 8 years old..."
<judofyr>
imperator: I didn't really think that though. it was more like "woah, can he really have been born in '96?"
<imperator>
:-P
tonni_ has quit [Remote host closed the connection]
dustint has joined #ruby-lang
waffleau has joined #ruby-lang
<judofyr>
badeball: many Railers at NTNU?
<judofyr>
badeball: do you have Ruby/Rails meetups?
vlad_starkov has joined #ruby-lang
rue has joined #ruby-lang
<badeball>
judofyr: to my knowledge, there's no rails community here
<badeball>
unfortunately
<judofyr>
:(
<judofyr>
badeball: I guess Python is pretty strong?
solars has joined #ruby-lang
GarethAdams has joined #ruby-lang
<badeball>
i wouldn't really know, as I don't engage anything python, but there's generally a real lack of groups altogether at NTNU
<badeball>
there's PVV, which is a couple of really hardcore people and a bunch of groupies, the latter which is why I don't bother
<judofyr>
badeball: :(
GarethAdams has quit [Client Quit]
<badeball>
outside of school however, there's a couple of strong communities, especially at Samfundet
MaddinXx has joined #ruby-lang
<badeball>
many companies tend to recruit from them
RWN has joined #ruby-lang
<badeball>
judofyr: are you in the business of having to chose an university?
<judofyr>
badeball: I think so :)
<judofyr>
badeball: but it's very tempting to just stay in Oslo
RWN has quit [Remote host closed the connection]
<badeball>
judofyr: it was for me too, but I guarantee you that while you're probably going to have a good time at UiO, you're going to have an even greater time at NTNU
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<judofyr>
badeball: :)
_Sketch_ has quit [Read error: Connection reset by peer]
_Sketch_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
r0bby has joined #ruby-lang
chekcmate has joined #ruby-lang
<chekcmate>
hello
robbyoconnor has quit [Ping timeout: 256 seconds]
kurko__ has joined #ruby-lang
r0bby is now known as robbyoconnor
<judofyr>
hey chekcmate
vlad_starkov has quit [Ping timeout: 252 seconds]
jtoy has joined #ruby-lang
scampbell has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
scampbell has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<chekcmate>
judofyr: can I ask you something with regex?
<andrewvos>
chekcmate: /yes\ you\ may\./
<judofyr>
chekcmate: sure
<judofyr>
chekcmate: and remember: it's always better to just ask than to ask to ask ;)
<judofyr>
(at least on IRC)
<chekcmate>
I get multiple lines from /proc/PID/maps - one of them looks like this:
tonni has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
soypirate has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
apeiros_ has joined #ruby-lang
cored has joined #ruby-lang
carloslopes has joined #ruby-lang
stevechiagozie has joined #ruby-lang
kain has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
jtoy has quit [Quit: jtoy]
apeiros_ has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 256 seconds]
ioga_wrk has quit [Ping timeout: 248 seconds]
carloslopes has joined #ruby-lang
blahwoop has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
enebo has joined #ruby-lang
apeiros_ has joined #ruby-lang
xcombelle has joined #ruby-lang
headius has joined #ruby-lang
bantic has joined #ruby-lang
krz has quit [Quit: krz]
jtoy has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
jtoy_ has joined #ruby-lang
setmeaway has joined #ruby-lang
setmeaway has quit [Read error: Connection reset by peer]
leopard_me has joined #ruby-lang
jtoy has quit [Ping timeout: 252 seconds]
jtoy_ is now known as jtoy
burgestrand has quit [Quit: Leaving.]
Uranio has joined #ruby-lang
tonni has joined #ruby-lang
andrewhl has joined #ruby-lang
retro|cz has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
vlad_starkov has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
imperator has joined #ruby-lang
AndChat| has quit [Ping timeout: 272 seconds]
runeb has quit [Remote host closed the connection]
sailias has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
soypirate has quit [Quit: Leaving]
Banistergalaxy has joined #ruby-lang
soypirate has joined #ruby-lang
jtoy has quit [Quit: jtoy]
cirenyc has joined #ruby-lang
<cirenyc>
Debating multiple classes with SRP vs single class with private methods for what the multiple classes would cover.
<cirenyc>
Any input on whether one makes more sense over the other when the multiple classes would be classes with a single class method to perform the behavior?
vbatts has quit [Ping timeout: 240 seconds]
<lupine>
if the behaviour in the multiple classes is actually all private, why does it need to be in a separate class?
<lupine>
erm, that didn't make as much sense as I thought it would
<cirenyc>
lupine: I see what you're saying though.
<lupine>
:)
<cirenyc>
Since only the "main" class needs the behavior (at least for now), why separate it?
<lupine>
the only risk as it stands is entangling the behaviour inside the class, leading to others outside the class coming to depend on some aspect of it
<cirenyc>
My main motivation, admittedly, was making testing easier.
retro|cz has joined #ruby-lang
<cirenyc>
Yeah, as it stands, these blocks of behavior will all be accessed through the main class.
<lupine>
no need to test private methods :)
<lupine>
(in theory, anyway. unavoidable at times, of course)
<lupine>
you could get the best of both worlds by constructing a class in a builder that is a private method. you can then use the instance internally, nowhere else will be able to get it, and you can __send__ the private method to get an instance for testing purposes
<lupine>
def build_my_class ; a = Class.new(Object) do ... end ; end
io_syl has quit [Quit: Computer has gone to sleep.]
<lupine>
but I'd probably avoid that myself
<cirenyc>
good to keep in mind for the future, though
Nisstyre-laptop has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
Future[Chimp] has quit [Ping timeout: 252 seconds]
mytrile has quit [Remote host closed the connection]
<cirenyc>
lupine: thanks
mercwithamouth has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
soypirate has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 276 seconds]
karasawa has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
Fretta has joined #ruby-lang
justinram has joined #ruby-lang
zhul_mechanos has quit [Ping timeout: 248 seconds]
robotmay has quit [Remote host closed the connection]
jimmyy has quit [Remote host closed the connection]
jimmyy has joined #ruby-lang
<Spaceghost|cloud>
owen1: Doing a non-chunked request?
gnufied1 has quit [Quit: Leaving.]
maxmanders has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby-lang
benanne has quit [Quit: kbai]
kurko__ is now known as kurko_
io_syl has joined #ruby-lang
rippa has joined #ruby-lang
glebm has joined #ruby-lang
breakingthings has quit []
runeb has joined #ruby-lang
stevechiagozie has quit [Quit: Computer has gone to sleep.]
Nisstyre has joined #ruby-lang
mrsolo has joined #ruby-lang
runeb has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
stevechiagozie has joined #ruby-lang
__BigO__ has joined #ruby-lang
<owen1>
Spaceghost|cloud: interesting. chunked request is a way to send parts of the request and not wait until all the data is done, right? what servers/gems do i need?
rippa has quit [Read error: Connection reset by peer]
rippa has joined #ruby-lang
<owen1>
cat u do chunked requests in rails or is it easier in sinatra
<drbrain>
require speed may be a separate issue that must be solved in ruby itself, but lately I haven't seen evidence that loading gemspecs causes exponential slowdown
<epitron>
well, it used to read every single spec the first time you tried to require something
<postmodern>
resolving dependencies does though
<epitron>
and it used to tree-fondle every single spec it tried to load
<epitron>
ahh
<drbrain>
AFAIK rubygems doesn't have code that would cause all those stats
<epitron>
no, that's just ruby
agile has joined #ruby-lang
<epitron>
tree-grope sounds less creepy :)
Bearproof has left #ruby-lang [#ruby-lang]
<epitron>
i'm going with that
srbaker has quit [Ping timeout: 252 seconds]
mistym_ has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
mistym_ has left #ruby-lang [#ruby-lang]
jonahR has quit [Quit: jonahR]
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
<drbrain>
you could just go with tree-walk
<epitron>
i do want it to sound slightly pejorative :)
<epitron>
maybe it has to lstat for symlinks?
<epitron>
sorry, i'll come back when i've done more research