PaulCapestany has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
h1fuelcell has joined #ruby
jhass has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
lightstalker has joined #ruby
rakm has joined #ruby
username_ has quit [Ping timeout: 264 seconds]
perniciouscaffei has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
koldbrutality has joined #ruby
<koldbrutality>
how do i get the backtrace for [Error] undefined method `data' for nil:NilClass or the location of what caused it?
<Zarthus>
don't try-catch it?
<manveru>
>> begin; hey; rescue => ex; p ex, ex.backtrace; end
<ruby[bot]>
manveru: # => #<NameError: undefined local variable or method `hey' for main:Object> ...check link for more (https://eval.in/703741)
djbkd2 has quit [Quit: node-irc says goodbye]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ruby
enyo_ has joined #ruby
gusrub has quit []
skweek has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
shakes has joined #ruby
enilsen16 has joined #ruby
enyo_ has quit [Ping timeout: 260 seconds]
jhass has joined #ruby
jenrzzz has joined #ruby
PaulCapestany has joined #ruby
ruid_ has quit [Ping timeout: 250 seconds]
PaulCape_ has quit [Read error: Connection reset by peer]
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
newbie1 has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 252 seconds]
PaulCape_ has joined #ruby
PaulCapestany has quit [Ping timeout: 258 seconds]
shakes has quit [Quit: Leaving]
nchambers is now known as Rudolph
tubuliferous has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
tubuliferous has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
johnny56_ has quit [Remote host closed the connection]
sneakerhax has quit [Quit: Back later]
PaulCapestany has joined #ruby
Limix has quit [Quit: Limix]
sneakerhax has joined #ruby
PaulCape_ has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
Xiti has quit [Quit: Xiti]
nankyokusei has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
marxarelli is now known as marxarelli|afk
nofxx has joined #ruby
_whitelogger has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
Devalo has joined #ruby
rakm has joined #ruby
rakm has quit [Client Quit]
rakm has joined #ruby
rakm has quit [Client Quit]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enilsen16 has quit [Quit: enilsen16]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
d^sh has quit [Ping timeout: 268 seconds]
Devalo has quit [Ping timeout: 246 seconds]
d^sh has joined #ruby
johnny56_ has joined #ruby
bronson has joined #ruby
testuser1 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 246 seconds]
raul782 has joined #ruby
johnzorn has joined #ruby
brent__ has joined #ruby
raul782 has quit [Ping timeout: 248 seconds]
skweek has quit [Ping timeout: 256 seconds]
meshsmith has joined #ruby
charliesome has joined #ruby
harai_ has quit [Ping timeout: 258 seconds]
spenser has quit [Ping timeout: 246 seconds]
edwinvdgraaf has joined #ruby
optiz0r has quit [Ping timeout: 250 seconds]
rwb has joined #ruby
libastral has quit [Ping timeout: 260 seconds]
libastral has joined #ruby
spenser has joined #ruby
johnzorn has quit [Ping timeout: 250 seconds]
johnzorn has joined #ruby
enyo has joined #ruby
dtzu has joined #ruby
mim1k|wo1k has joined #ruby
mim1k|work has quit [Ping timeout: 245 seconds]
hanmac has quit [Ping timeout: 258 seconds]
enyo has quit [Ping timeout: 248 seconds]
tubuliferous has joined #ruby
spenser has quit [Ping timeout: 260 seconds]
rwb has quit [Quit: rwb]
machinewar has joined #ruby
machinewar has quit [Client Quit]
tubuliferous has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
marchelzo has quit [Ping timeout: 264 seconds]
Atr3Yu has joined #ruby
h1fuelcell has quit []
edwinvdgraaf has quit [Ping timeout: 248 seconds]
hanmac has joined #ruby
polysics has joined #ruby
spenser has joined #ruby
bronson has joined #ruby
polysics has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 250 seconds]
tubuliferous has quit [Ping timeout: 264 seconds]
meadmoon has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
optiz0r has joined #ruby
tubuliferous has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
tubuliferous has joined #ruby
nankyokusei has joined #ruby
braincrash has quit [Quit: bye bye]
agent_white has joined #ruby
agent_white has quit [Remote host closed the connection]
agent_white has joined #ruby
iaz has joined #ruby
nankyokusei has quit [Ping timeout: 250 seconds]
jz has joined #ruby
phroa has joined #ruby
jz is now known as Guest6600
kuSuSE has quit [Quit: Konversation terminated!]
tubuliferous has quit [Ping timeout: 246 seconds]
<phroa>
a friend picked up _why's guide and left a quarter of the way through because apparently it's written for an old version of ruby. what does everyone recommend nowadays? I used _why's as an intro and self-taught everything else I know, but I think a formal guide would be better for him :)
johnzorn has quit [Ping timeout: 248 seconds]
iaz has quit [Ping timeout: 260 seconds]
djbkd_ has joined #ruby
<phroa>
(beginner to barely intermediate at this point, I think)
harai_ has joined #ruby
triangles has joined #ruby
aremaref has joined #ruby
triangles has quit [Max SendQ exceeded]
triangles has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
Devalo has joined #ruby
edwinvdgraaf has joined #ruby
raul782 has joined #ruby
djbkd_ has quit [Ping timeout: 245 seconds]
Devalo has quit [Ping timeout: 246 seconds]
edwinvdgraaf has quit [Ping timeout: 258 seconds]
brianpWins has joined #ruby
braincrash has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Limix has joined #ruby
bronson has joined #ruby
aremaref has quit [Ping timeout: 258 seconds]
maxirater has joined #ruby
jaguarmagenta has joined #ruby
eizua has joined #ruby
meadmoon has quit [Quit: I am functioning within established parameters.]
bronson has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
raul782 has quit [Remote host closed the connection]
gix has quit [Ping timeout: 265 seconds]
dviola has joined #ruby
raul782 has joined #ruby
jaguarmagenta has quit [Ping timeout: 264 seconds]
testuser1 has quit [Quit: Leaving.]
gix has joined #ruby
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
jaguarmagenta has joined #ruby
perniciouscaffei has joined #ruby
testuser1 has joined #ruby
moei has quit [Read error: Connection reset by peer]
<scroy>
how can the code in an unless block have an effect when it's not being run?
maxirater has quit [Quit: Leaving]
triangles has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 265 seconds]
faces has quit [Ping timeout: 248 seconds]
perniciouscaffei has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
faces has joined #ruby
perniciouscaffei has joined #ruby
tofutoon has joined #ruby
harfangk has joined #ruby
<tofutoon>
When including a module in a class, is there an easy way to pass in a parameter? I have a module with 5 methods, and I want to pass an array that specifies which of the 5 methods to mixin.
skweek has joined #ruby
edwinvdgraaf has joined #ruby
djbkd_ has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
meshsmith has quit [Remote host closed the connection]
<herwin>
(the first hit of google for "ruby sqlite example")
<Phage>
Been there
<Phage>
But thanks :)
enyo has joined #ruby
kareelee_ has joined #ruby
bronson has joined #ruby
kareelee has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
enyo has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 260 seconds]
rykou has joined #ruby
kareelee_ has quit [Remote host closed the connection]
kareelee has joined #ruby
beilabs has quit [Ping timeout: 256 seconds]
tildes has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
bkxd has joined #ruby
bkxd has quit [Client Quit]
<zenspider>
Phage: what can't you make sense of?
d0lph1n98 has joined #ruby
<Phage>
zenspider: I've been working a decent amount with the Python equivalent of the SQLite3 module and it simply seems easier for me to understand how to structure the code.
<zenspider>
tofutoon: no
<Phage>
I have no problem with SQL, but only how to manage it through Ruby
<zenspider>
Phage: you have yet to describe a problem
brendan- has joined #ruby
pawnbox has quit [Remote host closed the connection]
Kestrel-029 has quit [Read error: Connection reset by peer]
<tofutoon>
zenspider: I did it using the modularity gem... but I may soon regret that.
<zenspider>
tofutoon: yes, you probably will
<tofutoon>
You want to give me odds on regretting it?
<zenspider>
Phage: you can see in the doco that you have db.execute... there's also a db.commit. so you aren't missing anything you have in your python code.
<zenspider>
again, you have yet to describe a problem
<zenspider>
your python code will probably port straight over
<zenspider>
I'm getting the distinct impression you haven't started... otherwise you'd have a gist of some ruby code and some sort of error
<apeiros>
python's "lets have a string literal as documentation in the method" still weirds me out
<blackbom1>
python is for snakes
pawnbox has joined #ruby
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<zenspider>
apeiros: I actually like it. means you can get to it via code reflection
<apeiros>
I'd prefer code reflection to include comment nodes
<Phage>
apeiros: I agree.
Devalo has quit [Remote host closed the connection]
<zenspider>
apeiros: as in actual "#" comments? they should be in the AST?
<Phage>
zenspider: I guess I'll give it another shot, thanks for listening.
<zenspider>
the whole point of comments is that they _aren't_ in the code
<apeiros>
in ruby? yes, # and =begin/=end
<apeiros>
I disagree
Nicmavr has joined #ruby
Devalo has joined #ruby
<apeiros>
the point of comments is that they're not executed
byte512 has joined #ruby
<zenspider>
but then we write horrible tools to try to extract and map those comments
Nicmavr is now known as Guest78954
<apeiros>
instead of the more horrible tools we have now? :)
nankyokusei has joined #ruby
<zenspider>
apeiros: I disagree... if false ... end is not executed... but there's still SYNTAX in the ... section
<zenspider>
a comment is NOT code
<apeiros>
I mean we already *do* that. see rdoc. see yard.
<zenspider>
apeiros: no, I'm complaining about the tools we have now
<apeiros>
correct. comment is not code.
<apeiros>
but a plain string literal is just dead code. so not really that much of a difference of having either in the AST.
<zenspider>
and if we could grab a stupid simple string literal via reflection, we wouldn't need 80% of the crap
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros>
yes. same if we had comments in the AST.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest78954 has quit [Read error: Connection reset by peer]
<zenspider>
it seems pretty clear to me that we're talking past each other.
d0lph1n98 has quit [Quit: leaving]
Devalo has quit [Ping timeout: 246 seconds]
<apeiros>
I think we both agree that parsing out comments (the way we do it now) for documentation is not optimal.
nankyokusei has quit [Ping timeout: 245 seconds]
<zenspider>
nope. it totally sucks
<apeiros>
I think we just differ on what would be a better solution. you'd like dead string literals and grab those out of the ast.
<apeiros>
I'd like comments in the ast and grab those out.
Fernando-Basso has joined #ruby
<zenspider>
yup
milardovich has quit [Remote host closed the connection]
<zenspider>
having done the comments in the ast thing before... It's too messy to be practical for me
pawnbox has quit [Remote host closed the connection]
<apeiros>
I don't see how the extraction part would differ. with dead string literal it'd be a query like "first string child node in a method definition", while with a comment it'd be "comment sibling before method definition"
<apeiros>
seems like queries of similar complexity to me
milardovich has joined #ruby
<zenspider>
1 comment sibling? 2 comment siblings? how many? how do you determine what constitutes 1 comment block? what if there is a blank line? what about trailing (to the right) comments? (eg # :nodoc:). etc etc etc... it's messy. very.
<zenspider>
vs... a plain string literal
<zenspider>
fixed location, size=1
milardovich has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
pwnd_nsfw has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
pawnbox has joined #ruby
<apeiros>
the same way you make a rule about the string literal (must be one, must be first) you can make rules about doc comment (must be one, no non-comment lines interrupting, before method def)
<apeiros>
another alternative I'd prefer over (ab)using string literals: have an actual doc comment syntax
tubuliferous has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
bronson has joined #ruby
Guest55795 has joined #ruby
Guest55795 has quit [Changing host]
Guest55795 has joined #ruby
Guest55795 is now known as Kestrel-029
tofutoon has left #ruby [#ruby]
SpiffTR has quit [Quit: Leaving.]
milardovich has quit [Remote host closed the connection]
triangles has joined #ruby
bronson has quit [Ping timeout: 250 seconds]
milardovich has joined #ruby
blackbom1 has quit [Ping timeout: 258 seconds]
DEac- has quit [Ping timeout: 248 seconds]
tubuliferous has quit [Ping timeout: 265 seconds]
Hink has quit [Ping timeout: 256 seconds]
Devalo has joined #ruby
edwinvdgraaf has joined #ruby
milardovich has quit [Remote host closed the connection]
Hink has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
pwnd_nsfw has joined #ruby
SpiffTR has joined #ruby
jenrzzz has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
enyo has joined #ruby
postmodern has quit [Quit: Leaving]
edwinvdgraaf has quit [Ping timeout: 260 seconds]
enyo has quit [Ping timeout: 250 seconds]
walterheck has quit [Ping timeout: 258 seconds]
skweek has joined #ruby
gizmore has joined #ruby
milardovich has joined #ruby
jyaworski has quit [Remote host closed the connection]
bronson has joined #ruby
SpiffTR has quit [Quit: Leaving.]
pwnd_nsfw` has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
walterheck has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
nankyokusei has joined #ruby
PaulCapestany has quit [Ping timeout: 245 seconds]
milardovich has quit [Ping timeout: 264 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
naprimer_2 is now known as oj_vsyo
matp_ has quit [Remote host closed the connection]
matp has joined #ruby
vuoto has joined #ruby
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
mikecmpbll has joined #ruby
milardovich has joined #ruby
marchelzo has joined #ruby
edwinvdgraaf has joined #ruby
Hyuk has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
sdothum has joined #ruby
Limix has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
Limix has quit [Ping timeout: 248 seconds]
Devalo has joined #ruby
dling` has quit []
jenrzzz has quit [Ping timeout: 250 seconds]
harfangk has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
Ishido has joined #ruby
eizua has quit [Quit: Leaving]
kayla has joined #ruby
<kayla>
hey -- i'm trying to learn ruby, but can't get an included file to work -- both files are in the same directory
<kayla>
i get kernel_require.rb:55:in `require': cannot load such file
<gizmore>
ommit .rb?
<gizmore>
typo in filename?
bronson has quit [Ping timeout: 264 seconds]
<kayla>
thanks! will check
<kayla>
nope -- i try with and without extension -- the filename is spelled correctly
<kayla>
(i'm sure i'm doing something noobish)
minimalism has quit [Quit: minimalism]
<kayla>
i have two files bar.rb and foo.rb in bar.rb it has require 'foo'; ruby bar.rb produces the error
<kayla>
i'm sure i'm missing something
<kayla>
doesn't work in irb either --
<herwin>
try 'require_relative' instead of 'required'
koldbrutality has quit [Ping timeout: 252 seconds]
<herwin>
require looks in the current search paths (you can print them with 'p $:')
<kayla>
will do ruby -e 'puts $:' doesn't show my current directory -- is that normal?
<herwin>
require_relative tries to load relative to the path of the file
machinewar has joined #ruby
<kayla>
that works!
<kayla>
but i'm still confused
<machinewar>
I'm a bit confused about a gem's Gemfile vs. declaring dependencies in a .gemspec
<kayla>
why is my current directory not in loadpaths?
<machinewar>
RubyGems says the preferred method is in the gemspec, but most libraries I see have a gemfile with deps in there too
<Phage>
But it works just fine from the command line
<Phage>
machinewar: Let me try that, thanks :)
edwinvdgraaf has quit [Ping timeout: 252 seconds]
<Phage>
It's the same without the begin/escue block
<Phage>
But it does complain when if I change the table name to something obscure
<machinewar>
Phage: okay, and are you opening the same db file in both sqlite3 cli and the ruby script? or are they different directories?
<zenspider>
kayla: what they're not telling you is that you could have done `ruby -I.` to include the current directiory in the load path OR, you can simply `require "./bar.rb"`.
<zenspider>
kayla: and no, '.' is no longer in the load path by default
<zenspider>
(used to be, but it is a bit of a security risk)
<kayla>
zenspider: thanks
<kayla>
so -- i'll try to run ruby -I.
<Phage>
machinewar: Same directory, unless sqlite3 has some default path I don't know about?
synthroi_ has joined #ruby
<zenspider>
kayla: you can save some typing by putting this before your requires: `$: << '.'`
<zenspider>
hacky, but fine for experiments
<kayla>
cool
<machinewar>
Phage: nope no default path
<machinewar>
let me think
<Phage>
I'm running out of ideas :/
vuoto has quit [Remote host closed the connection]
<zenspider>
Phage: `/usr/bin/ruby -v`
<Phage>
zenspider: ?
<zenspider>
run it
meshsmith has quit [Remote host closed the connection]
<zenspider>
`/usr/bin/ruby -S gem list | grep sqlite`
<marchelzo>
can you believe it's christmas eve already
<marchelzo>
wow
enyo has joined #ruby
<Phage>
marchelzo: [["Quotes"]]
<Phage>
machinewar: * Sorry
<Phage>
It finds the table just fine
enyo has quit [Ping timeout: 245 seconds]
ruid_ has joined #ruby
TomyLobo has joined #ruby
beanHolez has quit [Remote host closed the connection]
Limix has joined #ruby
tau has quit [Ping timeout: 264 seconds]
jaguarmagenta has joined #ruby
kayla has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
<machinewar>
hm very strange
Limix has quit [Ping timeout: 265 seconds]
conta has quit [Ping timeout: 248 seconds]
newbie1 has joined #ruby
jaguarmagenta has quit [Ping timeout: 268 seconds]
<machinewar>
what do people usually do for testing api clients? do you just stub every request/response?
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
CorthValira has joined #ruby
triangles has quit [Quit: Leaving]
Devalo has quit [Ping timeout: 246 seconds]
<TomyLobo>
i want a parallel version of "each" for ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-cygwin]. Is the "parallel-each" gem still the way to go?
<Papierkorb>
machinewar: Either that or use a gem like `vcr` to record requests/responses and play them back later. (Note, I've never used vcr)
<TomyLobo>
(unfortunately, ruby 2.3 didnt hit cygwin yet)
bronson has joined #ruby
GodFather has joined #ruby
<marchelzo>
build it from source
<marchelzo>
worth it
<marchelzo>
build 2.4 from source
GodFather has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 264 seconds]
GodFather has joined #ruby
<TomyLobo>
i use cygwin cause it's easy and works
<TomyLobo>
building it myself would defeat the purpose :)
<machinewar>
also I know this is pretty subjective, but do you think a Ruby api client for a json api should just return the parsed JSON, or an abstraction of it?
Ishido has quit [Remote host closed the connection]
shinnya has joined #ruby
<manveru>
huh, tk is finally not in stdlib anymore!
<manveru>
guess it's time that i dust off ffi-tk :)
anisha has joined #ruby
Devalo has joined #ruby
SpiffTR has joined #ruby
SpiffTR has quit [Client Quit]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
walterheck has quit [Ping timeout: 245 seconds]
Devalo has quit [Remote host closed the connection]
Ishido has joined #ruby
Devalo has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
<marchelzo>
hey
machinewar has quit []
<marchelzo>
what are some must-read articles to be a ruby master
<marchelzo>
like let's say i know the basics
<marchelzo>
but i want to get to the next level
meshsmith has joined #ruby
dionysus69 has joined #ruby
ruid_ has quit [Ping timeout: 258 seconds]
walterheck has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has joined #ruby
Limix has joined #ruby
houhoulis has joined #ruby
Devalo has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 258 seconds]
Devalo has joined #ruby
Limix has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has quit [Ping timeout: 246 seconds]
KramerC has quit [Quit: Leaving]
tubuliferous has joined #ruby
edwinvdgraaf has joined #ruby
j3r0 has joined #ruby
KramerC has joined #ruby
vuoto has joined #ruby
pilne has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
tubuliferous has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
sdothum has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
houhoulis has quit [Remote host closed the connection]
Mike_ has joined #ruby
Mike_ is now known as Skusman
sdothum has quit [Client Quit]
sdothum has joined #ruby
blackbom1 has joined #ruby
lenwood has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
maattdd has joined #ruby
enyo has joined #ruby
Devalo has joined #ruby
enyo has quit [Ping timeout: 258 seconds]
oj_vsyo has quit [Ping timeout: 268 seconds]
Limix has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
lenwood has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Limix has quit [Ping timeout: 250 seconds]
sdothum has joined #ruby
CorthValira has quit [Quit: CorthValira]
ptx0 has quit [Ping timeout: 258 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Devalo has quit [Ping timeout: 246 seconds]
jeffreylevesque has joined #ruby
phroa has left #ruby ["WeeChat 1.6"]
skweek has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
roflmyeggo has joined #ruby
maattdd has quit [Ping timeout: 258 seconds]
maattdd has joined #ruby
bronson has joined #ruby
nettoweb1 has joined #ruby
maattdd has quit [Ping timeout: 258 seconds]
bronson has quit [Ping timeout: 246 seconds]
nettoweb has quit [Ping timeout: 258 seconds]
rippa has quit [Read error: Connection reset by peer]
faces has quit [Read error: Connection reset by peer]
faces has joined #ruby
milardovich has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
nettoweb1 has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
milardovich has joined #ruby
oj_vsyo has joined #ruby
sdothum has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
MrBusiness2 has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: This computer has gone to sleep]
Devalo has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Devalo has joined #ruby
meshsmith has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
rippa has joined #ruby
BlueDragons has joined #ruby
Limix has joined #ruby
Devalo has joined #ruby
BlueDragons has quit [Client Quit]
nankyokusei has quit [Ping timeout: 248 seconds]
jaguarmagenta has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
Limix has quit [Ping timeout: 256 seconds]
marchelzo has quit [Ping timeout: 256 seconds]
armando has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
vuoto has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 252 seconds]
izaac_ has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
edwinvdgraaf has joined #ruby
Limix has joined #ruby
izaac has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
walterheck has quit [Ping timeout: 256 seconds]
Limix has quit [Quit: Limix]
skweek has quit [Ping timeout: 256 seconds]
harai_ has joined #ruby
skydiver has joined #ruby
bronson has joined #ruby
enyo has joined #ruby
cisco has joined #ruby
jero_ has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
j3r0 has quit [Ping timeout: 250 seconds]
Rasi has quit [Quit: WeeChat 1.5]
walterheck has joined #ruby
enyo has quit [Ping timeout: 250 seconds]
Rasi has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PaulCapestany has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
vuoto has joined #ruby
shakycode has joined #ruby
jhack has quit [Quit: jhack]
jaguarmagenta has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 260 seconds]
<shakycode>
Morning/Evening all. I'm a 4 year Rubyist who really wants to increase my skill set and master the language. I was wondering if anyone had any suggestions on resources that would really help me up my game. I subscribe to Ruby tapas and have several books, but I feel my Ruby is very "intermediate". Any resources or projects that I could dive into would be
<shakycode>
greatly appreciated.
jaguarmagenta has joined #ruby
jeffreylevesque has quit [Ping timeout: 256 seconds]
solocshaw has joined #ruby
Limix has joined #ruby
vuoto has quit [Remote host closed the connection]
jaguarmagenta has quit [Remote host closed the connection]
hotpancakes has joined #ruby
roflmyeggo has quit [Ping timeout: 260 seconds]
jtdoncas has joined #ruby
Limix has quit [Quit: Limix]
JoshS has quit [Ping timeout: 268 seconds]
pwnd_nsfw has joined #ruby
nowhereman has joined #ruby
jtdoncas has quit [Ping timeout: 258 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
perniciouscaffei has joined #ruby
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ptx0 has joined #ruby
kuSuSE has quit [Ping timeout: 268 seconds]
jaguarmagenta has joined #ruby
edwinvdgraaf has joined #ruby
bluOxigen has joined #ruby
enilsen16 has joined #ruby
yardenbar has joined #ruby
blackbom1 has quit [Ping timeout: 256 seconds]
bilal80 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 260 seconds]
blackbom1 has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
kuSuSE has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
armando has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arulmagi has joined #ruby
sdothum has joined #ruby
harai_ has quit [Ping timeout: 245 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
bronson has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
symm- has joined #ruby
milardovich has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
symm- has quit [Client Quit]
brent__ has joined #ruby
workmad3 has quit [Client Quit]
montanonic has joined #ruby
infernix has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
arulmagi has quit [Quit: Leaving]
hotpancakes has joined #ruby
nankyokusei has joined #ruby
Devalo has joined #ruby
scroy has joined #ruby
duderonomy has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
ryan_notabot has quit [Read error: Connection reset by peer]
ryan_notabot has joined #ruby
ryan_notabot has quit [Read error: Connection reset by peer]
bilal80 has quit [Ping timeout: 268 seconds]
ryan_notabot has joined #ruby
yardenbar has quit [Ping timeout: 245 seconds]
koldbrutality has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
ryan_notabot has quit [Read error: Connection reset by peer]
ryan_notabot has joined #ruby
gbgdev has joined #ruby
hotpanca_ has joined #ruby
bilal80 has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
<epitron>
shakycode: have you learned all the APIs?
skweek has joined #ruby
dviola has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
spenser has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
spenser has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Client Quit]
enyo has joined #ruby
hotpanca_ has quit [Ping timeout: 268 seconds]
roflmyeggo has joined #ruby
<shakycode>
epitron: no not all of them, I'm researching the API docs daily.
<shakycode>
I guess it just takes time. I've spent too much time doing rails and not enough ruby so i'm trying to break away from that pattern
MrBusiness2 has joined #ruby
enyo has quit [Ping timeout: 256 seconds]
infernix has joined #ruby
spenser has quit [Ping timeout: 258 seconds]
roflmyeggo has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
<epitron>
I think what's more important is that type of problems you work on
<epitron>
That's where the most learning happens
<pilne>
try something like sinatra for your next project maybe? or even more from scratch
<epitron>
shakycode: have you tried the advent of code?
<shakycode>
No i havent, but i'll definitely look into it
<epitron>
It's almost over, but you can do them all retroactively
<shakycode>
Sweet, I'm signing up now and will work on these. Appreciate it, epitron
bronson has quit [Ping timeout: 250 seconds]
jero_ has quit [Quit: Leaving]
skweek has quit [Ping timeout: 250 seconds]
yasm has joined #ruby
<epitron>
AOC is mostly about algorithms and speed coding
<epitron>
You might want to learn more systems architecture as well
<epitron>
Pulling apart and learning how existing systems work is very helpful
<epitron>
I did that with stuff when I was younger
edwinvdgraaf has joined #ruby
ruid_ has joined #ruby
yasm has quit [Client Quit]
<epitron>
As the AOSA guy points out, "most software developers only ever get to know a handful of large programs well—usually programs they wrote themselves—and never study the great programs of history. As a result, they repeat one another's mistakes rather than building on one another's successes."
<epitron>
So, most programs you pull apart are going to be pretty terrible
<epitron>
But you'll find the occasional gem that makes you rethink how you do things
Fernando-Basso has quit [Ping timeout: 245 seconds]
Guest21_ has joined #ruby
milardovich has joined #ruby
Guest21_ has quit [Client Quit]
scroy has quit [Quit: scroy]
SpiffTR has joined #ruby
Lord_of_Life has quit [Excess Flood]
Skusman_ has joined #ruby
Skusman has quit [Ping timeout: 250 seconds]
Skusman_ is now known as Skusman
Lord_of_Life has joined #ruby
<brent__>
anybody here familiar with Sunspot Solr?
emerson is now known as emiserson
xen0fon has quit [Quit: xen0fon]
SpiffTR has quit [Quit: Leaving.]
Fernando-Basso has joined #ruby
anisha has joined #ruby
gbgdev has quit [Read error: Connection reset by peer]
gbgdev has joined #ruby
montanonic has quit [Ping timeout: 258 seconds]
enilsen16 has quit [Quit: enilsen16]
ianmethyst has joined #ruby
tubuliferous has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
yasm has joined #ruby
yasm has quit [Client Quit]
ianmethyst has quit [Client Quit]
scroy has joined #ruby
webopsx has joined #ruby
ianmethyst has joined #ruby
unreal_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ianmethyst has quit [Client Quit]
ianmethyst has joined #ruby
scroy has quit [Client Quit]
unreal has quit [Ping timeout: 260 seconds]
webopsx has quit [Client Quit]
gbgdev has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
bocaneri has quit [Read error: Connection reset by peer]
chee is now known as Nigel_Tufnet
gnufied has joined #ruby
Nigel_Tufnet is now known as chee
bluOxigen has joined #ruby
chee is now known as Nigel_Tufnel
Nigel_Tufnel is now known as chee
anisha has quit [Quit: This computer has gone to sleep]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
spenser has quit [Ping timeout: 246 seconds]
bilal80 has quit [Remote host closed the connection]
spenser has joined #ruby
walterheck has quit [Ping timeout: 264 seconds]
milardovich has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
polysics has quit [Remote host closed the connection]
xen0fon has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
<manveru>
brent__: kinda
kuSuSE has quit [Quit: Konversation terminated!]
spenser has quit [Ping timeout: 246 seconds]
<shakycode>
epitron: that's a good way of thinking about things. I've only been solving business problems in a few different apps for 4.5 years with rails and ruby... asides from 5-10 personal projects i haven't really torn anyone else's code apart. I'll definitely give this a shot.
<brent__>
manveru, I ended up figuring it out, had to reindex :(
<brent__>
but i did have another question, more rails related
tubuliferous has quit [Ping timeout: 250 seconds]
<brent__>
I was trying to avoid an n+1 query by using includes, however i get an error that 'Association nameed 'name' was not found'
enilsen16 has joined #ruby
<brent__>
i believe it's a result as the query is a variety of objects some which don't have this attribute, is there a way around this?
gnufied has quit [Ping timeout: 240 seconds]
<shakycode>
brent__ what does your associations and scopes look like?
anisha has joined #ruby
nankyokusei has joined #ruby
<shakycode>
if you are including an association that does not exist you can get that association named was not found exception.
<brent__>
i have a has_many: scorings, which is what i'm trying to include
<brent__>
and thats the 'Association named 'scorings' was not found'
ianmethyst has quit [Quit: WeeChat 1.6]
<brent__>
don't have a scope for it
JoshS has joined #ruby
ianmethyst has joined #ruby
meshsmith has joined #ruby
<shakycode>
on the other end do you have a belongs_to? if not you may have a broken association, or if potentially the model scorings doesn't exist. but i assume you checked that?
synthroi_ has quit []
<shakycode>
Scoring*
nankyokusei has quit [Ping timeout: 250 seconds]
gnufied has joined #ruby
spenser has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
bluOxigen has quit [Ping timeout: 250 seconds]
gnufied has quit [Ping timeout: 258 seconds]
<brent__>
its a polymorphic association, but everything seems to be in place
aaooki has joined #ruby
<brent__>
if i remove the scorings from the includes it works fine, and then just queries 'scorings on a individual basis
gnufied has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
<brent__>
strange, there was a similiar assocation for 'scorers' which seems to work w/ includes. since i only need the count of either assocation, this may work
pwnd_nsfw` has joined #ruby
ianmethyst has joined #ruby
<shakycode>
sounds like that's the issue
enyo has joined #ruby
edwinvdgraaf has joined #ruby
ianmethyst has quit [Client Quit]
pwnd_nsfw has quit [Ping timeout: 265 seconds]
spenser has quit [Ping timeout: 258 seconds]
gnufied has quit [Ping timeout: 245 seconds]
meshsmith has quit [Read error: Connection reset by peer]
enyo has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
yasm has joined #ruby
yasm has quit [Client Quit]
solocshaw has quit [Ping timeout: 258 seconds]
ryan_notabot has quit [Write error: Broken pipe]
Pisuke has quit [Max SendQ exceeded]
ryan_notabot has joined #ruby
Pisuke has joined #ruby
jaguarmagenta has quit []
handicraftsman has joined #ruby
handicraftsman has left #ruby ["Leaving"]
pwnd_nsfw has joined #ruby
izaac_ has joined #ruby
handicraftsman has joined #ruby
handicraftsman has left #ruby ["Leaving"]
izaac has quit [Ping timeout: 250 seconds]
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
ResidentBiscuit has joined #ruby
spenser has joined #ruby
bronson has joined #ruby
polysics has joined #ruby
d0nn1e has quit [Ping timeout: 268 seconds]
ResidentBiscuit has quit []
bronson has quit [Ping timeout: 250 seconds]
polysics has quit [Ping timeout: 246 seconds]
d0nn1e has joined #ruby
minimalism has joined #ruby
houhoulis has joined #ruby
chouhoulis has joined #ruby
SpiffTR has joined #ruby
roflmyeggo has joined #ruby
aaooki has quit [Quit: Leaving]
meshsmith has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 268 seconds]
spenser has quit [Ping timeout: 256 seconds]
fantazo has quit [Quit: Verlassend]
pawnbox has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
pawnbox has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
montanonic has joined #ruby
marchelz1 has joined #ruby
f4 has joined #ruby
tubuliferous has joined #ruby
skydiver has quit [Ping timeout: 256 seconds]
tildes has joined #ruby
GodFather has joined #ruby
edwinvdgraaf has joined #ruby
SpiffTR has quit [Quit: Leaving.]
marchelz1 has quit [Quit: WeeChat 1.4]
milardovich has joined #ruby
jeffreylevesque has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
milardovich has joined #ruby
tildes has quit [Ping timeout: 265 seconds]
JoshS has quit [Quit: Leaving]
mikecmpbll has quit [Client Quit]
BrianJ has quit [Ping timeout: 248 seconds]
gbgdev has joined #ruby
houhoulis has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
walterheck has joined #ruby
ianmethyst has joined #ruby
ianmethyst has quit [Client Quit]
SpiffTR has joined #ruby
milardovich has quit [Remote host closed the connection]
perlgod has joined #ruby
milardovich has joined #ruby
perlgod has quit [Client Quit]
djbkd has quit [Remote host closed the connection]