apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
hotpancakes has joined #ruby-lang
CoreData has quit [Ping timeout: 272 seconds]
<Barrin6>
i'm back
<Barrin6>
taking a break from projecteuler to go back to "learning ruby the hard way"
lupine has quit [Ping timeout: 245 seconds]
arooni-mobile__ has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Ping timeout: 248 seconds]
lukeroberts___ has joined #ruby-lang
lukeroberts___ has quit [Remote host closed the connection]
lukeroberts___ has joined #ruby-lang
lukeroberts___ has quit [Remote host closed the connection]
shinnya has quit [Read error: Operation timed out]
shinnya has joined #ruby-lang
lukeroberts__ has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
kek has joined #ruby-lang
tkuchiki has joined #ruby-lang
vlad_starkov has joined #ruby-lang
hhatch has quit [Ping timeout: 268 seconds]
lukeroberts_ has quit [Remote host closed the connection]
lukeroberts_ has joined #ruby-lang
vndr has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
vndr has quit [Quit: Leaving]
vndr has joined #ruby-lang
hotpanca_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
hotpancakes has quit [Ping timeout: 272 seconds]
hotpanca_ has quit [Ping timeout: 246 seconds]
lfox has joined #ruby-lang
lukeroberts_ has quit [Remote host closed the connection]
lukeroberts_ has joined #ruby-lang
flip_digits has quit [Remote host closed the connection]
<darix>
Barrin6: install pry
flip_digits has joined #ruby-lang
flip_dig_ has joined #ruby-lang
flip_digits has quit [Ping timeout: 245 seconds]
lupine has joined #ruby-lang
vndr_ has joined #ruby-lang
vndr_ has quit [Remote host closed the connection]
vndr has quit [Remote host closed the connection]
rikai_ has joined #ruby-lang
cnivolle_ has joined #ruby-lang
kek_ has joined #ruby-lang
lsegal` has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 245 seconds]
stamina has quit [Read error: Operation timed out]
TheMoonMaster has joined #ruby-lang
jiuweigui has quit [Quit: iQuit!]
austinja has joined #ruby-lang
retro|cz has joined #ruby-lang
hashkey has quit [Quit: Leaving]
cnivolle_ has quit [Remote host closed the connection]
arooni-mobile__ has quit [Ping timeout: 245 seconds]
<darix>
Barrin6: the best thing is ... if you get stuck in a script
<darix>
require 'pry'
<darix>
binding.pry at the place where you want to debug
<darix>
and you get a shell right in that spot
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
hotpancakes has joined #ruby-lang
thepumpkin has quit [Ping timeout: 245 seconds]
hotpancakes has quit [Ping timeout: 245 seconds]
datanoise has joined #ruby-lang
bastilian has joined #ruby-lang
julweber_ has joined #ruby-lang
julweber has quit [Ping timeout: 268 seconds]
r0bgleeson has quit [Ping timeout: 252 seconds]
coffeejunk has joined #ruby-lang
stardiviner has quit [Ping timeout: 248 seconds]
jackhammer2022 has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
Coincidental has quit [Ping timeout: 272 seconds]
zz_michael_mbp has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby-lang
PacketMonkey has left #ruby-lang [#ruby-lang]
Kabaka has quit [Ping timeout: 240 seconds]
kek_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
hotpancakes has quit [Ping timeout: 245 seconds]
stardiviner has joined #ruby-lang
flip_digits has joined #ruby-lang
bastilian has quit [Ping timeout: 245 seconds]
julweber_ has quit [Remote host closed the connection]
julweber has joined #ruby-lang
julweber has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
kek has quit [Ping timeout: 268 seconds]
Coincidental has joined #ruby-lang
retro|cz has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 245 seconds]
hotpancakes has joined #ruby-lang
bfleischer has joined #ruby-lang
julweber has joined #ruby-lang
yfeldblum has joined #ruby-lang
postmodern has joined #ruby-lang
thepumpkin has joined #ruby-lang
julweber has quit [Ping timeout: 248 seconds]
thepumpkin has quit [Ping timeout: 268 seconds]
ryez has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
Coincidental has quit [Ping timeout: 252 seconds]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
diegoviola has joined #ruby-lang
bzalasky has quit [Ping timeout: 272 seconds]
bzalasky has joined #ruby-lang
kek has joined #ruby-lang
bzalasky has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 260 seconds]
flip_digits has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
<Andrevan>
it's a debugger, btw, is the answer
<Andrevan>
and the 'debugger' gem does the same thing
mdedetrich has joined #ruby-lang
<Andrevan>
or 'jazz_hands' for pry and a bundle with other stuff
<Barrin6>
I'm relaly new at this
<Barrin6>
so I'm not sure what that means
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
MrPoT4tO has joined #ruby-lang
amerine has joined #ruby-lang
nisstyre has quit [Quit: Leaving]
bzalasky has quit [Ping timeout: 272 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
<Senjai>
hi Barrin6
<Barrin6>
hello senjai
<Barrin6>
What you studying at UBC?
<Senjai>
Barrin6: You pinged me yesterday but you logged off before I could respond
<Senjai>
Barrin6: Was studying commerce
<Senjai>
Barrin6: Are you at UBC?
<Barrin6>
negative
<Barrin6>
I just was stalking your profile
<Senjai>
:P
<Barrin6>
did you graduate already?
<Barrin6>
or are you implying you changed majors
<Senjai>
Nope, dropped out. I was already in the mining finance industry, so I didnt see much of a point of continuing. Now I'm in the software industry :P Starting my new job on the 4th at a rails shop
<Barrin6>
nicee!
<Barrin6>
I wish I dropped out of school :\
<Senjai>
Barrin6: I wish I hadn't
<Senjai>
Barrin6: Where do you study?
<Barrin6>
How'd you get your break into the software industry?
<Barrin6>
I studied Criminology,law and societ at the university of california-Irvine
<Barrin6>
society*
<Senjai>
Barrin6: Contributed to a few open source projects, one of the members of the project owned a firm nearby and hired me
<Barrin6>
nice!
<Barrin6>
so you learned everything yourself?
<Senjai>
Barrin6: yep
<Barrin6>
that's good
<Barrin6>
I originally wanted to go to law school after graduation
<Barrin6>
but I ditched that idea
<Barrin6>
now I'm just working in helpdesk
<Senjai>
Heh, everyone has a different path
<Barrin6>
yea
<Barrin6>
oh wells
<Barrin6>
when you'd you first started learning to code?
<Senjai>
When I was 14, I'm 23 now
<Senjai>
I got distracted by business :(
<Senjai>
didn't start seriously until like, feb
mdedetrich has quit [Quit: Computer has gone to sleep.]
<Barrin6>
your coderbits looks pretty impressive
<Barrin6>
for starting only since feb
<Senjai>
Barrin6: I quit my job to learn :p
<Barrin6>
chasing the dream!
mistym has joined #ruby-lang
<Senjai>
Barrin6: I think I have a receipt on amazon for like, $500 for a single order of books :P. And I'm still not very good
<Barrin6>
looks like you went through a lot of online tutorials
<Barrin6>
did you do that before ordering books?
<Senjai>
Barrin6: I went through teamtreehouse and codecademy to find out what I wanted to focus on, after that I went the book route
<Senjai>
Barrin6: Mostly just get design books and math books now. A lot of the "how does x do y" i find out with source diving.
<Barrin6>
oh smart idea
<Senjai>
Came down to ruby and python, I chose the former :P
<Senjai>
I had past experience with C, C++ and C# though.. when i was younger
<Barrin6>
that's crazy
<Barrin6>
chasing the dream!
<Senjai>
I think you'll find a lot of people go the same route on IRC
Coincidental has joined #ruby-lang
<Barrin6>
that's good
<Barrin6>
I need to see other people like you to be motivated
mdedetrich has joined #ruby-lang
<Senjai>
Barrin6: I think its just getting fed up doing the shitty stuff enough :P
<Barrin6>
dang already 10pm here
<Barrin6>
going to try and grind codeacademy again
<Senjai>
I'm still active on there, worth every penny :P
<Barrin6>
you recommend gold or silver?
<Senjai>
Barrin6: silver
<Senjai>
Barrin6: IMO, because you can upgrade/downgrade every motnh, I do silver till I've finished all the silver content I'm interested in. Every now and then I'll get a gold month for some extra goodies
<Barrin6>
ah good idea
<Barrin6>
thanks
<Senjai>
Barrin6: though if you subscribe with that link, I'll have 5 referrals and my account will be free ;) So it wouldnt matter :P
benanne has quit [Remote host closed the connection]
bastilian has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 272 seconds]
lfox has quit [Quit: ZZZzzz…]
stamina has joined #ruby-lang
solars has joined #ruby-lang
kek has joined #ruby-lang
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
kek has quit [Ping timeout: 272 seconds]
hhatch has joined #ruby-lang
bastilian has joined #ruby-lang
arturro has quit [Remote host closed the connection]
arturro has joined #ruby-lang
mistym has joined #ruby-lang
arturro has quit [Ping timeout: 272 seconds]
kek has joined #ruby-lang
arturro has joined #ruby-lang
datanoise has joined #ruby-lang
mbj has joined #ruby-lang
benjamins_log_bo has quit [Remote host closed the connection]
elia has joined #ruby-lang
CaptainJet has quit []
kurko_ has joined #ruby-lang
CaptainJet has joined #ruby-lang
adambeynon has joined #ruby-lang
ecnalyr has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
hotpancakes has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
KM|3 has joined #ruby-lang
KM|2 has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 252 seconds]
rickhull has joined #ruby-lang
stonerfish has joined #ruby-lang
hotpancakes has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
vlad_starkov has joined #ruby-lang
adurity has joined #ruby-lang
vlad_sta_ has quit [Ping timeout: 252 seconds]
Coincidental has joined #ruby-lang
arturro has quit []
arturro has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
adurity has quit [Remote host closed the connection]
bastilian has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bastilian has joined #ruby-lang
imperator has quit [Quit: Valete!]
vlad_starkov has quit [Read error: Connection reset by peer]
thepumpkin has joined #ruby-lang
Barrin6 has joined #ruby-lang
thepumpkin has quit [Ping timeout: 245 seconds]
DEac-_ has quit [Ping timeout: 272 seconds]
mbj has quit [Ping timeout: 268 seconds]
<Barrin6>
sup gang
Mon_Ouie has quit [Ping timeout: 245 seconds]
Coincidental has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
nvg has joined #ruby-lang
DEac- has joined #ruby-lang
Coincidental has joined #ruby-lang
earthquake has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
Coincidental has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
dc5ala has quit [Quit: Ex-Chat]
benanne has joined #ruby-lang
dr_bob has joined #ruby-lang
jvrmaia has joined #ruby-lang
Coincidental has joined #ruby-lang
jvrmaia has quit [Client Quit]
Tearan has joined #ruby-lang
arBmind has joined #ruby-lang
solars has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
MartynKeigher has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
arooni-mobile__ has quit [Ping timeout: 272 seconds]
arooni-mobile has quit [Ping timeout: 272 seconds]
rickhull has quit [Quit: Leaving.]
<[spoiler]>
hey Barrin6
<Barrin6>
what's up
MartynKeigher has joined #ruby-lang
<Barrin6>
i'm going to finish all of treehouse's html tutorials today
<Barrin6>
html and css
<Barrin6>
each day I'll finish each track
<Barrin6>
until I"m done and cancelled
<[spoiler]>
Oh, nothing, I'm just messing with Go
<[spoiler]>
Oh, are you doing the tutorials, or are you making them?
meise has quit [Quit: leaving]
Coincidental has quit [Remote host closed the connection]
<Barrin6>
doing the tutorials
Coincidental has joined #ruby-lang
<[spoiler]>
do you get a certificate or something at the end, or are you just doing it for fun?
<Barrin6>
fo rfun
<Barrin6>
I don't know of websites taht give you certificates
<Barrin6>
and if they do, I don't think employers give much weight to them
<[spoiler]>
yeah, I don't think so either
Coincidental has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
bf4 has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 245 seconds]
bf4 has quit [Ping timeout: 272 seconds]
hotpancakes has quit [Ping timeout: 272 seconds]
bf4 has joined #ruby-lang
meise has joined #ruby-lang
jiuweigui has quit [Quit: iQuit!]
tbuehlmann has quit [Remote host closed the connection]
bf4 has quit [Ping timeout: 268 seconds]
julweber has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
arturro has quit []
saarinen has joined #ruby-lang
arooni-mobile has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
saarinen has quit [Client Quit]
ecnalyr has joined #ruby-lang
dr_bob1 has joined #ruby-lang
havenwood has joined #ruby-lang
dr_bob has quit [Ping timeout: 265 seconds]
Coincidental has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
flip_digits has quit [Remote host closed the connection]
flip_digits has joined #ruby-lang
Jeticus has joined #ruby-lang
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
Jeticus has joined #ruby-lang
CaptainJet has quit [Ping timeout: 265 seconds]
khaase has quit [Ping timeout: 252 seconds]
duckinator has joined #ruby-lang
Elico has quit [Ping timeout: 252 seconds]
Coincidental has quit [Remote host closed the connection]
dr_bob1 has left #ruby-lang [#ruby-lang]
Coincidental has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
Elico has joined #ruby-lang
khaase has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 265 seconds]
thepumpkin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
pkrnj has joined #ruby-lang
racketeer has joined #ruby-lang
racketeer has quit [Excess Flood]
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby-lang
nvg has quit [Ping timeout: 265 seconds]
nvg has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
hotpancakes has joined #ruby-lang
<zenspider>
rawr
hotpancakes has quit [Ping timeout: 240 seconds]
<Barrin6>
i really hate html css
<r0bgleeson>
why?
<r0bgleeson>
i like the selector language
<Barrin6>
I just don't enjoy it as much as I do with ruby
<r0bgleeson>
you wouldn't use them for the same things
jeer_ has quit [Ping timeout: 272 seconds]
hotpancakes has joined #ruby-lang
<Barrin6>
yea I guess
nathanstitt has quit [Ping timeout: 272 seconds]
<apeiros>
r0bgleeson: you've never written an irc bot in CSS?
nofxx has quit [Quit: Leaving.]
<apeiros>
I are disappoint :)
jeer_ has joined #ruby-lang
nathanstitt has joined #ruby-lang
<r0bgleeson>
apeiros: hah no i have not :)
<[spoiler]>
apeiros, r0bgleeson yeah! CSS has great async networking features
<r0bgleeson>
Barrin6: they're different disciplines, right now you're probably focused on only ruby but it's not good to be so focused on one thing, you should try appreciate the whole environment
<[spoiler]>
its I/O is superb
hotpancakes has quit [Ping timeout: 252 seconds]
<r0bgleeson>
[spoiler]: its not helpful to say things like that
<r0bgleeson>
it wont help him understand anything
spike|spiegel has quit [Ping timeout: 272 seconds]
<[spoiler]>
r0bgleeson, Sorry for trying to be funny :(
<Barrin6>
yea true
<r0bgleeson>
[spoiler]: it's not funny when the joke is on you
<apeiros>
[spoiler]: yeah, stop being funny. we're all totally serious all the time here!
* [spoiler]
pouts
spike|spiegel has joined #ruby-lang
datanoise has quit [Ping timeout: 246 seconds]
mdedetrich has joined #ruby-lang
hotpancakes has joined #ruby-lang
ecnalyr has joined #ruby-lang
Forgetful_Lion has quit [Read error: Connection reset by peer]
arooni-mobile has quit [Ping timeout: 248 seconds]
arooni-mobile__ has quit [Ping timeout: 272 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
benanne has quit [Quit: kbai]
datanoise has joined #ruby-lang
coreping has joined #ruby-lang
elia has quit [Ping timeout: 245 seconds]
nisstyre has joined #ruby-lang
datanoise has quit [Ping timeout: 260 seconds]
elia has joined #ruby-lang
kurko_ has joined #ruby-lang
<Senjai>
So question, how should I effecitvely test classes that use TCPSockets? I mean, I don't want to test TCPSockets so I'm only testing the messages it receives (e.g. call to new, or to write). Whats the most effecitve way to test them?
<Senjai>
Should I mock the TCPClass? create a TCPServer in a before block and destroy it after the test?
<Senjai>
Or should I double the TCPClass with like a.. stringio object or something
arBmind has quit [Quit: Leaving.]
duphus has joined #ruby-lang
ecnalyr has joined #ruby-lang
havenwood has joined #ruby-lang
toretore has quit [Quit: Leaving]
<r0bgleeson>
Senjai: interesting, a double sounds interesting
<r0bgleeson>
im not sure
<r0bgleeson>
a test run could could emulate the server the socket talks to as well
ecnalyr has quit [Ping timeout: 245 seconds]
<r0bgleeson>
there's a lot of different approaches, I'd guess whichever one you feel most comfortable with.
<r0bgleeson>
StringIO does interesting to me if it works
<Senjai>
r0bgleeson: Some suggested that I don't try and unit test it, because its aself contained class that sits at the end of my application
<Senjai>
r0bgleeson: e.g. its mostly just a wrapper for a TCPSocket
<Senjai>
so they suggested I just integration test it with a real TCPServer
<Senjai>
instead of trying to stp everything
<r0bgleeson>
yeah im not sure what the class does but being able to write to any IO object and abstract the creation of the IO thing(like TCPSocket) sounds valuable
<r0bgleeson>
you can test in different parts, like the class can be tested for its write/read
<r0bgleeson>
you can integrate test at another level
<[spoiler]>
Ngl, an integration test sounds better for this than an unit test. Well, it's what you want tested in the end, anyway
<Senjai>
because I'm not entirely sure how I should go about it
<Senjai>
Then later I have to make a fake version of that class to test other things.
<r0bgleeson>
Senjai: the only thing bound to the concept of a socket is #initialize
<Senjai>
the whole testing of network stuff i;m horrible at
<r0bgleeson>
the other methods read/write to an IO thing
<r0bgleeson>
so i'd suggest abstracting that out of initialize
<r0bgleeson>
you can test the instance methods as reading/writing to IO, you can build a class method that handles creating the socket & passing it to #initialize
sepp2k1 has joined #ruby-lang
kitak has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
<Senjai>
r0bgleeson: Like, create a connect method?
<Senjai>
r0bgleeson: brb, I have to run to a friends place, I'll reconnect there
<r0bgleeson>
whatever you want to call, it should be a class method that calls new() with an instance of TCPSocket but #initialize takes any IO
<r0bgleeson>
ok
<r0bgleeson>
dont know if i will be here or not, i dont always pay attention to IRC but ill check back in
<[spoiler]>
night!
[spoiler] has quit [Quit: Leaving]
Senjai has quit [Ping timeout: 240 seconds]
nvg has quit [Quit: Leaving]
Coincidental has joined #ruby-lang
MrZYX is now known as MrZYX|off
datanoise has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Quit: VTLob]
Nilium has quit [Ping timeout: 272 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
Senjai has joined #ruby-lang
Nilium has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]